/* ============================================================
   Lynex · Auth (login & register)
   Split-screen, Apple/Stripe-tier polish, brand-consistent.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e5e5e7;
  --line-strong: #d2d2d7;
  --accent: #f8b414;
  --accent-2: #ffd84d;
  --accent-3: #f5a800;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.06), 0 8px 24px -8px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 36px -10px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ===== Layout ===== */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
}

/* Form side */
.auth-main {
  display: flex;
  flex-direction: column;
  padding: 32px 56px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.auth-main::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(248,180,20,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-logo svg { color: var(--ink); }
.auth-back {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: all .25s var(--ease);
}
.auth-back:hover { border-color: var(--ink); color: var(--ink); }

.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.auth-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.auth-sub {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

/* OAuth */
.auth-oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.oauth-btn {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s var(--ease);
}
.oauth-btn:hover {
  border-color: var(--ink);
  background: #fafafa;
  transform: translateY(-1px);
}
.oauth-btn svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 24px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field-input {
  position: relative;
  display: flex;
  align-items: center;
}
.field-input svg.field-ic {
  position: absolute;
  left: 14px;
  color: var(--muted-2);
  pointer-events: none;
}
.field input {
  width: 100%;
  appearance: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: all .2s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:hover { border-color: var(--line-strong); }
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(248,180,20,0.15);
}
.field.is-error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
}
.field-msg {
  font-size: 12px;
  color: var(--muted);
  min-height: 0;
}
.field.is-error .field-msg { color: var(--danger); }

.field-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.field-toggle:hover { color: var(--ink); background: var(--bg-alt); }

/* Password strength */
.pw-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.pw-meter span {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background .25s var(--ease);
}
.pw-meter[data-level="1"] span:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-level="3"] span:nth-child(-n+3) { background: #eab308; }
.pw-meter[data-level="4"] span { background: var(--success); }
.pw-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.pw-hint b { color: var(--ink-2); font-weight: 500; }

/* Inline row (remember + forgot) */
.auth-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 6px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.checkbox-box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .15s var(--ease);
}
.checkbox input:checked + .checkbox-box {
  background: var(--ink);
  border-color: var(--ink);
}
.checkbox input:checked + .checkbox-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checkbox input:focus-visible + .checkbox-box {
  box-shadow: 0 0 0 4px rgba(248,180,20,0.30);
}
.auth-link {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.auth-link::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: currentColor;
  opacity: .3;
  transition: opacity .2s var(--ease);
}
.auth-link:hover::after { opacity: 1; }

/* Submit */
.auth-submit {
  appearance: none;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s var(--ease);
  margin-top: 6px;
}
.auth-submit:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.3);
}
.auth-submit:active { transform: none; }
.auth-submit .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.auth-submit.is-loading .spinner { display: inline-block; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Switch CTA */
.auth-switch {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.auth-switch a {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.auth-switch a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.auth-switch a:hover::after { transform: scaleX(1); }

/* Terms (register) */
.auth-terms {
  font-size: 12.5px;
  color: var(--muted);
  margin: -4px 0 -4px;
  line-height: 1.5;
}
.auth-terms a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.auth-terms a:hover { border-bottom-color: var(--ink); }

/* Foot */
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
}
.auth-foot-links { display: inline-flex; gap: 18px; }
.auth-foot-links a:hover { color: var(--ink); }

/* ===== Aside (right side, brand panel) ===== */
.auth-aside {
  position: relative;
  background: linear-gradient(160deg, #0a0a0a 0%, #161618 60%, #1d1d1f 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-aside::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(248,180,20,0.18), transparent 65%);
  pointer-events: none;
}
.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
}

.aside-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}
.aside-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34,197,94,0.7);
  position: relative;
}
.aside-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--success);
  opacity: .5;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Quote / showcase */
.aside-mid {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.aside-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.aside-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.aside-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aside-text {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 460px;
}

/* Stat strip */
.aside-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 28px;
}
.aside-stat .num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.aside-stat .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* Feature list */
.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.aside-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Customer proof */
.aside-proof {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 480px;
}
.aside-avatars {
  display: flex;
}
.aside-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #161618;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-left: -8px;
}
.aside-avatars span:first-child { margin-left: 0; }
.aside-avatars span:nth-child(2) { background: linear-gradient(135deg, #6ee7b7, #10b981); color: #064e3b; }
.aside-avatars span:nth-child(3) { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); color: #2e1065; }
.aside-avatars span:nth-child(4) { background: linear-gradient(135deg, #fda4af, #ef4444); color: #7f1d1d; }
.aside-proof-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.aside-proof-text strong { color: #fff; font-weight: 600; }
.aside-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
  margin-right: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .auth-main { padding: 28px 40px; }
  .auth-aside { padding: 40px 44px; }
}
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 24px 36px; min-height: 100vh; }
}
@media (max-width: 540px) {
  .auth-main { padding: 20px 18px 28px; }
  .auth-body { padding: 24px 0; }
  .auth-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .auth-oauth { grid-template-columns: 1fr; }
}

/* ============================================================
   Lynex · Auth — Extended (forgot, reset, 2FA, magic, onboarding)
   ============================================================ */

/* Top icon badge above eyebrow */
.auth-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #1a1100;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -8px rgba(248, 180, 20, 0.55), inset 0 0 0 1px rgba(255,255,255,0.4);
}

/* Success state (forgot, magic, welcome) */
.auth-success {
  text-align: center;
  padding: 8px 0 4px;
  animation: successIn .4s var(--ease) both;
}
.auth-success-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.06);
}
.auth-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.auth-success p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.auth-success p b { color: var(--ink); font-weight: 600; }
.auth-success .auth-submit { margin: 8px auto; max-width: 280px; }

