/* ===== Online Koçunuz — tasarım token'ları ===== */
/* =============================================================
   Online Koçunuz — Design Tokens
   Foundations: color, type, spacing, radius, shadow, motion
   ============================================================= */

:root {
  /* ---------- Color: Brand ---------- */
  --primary-50:  #EEF1FF;
  --primary-100: #DCE2FF;
  --primary-200: #B6C1FF;
  --primary-300: #8898FF;
  --primary-400: #5A72FF;
  --primary-500: #3B5BFF;   /* Orbit — the primary */
  --primary-600: #2C49E6;
  --primary-700: #1E3AE2;
  --primary-800: #1830B2;
  --primary-900: #122485;

  --accent-100: #F5FCDC;
  --accent-300: #DDF690;
  --accent-500: #C6F25A;    /* Ignition — vivid lime, used SPARINGLY */
  --accent-700: #7FA61A;
  --accent-900: #3F5208;

  /* ---------- Color: Neutrals (warm-cool slate) ---------- */
  --ink-900: #0B0F1A;       /* Almost-black */
  --ink-800: #131826;
  --ink-700: #1A1F2E;       /* Body text default */
  --ink-600: #2A3142;
  --ink-500: #4B5468;       /* Secondary text */
  --ink-400: #6B7488;
  --ink-300: #8E97AB;       /* Tertiary text, captions */
  --ink-200: #B7BECC;
  --ink-100: #CDD2DF;       /* Strong borders */
  --ink-50:  #E6E8EF;       /* Default borders */
  --ink-25:  #F0F1F6;
  --ink-10:  #F6F7FB;       /* Surface-1 / app background */
  --ink-0:   #FFFFFF;

  /* ---------- Color: Semantic ---------- */
  --success-50:  #E6F6EC;
  --success-500: #1F9D55;
  --success-700: #156E3C;

  --warning-50:  #FDF4E2;
  --warning-500: #E59A1F;
  --warning-700: #A36C11;

  --danger-50:   #FCE9EC;
  --danger-500:  #D43A4F;
  --danger-700:  #99213A;

  --info-50:     #EEF1FF;
  --info-500:    #3B5BFF;

  /* ---------- Color: Subjects (YKS) ---------- */
  --subj-mat: #3B5BFF;      /* Matematik   — orbit blue */
  --subj-fiz: #7C4DFF;      /* Fizik       — violet */
  --subj-kim: #00A39A;      /* Kimya       — teal */
  --subj-biy: #1F9D55;      /* Biyoloji    — green */
  --subj-tur: #D43A4F;      /* Türkçe      — red */
  --subj-edb: #B0254A;      /* Edebiyat    — deep red */
  --subj-tar: #B8651B;      /* Tarih       — bronze */
  --subj-cog: #6B7C2F;      /* Coğrafya    — olive */
  --subj-fel: #5B6478;      /* Felsefe     — slate */
  --subj-din: #8E6B2A;      /* Din         — sand */
  --subj-ing: #006EB6;      /* İngilizce   — deep blue */

  /* ---------- Color: Semantic roles ---------- */
  --bg:           var(--ink-10);
  --surface:      var(--ink-0);
  --surface-2:    var(--ink-25);
  --surface-3:    var(--ink-50);
  --border:       var(--ink-50);
  --border-strong:var(--ink-100);
  --fg:           var(--ink-700);
  --fg-strong:    var(--ink-900);
  --fg-muted:     var(--ink-500);
  --fg-subtle:    var(--ink-300);
  --fg-on-primary:var(--ink-0);
  --link:         var(--primary-600);
  --focus-ring:   var(--primary-500);

  /* The brand "arc" — used as 1px hairline at the top of primary cards */
  --bg-aurora:    radial-gradient(120% 80% at 50% 0%, rgba(59,91,255,.10), transparent 60%);
  --hairline-arc: linear-gradient(90deg, transparent 0%, var(--primary-400) 30%, var(--accent-500) 55%, var(--primary-400) 80%, transparent 100%);
  --brand-grad: linear-gradient(160deg, #3B5BFF 0%, #233FCF 100%);

  /* ---------- Type ---------- */
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-12: 0.75rem;     /* 12 — micro labels */
  --fs-13: 0.8125rem;   /* 13 — captions */
  --fs-14: 0.875rem;    /* 14 — secondary body */
  --fs-15: 0.9375rem;   /* 15 — UI default */
  --fs-16: 1rem;        /* 16 — body */
  --fs-18: 1.125rem;    /* 18 — emphasized body */
  --fs-20: 1.25rem;     /* 20 — h5 */
  --fs-24: 1.5rem;      /* 24 — h4 */
  --fs-28: 1.75rem;     /* 28 — h3 */
  --fs-32: 2rem;        /* 32 — h2 */
  --fs-40: 2.5rem;      /* 40 — h1 / display sm */
  --fs-56: 3.5rem;      /* 56 — display md */
  --fs-72: 4.5rem;      /* 72 — display lg / hero */

  --lh-tight: 1.1;   /* @kind font */
  --lh-snug:  1.25;  /* @kind font */
  --lh-base:  1.5;   /* @kind font */
  --lh-loose: 1.7;   /* @kind font */

  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-base:  0;
  --tracking-wide:  0.04em;
  --tracking-caps:  0.08em;

  /* ---------- Spacing (4px base) ---------- */
  --s-0:  0;     /* @kind spacing */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 96px;

  /* ---------- Radius ---------- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  /* ---------- Shadow ---------- */
  --shadow-soft:    0 1px 2px rgba(11,15,26,.04), 0 6px 20px -8px rgba(30,58,226,.10);
  --shadow-lifted:  0 12px 32px -8px rgba(11,15,26,.18);
  --shadow-inset:   inset 0 1px 2px rgba(11,15,26,.06);
  --shadow-focus:   0 0 0 2px var(--surface), 0 0 0 4px var(--focus-ring);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);    /* @kind other */
  --ease-in-out: cubic-bezier(0.5, 0, 0.2, 1);      /* @kind other */
  --dur-fast:    120ms;   /* @kind other */
  --dur-base:    200ms;   /* @kind other */
  --dur-slow:    360ms;   /* @kind other */

  /* ---------- Z-index ---------- */
  --z-nav:    40;    /* @kind other */
  --z-sticky: 50;    /* @kind other */
  --z-modal:  90;    /* @kind other */
  --z-toast:  100;   /* @kind other */
}

