/* VGNW Auth — STANDALONE stylesheet (tokens + primitives + auth/account).
   Self-contained: needs only ./fonts and ./assets. Icons via Remix CDN. */
/* ============================================================================
   VGNW — Colors & Typography
   Monochromatic, editorial, product-grade. Closer to Linear / Vercel / Apple
   than to "gaming." Accents reserved for functional UI states.
   ============================================================================ */

/* -- Forma DJR family ------------------------------------------------------ */
/* Optical sizes (smallest → largest):
   Micro    → captions, table cells, ≤ 11 px
   Text     → body copy, paragraphs, 12–18 px
   Deck     → subheads, decks, cards, 18–32 px
   Display  → page headlines, big numerals, 32–80 px
   Banner   → hero / editorial covers, 80 px+               */

@font-face { font-family: "Forma DJR Micro";   src: url("fonts/FormaDJRMicro-Regular.otf")   format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Micro";   src: url("fonts/FormaDJRMicro-Medium.otf")    format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Micro";   src: url("fonts/FormaDJRMicro-Bold.otf")      format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Forma DJR Text";    src: url("fonts/FormaDJRText-Regular.otf")    format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Text";    src: url("fonts/FormaDJRText-Italic.otf")     format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Forma DJR Text";    src: url("fonts/FormaDJRText-Medium.otf")     format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Text";    src: url("fonts/FormaDJRText-Bold.otf")       format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Forma DJR Deck";    src: url("fonts/FormaDJRDeck-Regular.otf")    format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Deck";    src: url("fonts/FormaDJRDeck-Medium.otf")     format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Deck";    src: url("fonts/FormaDJRDeck-Bold.otf")       format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Forma DJR Display"; src: url("fonts/FormaDJRDisplay-Light.otf")   format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Display"; src: url("fonts/FormaDJRDisplay-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Display"; src: url("fonts/FormaDJRDisplay-Medium.otf")  format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Display"; src: url("fonts/FormaDJRDisplay-Bold.otf")    format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Display"; src: url("fonts/FormaDJRDisplay-Black.otf")   format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: "Forma DJR Banner";  src: url("fonts/FormaDJRBanner-Bold.otf")     format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Banner";  src: url("fonts/FormaDJRBanner-ExtraBold.otf") format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Forma DJR Banner";  src: url("fonts/FormaDJRBanner-Black.otf")    format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }


/* ============================================================================
   TOKENS
   ============================================================================ */

:root {
  /* ----- Type families (semantic) ------------------------------------------ */
  --font-banner:  "Forma DJR Banner",  "Forma DJR Display", system-ui, sans-serif;
  --font-display: "Forma DJR Display", "Forma DJR Deck",    system-ui, sans-serif;
  --font-deck:    "Forma DJR Deck",    "Forma DJR Text",    system-ui, sans-serif;
  --font-text:    "Forma DJR Text",    system-ui, sans-serif;
  --font-micro:   "Forma DJR Micro",   "Forma DJR Text",    system-ui, sans-serif;
  --font-mono:    ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* ----- Neutral scale (the whole system lives here) ---------------------- */
  /* Warm-neutral, slightly desaturated — feels editorial, not "tech cold". */
  --n-0:    #ffffff;
  --n-25:   #fbfbfa;   /* page bg, light */
  --n-50:   #f6f6f4;   /* surface raised */
  --n-100:  #ececea;   /* hairline / divider, hover bg */
  --n-200:  #d9d9d6;   /* border default */
  --n-300:  #bdbdba;   /* border strong / mute icon */
  --n-400:  #8d8d8a;   /* placeholder text */
  --n-500:  #6b6b68;   /* secondary text */
  --n-600:  #4a4a48;   /* body on white (alt) */
  --n-700:  #2f2f2d;   /* heading on white (alt) */
  --n-800:  #1b1b1a;   /* surface dark */
  --n-900:  #111110;   /* canvas dark */
  --n-950:  #0a0a09;   /* footer / true blacks */

  /* ----- Foreground / Background semantic (light, default) ---------------- */
  --bg-page:        var(--n-25);
  --bg-surface:     var(--n-0);
  --bg-raised:      var(--n-50);
  --bg-inset:       var(--n-100);
  --bg-inverse:     var(--n-950);

  --fg-default:     var(--n-950);     /* high-contrast body & headings */
  --fg-muted:       var(--n-500);     /* secondary, meta */
  --fg-subtle:      var(--n-400);     /* tertiary, timestamps */
  --fg-disabled:    var(--n-300);
  --fg-inverse:     var(--n-0);
  --fg-link:        var(--n-950);     /* links read as bold body, not blue */

  --border-subtle:  var(--n-100);
  --border-default: var(--n-200);
  --border-strong:  var(--n-300);
  --border-inverse: rgba(255,255,255,.12);

  /* ----- Accents — used ONLY for functional state. Never as brand. -------- */
  --accent-success: #1f8a4c;   /* deals / live / completed */
  --accent-success-bg: #e7f3ec;
  --accent-warning: #b56a00;   /* warnings, expiring deals */
  --accent-warning-bg: #fbf1de;
  --accent-danger:  #b42318;   /* errors, removed, banned */
  --accent-danger-bg: #fbeae8;
  --accent-info:    #0b66d6;   /* informational, sparingly */
  --accent-info-bg: #e6effc;

  /* ----- Editorial signal (use SPARINGLY) --------------------------------- */
  --signal-hot:     #d4341a;   /* "breaking", "hot deal" pip — single dots only */
  --signal-live:    #d4341a;   /* live-stream dot */
  --signal-new:     var(--n-950);

  /* ----- Score tones (reviews 0–10) --------------------------------------- */
  --score-excellent: #1f8a4c;
  --score-good:      var(--n-700);
  --score-mixed:     #b56a00;
  --score-bad:       #b42318;

  /* ----- Radii (small, sharp, product-grade) ------------------------------ */
  --r-none:  0;
  --r-xs:    2px;
  --r-sm:    4px;
  --r-md:    6px;     /* default for buttons, inputs, chips */
  --r-lg:    10px;    /* cards */
  --r-xl:    14px;    /* large cards, modals */
  --r-2xl:   20px;
  --r-pill:  999px;

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

  /* ----- Elevation — controlled, low, never glow ------------------------- */
  --shadow-xs: 0 1px 0 rgba(17,17,16,.04);
  --shadow-sm: 0 1px 2px rgba(17,17,16,.06), 0 1px 0 rgba(17,17,16,.03);
  --shadow-md: 0 4px 12px rgba(17,17,16,.06), 0 2px 4px rgba(17,17,16,.04);
  --shadow-lg: 0 12px 32px rgba(17,17,16,.08), 0 4px 8px rgba(17,17,16,.04);
  --shadow-xl: 0 24px 64px rgba(17,17,16,.10), 0 8px 16px rgba(17,17,16,.06);
  --shadow-focus: 0 0 0 3px rgba(17,17,16,.16);
  --shadow-focus-inverse: 0 0 0 3px rgba(255,255,255,.32);

  /* ----- Motion ----------------------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast:    120ms;
  --dur-base:    180ms;
  --dur-slow:    320ms;

  /* ----- Layout ----------------------------------------------------------- */
  --container-narrow: 720px;     /* article body */
  --container-base:   1080px;    /* product feed */
  --container-wide:   1280px;    /* full site shell */
  --container-max:    1440px;
  --gutter:           24px;
  --grid-gap:         16px;

  /* ----- Type scale — fluid, but anchored ---------------------------------
     Each step caps the upper-end via clamp() so headlines stay editorial,
     not billboard-huge, even on 4K displays. */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: clamp(40px, 4vw + 16px, 56px);
  --fs-64: clamp(48px, 5.5vw + 16px, 72px);
  --fs-80: clamp(56px, 7vw + 16px, 96px);

  /* tracking — Forma DJR runs slightly open at display sizes; tightened in body */
  --track-tight:   -0.02em;
  --track-snug:    -0.01em;
  --track-normal:  0;
  --track-wide:    0.02em;
  --track-eyebrow: 0.08em;     /* uppercase labels */
}

/* ---- Dark surface tokens — applied via [data-theme="dark"] or .vgnw-dark - */
[data-theme="dark"], .vgnw-dark {
  --bg-page:        var(--n-950);
  --bg-surface:     var(--n-900);
  --bg-raised:      var(--n-800);
  --bg-inset:       #15151400;
  --bg-inverse:     var(--n-25);

  --fg-default:     #f5f5f3;
  --fg-muted:       #a8a8a3;
  --fg-subtle:      #7a7a76;
  --fg-disabled:    #4a4a47;
  --fg-inverse:     var(--n-950);
  --fg-link:        #f5f5f3;

  --border-subtle:  rgba(255,255,255,.06);
  --border-default: rgba(255,255,255,.10);
  --border-strong:  rgba(255,255,255,.18);

  --accent-success-bg: rgba(31,138,76,.16);
  --accent-warning-bg: rgba(181,106,0,.18);
  --accent-danger-bg:  rgba(180,35,24,.18);
  --accent-info-bg:    rgba(11,102,214,.18);

  --shadow-xs: 0 1px 0 rgba(0,0,0,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.6);
}


/* ============================================================================
   SEMANTIC TYPE STYLES
   Use these classes (or copy their values) when composing UI.
   ============================================================================ */

.vgnw-base {
  font-family: var(--font-text);
  color: var(--fg-default);
  background: var(--bg-page);
  font-size: var(--fs-16);
  line-height: 1.5;
  letter-spacing: var(--track-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hero / editorial cover — Banner optical size, very tight */
.t-hero {
  font-family: var(--font-banner);
  font-weight: 800;
  font-size: var(--fs-80);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* H1 — page headline */
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-64);
  line-height: 1.02;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

/* H2 — major section */
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-48);
  line-height: 1.06;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

/* H3 — sub-section, large card title */
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-32);
  line-height: 1.12;
  letter-spacing: var(--track-snug);
  text-wrap: balance;
}