/* Hata / başarı uyarı kutusu (form üstü) */
.auth-alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0 0 14px;
  border: 1px solid transparent;
}
.auth-alert > div + div { margin-top: 4px; }
.auth-alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.auth-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.auth-alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.auth-alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}


@keyframes successIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ghost variant of submit */
.auth-submit-ghost {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
}
.auth-submit-ghost:hover:not(:disabled) {
  background: var(--bg-alt) !important;
  border-color: var(--ink) !important;
  transform: none !important;
}

/* Tiny hint */
.auth-hint-tiny {
  font-size: 12px;
  color: var(--muted-2);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* Field label optional badge */
.field-opt {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Inline alt links row */
.auth-alt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

/* ===== OTP / 2FA ===== */
.otp-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
}
.otp-input {
  width: 52px;
  height: 60px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease);
}
.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(248,180,20,0.18);
  transform: translateY(-1px);
}
.otp-input.is-filled {
  border-color: var(--ink);
  background: #fffdf3;
}
.otp-sep {
  color: var(--muted-2);
  font-size: 22px;
  font-weight: 300;
  user-select: none;
}
.otp-msg {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 18px;
}
.otp-msg.is-error { color: var(--danger); }
.otp-msg.is-success { color: var(--success); }

@media (max-width: 540px) {
  .otp-input { width: 42px; height: 52px; font-size: 20px; }
  .otp-group { gap: 6px; }
}

/* ===== Onboarding ===== */
body.onb-body {
  background: var(--bg-soft);
  min-height: 100vh;
}
.onb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.onb-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .25s var(--ease);
}
.onb-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.onb-step.is-active { color: var(--ink); }
.onb-step.is-active .onb-step-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(248,180,20,0.18);
}
.onb-step.is-done .onb-step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.onb-step.is-done .onb-step-dot::before { content: "✓"; }
.onb-step.is-done .onb-step-dot { font-size: 0; }
.onb-step.is-done .onb-step-dot::before { font-size: 13px; }
.onb-step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.onb-step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.onb-progress[data-step="2"] .onb-step-line:first-of-type::after,
.onb-progress[data-step="3"] .onb-step-line::after { transform: scaleX(1); }

.onb-main {
  max-width: 640px;
  margin: 48px auto;
  padding: 0 24px 64px;
}
.onb-panel {
  display: none;
  animation: panelIn .35s var(--ease) both;
}
.onb-panel.is-visible { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.onb-form { margin-top: 22px; }

.onb-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: 18px;
}
.onb-toggle-btn {
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.onb-toggle-btn.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

.onb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.onb-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all .2s var(--ease);
  background: #fff;
}
.onb-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.onb-card input { position: absolute; opacity: 0; pointer-events: none; }
.onb-card:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(248,180,20,0.18);
}
.onb-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.onb-card-ic {
  font-size: 26px;
  margin-bottom: 8px;
}
.onb-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.onb-card-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.onb-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.onb-actions .auth-submit { width: auto; min-width: 160px; padding: 12px 20px; }
.onb-actions-center { justify-content: center; }

/* Onboarding checklist */
.onb-checklist {
  list-style: none;
  padding: 22px;
  margin: 22px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
}
.onb-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.onb-checklist li.is-done { color: var(--ink); }
.onb-checklist li.is-loading { color: var(--ink); }
.onb-checklist .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--muted-2);
  flex: none;
  border: 1.5px solid var(--line-strong);
}
.onb-checklist li:not(.is-done):not(.is-loading) .check {
  background: transparent;
}
.onb-checklist li.is-done .check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.onb-checklist li.is-loading .check {
  border-color: var(--line);
  background: #fff;
}
.mini-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .onb-header { padding: 16px 20px; flex-wrap: wrap; }
  .onb-progress { order: 3; flex-basis: 100%; max-width: none; margin: 8px 0 0; }
  .onb-step-lbl { display: none; }
  .onb-grid { grid-template-columns: 1fr; }
}

/* Text-based field icon (e.g. +90 phone prefix) */
.field-ic-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* SVG alignment in toggle and cards */
.onb-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.onb-toggle-btn svg { color: var(--muted); transition: color .18s var(--ease); }
.onb-toggle-btn.is-active svg { color: var(--accent-3); }

.onb-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  margin-bottom: 12px;
  transition: all .2s var(--ease);
}
.onb-card:has(input:checked) .onb-card-ic {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #1a1100;
}

/* Aside avatars: SVG support */
.aside-avatars span svg { display: block; }
