/* ═══════════════════════════════════════════════════════
   ONBOARDING FLOW — full-screen overlay
═══════════════════════════════════════════════════════ */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0A0F1E;
  padding: 56px 24px 48px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ob-overlay.active { opacity: 1; pointer-events: auto; }

.ob-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* Close button — fixed so it stays visible while scrolling */
.ob-close {
  position: fixed;
  top: 18px; right: 22px;
  z-index: 301;
  background: none; border: none;
  color: #475569; cursor: pointer;
  font-size: 24px; line-height: 1;
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.ob-close:hover { color: #94A3B8; }

/* Progress segments */
.ob-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 48px;
}
.ob-prog-seg {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.35s ease;
}
.ob-prog-seg.done   { background: var(--green); }
.ob-prog-seg.active { background: rgba(255,255,255,0.65); }

/* Steps — display:none / flex toggled by .active */
.ob-step {
  display: none;
  flex-direction: column;
  gap: 22px;
}
.ob-step.active { display: flex; }
.ob-step.enter-fwd  { animation: obEnterFwd  0.32s cubic-bezier(0.22,1,0.36,1) both; }
.ob-step.enter-back { animation: obEnterBack 0.32s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes obEnterFwd  { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes obEnterBack { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }

/* Step header */
.ob-hd { display: flex; flex-direction: column; gap: 6px; }
.ob-title    { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.7px; line-height: 1.12; }
.ob-subtitle { font-size: 14px; color: #64748B; line-height: 1.5; }

/* Back link */
.ob-back {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #475569;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 4px;
  padding: 0; transition: color 0.2s; align-self: flex-start;
}
.ob-back:hover { color: #94A3B8; }

/* Form fields */
.ob-fields { display: flex; flex-direction: column; gap: 13px; }
.ob-field  { display: flex; flex-direction: column; gap: 5px; }
.ob-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #64748B; font-family: var(--mono);
}
.ob-input, .ob-select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: #fff; font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none; border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
.ob-input:focus, .ob-select:focus {
  border-color: rgba(91,115,240,0.45);
  background: rgba(255,255,255,0.06);
}
.ob-input::placeholder { color: #334155; }
.ob-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 38px;
}
.ob-select option { background: #141519; }

/* Step 2: Branch cards */
.ob-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-card {
  padding: 20px 18px;
  border: 1.5px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.ob-card:hover { border-color: rgba(91,115,240,0.28); background: rgba(91,115,240,0.03); }
.ob-card.sel   { border-color: var(--accent); background: rgba(91,115,240,0.05); }
.ob-card-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.ob-card-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.2px; margin-bottom: 3px; }
.ob-card-desc { font-size: 12px; color: #475569; line-height: 1.5; }

/* Steps 3 & 4: Selection chips */
.ob-chip-list { display: flex; flex-direction: column; gap: 8px; }
.ob-chip {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border: 1.5px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ob-chip:hover { border-color: rgba(91,115,240,0.28); background: rgba(91,115,240,0.03); }
.ob-chip.sel   { border-color: var(--accent); background: rgba(91,115,240,0.05); }
.ob-chip-box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.ob-chip-box svg { opacity: 0; transition: opacity 0.15s; }
.ob-chip.sel .ob-chip-box            { background: var(--accent); border-color: var(--accent); }
.ob-chip.sel .ob-chip-box svg        { opacity: 1; }
.ob-chip-text  { flex: 1; }
.ob-chip-label { font-size: 14px; font-weight: 600; color: #fff; }
.ob-chip-sub   { font-size: 12px; color: #475569; margin-top: 2px; }

/* Step 4: Provider block */
.ob-provider-block {
  display: none;
  flex-direction: column; gap: 8px;
}
.ob-provider-block.visible {
  display: flex;
  animation: obFadeUp 0.25s ease both;
}
@keyframes obFadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.ob-pay-note {
  padding: 11px 14px;
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.18);
  font-size: 12px; color: #64748B; line-height: 1.65;
}

/* Step 5: Tier card + summary */
.ob-tier-card {
  padding: 22px 20px;
  border: 1.5px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  display: flex; gap: 16px; align-items: flex-start;
}
.ob-tier-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
  display: flex; align-items: center; justify-content: center;
}
.ob-tier-badge {
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}
.ob-tier-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.4px; margin-bottom: 4px; }
.ob-tier-desc { font-size: 12px; color: #64748B; line-height: 1.55; }
.ob-summary   { display: flex; flex-direction: column; }
.ob-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.ob-summary-row:last-child { border-bottom: none; }
.ob-summary-key { color: #475569; }
.ob-summary-val { color: #94A3B8; font-family: var(--mono); font-size: 11px; font-weight: 600; text-align: right; max-width: 58%; }

/* Step 6: Account */
.ob-pw-wrap { position: relative; }
.ob-pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #475569; font-family: var(--mono); font-size: 12px;
  transition: color 0.2s; padding: 0;
}
.ob-pw-toggle:hover { color: #94A3B8; }
.ob-account-note { font-size: 12px; color: #475569; line-height: 1.65; text-align: center; }

/* CTA buttons */
.ob-btn {
  width: 100%; padding: 15px;
  background: #fff; color: #0A101E;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; border-radius: 0;
  font-family: 'Inter', sans-serif; letter-spacing: -0.2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.18s, background 0.18s; flex-shrink: 0;
}
.ob-btn:hover  { transform: scale(1.015); background: #F0F4FF; }
.ob-btn:active { transform: scale(0.985); }
.ob-btn.accent { background: var(--accent); color: #fff; }
.ob-btn.accent:hover { background: #4B5FD8; }

/* Validation errors */
.ob-err { font-size: 12px; color: #EF4444; display: none; font-family: var(--mono); }
.ob-err.show { display: block; }

/* Success state */
.ob-success {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 24px 0;
}
.ob-success-ring {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(16,185,129,0.08); border: 2px solid rgba(16,185,129,0.28);
  display: flex; align-items: center; justify-content: center;
}
.ob-success-title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.6px; }
.ob-success-sub   { font-size: 14px; color: #64748B; line-height: 1.7; }
.ob-success-sub strong { color: #94A3B8; font-weight: 600; }

/* ── Success screen extensions ── */
.ob-next-section { display: flex; flex-direction: column; gap: 16px; }
.ob-next-label   {
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.4px;
  text-align: center;
}
.ob-secondary-ctas { display: flex; gap: 16px; justify-content: center; }
.ob-secondary-cta {
  font-size: 15px; font-weight: 600; color: #94A3B8; text-decoration: none;
  font-family: 'Inter', sans-serif; transition: color 0.2s;
  padding: 10px 20px;
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: 8px;
}
.ob-secondary-cta:hover { color: #fff; border-color: rgba(255,255,255,0.28); }
.ob-what-next {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ob-what-next-title {
  font-size: 13px; font-weight: 700; color: #94A3B8;
  letter-spacing: -0.1px;
}
.ob-what-next-items { display: flex; flex-direction: column; gap: 12px; }
.ob-what-next-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: #94A3B8; line-height: 1.55;
}
.ob-what-next-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0; margin-top: 5px;
}