/* =============================================================
   Semantic typography — apply directly to elements
   ============================================================= */

html { font-family: var(--font-sans); color: var(--fg); background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-size: var(--fs-16); line-height: var(--lh-base); }

.display-lg, h1.display { font-size: var(--fs-72); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 800; }
.display-md            { font-size: var(--fs-56); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 800; }
.display-sm            { font-size: var(--fs-40); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 700; }

h1 { font-size: var(--fs-32); line-height: var(--lh-snug); letter-spacing: var(--tracking-snug); font-weight: 700; }
h2 { font-size: var(--fs-28); line-height: var(--lh-snug); letter-spacing: var(--tracking-snug); font-weight: 700; }
h3 { font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 600; }
h4 { font-size: var(--fs-20); line-height: var(--lh-snug); font-weight: 600; }
h5 { font-size: var(--fs-18); line-height: var(--lh-snug); font-weight: 600; }
h6 { font-size: var(--fs-15); line-height: var(--lh-snug); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--fg-muted); }

p { font-size: var(--fs-16); line-height: var(--lh-base); text-wrap: pretty; }
.lead { font-size: var(--fs-18); line-height: var(--lh-base); color: var(--fg-muted); }
.caption { font-size: var(--fs-13); line-height: var(--lh-base); color: var(--fg-muted); }
.eyebrow { font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--primary-700); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

::selection { background: var(--primary-100); color: var(--primary-900); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}