/* H4 — card title, list-item headline */
.t-h4 {
  font-family: var(--font-deck);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.2;
  letter-spacing: var(--track-snug);
  text-wrap: balance;
}

/* H5 — small card / inline title */
.t-h5 {
  font-family: var(--font-deck);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.25;
  letter-spacing: var(--track-snug);
}

/* H6 — eyebrow over title */
.t-h6 {
  font-family: var(--font-deck);
  font-weight: 600;
  font-size: var(--fs-18);
  line-height: 1.3;
  letter-spacing: 0;
}

/* Lede — large intro paragraph under H1 */
.t-lede {
  font-family: var(--font-deck);
  font-weight: 400;
  font-size: var(--fs-20);
  line-height: 1.45;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* Body — default paragraph */
.t-body, p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* Body small — list rows, secondary copy */
.t-body-sm {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-14);
  line-height: 1.55;
}

/* Caption — meta, timestamps, bylines */
.t-caption {
  font-family: var(--font-micro);
  font-weight: 400;
  font-size: var(--fs-13);
  line-height: 1.4;
  color: var(--fg-muted);
}

/* Micro — table cells, badges, taglines */
.t-micro {
  font-family: var(--font-micro);
  font-weight: 500;
  font-size: var(--fs-12);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Eyebrow — section labels (UPPERCASE) */
.t-eyebrow {
  font-family: var(--font-micro);
  font-weight: 700;
  font-size: var(--fs-12);
  line-height: 1.2;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--fg-default);
}

/* Eyebrow muted */
.t-eyebrow--muted { color: var(--fg-muted); }

/* Numerals / scores / counters — Display, tabular */
.t-numeral {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

/* Mono — code, IDs, hashes, build numbers */
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-feature-settings: "ss01", "zero";
}

