.flex-container {
  min-height: calc(100vh - 60px);
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

/* ── Onboarding card ────────────────────────────────────────── */
.onboarding-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(4, 28, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 44px 48px 40px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.5);
}

/* ── Header ─────────────────────────────────────────────────── */
.onboarding-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  margin-left: 0;
  margin-right: 0;
}
.onboarding-header svg { width: 28px; height: 28px; stroke: #1bc467; stroke-width: 1.5; fill: none; }
.onboarding-header h2 { font-size: 1.4rem; margin: 0; color: white; }
.onboarding-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0 0 32px; }

/* ── Step indicator ─────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  margin-left: 0;
  margin-right: 0;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.4);
  background: transparent;
}
.step-dot.active {
  background: linear-gradient(135deg, #14a356, #1bc467);
  border-color: transparent;
  color: white;
}
.step-dot.done {
  background: rgba(27,196,103,0.2);
  border-color: #1bc467;
  color: #1bc467;
}
.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 8px;
  transition: background 0.3s;
}
.step-line.done { background: rgba(27,196,103,0.5); }
.step-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 6px;
  display: block;
}
.step-dot.active + * .step-label,
.step-wrapper.active .step-label { color: rgba(255,255,255,0.75); }
.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Step panels ────────────────────────────────────────────── */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-title { font-size: 1.2rem; margin: 0 0 4px; }
.step-sub   { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0 0 28px; }

/* ── Fields ─────────────────────────────────────────────────── */
.field { text-align: left; margin-bottom: 18px; margin-left: 0; margin-right: 0; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.28); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: #1bc467;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(27,196,103,0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-left: 0; margin-right: 0; }

/* ── Password requirements ──────────────────────────────────── */
.pw-rules {
  margin: -8px 0 16px;
  margin-left: 0;
  margin-right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.pw-rule {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.pw-rule svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.5; fill: none; flex-shrink: 0; }
.pw-rule.met { color: #1bc467; }

/* ── Categories checkboxes ──────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  margin-left: 0;
  margin-right: 0;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  margin: 0;
}
.category-chip:hover { background: rgba(255,255,255,0.1); }
.category-chip input[type="checkbox"] { display: none; }
.category-chip.checked {
  background: rgba(27,196,103,0.15);
  border-color: rgba(27,196,103,0.5);
}
.category-chip svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.55); stroke-width: 2; fill: none; flex-shrink: 0; }
.category-chip.checked svg { stroke: #1bc467; }
.category-chip span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.category-chip.checked span { color: white; }
.cat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 10px; display: block; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-left: 0;
  margin-right: 0;
}
.btn-next {
  flex: 1;
  padding: 13px;
  background: linear-gradient(135deg, #14a356 0%, #1bc467 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-next svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.btn-next:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-next:active { transform: translateY(0); filter: brightness(0.95); }
.btn-back {
  padding: 13px 20px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-back svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn-back:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── Error / success banners ────────────────────────────────── */
.banner {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 0 0 18px;
  margin-left: 0;
  margin-right: 0;
  display: none;
}
.banner.error   { background: rgba(200,50,50,0.25); border: 1px solid rgba(255,100,100,0.4); color: #ffaaaa; }
.banner.success { background: rgba(27,196,103,0.15); border: 1px solid rgba(27,196,103,0.4); color: #7de8ab; }
.banner.visible { display: block; }

/* ── File upload ────────────────────────────────────────────── */
.file-upload-area {
  border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-upload-area:hover { border-color: rgba(27,196,103,0.55); background: rgba(27,196,103,0.06); }
.file-upload-area.has-file { border-color: rgba(27,196,103,0.55); background: rgba(27,196,103,0.08); }
.file-upload-area input[type="file"] { display: none; }
.file-upload-icon { width: 28px; height: 28px; stroke: rgba(255,255,255,0.35); stroke-width: 1.5; fill: none; margin: 0 auto 8px; display: block; }
.file-upload-area.has-file .file-upload-icon { stroke: #1bc467; }
.file-upload-hint { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.file-upload-area.has-file .file-upload-hint { color: #1bc467; }
.file-req { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ── Organic toggle ──────────────────────────────────────────── */
.organic-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}
.organic-toggle:hover { background: rgba(255,255,255,0.1); }
.organic-toggle input[type="checkbox"] { display: none; }
.organic-toggle svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.55); stroke-width: 2; fill: none; flex-shrink: 0; }
.organic-toggle span { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.organic-toggle.checked { background: rgba(27,196,103,0.15); border-color: rgba(27,196,103,0.5); }
.organic-toggle.checked svg { stroke: #1bc467; }
.organic-toggle.checked span { color: white; }

/* ── Step 5: complete ───────────────────────────────────────── */
.complete-panel {
  text-align: center;
  padding: 16px 0;
}
.complete-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14a356, #1bc467);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.complete-icon svg { width: 36px; height: 36px; stroke: white; stroke-width: 2; fill: none; }
.complete-panel h3 { font-size: 1.4rem; margin: 0 0 8px; }
.complete-panel p { color: rgba(255,255,255,0.6); margin: 0 0 28px; font-size: 0.9rem; }

@media (max-width: 560px) {
  .onboarding-card { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .pw-rules { grid-template-columns: 1fr; }
}