/* ===== Giriş & Kayıt — bileşen stilleri ===== */
* { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body { font-family: var(--font-sans); color: var(--fg); background: var(--surface); }
  #root, #app, #ok-auth-app { height: 100%; }
  button { font-family: inherit; }

  /* ===================== SHELL ===================== */
  .auth-root { height: 100%; }
  .auth-root.fullscreen .frame { width: 100vw; height: 100vh; }
  .auth-root.boxed {
    min-height: 100vh; display: grid; place-items: center; padding: var(--s-6);
    background:
      radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--primary-500) 12%, transparent), transparent 55%),
      var(--bg);
  }
  .auth-root.boxed .frame {
    width: min(1160px, 100%); height: min(780px, calc(100vh - 48px));
    border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lifted); overflow: hidden;
  }
  .frame { position: relative; overflow: hidden; background: var(--surface); }

  /* ===================== LEFT PANEL ===================== */
  .left {
    position: absolute; top: 0; left: 0; width: 50%; height: 100%; z-index: 2; color: #fff; overflow: hidden;
    transform: translateX(0); transition: transform .62s var(--ease-in-out);
    background:
      radial-gradient(100% 55% at 14% 4%, rgba(198,242,90,.16), transparent 50%),
      radial-gradient(120% 80% at 100% 100%, rgba(255,255,255,.14), transparent 55%),
      var(--brand-grad);
  }
  .auth-root.login .left { transform: translateX(100%); }
  .left-in { position: relative; z-index: 2; height: 100%; padding: var(--s-9) var(--s-9) var(--s-5);
    display: flex; flex-direction: column; }
  .left-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .site-back { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-13); font-weight: 600; color: rgba(255,255,255,.72); }
  .site-back:hover { color: #fff; text-decoration: none; }

  /* uzay katmanı */
  .space { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
  .orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
  .orbit-ring.r1 { width: 460px; height: 460px; right: -150px; top: -120px; animation: orbitspin 75s linear infinite; }
  .orbit-ring.r2 { width: 280px; height: 280px; right: -60px; top: -40px; animation: orbitspin 55s linear infinite reverse; }
  .orbit-d { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-500);
    right: -6px; top: 50%; box-shadow: 0 0 0 6px rgba(198,242,90,.16); }
  .planet { position: absolute; border-radius: 50%; }
  .p1 { width: 104px; height: 104px; left: 57%; top: 13%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.30), rgba(255,255,255,.05) 60%, transparent 72%);
    box-shadow: inset -12px -12px 24px rgba(0,0,0,.16); animation: float1 14s ease-in-out infinite; }
  .p2 { width: 46px; height: 46px; right: 13%; top: 40%;
    background: radial-gradient(circle at 35% 30%, var(--accent-300), var(--accent-700));
    box-shadow: 0 0 30px rgba(198,242,90,.32); animation: float2 11s ease-in-out infinite; }
  .p3 { width: 26px; height: 26px; right: 22%; bottom: 30%;
    background: radial-gradient(circle at 35% 30%, #fff, rgba(136,152,255,.65));
    box-shadow: 0 0 20px rgba(255,255,255,.4); animation: float3 17s ease-in-out infinite; }
  .star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .5; animation: tw 4s ease-in-out infinite; }
  .s1 { left: 64%; top: 9%; } .s2 { left: 82%; top: 26%; width: 3px; height: 3px; animation-delay: 1.2s; }
  .s3 { left: 54%; top: 52%; animation-delay: .6s; } .s4 { left: 76%; top: 66%; width: 5px; height: 5px; animation-delay: 1.9s; }
  .s5 { left: 90%; top: 46%; animation-delay: 1.5s; } .s6 { left: 68%; top: 86%; width: 3px; height: 3px; animation-delay: 2.6s; }
  @keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(18px,-24px)} }
  @keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-14px,-18px)} }
  @keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(16px,20px)} }
  @keyframes tw { 0%,100%{opacity:.25;transform:scale(.8)} 50%{opacity:.95;transform:scale(1.15)} }
  @keyframes orbitspin { to { transform: rotate(360deg) } }
  @media (prefers-reduced-motion: reduce) { .planet, .star, .orbit-ring { animation: none !important; } }

  .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
  .brand:hover { text-decoration: none; }
  .brand-logo { display: block; width: auto; height: 38px; max-width: 210px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; }
  .brand-name { font-weight: 800; font-size: var(--fs-18); letter-spacing: -.01em; }
  .brand-name span { color: var(--accent-500); }
  .brand-dark .brand-mark { background: color-mix(in srgb, var(--primary-500) 9%, transparent); border-color: color-mix(in srgb, var(--primary-500) 18%, transparent); }
  .brand-dark .brand-name { color: var(--ink-900); }
  .brand-dark .brand-name span { color: var(--primary-600); }
  .content-top .brand { margin-right: auto; }

  .left-mid { margin: auto 0; padding: var(--s-8) 0; }
  .left-h { margin: 0; color: #fff; font-weight: 800; font-size: var(--fs-56); line-height: 1.04; letter-spacing: -.03em; }
  .left-sub { margin: var(--s-5) 0 0; max-width: 30ch; color: rgba(255,255,255,.74); font-size: var(--fs-18); line-height: 1.5; }

  .left-foot { display: flex; flex-direction: column; gap: var(--s-7); }
  .quote { margin: 0; position: relative; padding-left: var(--s-6); border-left: 3px solid rgba(198,242,90,.6); }
  .quote-mark { position: absolute; left: 12px; top: -22px; font-size: 72px; line-height: 1; color: rgba(198,242,90,.32); font-weight: 800; font-family: Georgia, serif; }
  .quote blockquote { margin: 0; font-size: var(--fs-24); line-height: 1.36; font-weight: 700; color: #fff; letter-spacing: -.01em; text-wrap: pretty; }
  .quote figcaption { margin-top: 12px; font-size: var(--fs-13); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }

  .proof { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.14); }
  .avstack { display: flex; }
  .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
    border: 2px solid color-mix(in srgb, var(--primary-700) 70%, #000); margin-left: -10px; overflow: hidden; }
  .av:first-child { margin-left: 0; }
  .av img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
  .proof-tx { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-13); color: rgba(255,255,255,.7); }
  .rstars { display: inline-flex; align-items: center; gap: 2px; }
  .rstar { position: relative; width: 16px; height: 16px; color: rgba(255,255,255,.26); }
  .rstar > svg { position: absolute; inset: 0; width: 16px; height: 16px; }
  .rstar-fill { position: absolute; inset: 0; overflow: hidden; color: var(--accent-500); }
  .rstar-fill > svg { width: 16px; height: 16px; }
  .rstars b { margin-left: 7px; color: #fff; font-size: var(--fs-14); font-weight: 700; }

  /* ===================== CONTENT ===================== */
  .content { position: absolute; top: 0; left: 0; width: 50%; height: 100%; z-index: 1; min-width: 0;
    display: flex; flex-direction: column; background: var(--surface);
    transform: translateX(100%); transition: transform .62s var(--ease-in-out); }
  .auth-root.login .content { transform: translateX(0); }
  .content-top { display: flex; align-items: center; justify-content: center;
    padding: var(--s-7) clamp(28px, 5vw, 64px) var(--s-2); min-height: 56px; }
  .content-foot { padding: var(--s-5) clamp(28px, 5vw, 64px); text-align: center; border-top: 1px solid var(--border); }
  .content-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .scroll { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s-6) clamp(28px, 5vw, 64px); display: flex; flex-direction: column; }
  .scroll.center { justify-content: safe center; }
  .panelbox { width: 100%; max-width: 460px; margin: 0 auto; }
  .center-box { text-align: center; display: flex; flex-direction: column; align-items: center; }

  /* connected stepper */
  .steps { display: flex; align-items: center; width: 100%; max-width: 520px; }
  .snode { flex: none; border-radius: 50%; }
  .snode.done { width: 12px; height: 12px; background: var(--success-500); }
  .snode.now { width: 15px; height: 15px; background: var(--surface); border: 2.5px solid var(--primary-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-500) 14%, transparent); }
  .snode.todo { width: 10px; height: 10px; background: var(--ink-100); }
  .sline { flex: 1; height: 2px; margin: 0 7px; border-radius: 2px; }
  .sline.done { background: var(--success-500); }
  .sline.todo { background: var(--ink-50); }

  /* switch link */
  .switch { margin: 0; font-size: var(--fs-14); color: var(--fg-muted); }
  .switch button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--link); }
  .switch button:hover { text-decoration: underline; }
  .switch a { font-weight: 700; color: var(--link); text-decoration: none; }
  .switch a:hover { text-decoration: underline; }

  /* step head */
  .sh { margin-bottom: var(--s-7); }
  .sh h2 { margin: 0; font-size: var(--fs-32); line-height: 1.12; letter-spacing: -.02em; color: var(--fg-strong); font-weight: 800; }
  .sh p { margin: var(--s-3) 0 0; color: var(--fg-muted); font-size: var(--fs-15); }

  /* ===================== CARDS ===================== */
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .card { position: relative; text-align: left; cursor: pointer; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5);
    display: flex; flex-direction: column; gap: 4px; min-height: 116px;
    transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .card:hover { border-color: var(--border-strong); }
  .card.sel { border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 16%, transparent); }
  .card-ic { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s-3);
    background: color-mix(in srgb, var(--primary-500) 10%, transparent); color: var(--primary-600); }
  .card.sel .card-ic { background: var(--primary-500); color: #fff; }
  .card-t { font-size: var(--fs-18); font-weight: 800; color: var(--ink-800); letter-spacing: -.01em; }
  .card-s { font-size: var(--fs-13); color: var(--fg-muted); line-height: 1.4; }
  .card-tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-500); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.5);
    transition: all var(--dur-fast) var(--ease-out); }
  .card.sel .card-tick { opacity: 1; transform: scale(1); }

  /* ===================== ROW CHOICES ===================== */
  .rows { display: flex; flex-direction: column; gap: var(--s-3); }
  .rowc { display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; transition: all var(--dur-fast) var(--ease-out); }
  .rowc:hover { border-color: var(--border-strong); }
  .rowc.sel { border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 14%, transparent); }
  .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; transition: border-color var(--dur-fast) var(--ease-out); }
  .rowc.sel .radio { border-color: var(--primary-500); }
  .radio-d { width: 11px; height: 11px; border-radius: 50%; background: var(--primary-500); }
  .rowc-t { font-size: var(--fs-16); font-weight: 600; color: var(--ink-800); }

  /* ===================== FORM ===================== */
  .form { display: flex; flex-direction: column; gap: var(--s-5); }
  .fldwrap { display: flex; flex-direction: column; gap: 7px; }
  .lbl { font-size: var(--fs-14); font-weight: 600; color: var(--ink-700); display: flex; align-items: baseline; gap: 8px; }
  .lbl i { font-style: normal; font-weight: 500; font-size: var(--fs-12); color: var(--fg-subtle); }
  .fld { font-family: var(--font-sans); font-size: var(--fs-15); color: var(--ink-800); height: 50px; padding: 0 16px;
    border: 1.5px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); outline: none; width: 100%;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .fld::placeholder { color: var(--fg-subtle); }
  .fld:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 16%, transparent); }
  .pass { position: relative; }
  .pass .fld { padding-right: 66px; }
  .pass-t { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
    font-size: var(--fs-13); font-weight: 600; color: var(--link); padding: 4px 6px; }
  .row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-14); color: var(--fg-muted); cursor: pointer; line-height: 1.4; }
  .check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary-500); flex: none; }
  .check a { font-weight: 600; color: var(--link); }
  .link-sm { font-size: var(--fs-14); font-weight: 600; color: var(--link); }

  /* combobox */
  .combo { position: relative; }
  .combo-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--fg-subtle); pointer-events: none; }
  .combo-inp { padding-left: 44px; }
  .combo-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lifted); max-height: 248px; overflow-y: auto; }
  .combo-it { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: var(--fs-15); color: var(--ink-700); }
  .combo-it svg { color: var(--fg-subtle); flex: none; }
  .combo-it.hi { background: var(--ink-10); color: var(--ink-900); }

  /* net pair */
  .net-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .net-cell { background: var(--ink-10); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; transition: border-color var(--dur-fast) var(--ease-out); }
  .net-cell:focus-within { border-color: var(--primary-500); }
  .net-big { width: 100%; border: 0; background: transparent; outline: none; text-align: center; font-family: var(--font-sans);
    font-size: var(--fs-40); font-weight: 800; letter-spacing: -.02em; color: var(--fg-strong); height: 48px; }
  .net-big::-webkit-outer-spin-button, .net-big::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .net-lab { font-size: var(--fs-14); font-weight: 700; color: var(--ink-700); }
  .net-of { font-size: var(--fs-12); color: var(--fg-subtle); }

  /* ===================== BUTTONS ===================== */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
    border-radius: var(--r-md); font-family: var(--font-sans); font-size: var(--fs-15); font-weight: 700;
    border: 1px solid transparent; cursor: pointer; line-height: 1;
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--primary-500); color: #fff; }
  .btn-primary:hover { background: var(--primary-600); }
  .btn-primary.off { background: var(--ink-100); color: #fff; pointer-events: none; }
  .btn-ghost { background: transparent; color: var(--fg-muted); }
  .btn-ghost:hover { background: var(--ink-10); color: var(--ink-800); }
  .btn-block { width: 100%; }
  .btn-lg { height: 52px; padding: 0 26px; font-size: var(--fs-16); border-radius: var(--r-md); }

  /* nav */
  .nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: var(--s-5) clamp(28px, 5vw, 64px); border-top: 1px solid var(--border); }
  .nav-l, .nav-r { display: flex; align-items: center; gap: var(--s-3); }

  /* fade between steps (transform-only; safe when paused) */
  @media (prefers-reduced-motion: no-preference) {
    .flow-body { animation: fadeUp var(--dur-base) var(--ease-out); }
  }
  @keyframes fadeUp { from { transform: translateY(8px); } to { transform: none; } }

  /* ===================== LOADING ===================== */
  .loader { width: 96px; height: 96px; border-radius: 50%; position: relative; margin-bottom: var(--s-6);
    background: conic-gradient(from 0deg, transparent 0%, color-mix(in srgb, var(--primary-500) 10%, transparent) 35%, var(--primary-500) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    animation: spin 1s linear infinite; }
  .loader-d { position: absolute; top: 3px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px rgba(198,242,90,.2); }
  @keyframes spin { to { transform: rotate(360deg); } }
  .load-pct { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-13); color: var(--primary-600); letter-spacing: .04em; }
  .load-msg { margin: 6px 0 var(--s-6); font-size: var(--fs-20); font-weight: 700; color: var(--fg-strong); min-height: 30px; }
  .load-bar { width: 260px; max-width: 100%; height: 6px; background: var(--ink-25); border-radius: var(--r-full); overflow: hidden; }
  .load-bar > span { display: block; height: 100%; background: var(--primary-500); border-radius: var(--r-full); transition: width var(--dur-slow) var(--ease-out); }

  /* ===================== SUMMARY ===================== */
  .summary { max-width: 560px; }
  .sum-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-full); white-space: nowrap;
    background: color-mix(in srgb, var(--accent-500) 24%, transparent); color: var(--accent-900);
    font-size: var(--fs-12); font-weight: 700; margin-bottom: var(--s-5); }
  .sum-h { margin: 0 0 var(--s-6); font-size: var(--fs-32); line-height: 1.14; letter-spacing: -.02em; color: var(--fg-strong); font-weight: 800; }
  .sum-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-5); }
  .sum-card { background: var(--ink-10); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; }
  .sum-card.accent { background: var(--primary-700); border-color: var(--primary-700); }
  .sum-card.accent .sum-k { color: rgba(255,255,255,.7); }
  .sum-card.accent .sum-v { color: #fff; }
  .sum-card.accent .sum-d { color: rgba(255,255,255,.65); }
  .sum-k { font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-subtle); }
  .sum-v { font-size: var(--fs-18); font-weight: 800; color: var(--fg-strong); letter-spacing: -.01em; }
  .sum-d { font-size: var(--fs-12); color: var(--fg-muted); }
  .sum-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
  .chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-full); font-size: var(--fs-13); color: var(--ink-700); font-weight: 600; }
  .chip b { color: var(--fg-strong); }
  .chip i { font-style: normal; color: var(--fg-subtle); font-weight: 500; }
  .sum-actions { display: flex; align-items: center; gap: var(--s-3); }

  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 900px) {
    .auth-root.boxed { padding: 0; }
    .auth-root.boxed .frame { height: 100vh; border-radius: 0; border: none; }
    .left { display: none; }
    .content { position: static; width: 100%; height: 100%; transform: none !important; }
    .fld,
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea { font-size: var(--fs-16); }
    .net-pair { grid-template-columns: 1fr; }
    .sum-grid { grid-template-columns: 1fr; }
  }

  @supports (height: 100dvh) {
    .auth-root.fullscreen .frame,
    .auth-root.boxed .frame {
      height: 100dvh;
    }
  }

  @media (max-width: 900px) {
    .auth-root.fullscreen .frame,
    .auth-root.boxed .frame {
      min-height: 100svh;
    }

    .content-body {
      position: relative;
      min-height: 0;
    }

    .scroll {
      padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
      justify-content: flex-start;
    }

    .scroll.center {
      justify-content: flex-start;
    }

    .nav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 70;
      min-height: 76px;
      padding: 12px clamp(18px, 5vw, 40px) calc(12px + env(safe-area-inset-bottom, 0px));
      background: color-mix(in srgb, var(--surface) 96%, transparent);
      border-top: 1px solid var(--border);
      box-shadow: 0 -14px 36px -28px rgba(11, 15, 26, .38);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .nav-r {
      margin-left: auto;
    }

    .nav .btn {
      min-height: 46px;
      touch-action: manipulation;
    }

    .nav .btn-lg {
      min-width: min(180px, 48vw);
    }
  }

  @media (max-width: 520px) {
    .content-top {
      padding: 24px 28px 8px;
    }

    .scroll {
      padding: 20px 28px calc(118px + env(safe-area-inset-bottom, 0px));
    }

    .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .card {
      min-height: 166px;
      padding: 18px;
    }

    .card-ic {
      width: 56px;
      height: 56px;
    }
  }