/* Link inside body */
.t-link {
  color: var(--fg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.t-link:hover { opacity: 0.65; }

/* ----- HTML element defaults (opt-in via .vgnw-prose) -------------------- */
.vgnw-prose h1 { all: unset; }   /* reset, then apply */
.vgnw-prose h1 { display: block; font: inherit; }

.vgnw-prose h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-48); line-height: 1.04; letter-spacing: var(--track-tight); margin: 0 0 var(--space-5); }
.vgnw-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-32); line-height: 1.12; letter-spacing: var(--track-snug); margin: var(--space-9) 0 var(--space-4); }
.vgnw-prose h3 { font-family: var(--font-deck);    font-weight: 600; font-size: var(--fs-24); line-height: 1.2;  letter-spacing: var(--track-snug); margin: var(--space-7) 0 var(--space-3); }
.vgnw-prose p  { font-family: var(--font-text);    font-weight: 400; font-size: var(--fs-18); line-height: 1.65; margin: 0 0 var(--space-5); color: var(--fg-default); }
.vgnw-prose a  { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vgnw-prose a:hover { opacity: .65; }
.vgnw-prose blockquote {
  font-family: var(--font-deck); font-weight: 500; font-size: var(--fs-24);
  line-height: 1.35; letter-spacing: var(--track-snug);
  border-left: 2px solid var(--n-950); padding-left: var(--space-5);
  margin: var(--space-7) 0;
}
.vgnw-prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-inset); padding: 2px 6px; border-radius: var(--r-sm); }
.vgnw-prose ul, .vgnw-prose ol { padding-left: 1.25em; margin: 0 0 var(--space-5); }
.vgnw-prose li { margin: var(--space-2) 0; }
.vgnw-prose hr { border: 0; border-top: 1px solid var(--border-default); margin: var(--space-9) 0; }



/* ============================================================================
   STANDALONE BASE + PRIMITIVES (vanilla — no React)
   ============================================================================ */
/* icons are injected as inline SVG by icons.js (no font, no CDN) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-text); color: var(--fg-default); background: var(--bg-page); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
i[class^="ri-"], i[class*=" ri-"] { font-style: normal; line-height: 1; }
.vgi { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.vgi svg { display: block; }
[hidden] { display: none !important; }

/* avatar */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--n-900); color: #fff; font-family: var(--font-micro); font-weight: 700; flex-shrink: 0; overflow: hidden; }
[data-theme="dark"] .avatar { background: var(--n-700); }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--md { width: 40px; height: 40px; font-size: 14px; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }

/* modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 200; }
.modal { width: 100%; max-width: 440px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.modal-head h3 { font-family: var(--font-deck); font-weight: 600; font-size: 17px; margin: 0; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--fg-muted); display: inline-flex; padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--bg-raised); color: var(--fg-default); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-raised); }


/* ============================================================================
   AUTH / ACCOUNT (ported verbatim from the kit)
   ============================================================================ */
/* ============================================================================
   VGNW — Account & Auth surfaces
   Login / Register / Two-factor + the Account management panel.
   Built on the same tokens as styles.css; no new colours invented.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   PROVIDER MARK — small brand-recognition chip (social / game / network)
   Brand colour drives a faint tint + the glyph; everything else stays mono.
---------------------------------------------------------------------------- */
.prov-mark {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-family: var(--font-deck); font-weight: 700; letter-spacing: -0.02em;
  font-size: 14px; line-height: 1; border: 1px solid var(--border-subtle);
}
.prov-mark--sm { width: 32px; height: 32px; border-radius: 8px; }
.prov-mark--lg { width: 44px; height: 44px; border-radius: 10px; }

/* ============================================================================
   AUTH SCREENS (login / register / 2FA)
   ============================================================================ */
.auth {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-page); color: var(--fg-default);
}

/* floating controls (top-left back, top-right theme) */
.auth-controls {
  position: fixed; top: 18px; left: 20px; right: 20px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.auth-controls > * { pointer-events: auto; }
.auth-ctl {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-text); font-size: 13.5px; color: var(--fg-muted);
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.auth-ctl:hover { color: var(--fg-default); background: var(--bg-surface); border-color: var(--border-default); }
.auth-ctl--icon { padding: 8px; }

/* centered column: logo above the card */
.auth-stack { display: flex; flex-direction: column; align-items: center; width: 100%; }
.auth-logo { display: inline-flex; margin-bottom: 26px; }
.auth-logo img { height: 26px; width: auto; display: block; }
[data-theme="dark"] .auth-logo img,
[data-theme="dark"] .auth-foot-logo img { filter: invert(1) brightness(1.6); }

.auth-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 44px 24px 56px;
}
.auth-card {
  width: 100%; max-width: var(--auth-w, 430px);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: 36px;
}
.auth-card--wide { max-width: 480px; }

.auth-head { margin-bottom: 24px; }
.auth-eyebrow {
  font-family: var(--font-micro); font-weight: 700; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--font-display); font-weight: 700; font-size: 27px;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 7px;
}
.auth-sub {
  font-family: var(--font-text); font-size: 14.5px; color: var(--fg-muted);
  line-height: 1.5; margin: 0;
}
.auth-sub a { color: var(--fg-default); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border-strong); }
.auth-sub a:hover { opacity: 0.7; }

/* social block */
.auth-social { display: flex; flex-direction: column; gap: 9px; }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border-default); background: var(--bg-surface);
  font-family: var(--font-deck); font-weight: 500; font-size: 14px;
  color: var(--fg-default); cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.sso-btn:hover { background: var(--bg-raised); border-color: var(--border-strong); }
.sso-btn i { font-size: 19px; }
.sso-row { display: flex; gap: 9px; }
.sso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sso-grid .sso-btn { padding: 10px 10px; }
.sso-icon {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 8px; border: 1px solid var(--border-default);
  background: var(--bg-surface); cursor: pointer; color: var(--fg-default);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.sso-icon:hover { background: var(--bg-raised); border-color: var(--border-strong); }
.sso-icon:active { transform: translateY(1px); }
.sso-icon i { font-size: 19px; }
.sso-more {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 8px; border: 1px dashed var(--border-strong);
  background: transparent; cursor: pointer; color: var(--fg-muted);
  font-family: var(--font-micro); font-size: 12px; font-weight: 600;
}
.sso-more:hover { color: var(--fg-default); background: var(--bg-raised); }

/* divider */
.auth-div {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--fg-subtle);
  font-family: var(--font-micro); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-div::before, .auth-div::after {
  content: ""; flex: 1; height: 1px; background: var(--border-default);
}

/* form */
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-micro); font-weight: 700; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-default);
}
.auth-label a, .auth-label button {
  font-family: var(--font-text); font-weight: 500; font-size: 12px;
  letter-spacing: 0; text-transform: none; color: var(--fg-muted);
  text-decoration: none; background: none; border: none; cursor: pointer; padding: 0;
}
.auth-label a:hover, .auth-label button:hover { color: var(--fg-default); }

.auth-inp-wrap { position: relative; display: flex; align-items: center; }
.auth-inp {
  width: 100%; font-family: var(--font-text); font-size: 15px; color: var(--fg-default);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 8px; padding: 11px 13px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.auth-inp::placeholder { color: var(--fg-subtle); }
.auth-inp:focus { outline: none; border-color: var(--fg-default); box-shadow: var(--shadow-focus); }
[data-theme="dark"] .auth-inp:focus { box-shadow: var(--shadow-focus-inverse); }
.auth-inp-wrap--icon .auth-inp { padding-right: 42px; }
.auth-inp-stat {
  position: absolute; right: 12px; display: inline-flex; align-items: center;
  color: var(--fg-subtle);
}
.auth-inp-stat button { background: none; border: none; cursor: pointer; color: inherit; padding: 0; display: inline-flex; }
.auth-inp.is-valid { border-color: var(--accent-success); }
.auth-inp.is-invalid { border-color: var(--accent-danger); }
.stat-ok { color: var(--accent-success); }
.stat-err { color: var(--accent-danger); }

/* validation message line */
.auth-msg { font-family: var(--font-micro); font-size: 12px; line-height: 1.4; min-height: 0; display: flex; align-items: center; gap: 5px; }
.auth-msg--ok { color: var(--accent-success); }
.auth-msg--err { color: var(--accent-danger); }
.auth-msg--mute { color: var(--fg-muted); }
.spin { animation: auth-spin 0.7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* password strength */
.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-seg { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-inset); transition: background var(--dur-base); }
.pw-seg.on-weak { background: var(--accent-danger); }
.pw-seg.on-fair { background: var(--accent-warning); }
.pw-seg.on-strong { background: var(--accent-success); }
.pw-hint { font-family: var(--font-micro); font-size: 11.5px; color: var(--fg-muted); margin-top: 4px; }

/* remember + submit */
.auth-rowbetween { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.auth-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-check-box {
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-strong);
  background: var(--bg-surface); display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-inverse); flex-shrink: 0; transition: background var(--dur-fast), border-color var(--dur-fast);
}
.auth-check input:checked + .auth-check-box { background: var(--n-950); border-color: var(--n-950); }
[data-theme="dark"] .auth-check input:checked + .auth-check-box { background: var(--n-25); border-color: var(--n-25); }
.auth-check input:checked + .auth-check-box i { opacity: 1; }
.auth-check-box i { opacity: 0; font-size: 12px; }
.auth-check-l { font-family: var(--font-text); font-size: 13.5px; color: var(--fg-default); }
.auth-check input:focus-visible + .auth-check-box { box-shadow: var(--shadow-focus); }

.auth-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 8px; border: 1px solid var(--n-950);
  background: var(--n-950); color: var(--fg-inverse);
  font-family: var(--font-deck); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background var(--dur-fast), opacity var(--dur-fast);
}
.auth-submit:hover { background: var(--n-800); }
[data-theme="dark"] .auth-submit { background: var(--n-25); color: var(--n-950); border-color: var(--n-25); }
[data-theme="dark"] .auth-submit:hover { background: var(--n-100); }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.auth-submit:active { transform: translateY(1px); }

.auth-terms { font-family: var(--font-micro); font-size: 11.5px; color: var(--fg-muted); line-height: 1.5; text-align: center; }
.auth-terms a { color: var(--fg-default); text-decoration: none; border-bottom: 1px solid var(--border-strong); }

.auth-foot {
  text-align: center; padding: 0 24px 28px;
}
.auth-foot-logo { opacity: 0.5; margin-bottom: 12px; }
.auth-foot-logo img { height: 16px; }
.auth-foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.auth-foot-links a { font-family: var(--font-micro); font-size: 11.5px; color: var(--fg-subtle); text-decoration: none; }
.auth-foot-links a:hover { color: var(--fg-muted); }