/* WordPress shell isolation for auth pages */
html:has(#ok-auth-app),
body:has(#ok-auth-app) {
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
}

body:has(#ok-auth-app) #wpadminbar,
body:has(#ok-auth-app) .wp-site-blocks > header,
body:has(#ok-auth-app) .wp-site-blocks > footer,
body:has(#ok-auth-app) .skip-link,
body:has(#ok-auth-app) #wp-skip-link {
  display: none !important;
}

body:has(#ok-auth-app).admin-bar {
  margin-top: 0 !important;
}

body:has(#ok-auth-app) .wp-site-blocks,
body:has(#ok-auth-app) main,
body:has(#ok-auth-app) .entry-content {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}

.auth-msg {
  border: 1px solid color-mix(in srgb, var(--danger-500) 28%, transparent);
  background: var(--danger-50);
  color: var(--danger-700);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: var(--fs-13);
  font-weight: 600;
}

.otp-panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.otp-panel .sh {
  margin-bottom: 0;
}

.otp-panel .sh strong {
  color: var(--ink-800);
}

.otp-input {
  height: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .36em;
  padding-left: calc(16px + .36em);
  font-variant-numeric: tabular-nums;
}

.otp-error {
  margin-top: -4px;
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.otp-actions .btn {
  padding-inline: 10px;
  font-size: var(--fs-13);
}

.otp-actions .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