/* 2FA — OTP boxes */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 4px 0 2px; }
.otp-box {
  width: 52px; height: 60px; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  font-variant-numeric: tabular-nums; color: var(--fg-default);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 10px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.otp-box:focus { outline: none; border-color: var(--fg-default); box-shadow: var(--shadow-focus); }
[data-theme="dark"] .otp-box:focus { box-shadow: var(--shadow-focus-inverse); }
.otp-box.is-filled { border-color: var(--border-strong); }
.otp-box.is-error { border-color: var(--accent-danger); }
.otp-sep { align-self: center; color: var(--border-strong); font-size: 20px; }
@keyframes otp-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
.otp-row.shake { animation: otp-shake 0.4s; }
.otp-demo {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted);
  background: var(--bg-inset); padding: 4px 9px; border-radius: 999px;
}
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.auth-alt button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: var(--font-text); font-size: 13.5px; color: var(--fg-muted); border-radius: 0;
  transition: color var(--dur-fast);
}
.auth-alt button:hover { color: var(--fg-default); text-decoration: underline; text-underline-offset: 3px; }
.auth-back-tr {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px 9px; border-radius: 999px;
  font-family: var(--font-text); font-size: 12.5px; color: var(--fg-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.auth-back-tr:hover { color: var(--fg-default); background: var(--bg-raised); }

/* success splash (after register / verify) */
.auth-done { text-align: center; padding: 8px 0; }
.auth-done-ring {
  width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-success-bg); color: var(--accent-success);
}
.auth-done-ring i { font-size: 30px; }

/* ============================================================================
   ACCOUNT PANEL
   ============================================================================ */
.acc-shell { padding: 32px 0 72px; }
.acc-layout {
  display: grid; grid-template-columns: 252px 1fr; gap: 36px;
  align-items: start;
}

/* breadcrumb / page title above grid */
.acc-pagehead { margin-bottom: 22px; }
.acc-crumb { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.acc-crumb i { font-size: 13px; }
.acc-h1 { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; margin: 0; }

/* sidebar */
.acc-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.acc-usercard {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface);
}
.acc-usercard .acc-u-meta { min-width: 0; }
.acc-u-name { font-family: var(--font-deck); font-weight: 600; font-size: 15px; line-height: 1.2; }
.acc-u-handle { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--font-deck); font-weight: 500; font-size: 14.5px;
  color: var(--fg-muted); border: 1px solid transparent; background: none; text-align: left; width: 100%;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.acc-nav-item i { font-size: 18px; flex-shrink: 0; }
.acc-nav-item:hover { background: var(--bg-raised); color: var(--fg-default); }
.acc-nav-item.is-active { background: var(--bg-inset); color: var(--fg-default); font-weight: 600; }
.acc-nav-item .acc-nav-arr { margin-left: auto; font-size: 15px; opacity: 0; }
.acc-nav-item.is-active .acc-nav-arr { opacity: 0.5; }
.acc-nav-sep { height: 1px; background: var(--border-subtle); margin: 8px 4px; }
.acc-nav-item--danger { color: var(--accent-danger); }
.acc-nav-item--danger:hover { background: var(--accent-danger-bg); color: var(--accent-danger); }

/* content column */
.acc-content { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.acc-sec-head { margin-bottom: 2px; }
.acc-sec-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
.acc-sec-desc { font-family: var(--font-text); font-size: 14px; color: var(--fg-muted); margin: 0; }

/* card */
.acc-card {
  border: 1px solid var(--border-default); border-radius: var(--r-lg);
  background: var(--bg-surface); overflow: hidden;
}
.acc-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border-subtle);
}
.acc-card-head h3 { font-family: var(--font-deck); font-weight: 600; font-size: 16px; margin: 0; display: flex; align-items: center; gap: 9px; }
.acc-card-head h3 i { font-size: 18px; color: var(--fg-muted); }
.acc-card-head .acc-card-sub { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.acc-card-body { padding: 6px 18px; }
.acc-card-body--flush { padding: 0; }
.acc-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-top: 1px solid var(--border-subtle); background: var(--bg-raised);
  font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted);
}

/* info rows (label / value / action) */
.acc-row {
  display: grid; grid-template-columns: 184px 1fr auto; gap: 16px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--border-subtle);
}
.acc-row:last-child { border-bottom: none; }
.acc-row-label { font-family: var(--font-micro); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.acc-row-label .lock { font-size: 12px; }
.acc-row-value { font-family: var(--font-text); font-size: 14.5px; color: var(--fg-default); display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-row-value .muted { color: var(--fg-muted); }
.acc-row-value .mask { font-family: var(--font-mono); letter-spacing: 0.04em; }
.acc-reveal { background: none; border: none; cursor: pointer; color: var(--fg-subtle); padding: 2px; display: inline-flex; }
.acc-reveal:hover { color: var(--fg-default); }
.acc-row-edit {
  font-family: var(--font-deck); font-weight: 600; font-size: 13px; color: var(--fg-default);
  background: none; border: 1px solid var(--border-default); border-radius: 6px; padding: 6px 12px; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.acc-row-edit:hover { background: var(--bg-raised); border-color: var(--border-strong); }
.acc-row-edit:disabled { opacity: 0.4; cursor: not-allowed; }
.acc-row.is-editing { align-items: start; }
.acc-edit-field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.acc-edit-actions { display: flex; gap: 8px; align-self: start; }

/* verified / status pill */
.acc-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-micro); font-weight: 600; font-size: 11px; letter-spacing: 0.02em;
}
.acc-pill i { font-size: 12px; }
.acc-pill--ok { background: var(--accent-success-bg); color: var(--accent-success); }
.acc-pill--warn { background: var(--accent-warning-bg); color: var(--accent-warning); }
.acc-pill--info { background: var(--accent-info-bg); color: var(--accent-info); }
.acc-pill--mute { background: var(--bg-inset); color: var(--fg-muted); }

/* small input used inside the panel */
.acc-inp {
  width: 100%; font-family: var(--font-text); font-size: 14px; color: var(--fg-default);
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 7px; padding: 9px 11px;
}
.acc-inp:focus { outline: none; border-color: var(--fg-default); box-shadow: var(--shadow-focus); }
[data-theme="dark"] .acc-inp:focus { box-shadow: var(--shadow-focus-inverse); }
.acc-inp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.acc-btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  font-family: var(--font-deck); font-weight: 600; font-size: 13.5px; cursor: pointer;
  padding: 8px 14px; border-radius: 7px; border: 1px solid var(--border-default);
  background: var(--bg-surface); color: var(--fg-default);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.acc-btn:hover { background: var(--bg-raised); border-color: var(--border-strong); }
.acc-btn i { font-size: 15px; }
.acc-btn--primary { background: var(--n-950); color: var(--fg-inverse); border-color: var(--n-950); }
.acc-btn--primary:hover { background: var(--n-800); }
[data-theme="dark"] .acc-btn--primary { background: var(--n-25); color: var(--n-950); border-color: var(--n-25); }
[data-theme="dark"] .acc-btn--primary:hover { background: var(--n-100); }
.acc-btn--danger { color: var(--accent-danger); }
.acc-btn--danger:hover { background: var(--accent-danger-bg); border-color: var(--accent-danger); }
.acc-btn--ghost { border-color: transparent; background: transparent; }
.acc-btn--ghost:hover { background: var(--bg-raised); }
.acc-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- Account Center overview ---- */
.acc-hero {
  display: flex; align-items: center; gap: 18px; padding: 22px;
  border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface);
}
.acc-hero-meta { min-width: 0; flex: 1; }
.acc-hero-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.acc-hero-handle { font-family: var(--font-text); font-size: 14px; color: var(--fg-muted); margin-top: 3px; }
.acc-hero-stats { display: flex; gap: 26px; }
.acc-hero-stat { text-align: right; }
.acc-hero-stat-v { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.acc-hero-stat-l { font-family: var(--font-micro); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }

.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.acc-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; text-align: left;
  border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface);
  cursor: pointer; text-decoration: none; color: inherit; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.acc-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.acc-tile-top { display: flex; align-items: center; justify-content: space-between; }
.acc-tile-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-inset); display: flex; align-items: center; justify-content: center; color: var(--fg-default); }
.acc-tile-ico i { font-size: 19px; }
.acc-tile-t { font-family: var(--font-deck); font-weight: 600; font-size: 15px; }
.acc-tile-d { font-family: var(--font-text); font-size: 13px; color: var(--fg-muted); line-height: 1.45; }
.acc-tile-arr { color: var(--fg-subtle); font-size: 17px; }

/* ---- Connected accounts rows ---- */
.acc-prov-group + .acc-prov-group { margin-top: 8px; }
.acc-prov-grouphead { padding: 16px 18px 4px; }
.acc-prov-grouphead h4 { font-family: var(--font-deck); font-weight: 600; font-size: 15px; margin: 0; }
.acc-prov-grouphead p { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); margin: 3px 0 0; }
.acc-prov {
  display: flex; align-items: center; gap: 13px; padding: 13px 18px;
  border-top: 1px solid var(--border-subtle);
}
.acc-prov-meta { min-width: 0; flex: 1; }
.acc-prov-name { font-family: var(--font-deck); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.acc-prov-sub { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-prov-sub .dot { margin: 0 6px; opacity: 0.5; }
.acc-tag-sync { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-micro); font-weight: 600; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-info); background: var(--accent-info-bg); padding: 2px 7px; border-radius: 999px; }

/* oauth app row */
.acc-app { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-top: 1px solid var(--border-subtle); }
.acc-app-meta { flex: 1; min-width: 0; }
.acc-app-name { font-family: var(--font-deck); font-weight: 600; font-size: 14.5px; }
.acc-app-scopes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.acc-scope { font-family: var(--font-micro); font-size: 11px; color: var(--fg-muted); background: var(--bg-inset); padding: 2px 8px; border-radius: 5px; }
.acc-app-when { font-family: var(--font-micro); font-size: 11.5px; color: var(--fg-subtle); margin-top: 6px; }

/* ---- Sessions ---- */
.acc-sess { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--border-subtle); }
.acc-sess:first-child { border-top: none; }
.acc-sess-ico { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-inset); display: flex; align-items: center; justify-content: center; color: var(--fg-default); flex-shrink: 0; }
.acc-sess-ico i { font-size: 20px; }
.acc-sess-meta { flex: 1; min-width: 0; }
.acc-sess-top { display: flex; align-items: center; gap: 9px; font-family: var(--font-deck); font-weight: 600; font-size: 14.5px; }
.acc-sess-info { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); }
.acc-sess-info span { display: inline-flex; align-items: center; gap: 5px; }
.acc-sess-info i { font-size: 13px; }

/* recovery codes */
.acc-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 4px 0 6px; }
.acc-code { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; color: var(--fg-default); padding: 8px 12px; background: var(--bg-inset); border-radius: 6px; text-align: center; }

/* toast */
.acc-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 9px; z-index: 200;
  background: var(--n-950); color: var(--n-0); padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-family: var(--font-deck); font-weight: 500; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base);
}
[data-theme="dark"] .acc-toast { background: var(--n-25); color: var(--n-950); }
.acc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.acc-toast i { font-size: 17px; color: var(--accent-success); }
[data-theme="dark"] .acc-toast i { color: var(--accent-success); }

/* save bar */
.acc-savebar {
  position: sticky; bottom: 16px; z-index: 20; margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: var(--bg-surface); box-shadow: var(--shadow-lg);
  font-family: var(--font-text); font-size: 13.5px; color: var(--fg-muted);
}
.acc-savebar-actions { display: flex; gap: 9px; }

/* tweak: compact density */
body.acc-compact .acc-row { padding: 10px 0; }
body.acc-compact .acc-prov,
body.acc-compact .acc-app { padding: 10px 18px; }
body.acc-compact .acc-sess { padding: 11px 18px; }
body.acc-compact .acc-card-body { padding: 4px 18px; }
body.acc-compact .acc-hero { padding: 16px; }
body.acc-compact .acc-tile { padding: 14px; }

/* tweak: brand colours off → monochrome marks */
body.acc-mono .prov-mark {
  background: var(--bg-inset) !important;
  color: var(--fg-default) !important;
  border-color: var(--border-subtle) !important;
}

/* responsive */
@media (max-width: 880px) {
  .acc-layout { grid-template-columns: 1fr; gap: 22px; }
  .acc-side { position: static; flex-direction: column; }
  .acc-nav { flex-direction: row; flex-wrap: wrap; }
  .acc-nav-item { width: auto; }
  .acc-nav-item .acc-nav-arr { display: none; }
  .acc-nav-sep { display: none; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-row { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .acc-row-edit { justify-self: start; }
  .acc-hero { flex-wrap: wrap; }
  .acc-hero-stats { width: 100%; justify-content: space-between; }
  .acc-hero-stat { text-align: left; }
}
@media (max-width: 520px) {
  .auth-card { padding: 26px 20px; }
  .otp-box { width: 44px; height: 54px; font-size: 22px; }
  .acc-inp-grid { grid-template-columns: 1fr; }
  .acc-codes { grid-template-columns: 1fr; }
}

/* ============================================================================
   VGNW AUTH PLATFORM — account page chrome + single-scroll layout
   ============================================================================ */
.aacc { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-page); }

.aacc-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-surface) 86%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border-default);
}
.aacc-header-in {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.aacc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.aacc-brand img { height: 20px; width: auto; display: block; }
[data-theme="dark"] .aacc-brand img,
[data-theme="dark"] .aacc-foot-logo { filter: invert(1) brightness(1.6); }
.aacc-brand-tag {
  position: relative; padding-left: 13px;
  font-family: var(--font-micro); font-weight: 700; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-muted);
}
.aacc-brand-tag::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: var(--border-strong);
}

.aacc-tools { display: flex; align-items: center; gap: 8px; }
.aacc-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--fg-muted); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.aacc-iconbtn:hover { color: var(--fg-default); background: var(--bg-raised); }

.aacc-user-wrap { position: relative; }
.aacc-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px 5px 5px;
  border-radius: 999px; border: 1px solid var(--border-default); background: var(--bg-surface);
  cursor: pointer; color: var(--fg-default);
  font-family: var(--font-deck); font-weight: 600; font-size: 13.5px;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.aacc-user:hover, .aacc-user.is-open { background: var(--bg-raised); border-color: var(--border-strong); }
.aacc-user .chev, .aacc-user i { color: var(--fg-muted); }
.aacc-user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 244px;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.aacc-user-head { display: flex; gap: 11px; align-items: center; padding: 10px 10px 12px; }
.aacc-user-mname { font-family: var(--font-deck); font-weight: 600; font-size: 14px; }
.aacc-user-mhandle { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); }
.aacc-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: var(--fg-default);
  font-family: var(--font-deck); font-weight: 500; font-size: 14px;
}
.aacc-menu-item i { color: var(--fg-muted); }
.aacc-menu-item:hover { background: var(--bg-raised); }
.aacc-menu-item--danger { color: var(--accent-danger); }
.aacc-menu-item--danger i { color: var(--accent-danger); }
.aacc-menu-item--danger:hover { background: var(--accent-danger-bg); }
.aacc-menu-sep { height: 1px; background: var(--border-subtle); margin: 5px 6px; }

.aacc-main { flex: 1; }
.aacc-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }
.aacc-pagehead { margin-bottom: 30px; }
.aacc-h1 { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.02em; margin: 0 0 6px; }
.aacc-h1-sub { font-family: var(--font-text); font-size: 15px; color: var(--fg-muted); margin: 0; }

.aacc-layout { display: grid; grid-template-columns: 212px 1fr; gap: 48px; align-items: start; }
.aacc-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.aacc-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; font-family: var(--font-deck); font-weight: 500; font-size: 14.5px;
  color: var(--fg-muted); border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.aacc-nav-item i { font-size: 18px; flex-shrink: 0; }
.aacc-nav-item:hover { color: var(--fg-default); background: var(--bg-raised); }
.aacc-nav-item.is-active { color: var(--fg-default); font-weight: 600; background: var(--bg-inset); }

.aacc-sections { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.aacc-section { scroll-margin-top: 84px; }
.aacc-sec-head { margin-bottom: 16px; }
.aacc-sec-title { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.015em; margin: 0 0 4px; }

.aacc-footer { border-top: 1px solid var(--border-subtle); margin-top: 8px; }
.aacc-foot-in {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.aacc-foot-logo { height: 15px; opacity: 0.5; }

/* shared auth-platform footer (icon mark + links) */
.aph-footer { border-top: 1px solid var(--border-subtle); margin-top: 8px; }
.aph-foot-in { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.aph-foot-brand { display: inline-flex; }
.aph-foot-mark { height: 22px; width: auto; display: block; opacity: 0.55; }
.aph-foot-mark--dark { display: none; }
[data-theme="dark"] .aph-foot-mark--light { display: none; }
[data-theme="dark"] .aph-foot-mark--dark { display: block; }

/* auth info / legal pages */
.info-wrap { max-width: 760px; margin: 0 auto; padding: 52px 24px 80px; }
.info-eyebrow { font-family: var(--font-micro); font-weight: 700; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.info-eyebrow a { color: var(--fg-muted); text-decoration: none; }
.info-eyebrow a:hover { color: var(--fg-default); }
.info-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 14px; }
.info-lede { font-family: var(--font-deck); font-weight: 400; font-size: 19px; line-height: 1.5; color: var(--fg-muted); margin: 0 0 36px; text-wrap: pretty; }
.info-block { margin: 0 0 26px; }
.info-block h3 { font-family: var(--font-deck); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0 0 7px; }
.info-block p { font-family: var(--font-text); font-size: 15.5px; line-height: 1.6; color: var(--fg-default); margin: 0; text-wrap: pretty; }
.info-note { font-family: var(--font-micro); font-size: 12.5px; color: var(--fg-subtle); margin-top: 8px; }
.info-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 18px 20px; border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface); }
.info-contact-t { flex: 1; min-width: 200px; }
.info-contact-t b { font-family: var(--font-deck); font-weight: 600; font-size: 15px; display: block; }
.info-contact-t span { font-family: var(--font-text); font-size: 13.5px; color: var(--fg-muted); }
/* cookie rows */
.info-cookie { display: flex; align-items: flex-start; gap: 13px; padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.info-cookie:first-of-type { border-top: none; }
.info-cookie-meta { flex: 1; min-width: 0; }
.info-cookie-name { font-family: var(--font-deck); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.info-cookie-desc { font-family: var(--font-micro); font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; line-height: 1.45; }
.info-cookie .acc-switch:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 560px) {
  .info-title { font-size: 32px; }
  .info-lede { font-size: 17px; }
}

/* ============================================================================
   OAUTH AUTHORIZE / CONSENT  — VGNW editorial (left-aligned, squared marks)
   ============================================================================ */
.authz { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-page); position: relative; }
.authz-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.authz-top { position: fixed; top: 18px; right: 20px; }
.authz-logo { margin-bottom: 22px; display: inline-flex; }
.authz-logo img { height: 20px; width: auto; display: block; }
[data-theme="dark"] .authz-logo img { filter: invert(1) brightness(1.6); }
.authz-card { width: 100%; max-width: 468px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }

/* relationship header strip: app  →  VGNW */
.authz-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border-subtle); }
.authz-appid { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.authz-mark { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-deck); font-weight: 700; font-size: 18px; border: 1px solid var(--border-subtle); flex-shrink: 0; }
.authz-mark i { font-size: 22px; }
.authz-appid-t { min-width: 0; }
.authz-appid-name { font-family: var(--font-deck); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.authz-appid-url { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); margin-top: 1px; }
.authz-conn { display: flex; align-items: center; gap: 4px; color: var(--border-strong); flex-shrink: 0; }
.authz-conn i { font-size: 18px; }
.authz-dest { display: flex; align-items: center; flex-shrink: 0; }
.authz-dest-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--n-950); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .authz-dest-mark { background: var(--n-800); }
.authz-dest-mark img { height: 24px; width: auto; display: block; }

.authz-body { padding: 24px 22px; }
.authz-eyebrow { font-family: var(--font-micro); font-weight: 700; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; }
.authz-title { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 8px; text-wrap: balance; }
.authz-lede { font-family: var(--font-text); font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 18px; text-wrap: pretty; }

.authz-acct { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--bg-raised); margin-bottom: 24px; }
.authz-acct-t { flex: 1; min-width: 0; font-family: var(--font-text); font-size: 13.5px; color: var(--fg-muted); }
.authz-acct-t b { font-family: var(--font-deck); font-weight: 600; color: var(--fg-default); }
.authz-acct a { font-family: var(--font-text); font-size: 13px; color: var(--fg-muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; flex-shrink: 0; transition: color var(--dur-fast); }
.authz-acct a:hover { color: var(--fg-default); }

.authz-perm + .authz-perm { margin-top: 18px; }
.authz-perm-label { font-family: var(--font-micro); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 11px; }
.authz-scopes { display: flex; flex-direction: column; gap: 10px; }
.authz-scope { display: flex; align-items: flex-start; gap: 11px; }
.authz-scope-ico { flex-shrink: 0; margin-top: 1px; }
.authz-scope-ico i { font-size: 18px; }
.authz-scope-ico--ok i { color: var(--accent-success); }
.authz-scope-ico--no i { color: var(--fg-subtle); }
.authz-scope-t { font-family: var(--font-text); font-size: 14px; line-height: 1.4; color: var(--fg-default); }
.authz-scope--no .authz-scope-t { color: var(--fg-muted); }

.authz-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 10px; }
.authz-note { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); line-height: 1.45; }
.authz-note i { font-size: 14px; color: var(--fg-subtle); flex-shrink: 0; margin-top: 1px; }
.authz-note b { color: var(--fg-default); font-weight: 600; }
.authz-note a { color: var(--fg-default); text-decoration: underline; text-underline-offset: 2px; }

.authz-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border-subtle); background: var(--bg-raised); }
.authz-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-deck); font-weight: 600; font-size: 14.5px; cursor: pointer; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--border-default); transition: background var(--dur-fast), border-color var(--dur-fast); }
.authz-btn:active { transform: translateY(1px); }
.authz-btn--ghost { background: var(--bg-surface); color: var(--fg-default); }
.authz-btn--ghost:hover { background: var(--bg-inset); border-color: var(--border-strong); }
.authz-btn--primary { background: var(--n-950); color: var(--fg-inverse); border-color: var(--n-950); flex: 1.4; }
.authz-btn--primary:hover { background: var(--n-800); }
[data-theme="dark"] .authz-btn--primary { background: var(--n-25); color: var(--n-950); border-color: var(--n-25); }
[data-theme="dark"] .authz-btn--primary:hover { background: var(--n-100); }

.authz-done { text-align: center; padding: 40px 24px; }
.authz-done-ring { width: 60px; height: 60px; border-radius: 999px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: var(--accent-success-bg); color: var(--accent-success); }
.authz-done-ring i { font-size: 28px; }
.authz-done-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.authz-done-s { font-family: var(--font-text); font-size: 14px; color: var(--fg-muted); }
@media (max-width: 520px) {
  .authz-body { padding: 22px 18px; }
  .authz-foot { flex-direction: column-reverse; }
}

/* shared auth-platform header (login / register / 2FA / account) */
.aph { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-surface) 86%, transparent); backdrop-filter: blur(10px) saturate(140%); border-bottom: 1px solid var(--border-default); }
.aph-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.aph-back { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--fg-muted); text-decoration: none; font-family: var(--font-text); font-size: 13.5px; border: 1px solid transparent; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.aph-back:hover { color: var(--fg-default); background: var(--bg-raised); border-color: var(--border-default); }
.aph-logo { justify-self: center; display: inline-flex; }
.aph-logo img { height: 20px; width: auto; display: block; }
[data-theme="dark"] .aph-logo img { filter: invert(1) brightness(1.6); }
.aph-right { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* account auth — sign-out nav item */
.aacc-nav-sep { height: 1px; background: var(--border-subtle); margin: 8px 6px; }
.aacc-nav-item--danger { color: var(--accent-danger); }
.aacc-nav-item--danger i { color: var(--accent-danger); }
.aacc-nav-item--danger:hover { color: var(--accent-danger); background: var(--accent-danger-bg); }

/* connected handle clarity */
.acc-prov-handle { color: var(--fg-default); font-weight: 500; }
.acc-prov-when { color: var(--fg-muted); }
.acc-prov-when::before { content: "\00b7"; margin: 0 9px; color: var(--border-strong); }

/* 2FA methods + switch */
.acc-method { display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px; border-top: 1px solid var(--border-subtle); }
.acc-method-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-inset); display: flex; align-items: center; justify-content: center; color: var(--fg-default); flex-shrink: 0; }
.acc-method-ico i { font-size: 19px; }
.acc-method-meta { flex: 1; min-width: 0; }
.acc-method-name { font-family: var(--font-deck); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.acc-method-desc { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); margin-top: 3px; line-height: 1.45; }
.acc-method-actions { display: flex; align-items: center; gap: 14px; margin-top: 9px; flex-wrap: wrap; }
.acc-method-link { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-micro); font-weight: 600; font-size: 12px; color: var(--fg-muted); padding: 0; }
.acc-method-link:hover { color: var(--fg-default); }
.acc-method-link--primary { color: var(--accent-info); }
.acc-method-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.acc-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); border: none; cursor: pointer; transition: background var(--dur-fast); flex-shrink: 0; }
.acc-switch.on { background: var(--accent-success); }
.acc-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: transform var(--dur-fast); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.acc-switch.on::after { transform: translateX(16px); }

@media (max-width: 880px) {
  .aacc-layout { grid-template-columns: 1fr; gap: 20px; }
  .aacc-nav {
    position: sticky; top: 60px; z-index: 20; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: 4px; padding: 10px 0; margin: -4px 0 4px;
    background: var(--bg-page); border-bottom: 1px solid var(--border-subtle);
  }
  .aacc-nav-item { white-space: nowrap; }
  .aacc-nav-item span { display: inline; }
}
@media (max-width: 560px) {
  .aacc-user-name { display: none; }
  .aacc-h1 { font-size: 30px; }
}

