/* ═══════════════════════════════════════════════════════════════
   style.css — SnepDen interface styles
   Served live from style.snepden.de, linked cross-origin by
   identity.snepden.de, cea.snepden.de and lounge.snepden.de via
   each app's `style_url` platform setting.

   Compatibility notes
   ────────
   • Every class name from v1 still exists and still means the same
     thing — this is a restyle, not a rename. Apps need no markup
     changes to pick it up.
   • Two token layers: raw primitives (--ink-*, --ice-*, --glow-*)
     and semantic aliases (--background, --primary, …). Only ever
     reference the semantic layer from components.
   • "Highlight effects" are opt-in and cheap: gradient borders and
     cursor spotlights are painted with CSS masks + custom properties
     (--mx/--my), fed by the 12-line pointer handler in the apps.
     Nothing here animates on an infinite loop unless it is either
     off-screen-cheap (the aurora) or explicitly asked for (.glowing).
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

/* ═════════════════════════════════════════════
   1. TOKENS
   ═════════════════════════════════════════════ */
:root {
    /* ── Primitives: neutral ink ramp ───────── */
    --ink-950: #05070c;
    --ink-900: #080b12;
    --ink-850: #0b0f18;
    --ink-800: #10151f;
    --ink-750: #151c29;
    --ink-700: #1a2333;
    --ink-600: #212c40;
    --ink-500: #2c3a52;
    --ink-400: #3a4b68;

    /* ── Primitives: ice (brand) ────────────── */
    --ice-100: #f2f6fd;
    --ice-200: #dde6f7;
    --ice-300: #c6d4ee;
    --ice-400: #b8c8e8;
    --ice-500: #9db1d8;
    --ice-600: #8195b8;
    --ice-700: #64769a;

    /* ── Primitives: highlight trio ─────────── */
    /* These three drive every glow, gradient border and spotlight.
       Retune these and the whole system shifts hue together. */
    --glow-a: #6f9dff;   /* arctic blue  */
    --glow-b: #ab8bff;   /* aurora violet */
    --glow-c: #58d9e0;   /* glacier cyan  */

    /* ── Primitives: status ─────────────────── */
    --green: #58cf8b;
    --red:   #f4767b;
    --amber: #edad4e;
    --blue:  #5cb0e6;

    /* ── Semantic: surfaces ─────────────────── */
    --background:   var(--ink-900);
    --surface:      var(--ink-850);
    --surface-2:    var(--ink-800);
    --surface-3:    var(--ink-750);
    --surface-sunk: var(--ink-950);

    /* Glass panels — translucent so the aurora reads through them */
    --card-bg:      rgba(28, 39, 58, 0.32);
    --card-bg-solid: var(--ink-800);
    --field-bg:     rgba(20, 29, 45, 0.55);
    --field-bg-focus: rgba(26, 38, 58, 0.75);

    /* ── Semantic: text ─────────────────────── */
    --snow:      var(--ice-100);
    --text:      #cbd7ea;
    --text-soft: #a6b6d0;
    --accent:    #91a3c1;   /* muted label text — 5.9:1 on --background */
    --text-dim:  #6d7d99;

    /* ── Semantic: brand ────────────────────── */
    --primary:      var(--ice-400);
    --primary-strong: var(--ice-200);
    --primary-dim:  rgba(184, 200, 232, 0.12);
    --primary-glow: rgba(184, 200, 232, 0.28);
    --secondary:    var(--ink-500);

    /* ── Semantic: status ───────────────────── */
    --success: var(--green);
    --danger:  var(--red);
    --warning: var(--amber);
    --info:    var(--blue);

    /* ── Borders ────────────────────────────── */
    --border:      rgba(120, 142, 182, 0.18);
    --border-soft: rgba(120, 142, 182, 0.09);
    --border-firm: rgba(120, 142, 182, 0.30);
    --border-glow: rgba(184, 200, 232, 0.38);

    /* ── Radii ──────────────────────────────── */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    /* ── Spacing scale (4px base) ───────────── */
    --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;
    --sp-4: 1rem;    --sp-5: 1.5rem;  --sp-6: 2rem;
    --sp-7: 3rem;    --sp-8: 4rem;    --sp-9: 6rem;

    /* ── Fluid type scale ───────────────────── */
    --fs-2xs: .688rem;
    --fs-xs:  .75rem;
    --fs-sm:  .8438rem;
    --fs-md:  .9375rem;
    --fs-lg:  1.0625rem;
    --fs-xl:  clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --fs-2xl: clamp(1.5rem,  1.25rem + 1.1vw, 2rem);
    --fs-3xl: clamp(2rem,    1.5rem + 2.4vw,  3rem);
    --fs-4xl: clamp(2.5rem,  1.6rem + 4.2vw,  4.5rem);

    --font-display: 'Syne', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

    /* ── Elevation ──────────────────────────── */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.28);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.22);
    --shadow-lg: 0 20px 48px rgba(0,0,0,.42), 0 4px 12px rgba(0,0,0,.26);
    --shadow-xl: 0 36px 88px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.34);
    --inset-hi:  inset 0 1px 0 rgba(255,255,255,.05);

    /* ── Motion ─────────────────────────────── */
    --ease:      cubic-bezier(.4, 0, .2, 1);
    --ease-out:  cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-fast: .14s;
    --dur:      .22s;
    --dur-slow: .38s;

    /* ── Layout ─────────────────────────────── */
    --nav-h: 60px;
    --wrap:  1180px;

    /* Spotlight position, updated by JS on pointer move.
       Defaults keep the highlight centred if no JS runs. */
    --mx: 50%;
    --my: 0%;

    /* Aurora mesh tints */
    --aurora-1: rgba(111, 157, 255, .09);
    --aurora-2: rgba(171, 139, 255, .07);
    --aurora-3: rgba(88,  217, 224, .055);

    color-scheme: dark;
}

/* ═════════════════════════════════════════════
   2. RESET & BASE
   ═════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    /* Sticky footer: a short page (an auth box, an empty dashboard) would
       otherwise strand the footer halfway up the viewport. The navbar,
       loader, progress bar and snowflakes are fixed, so they sit outside
       this flex flow and are unaffected. */
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Fine grain so large flat panels don't band */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Aurora mesh — fixed, composited, sits behind everything */
body::before {
    content: '';
    position: fixed;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 18%,  var(--aurora-1) 0%, transparent 62%),
        radial-gradient(ellipse 60% 80% at 88% 8%,   var(--aurora-2) 0%, transparent 62%),
        radial-gradient(ellipse 70% 50% at 48% 102%, var(--aurora-3) 0%, transparent 62%),
        radial-gradient(ellipse 42% 42% at 78% 68%,  var(--aurora-1) 0%, transparent 55%);
    animation: auroraDrift 24s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

/* Top edge light — a single hairline that makes the page feel lit */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; height: 1px;
    z-index: 1; pointer-events: none;
    background: linear-gradient(90deg,
        transparent, rgba(111,157,255,.28) 25%,
        rgba(184,200,232,.35) 50%,
        rgba(171,139,255,.28) 75%, transparent);
    opacity: .7;
}

::selection { background: rgba(111,157,255,.3); color: var(--snow); }

/* Global focus ring — keyboard only, never on mouse click */
:focus-visible {
    outline: 2px solid var(--glow-a);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--snow); }

img, svg, video { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
[disabled], .is-disabled { opacity: .5; pointer-events: none; }

hr { border: none; border-top: 1px solid var(--border); }

/* Scrollbars — thin and on-brand, Firefox + WebKit */
* { scrollbar-width: thin; scrollbar-color: var(--ink-500) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--ink-500);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: var(--radius-pill);
}
*::-webkit-scrollbar-thumb:hover { background: var(--ink-400); background-clip: padding-box; }

/* ═════════════════════════════════════════════
   3. TYPOGRAPHY
   ═════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.18;
    color: var(--snow);
    text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-md); letter-spacing: .02em; }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-3); }

small { font-size: var(--fs-xs); }
strong, b { font-weight: 600; color: var(--snow); }

code, kbd, pre, .mono {
    font-family: var(--font-mono);
    font-size: .92em;
    font-variant-ligatures: none;
}
code {
    background: rgba(0,0,0,.32);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xs);
    padding: .1em .4em;
    color: var(--primary);
}
kbd {
    background: var(--surface-3);
    border: 1px solid var(--border-firm);
    border-bottom-width: 2px;
    border-radius: var(--radius-xs);
    padding: .1em .45em;
    font-size: .8em;
    color: var(--snow);
}

/* Numerals that don't jitter while counting up */
.tabular, .stat-num, td.num, .lb-rank { font-variant-numeric: tabular-nums; }

/* Eyebrow / kicker above a heading */
.eyebrow {
    /* flex (not inline-flex) + fit-content keeps the rule shrink-wrapped
       while staying block-level — otherwise it shares a line with a
       following inline-block .sec-title instead of sitting above it. */
    display: flex; width: fit-content;
    align-items: center; gap: var(--sp-2);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--sp-2);
}
.eyebrow::before {
    content: '';
    width: 18px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.lead { font-size: var(--fs-lg); color: var(--text-soft); line-height: 1.72; }

/* ═════════════════════════════════════════════
   4. KEYFRAMES
   ═════════════════════════════════════════════ */
@keyframes auroraDrift {
    0%   { opacity: .65; transform: scale(1)    rotate(0deg); }
    33%  { opacity: 1;   transform: scale(1.05) rotate(.6deg); }
    66%  { opacity: .78; transform: scale(.97)  rotate(-.4deg); }
    100% { opacity: .9;  transform: scale(1.03) rotate(.25deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%      { transform: translateY(-14px) rotate(.5deg); }
    66%      { transform: translateY(-8px)  rotate(-.3deg); }
}
@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(184,200,232,.16), 0 0 60px rgba(111,157,255,.06); }
    50%      { text-shadow: 0 0 30px rgba(184,200,232,.42), 0 0 80px rgba(111,157,255,.18), 0 0 120px rgba(171,139,255,.07); }
}
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(184,200,232,.14), var(--shadow-md); }
    50%      { box-shadow: 0 0 0 1px rgba(184,200,232,.38), var(--shadow-lg), 0 0 44px rgba(111,157,255,.08); }
}
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes fall {
    from { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: .6; }
    to   { transform: translateY(105vh) translateX(60px) rotate(180deg); opacity: .1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%      { opacity: .5; transform: scale(.96); }
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0   rgba(88,207,139,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(88,207,139,0); }
    100% { box-shadow: 0 0 0 0   rgba(88,207,139,0); }
}
@keyframes scrollIndicator { 0% { top: 8px; opacity: 1; } 100% { top: 30px; opacity: 0; } }
@keyframes shimmerSlide    { 0% { background-position: -300% 0; } 100% { background-position: 300% 0; } }
@keyframes ripple          { 0% { transform: scale(0); opacity: .45; } 100% { transform: scale(4); opacity: 0; } }
@keyframes orbPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: .55; }
    50%      { transform: translate(-50%,-50%) scale(1.16); opacity: .9; }
}
@keyframes navGlow  { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes badgeShine { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes slideDown  { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes statCount  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeletonSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes gradientPan   { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes barberPole    { to { background-position: 28px 0; } }

/* ═════════════════════════════════════════════
   5. HIGHLIGHT PRIMITIVES
   The three reusable "effects" everything else composes.
   ═════════════════════════════════════════════ */

/* (a) Gradient hairline border, drawn with a mask so it sits
       *on* the border box without a wrapper element. */
.hl-border { position: relative; isolation: isolate; }
.hl-border::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--glow-a), var(--glow-b) 45%, var(--glow-c));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
    z-index: 2;
}
.hl-border:hover::before, .hl-border.is-active::before { opacity: .75; }

/* (b) Cursor spotlight. Needs --mx/--my set by JS (see snepden.js
       `spotlight()`); degrades to a static top-centre glow if not. */
.hl-spot { position: relative; isolation: isolate; overflow: hidden; }
.hl-spot::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx) var(--my),
                rgba(184,200,232,.11), transparent 62%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
    z-index: 0;
}
.hl-spot:hover::after { opacity: 1; }

/* (c) Animated gradient fill for text or bars */
.hl-gradient {
    background: linear-gradient(100deg,
        var(--snow), var(--glow-a), var(--glow-b), var(--glow-c), var(--snow));
    background-size: 200% auto;
    animation: gradientPan 7s linear infinite;
}

/* ═════════════════════════════════════════════
   6. DECORATION — snow, loader, progress
   ═════════════════════════════════════════════ */
.snowflake {
    position: fixed;
    color: var(--snow);
    opacity: .22;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: fall linear forwards;
    filter: blur(.3px);
}

#page-loader, .page-loader {
    position: fixed; inset: 0;
    background: var(--background);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
#page-loader.done, .page-loader.done { opacity: 0; visibility: hidden; }

.loader { position: relative; width: 48px; height: 48px; }
.loader::before, .loader::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.loader::before {
    border-top-color: var(--glow-a);
    border-right-color: rgba(184,200,232,.28);
    animation: spin .9s linear infinite;
}
.loader::after {
    inset: 8px;
    border-bottom-color: var(--glow-b);
    border-left-color: rgba(136,153,184,.2);
    animation: spinReverse .7s linear infinite;
}

#progress-bar, .progress-bar {
    position: fixed; top: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--glow-c), var(--glow-a), var(--ice-200), var(--glow-b));
    background-size: 200% 100%;
    animation: shimmerSlide 2.4s linear infinite;
    z-index: 9000;
    transition: width var(--dur) var(--ease);
    box-shadow: 0 0 10px var(--primary-glow), 0 0 24px rgba(111,157,255,.16);
}

/* ═════════════════════════════════════════════
   7. NAVBAR
   ═════════════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 200;
    min-height: var(--nav-h);
    background: rgba(8, 11, 18, .72);
    backdrop-filter: blur(20px) saturate(1.7);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
    border-bottom: 1px solid var(--border-soft);
    padding: var(--sp-2) var(--sp-6);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Set .is-scrolled from JS once the page moves off the top */
.navbar.is-scrolled {
    background: rgba(8, 11, 18, .9);
    box-shadow: var(--shadow-md);
}
.navbar::after {
    content: '';
    position: absolute; bottom: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    animation: navGlow 5s ease-in-out infinite;
    pointer-events: none;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--snow);
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: .4rem;
}
.nav-logo span {
    background: linear-gradient(120deg, var(--glow-a), var(--glow-c));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-logo::after {
    content: '';
    position: absolute; bottom: -3px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--glow-a), transparent);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.nav-logo:hover::after { transform: scaleX(1); }
.nav-logo:hover { color: var(--snow); }

.nav-links { display: flex; align-items: center; gap: var(--sp-1); }

.nav-link {
    border: 1px solid transparent;
    color: var(--accent);
    padding: .38rem .92rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
    display: inline-flex; align-items: center; gap: .4rem;
    white-space: nowrap;
    position: relative;
}
.nav-link:hover {
    color: var(--snow);
    border-color: var(--border);
    background: rgba(120,142,182,.08);
    box-shadow: var(--inset-hi);
}
.nav-link.active {
    color: var(--snow);
    border-color: rgba(184,200,232,.26);
    background: rgba(184,200,232,.07);
    box-shadow: 0 0 14px rgba(111,157,255,.1), var(--inset-hi);
}
.nav-link.primary {
    background: linear-gradient(135deg, var(--ice-300), var(--ice-500));
    color: var(--ink-900);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 14px rgba(184,200,232,.22);
}
.nav-link.primary:hover {
    background: linear-gradient(135deg, var(--ice-100), var(--ice-300));
    color: var(--ink-900);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(184,200,232,.34);
}

.nav-role {
    font-size: .6rem;
    padding: .12rem .42rem;
    border-radius: var(--radius-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-left: .28rem;
}
.role-superadmin { background: rgba(244,118,123,.14); color: var(--red);   border: 1px solid rgba(244,118,123,.26); }
.role-headAdmin  { background: rgba(237,173,78,.14);  color: var(--amber); border: 1px solid rgba(237,173,78,.26); }
.role-admin      { background: rgba(92,176,230,.14);  color: var(--blue);  border: 1px solid rgba(92,176,230,.26); }
.role-user       { background: rgba(88,207,139,.14);  color: var(--green); border: 1px solid rgba(88,207,139,.26); }

/* Hamburger — hidden until the mobile breakpoint */
.nav-toggle {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    transition: border-color var(--dur-fast), background var(--dur-fast);
}
.nav-toggle:hover { border-color: var(--border-firm); background: rgba(120,142,182,.08); }
.nav-toggle i {
    display: block; width: 16px; height: 1.5px;
    background: currentColor; border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle.open i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open i:nth-child(2) { opacity: 0; }
.nav-toggle.open i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Skip link — first tab stop on every page */
.skip-link {
    position: absolute; left: var(--sp-4); top: -100px;
    z-index: 9999;
    background: var(--surface-2);
    border: 1px solid var(--border-firm);
    border-radius: var(--radius-sm);
    padding: var(--sp-2) var(--sp-4);
    color: var(--snow);
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* ═════════════════════════════════════════════
   8. HERO
   ═════════════════════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-5) var(--sp-7);
    position: relative; z-index: 2;
    isolation: isolate;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    will-change: transform, opacity;
}
.hero::before {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(111,157,255,.14) 0%, transparent 70%);
    top: 12%; left: 10%;
    animation: orbPulse 9s ease-in-out infinite;
}
.hero::after {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(171,139,255,.1) 0%, transparent 70%);
    bottom: 4%; right: 8%;
    animation: orbPulse 11s ease-in-out infinite reverse;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--snow);
    letter-spacing: -.035em;
    line-height: 1.02;
    position: relative;
    max-width: 16ch;
}
.hero-title .accent-word,
.hero-title .accent {
    background: linear-gradient(135deg, var(--ice-200) 0%, var(--glow-a) 45%, var(--glow-b) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-soft);
    margin: var(--sp-5) 0 var(--sp-6);
    max-width: 54ch;
    font-weight: 400;
    line-height: 1.75;
    position: relative;
}
.hero-actions {
    display: flex; gap: var(--sp-3);
    flex-wrap: wrap; justify-content: center;
    position: relative; z-index: 1;
}

/* ═════════════════════════════════════════════
   9. LAYOUT
   ═════════════════════════════════════════════ */
.page-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-5) var(--sp-7);
    position: relative; z-index: 2;
}
.page-wrap.narrow { max-width: 760px; }
.page-wrap.xs     { max-width: 460px; }
.page-wrap.wide   { max-width: 1440px; }

.section { padding: var(--sp-8) 0; position: relative; z-index: 2; }

.grid      { display: grid; gap: var(--sp-4); }
.grid-2    { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3    { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.stack   > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.spacer  { flex: 1; }

/* ═════════════════════════════════════════════
   10. BUTTONS
   ═════════════════════════════════════════════ */
.btn, .button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .68rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: .005em;
    line-height: 1.2;
    transition: transform var(--dur) var(--ease),
                background var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                color var(--dur) var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    user-select: none;
}

/* Ripple on press */
.btn::after, .button::after {
    content: '';
    position: absolute; inset: 50%;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.btn:active::after, .button:active::after { animation: ripple .5s ease-out forwards; }

/* Shimmer sweep on hover */
.btn::before, .button::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
    background-size: 220% 100%;
    background-position: -220% 0;
    transition: background-position .55s var(--ease);
    pointer-events: none;
}
.btn:hover::before, .button:hover::before { background-position: 220% 0; }

.btn:active, .button:active { transform: translateY(1px) scale(.99); }

.btn-primary, .button {
    background: linear-gradient(135deg, var(--ice-300) 0%, var(--ice-500) 100%);
    color: var(--ink-900);
    border-color: transparent;
    box-shadow: 0 2px 16px rgba(184,200,232,.2), var(--shadow-xs);
}
.btn-primary:hover, .button:hover {
    background: linear-gradient(135deg, var(--ice-100) 0%, var(--ice-300) 100%);
    color: var(--ink-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184,200,232,.3), var(--shadow-sm);
}
.btn-primary:active, .button:active { transform: translateY(0); }

/* Accent variant — the loud one, uses the highlight trio */
.btn-accent {
    background: linear-gradient(120deg, var(--glow-a), var(--glow-b));
    background-size: 180% auto;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 18px rgba(111,157,255,.3);
}
.btn-accent:hover {
    background-position: 100% 50%;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(111,157,255,.42);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-firm);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--snow);
    background: var(--primary-dim);
    box-shadow: 0 0 18px rgba(184,200,232,.1);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
}
.btn-ghost:hover { background: rgba(120,142,182,.1); color: var(--snow); }

.btn-danger {
    background: rgba(244,118,123,.1);
    border-color: rgba(244,118,123,.34);
    color: var(--red);
}
.btn-danger:hover {
    background: var(--red); color: #fff;
    box-shadow: 0 6px 22px rgba(244,118,123,.28);
    transform: translateY(-1px);
}

.btn-success {
    background: rgba(88,207,139,.1);
    border-color: rgba(88,207,139,.34);
    color: var(--green);
}
.btn-success:hover {
    background: var(--green); color: var(--ink-900);
    box-shadow: 0 6px 22px rgba(88,207,139,.28);
    transform: translateY(-1px);
}

.btn-lg  { padding: .9rem 2.1rem; font-size: var(--fs-lg); border-radius: var(--radius-md); }
.btn-sm  { padding: .4rem 1rem;   font-size: var(--fs-sm); }
.btn-xs  { padding: .22rem .68rem; font-size: var(--fs-xs); border-radius: var(--radius-xs); }
.btn-block { width: 100%; }
.btn-icon { padding: .55rem; width: 2.4rem; height: 2.4rem; }

/* Loading state — swap the label for a spinner without layout shift */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: '';
    position: absolute; inset: auto;
    top: 50%; left: 50%;
    width: 15px; height: 15px;
    margin: -7.5px 0 0 -7.5px;
    border: 2px solid rgba(255,255,255,.28);
    border-top-color: currentColor;
    border-radius: 50%;
    background: none;
    opacity: 1; transform: none;
    animation: spin .65s linear infinite;
}
.btn-primary.is-loading::after { border-top-color: var(--ink-900); }

/* ═════════════════════════════════════════════
   11. CARDS
   ═════════════════════════════════════════════ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    backdrop-filter: blur(14px) saturate(1.35);
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    transition: border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease);
    position: relative;
    isolation: isolate;
    box-shadow: var(--shadow-sm), var(--inset-hi);
}
/* Top hairline that lights up on hover */
.card::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    border-radius: 1px;
}
.card:hover::before { opacity: 1; }
.card:hover {
    border-color: rgba(184,200,232,.26);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,200,232,.06) inset;
}

.card-sm   { padding: var(--sp-4) var(--sp-5); }
.card-lg   { padding: var(--sp-7); }
.card-solid { background: var(--card-bg-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-flat { transform: none !important; box-shadow: var(--inset-hi) !important; }
.card-flat:hover { transform: none; }
.card-flat::before { display: none; }

/* Glowing variant — pulses its border */
.card-glow {
    border-color: rgba(184,200,232,.2);
    box-shadow: 0 0 0 1px rgba(184,200,232,.06) inset, 0 0 44px rgba(111,157,255,.05);
    animation: borderGlow 6s ease-in-out infinite;
}

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3); flex-wrap: wrap;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border-soft);
}
.card-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg); font-weight: 700;
    color: var(--snow);
}
.card-footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: flex-end;
    gap: var(--sp-2); flex-wrap: wrap;
}

/* Feature card — links out of a landing grid */
.feature-card {
    background: rgba(28,39,58,.26);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    display: flex; flex-direction: column; align-items: flex-start;
    gap: .6rem;
    text-decoration: none; cursor: pointer;
    position: relative; isolation: isolate;
    overflow: hidden;
    color: inherit;
}
.feature-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), var(--primary-dim), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none; z-index: -1;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,200,232,.1) inset;
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    font-size: 1.9rem;
    margin-bottom: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, rgba(111,157,255,.14), rgba(171,139,255,.1));
    border: 1px solid var(--border);
    position: relative; z-index: 1;
}
.feature-card h3 {
    color: var(--snow); font-size: var(--fs-xl); margin: 0;
    position: relative; z-index: 1;
}
.feature-card p {
    color: var(--accent); margin: .3rem 0 0;
    font-size: var(--fs-sm); line-height: 1.65;
    position: relative; z-index: 1;
}
/* Arrow affordance */
.feature-card .feature-go {
    margin-top: auto; padding-top: var(--sp-4);
    font-size: var(--fs-sm); font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: .4rem;
    position: relative; z-index: 1;
}
.feature-card .feature-go::after {
    content: '→';
    transition: transform var(--dur) var(--ease);
}
.feature-card:hover .feature-go::after { transform: translateX(4px); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--sp-4);
}

/* ═════════════════════════════════════════════
   12. FORMS
   ═════════════════════════════════════════════ */
.form-group { margin-bottom: var(--sp-5); }

.form-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--primary);
    margin-bottom: .4rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 600;
}
.form-label .req { color: var(--red); margin-left: .2rem; }

.form-control {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .72rem 1rem;
    color: var(--snow);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    transition: border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
}
.form-control:hover:not(:focus) { border-color: var(--border-firm); }
.form-control:focus {
    outline: none;
    border-color: rgba(111,157,255,.55);
    background: var(--field-bg-focus);
    box-shadow: 0 0 0 3px rgba(111,157,255,.12), 0 0 20px rgba(111,157,255,.08);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:disabled { opacity: .55; cursor: not-allowed; }
.form-control.is-invalid {
    border-color: rgba(244,118,123,.6);
    box-shadow: 0 0 0 3px rgba(244,118,123,.1);
}
.form-control.is-valid { border-color: rgba(88,207,139,.5); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2391a3c1' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.4rem;
}
select.form-control option { background: var(--surface-2); color: var(--text); }
textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.65; }

/* Input with a leading icon or trailing button */
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .form-control { flex: 1; }
.input-group-btn {
    position: absolute; right: .35rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--accent);
    padding: .35rem .5rem;
    border-radius: var(--radius-xs);
    font-size: var(--fs-xs); font-weight: 600;
    transition: color var(--dur-fast), background var(--dur-fast);
}
.input-group-btn:hover { color: var(--snow); background: rgba(120,142,182,.12); }

.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.form-hint { font-size: var(--fs-xs); color: var(--accent); margin-top: .3rem; }
.form-error {
    font-size: var(--fs-xs); color: var(--red); margin-top: .3rem;
    display: flex; align-items: center; gap: .3rem;
}

.form-check {
    display: flex; align-items: flex-start; gap: .6rem;
    cursor: pointer; margin: .35rem 0;
    font-size: var(--fs-sm); line-height: 1.55;
}
.form-check input {
    accent-color: var(--glow-a);
    width: 16px; height: 16px;
    margin-top: .15rem;
    flex-shrink: 0;
    cursor: pointer;
}

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 40px; height: 22px;
    border-radius: var(--radius-pill);
    background: var(--ink-600);
    border: 1px solid var(--border);
    position: relative;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
    flex-shrink: 0;
}
.switch-track::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease);
}
.switch input:checked + .switch-track {
    background: linear-gradient(120deg, var(--glow-a), var(--glow-b));
    border-color: transparent;
}
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--glow-a); outline-offset: 2px; }

/* Password strength meter */
.pw-meter { display: flex; gap: 4px; margin-top: .45rem; }
.pw-meter i {
    flex: 1; height: 3px;
    border-radius: 2px;
    background: var(--ink-600);
    transition: background var(--dur) var(--ease);
}
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--blue); }
.pw-meter[data-score="4"] i { background: var(--green); }

/* Fieldset grouping */
.fieldset {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.fieldset > legend {
    padding: 0 var(--sp-2);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
    color: var(--primary);
}

/* ═════════════════════════════════════════════
   13. AUTH
   ═════════════════════════════════════════════ */
.auth-box {
    max-width: 440px; margin: 0 auto;
    padding-top: var(--sp-6);
    animation: fadeUp var(--dur-slow) var(--ease-out);
}
.auth-divider {
    display: flex; align-items: center; gap: var(--sp-4);
    margin: var(--sp-5) 0;
    color: var(--accent);
    font-size: var(--fs-sm);
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.google-btn {
    width: 100%;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
    color: var(--snow);
    padding: .78rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-md); font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: .65rem;
    transition: background var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    text-decoration: none;
}
.google-btn:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(184,200,232,.3);
    box-shadow: var(--shadow-sm);
    color: var(--snow);
}

/* ═════════════════════════════════════════════
   14. STATS
   ═════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.stat-card {
    background: rgba(28,39,58,.26);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    transition: border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    animation: statCount var(--dur-slow) var(--ease-out) both;
    position: relative; overflow: hidden;
    box-shadow: var(--inset-hi);
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0; transition: opacity var(--dur) var(--ease);
}
.stat-card:hover {
    border-color: rgba(184,200,232,.26);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card:hover::before { opacity: 1; }

.stat-num {
    font-family: var(--font-display);
    font-size: 2.15rem; font-weight: 800;
    color: var(--snow); line-height: 1;
    letter-spacing: -.03em;
}
.stat-label {
    font-size: var(--fs-2xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-top: .4rem;
    font-weight: 600;
}
.stat-delta { font-size: var(--fs-xs); font-weight: 600; margin-top: .3rem; }
.stat-delta.up   { color: var(--green); }
.stat-delta.down { color: var(--red); }

/* ═════════════════════════════════════════════
   15. TABS & SEGMENTED CONTROL
   ═════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-6);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--accent);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-sm); font-weight: 500;
    padding: .66rem 1.2rem;
    margin-bottom: -1px;
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
    position: relative;
    white-space: nowrap;
}
.tab::after {
    content: '';
    position: absolute; bottom: -1px; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.tab:hover  { color: var(--text); }
.tab.active { color: var(--snow); border-bottom-color: var(--primary); }
.tab.active::after { opacity: 1; }
.tab-count {
    display: inline-block;
    margin-left: .4rem; padding: 0 .38rem;
    border-radius: var(--radius-pill);
    background: rgba(120,142,182,.16);
    font-size: var(--fs-2xs); font-weight: 700;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn var(--dur) var(--ease); }

/* Segmented control — for 2–4 exclusive choices inline */
.segmented {
    display: inline-flex;
    background: var(--field-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}
.segmented button {
    padding: .35rem .9rem;
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm); font-weight: 500;
    color: var(--accent);
    transition: background var(--dur-fast), color var(--dur-fast);
}
.segmented button:hover { color: var(--snow); }
.segmented button.active {
    background: rgba(184,200,232,.12);
    color: var(--snow);
    box-shadow: var(--inset-hi);
}

/* ═════════════════════════════════════════════
   16. TABLES
   ═════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(16,21,31,.4);
}
table { width: 100%; border-collapse: collapse; }
th {
    background: rgba(28,39,58,.42);
    padding: .8rem 1.1rem;
    text-align: left;
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
    font-family: var(--font-body); font-weight: 600;
    white-space: nowrap;
    position: sticky; top: 0; z-index: 1;
    backdrop-filter: blur(8px);
}
td {
    padding: .82rem 1.1rem;
    border-top: 1px solid var(--border-soft);
    font-size: var(--fs-sm);
    vertical-align: middle;
    transition: background var(--dur-fast) var(--ease);
}
tbody tr { transition: background var(--dur-fast) var(--ease); }
tbody tr:hover td { background: rgba(28,39,58,.28); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
.table-compact td, .table-compact th { padding: .5rem .8rem; }

/* ═════════════════════════════════════════════
   17. BADGES, TAGS, CHIPS
   ═════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center; gap: .28rem;
    padding: .16rem .62rem;
    border-radius: var(--radius-xs);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    position: relative; overflow: hidden;
    white-space: nowrap;
    line-height: 1.5;
}
/* Shine sweeps on hover only — v1 ran this on an infinite loop for
   every badge on the page, which repainted admin tables forever. */
.badge::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    pointer-events: none;
}
.badge:hover::after { animation: badgeShine 1.1s ease; }

.badge-success { background: rgba(88,207,139,.12);  color: var(--green); border: 1px solid rgba(88,207,139,.26); }
.badge-warning { background: rgba(237,173,78,.12);  color: var(--amber); border: 1px solid rgba(237,173,78,.26); }
.badge-danger  { background: rgba(244,118,123,.12); color: var(--red);   border: 1px solid rgba(244,118,123,.26); }
.badge-info    { background: rgba(92,176,230,.12);  color: var(--blue);  border: 1px solid rgba(92,176,230,.26); }
.badge-muted   { background: rgba(120,142,182,.12); color: var(--accent); border: 1px solid var(--border); }
.badge-draft   { background: rgba(28,39,58,.42);    color: var(--text);   border: 1px solid var(--border); }
.badge-open    { background: rgba(88,207,139,.12);  color: var(--green); border: 1px solid rgba(88,207,139,.26); }
.badge-closed  { background: rgba(244,118,123,.12); color: var(--red);   border: 1px solid rgba(244,118,123,.26); }
.badge-primary {
    background: linear-gradient(120deg, rgba(111,157,255,.18), rgba(171,139,255,.18));
    color: var(--ice-200);
    border: 1px solid rgba(111,157,255,.3);
}

.tag {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(120,142,182,.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: .12rem .5rem;
    font-size: var(--fs-xs);
    color: var(--accent);
    font-weight: 500; letter-spacing: .04em;
    transition: border-color var(--dur-fast), color var(--dur-fast);
}
.tag:hover { border-color: rgba(184,200,232,.3); color: var(--primary); }

/* Removable chip */
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(120,142,182,.12);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: .22rem .5rem .22rem .75rem;
    font-size: var(--fs-xs);
    color: var(--text);
}
.chip button {
    width: 16px; height: 16px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: .7rem; line-height: 1;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.chip button:hover { background: rgba(244,118,123,.18); color: var(--red); }

/* ═════════════════════════════════════════════
   18. AVATAR
   ═════════════════════════════════════════════ */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--ink-500), var(--ink-400));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--fs-xs); font-weight: 700;
    color: var(--snow);
    border: 1px solid var(--border);
    overflow: hidden;
    object-fit: cover;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 26px; height: 26px; font-size: var(--fs-2xs); }
.avatar-lg { width: 64px; height: 64px; font-size: var(--fs-lg); }
.avatar-xl { width: 96px; height: 96px; font-size: var(--fs-2xl); }
.avatar-ring {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--glow-a);
}
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--background); }

/* ═════════════════════════════════════════════
   19. ALERTS
   ═════════════════════════════════════════════ */
.alert {
    padding: .9rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
    border: 1px solid;
    border-left-width: 3px;
    animation: fadeUp var(--dur) var(--ease-out);
    display: flex; align-items: flex-start; gap: .6rem;
    line-height: 1.6;
}
.alert::before { font-size: 1em; line-height: 1.5; flex-shrink: 0; }
.alert-success { background: rgba(88,207,139,.07);  border-color: rgba(88,207,139,.18);  border-left-color: var(--green); color: var(--green); }
.alert-danger  { background: rgba(244,118,123,.07); border-color: rgba(244,118,123,.18); border-left-color: var(--red);   color: var(--red); }
.alert-info    { background: rgba(92,176,230,.07);  border-color: rgba(92,176,230,.18);  border-left-color: var(--blue);  color: var(--blue); }
.alert-warning { background: rgba(237,173,78,.07);  border-color: rgba(237,173,78,.18);  border-left-color: var(--amber); color: var(--amber); }
.alert-success::before { content: '✓'; }
.alert-danger::before  { content: '✕'; }
.alert-info::before    { content: 'ℹ'; }
.alert-warning::before { content: '!'; font-weight: 800; }

/* ═════════════════════════════════════════════
   20. TOAST
   ═════════════════════════════════════════════ */
.toast-host {
    position: fixed;
    bottom: var(--sp-5); right: var(--sp-5);
    z-index: 9500;
    display: flex; flex-direction: column-reverse; gap: var(--sp-2);
    pointer-events: none;
    max-width: min(380px, calc(100vw - 2rem));
}
.toast {
    background: var(--surface-2);
    border: 1px solid var(--border-firm);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: var(--fs-sm);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    animation: slideInRight var(--dur) var(--ease-out);
    pointer-events: auto;
    display: flex; align-items: flex-start; gap: .55rem;
}
.toast.leaving { animation: fadeIn var(--dur) var(--ease) reverse forwards; }
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--amber); }

/* ═════════════════════════════════════════════
   21. MODAL
   ═════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(4, 6, 12, .74);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    z-index: 500;
    display: none;
    align-items: center; justify-content: center;
    padding: var(--sp-4);
    overscroll-behavior: contain;
}
.modal-overlay.open { display: flex; animation: fadeIn var(--dur) var(--ease); }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    max-width: 620px; width: 100%;
    max-height: 90vh; max-height: 90dvh;
    overflow-y: auto;
    animation: fadeUp var(--dur-slow) var(--ease-out);
    box-shadow: 0 0 0 1px rgba(184,200,232,.06) inset, var(--shadow-xl);
    position: relative;
}
.modal::before {
    content: '';
    position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,200,232,.45), transparent);
    border-radius: 1px;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 900px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}
.modal-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg); font-weight: 700; color: var(--snow);
}
.modal-close {
    background: rgba(120,142,182,.1);
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer; font-size: 1.15rem; line-height: 1;
    width: 32px; height: 32px;
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.modal-close:hover {
    background: rgba(244,118,123,.12);
    border-color: rgba(244,118,123,.3);
    color: var(--red);
}
.modal-footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-soft);
    display: flex; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap;
}
/* Lock scroll behind an open modal */
body.modal-open { overflow: hidden; }

/* ═════════════════════════════════════════════
   22. DROPDOWN
   ═════════════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .35rem;
    min-width: 186px;
    z-index: 300;
    display: none;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,200,232,.04) inset;
}
.dropdown.open .dropdown-menu { display: block; animation: slideDown var(--dur-fast) var(--ease-out); }
.dropdown-menu.left { right: auto; left: 0; }
.dropdown-item {
    display: flex; align-items: center; gap: .5rem;
    width: 100%;
    background: none; border: none;
    color: var(--text);
    padding: .55rem .88rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    text-align: left;
    transition: background var(--dur-fast), color var(--dur-fast), padding-left var(--dur-fast);
    text-decoration: none;
}
.dropdown-item:hover {
    background: rgba(28,39,58,.6);
    color: var(--snow);
    padding-left: 1.1rem;
}
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(244,118,123,.1); color: var(--red); }
.dropdown-sep { height: 1px; background: var(--border-soft); margin: .3rem .4rem; }

/* ═════════════════════════════════════════════
   23. SKELETON & PROGRESS
   ═════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(100deg,
        var(--ink-750) 20%, var(--ink-700) 40%, var(--ink-750) 60%);
    background-size: 200% 100%;
    animation: skeletonSweep 1.4s linear infinite;
    border-radius: var(--radius-xs);
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}
.skeleton-line { height: .8em; margin: .35rem 0; }
.skeleton-line.short { width: 55%; }
.skeleton-block { height: 120px; border-radius: var(--radius-md); }

.progress {
    height: 6px;
    background: var(--ink-700);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.progress > i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--glow-a), var(--glow-b));
    border-radius: inherit;
    transition: width var(--dur-slow) var(--ease);
}
.progress.striped > i {
    background-image: linear-gradient(45deg,
        rgba(255,255,255,.14) 25%, transparent 25%, transparent 50%,
        rgba(255,255,255,.14) 50%, rgba(255,255,255,.14) 75%, transparent 75%);
    background-size: 28px 28px;
    animation: barberPole .8s linear infinite;
}

/* ═════════════════════════════════════════════
   24. TOOLTIP
   ═════════════════════════════════════════════ */
[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ink-950);
    border: 1px solid var(--border-firm);
    border-radius: var(--radius-xs);
    padding: .3rem .6rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--snow);
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    box-shadow: var(--shadow-md);
    z-index: 400;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ═════════════════════════════════════════════
   25. EVENT GRID
   ═════════════════════════════════════════════ */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-5);
}
.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: block;
    color: inherit;
}
.event-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), var(--primary-dim), transparent 60%);
    opacity: 0; transition: opacity var(--dur) var(--ease);
    pointer-events: none; z-index: 1;
}
.event-card:hover {
    border-color: rgba(184,200,232,.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,200,232,.08) inset;
}
.event-card:hover::before { opacity: 1; }

.event-banner {
    height: 130px;
    background: linear-gradient(135deg, #131a29, #1f2c47 60%, #26203f);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.event-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8,11,18,.72) 100%);
}
.event-banner-bg {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 800;
    color: rgba(255,255,255,.05);
    letter-spacing: .14em; text-transform: uppercase;
    user-select: none; white-space: nowrap;
}
.event-date-tag {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(8,11,18,.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: .24rem .58rem;
    font-size: var(--fs-2xs);
    color: var(--primary);
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.event-status-tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.event-body { padding: var(--sp-4); position: relative; z-index: 2; }
.event-title {
    font-family: var(--font-display);
    font-size: var(--fs-md); font-weight: 700;
    color: var(--snow); margin-bottom: .35rem;
}
.event-meta { font-size: var(--fs-sm); color: var(--accent); margin-bottom: var(--sp-3); }
.event-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: var(--sp-2);
}

/* ═════════════════════════════════════════════
   26. REGISTRATION WIZARD
   ═════════════════════════════════════════════ */
.step-bar {
    display: flex; gap: 0;
    margin-bottom: var(--sp-7);
    position: relative;
}
.step-bar::before {
    content: '';
    position: absolute; top: 13px; left: 14px; right: 14px;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
/* Filled portion of the rail — set --progress (0–1) on .step-bar */
.step-bar::after {
    content: '';
    position: absolute; top: 13px; left: 14px;
    width: calc((100% - 28px) * var(--progress, 0));
    height: 1px;
    background: linear-gradient(90deg, var(--glow-a), var(--glow-b));
    z-index: 0;
    transition: width var(--dur-slow) var(--ease);
}
.step-item {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    flex: 1; position: relative; z-index: 1;
}
.step-circle {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-2xs); font-weight: 700;
    color: var(--accent);
    transition: background var(--dur-slow) var(--ease),
                border-color var(--dur-slow) var(--ease),
                color var(--dur-slow) var(--ease),
                box-shadow var(--dur-slow) var(--ease);
}
.step-item.done .step-circle,
.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--ice-300), var(--ice-500));
    border-color: transparent;
    color: var(--ink-900);
    box-shadow: 0 0 0 4px rgba(184,200,232,.14), 0 0 18px rgba(111,157,255,.22);
}
.step-item.done .step-circle::after { content: '✓'; }
.step-item.done .step-circle > * { display: none; }
.step-label {
    font-size: var(--fs-2xs);
    color: var(--accent);
    text-align: center;
    font-weight: 500; letter-spacing: .05em;
    text-transform: uppercase;
}
.step-item.active .step-label { color: var(--primary); }

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: var(--sp-3);
}
.option-card {
    background: rgba(28,39,58,.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease),
                background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    position: relative; overflow: hidden;
}
.option-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-dim) 0%, transparent 70%);
    opacity: 0; transition: opacity var(--dur) var(--ease);
    pointer-events: none;
}
.option-card:hover { border-color: var(--border-firm); }
.option-card:hover::before { opacity: 1; }
.option-card.selected {
    border-color: var(--primary);
    background: rgba(184,200,232,.07);
    box-shadow: 0 0 0 3px rgba(184,200,232,.1), var(--shadow-sm);
}
.option-check {
    position: absolute; top: .55rem; right: .55rem;
    width: 19px; height: 19px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ice-300), var(--ice-500));
    display: none;
    align-items: center; justify-content: center;
    font-size: .62rem; color: var(--ink-900);
    box-shadow: 0 0 10px rgba(184,200,232,.4);
}
.option-card.selected .option-check { display: flex; }
.option-name  { font-weight: 600; color: var(--snow); font-size: var(--fs-md); position: relative; }
.option-desc  { font-size: var(--fs-xs); color: var(--accent); margin-top: .22rem; position: relative; }
.option-price {
    font-family: var(--font-display);
    color: var(--primary); font-size: var(--fs-md);
    margin-top: .4rem; font-weight: 700; position: relative;
    font-variant-numeric: tabular-nums;
}

/* ═════════════════════════════════════════════
   27. ATTENDEES
   ═════════════════════════════════════════════ */
.attendee-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--border-soft);
    transition: padding-left var(--dur-fast) var(--ease);
}
.attendee-item:last-child { border-bottom: none; }
.attendee-item:hover { padding-left: .4rem; }
.attendee-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--ink-500), var(--ink-400));
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-xs); font-weight: 700; color: var(--snow);
    border: 1px solid var(--border);
    transition: box-shadow var(--dur) var(--ease);
    overflow: hidden;
    text-transform: uppercase;
}
.attendee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.attendee-item:hover .attendee-avatar { box-shadow: 0 0 16px rgba(111,157,255,.24); }
.attendee-name { font-weight: 500; color: var(--snow); font-size: var(--fs-sm); }
.attendee-nick { font-size: var(--fs-xs); color: var(--accent); }

/* ═════════════════════════════════════════════
   28. ADMIN EDITOR
   ═════════════════════════════════════════════ */
.ticket-row, .addon-row {
    display: flex; align-items: flex-start; gap: var(--sp-3);
    padding: var(--sp-3);
    background: rgba(28,39,58,.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .7rem;
    transition: border-color var(--dur-fast) var(--ease);
}
.ticket-row:hover, .addon-row:hover { border-color: var(--border-firm); }
.ticket-row input, .addon-row input { flex: 1; min-width: 0; }

/* ═════════════════════════════════════════════
   29. SECTION HEADERS
   ═════════════════════════════════════════════ */
.sec-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--sp-6);
    flex-wrap: wrap; gap: var(--sp-4);
}
.sec-title, .section-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl); font-weight: 700;
    color: var(--snow);
    position: relative; display: inline-block;
    letter-spacing: -.025em;
}
.sec-title::after, .section-title::after {
    content: '';
    position: absolute; bottom: -6px; left: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--glow-a), transparent);
    border-radius: 1px;
}
.section-subtitle { color: var(--accent); font-size: var(--fs-md); margin-top: var(--sp-3); }
.sec-sub { color: var(--accent); font-size: var(--fs-sm); margin-top: .3rem; }

/* ═════════════════════════════════════════════
   30. EMPTY STATE & PAGINATION
   ═════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: var(--sp-8) var(--sp-5);
    color: var(--accent);
}
.empty-state .empty-icon {
    font-size: 2.6rem;
    opacity: .5;
    margin-bottom: var(--sp-3);
    display: block;
}
.empty-state h3 {
    color: var(--text);
    margin-bottom: .5rem;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
}
.empty-state p { max-width: 44ch; margin: 0 auto var(--sp-4); font-size: var(--fs-sm); }

.pagination { display: flex; align-items: center; gap: .3rem; justify-content: center; margin-top: var(--sp-5); }
.pagination a, .pagination span {
    min-width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm);
    color: var(--accent);
    transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.pagination a:hover { border-color: var(--border-firm); color: var(--snow); background: rgba(120,142,182,.08); }
.pagination .current { background: rgba(184,200,232,.12); color: var(--snow); border-color: rgba(184,200,232,.28); }

/* ═════════════════════════════════════════════
   31. EMAIL PREVIEW & CODE CARDS
   ═════════════════════════════════════════════ */
.email-preview {
    background: rgba(28,39,58,.14);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-5);
    font-size: var(--fs-sm); line-height: 1.85;
    white-space: pre-wrap;
    position: relative;
    overflow-x: auto;
}
.email-preview::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--glow-a), transparent);
    border-radius: 3px 0 0 3px;
}

.code-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4); flex-wrap: wrap;
    background: rgba(28,39,58,.22);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: .8rem;
    transition: border-color var(--dur-fast) var(--ease);
}
.code-card:hover { border-color: var(--border-firm); }
.code-card .code-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.code-card .code-name { font-family: var(--font-display); font-weight: 700; color: var(--snow); }
.code-card .code-meta { font-size: var(--fs-xs); color: var(--accent); }
.code-card .code-pass {
    font-family: var(--font-mono); font-size: var(--fs-sm);
    background: rgba(0,0,0,.3);
    padding: .18rem .55rem;
    border-radius: var(--radius-xs);
    color: var(--primary);
    letter-spacing: .06em;
}

.qr-box {
    background: #fff;
    padding: .65rem;
    border-radius: var(--radius-sm);
    display: inline-flex; line-height: 0;
    box-shadow: 0 0 0 1px var(--border), 0 0 32px rgba(184,200,232,.1);
}
.qr-box img { display: block; width: 150px; height: 150px; image-rendering: pixelated; }

/* ═════════════════════════════════════════════
   32. LEADERBOARD (cea)
   ═════════════════════════════════════════════ */
.lb-list { display: flex; flex-direction: column; gap: .4rem; }
.lb-row {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: .7rem 1rem;
    background: rgba(28,39,58,.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur-fast), transform var(--dur-fast), background var(--dur-fast);
}
.lb-row:hover { border-color: var(--border-firm); transform: translateX(3px); }
.lb-rank {
    width: 30px; flex-shrink: 0;
    font-family: var(--font-display); font-weight: 800;
    color: var(--accent); font-size: var(--fs-md);
    text-align: center;
}
.lb-row:nth-child(1) .lb-rank { color: #ffd76e; }
.lb-row:nth-child(2) .lb-rank { color: #d6dce8; }
.lb-row:nth-child(3) .lb-rank { color: #e0a173; }
.lb-row:nth-child(-n+3) { background: rgba(184,200,232,.05); border-color: rgba(184,200,232,.18); }
.lb-name { flex: 1; color: var(--snow); font-weight: 500; font-size: var(--fs-sm); min-width: 0;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stats { font-size: var(--fs-sm); color: var(--primary); font-weight: 700;
            font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ═════════════════════════════════════════════
   33. PAWSUIT — HELP BUTTON
   ═════════════════════════════════════════════ */
.help-button-xl {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
    width: 100%; max-width: 420px; margin: 0 auto;
    padding: 1.6rem 2rem;
    font-size: 1.6rem; font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: .04em; text-transform: uppercase;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244,118,123,.4);
    background: rgba(244,118,123,.1);
    color: var(--red);
    box-shadow: 0 0 26px rgba(244,118,123,.16);
    animation: pulse 2.4s ease-in-out infinite;
    cursor: pointer;
}
.help-button-xl:hover {
    background: var(--red); color: #fff;
    box-shadow: 0 8px 34px rgba(244,118,123,.36);
}
.help-button-xl:disabled { opacity: .6; cursor: default; animation: none; }

/* ═════════════════════════════════════════════
   34. UTILITIES
   ═════════════════════════════════════════════ */
.floating { animation: float 7s ease-in-out infinite; }
.glowing  { animation: glow  5s ease-in-out infinite; }
.fade-up  { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.fade-up:nth-child(1) { animation-delay: .04s; }
.fade-up:nth-child(2) { animation-delay: .08s; }
.fade-up:nth-child(3) { animation-delay: .12s; }
.fade-up:nth-child(4) { animation-delay: .16s; }
.fade-up:nth-child(5) { animation-delay: .2s; }
.fade-up:nth-child(6) { animation-delay: .24s; }

/* Scroll-reveal: JS adds .in when the element enters the viewport */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    animation: pulseRing 2s infinite;
}

.text-muted    { color: var(--accent); }
.text-soft     { color: var(--text-soft); }
.text-primary  { color: var(--primary); }
.text-snow     { color: var(--snow); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-warning  { color: var(--warning); }
.text-info     { color: var(--info); }
.text-gradient {
    background: linear-gradient(135deg, var(--snow) 0%, var(--glow-a) 55%, var(--glow-b) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase   { text-transform: uppercase; letter-spacing: .08em; }
.nowrap      { white-space: nowrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-0{margin-top:0;}.mt-05{margin-top:.25rem;}.mt-1{margin-top:.5rem;}.mt-2{margin-top:1rem;}
.mt-3{margin-top:1.5rem;}.mt-4{margin-top:2rem;}.mt-5{margin-top:3rem;}
.mb-0{margin-bottom:0;}.mb-05{margin-bottom:.25rem;}.mb-1{margin-bottom:.5rem;}
.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}.mb-4{margin-bottom:2rem;}.mb-5{margin-bottom:3rem;}

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-end    { display: flex; align-items: center; justify-content: flex-end; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1; min-width: 0; }
.items-start { align-items: flex-start; }
.gap-1{gap:.5rem;}.gap-2{gap:1rem;}.gap-3{gap:1.5rem;}.gap-4{gap:2rem;}

.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.divider {
    border: none; border-top: 1px solid var(--border);
    margin: var(--sp-5) 0; position: relative;
}
.divider::after {
    content: '';
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.scrollable { max-height: 380px; overflow-y: auto; padding-right: .3rem; }

.brand-mark {
    font-family: var(--font-display);
    font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--snow);
    font-size: var(--fs-sm);
}
.brand-mark span {
    background: linear-gradient(120deg, var(--glow-a), var(--glow-c));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 1px solid rgba(184,200,232,.25);
    border-radius: 13px; cursor: pointer;
    box-shadow: 0 0 12px rgba(184,200,232,.08);
}
.scroll-indicator::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%; transform: translateX(-50%);
    animation: scrollIndicator 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--primary);
}

/* ═════════════════════════════════════════════
   35. FOOTER
   ═════════════════════════════════════════════ */
footer {
    background: rgba(5,7,12,.94);
    text-align: center;
    padding: var(--sp-6) var(--sp-5);
    position: relative; z-index: 2;
    border-top: 1px solid var(--border-soft);
    margin-top: var(--sp-8);
}
/* Pushed to the bottom on short pages — see the flex column on body */
body > footer { margin-top: auto; }
footer::before {
    content: '';
    position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,200,232,.28), transparent);
}
footer p { color: var(--accent); font-size: var(--fs-sm); }
footer a { color: var(--primary); }

.footer-links {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: var(--sp-2) var(--sp-5);
    margin-bottom: var(--sp-4);
}
.footer-links a { font-size: var(--fs-sm); color: var(--accent); }
.footer-links a:hover { color: var(--snow); }

/* ═════════════════════════════════════════════
   36. RESPONSIVE
   ═════════════════════════════════════════════ */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        /* Fully opaque, and deliberately NO backdrop-filter here: the
           navbar above already establishes a backdrop root, and nesting a
           second filter inside it ghosts the page content through the
           panel even at 97% alpha. A nav drawer must be solid. */
        background: var(--ink-950);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: var(--sp-3);
        box-shadow: var(--shadow-lg);
        /* Collapsed by default; .open is set by the hamburger */
        display: none;
    }
    .nav-links.open { display: flex; animation: slideDown var(--dur) var(--ease-out); }
    .nav-link { padding: .7rem 1rem; justify-content: flex-start; }
    .dropdown { width: 100%; }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 var(--sp-3);
    }
}

@media (max-width: 768px) {
    .page-wrap  { padding: calc(var(--nav-h) + var(--sp-4)) var(--sp-4) var(--sp-6); }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .event-grid { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr 1fr; }
    .navbar     { padding: var(--sp-2) var(--sp-4); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .card       { padding: var(--sp-5); }
    table th, table td { padding: .58rem .75rem; }
    .toast-host { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); max-width: none; }
    .step-label { display: none; }
}

@media (max-width: 480px) {
    .option-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
    .modal       { padding: var(--sp-5); border-radius: var(--radius-lg); }
    .card        { padding: var(--sp-4); border-radius: var(--radius-md); }
    .btn, .button { padding: .62rem 1.2rem; }
    /* The blurred mesh is the single most expensive paint on a phone */
    body::before { display: none; }
    .hero::before, .hero::after { display: none; }
}

/* Wider screens get a roomier grid rather than just longer lines */
@media (min-width: 1400px) {
    .page-wrap.wide { max-width: 1560px; }
}

/* ═════════════════════════════════════════════
   37. MOTION & PRINT
   ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    /* Kill decorative loops outright rather than blanket-!important-ing
       every transition, which used to break the loader fade-out. */
    body::before,
    .navbar::after,
    .card-glow,
    .badge::after,
    .help-button-xl,
    .snowflake,
    .floating, .glowing,
    .hero::before, .hero::after,
    .progress.striped > i,
    .hl-gradient,
    .scroll-indicator::before {
        animation: none !important;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    /* The two spinners still need to spin — they signal "working". */
    .loader::before, .loader::after, .btn.is-loading::after {
        animation-duration: .9s !important;
        animation-iteration-count: infinite !important;
    }
}

@media print {
    body::before, body::after,
    .navbar, .nav-links, footer,
    #page-loader, .page-loader, #progress-bar, .progress-bar,
    .snowflake, .toast-host, .modal-overlay { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .table-wrap { border-color: #ccc; box-shadow: none; background: #fff; }
    a { color: #000; text-decoration: underline; }
    .page-wrap { padding-top: 0; max-width: none; }
}

/* Honour a forced-colors / high-contrast environment */
@media (forced-colors: active) {
    .btn, .card, .form-control, .nav-link { border: 1px solid ButtonBorder; }
    .hl-border::before, .hl-spot::after, body::before { display: none; }
}

/* 38. Refined product theme
   A quieter visual layer that keeps the existing markup and component API. */
:root {
    --background: #0d1117;
    --surface: #11161d;
    --surface-2: #171d25;
    --surface-3: #1d2530;
    --surface-sunk: #090d12;

    --card-bg: #121820;
    --card-bg-solid: #121820;
    --field-bg: #0f141b;
    --field-bg-focus: #111821;

    --snow: #f1f4f8;
    --text: #c5ced9;
    --text-soft: #a7b1bf;
    --accent: #8793a3;
    --text-dim: #687382;

    --primary: #8fb5e8;
    --primary-strong: #b7d0f1;
    --primary-dim: rgba(143, 181, 232, .10);
    --primary-glow: rgba(143, 181, 232, .14);
    --secondary: #293341;

    --border: #27303b;
    --border-soft: #202832;
    --border-firm: #35404d;
    --border-glow: #465568;

    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 14px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.22);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.20);
    --shadow-md: 0 8px 20px rgba(0,0,0,.22);
    --shadow-lg: 0 14px 32px rgba(0,0,0,.26);
    --shadow-xl: 0 22px 48px rgba(0,0,0,.30);
    --inset-hi: none;

    --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --dur-fast: .10s;
    --dur: .16s;
    --dur-slow: .22s;
    --ease-spring: cubic-bezier(.2, .8, .2, 1);

    --aurora-1: transparent;
    --aurora-2: transparent;
    --aurora-3: transparent;
}

body {
    background-color: var(--background);
    background-image: none;
    line-height: 1.58;
}

body::before,
body::after,
.hero::before,
.hero::after,
.navbar::after,
.card::before,
.feature-card::after,
.badge::after {
    display: none;
}

.snowflake { display: none; }

::selection {
    background: rgba(143, 181, 232, .24);
    color: var(--snow);
}

:focus-visible {
    outline-color: var(--primary);
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.015em;
    font-weight: 650;
}

h1, .hero-title { font-weight: 700; }

.eyebrow {
    color: var(--accent);
    letter-spacing: .12em;
}

.eyebrow::before { display: none; }

.hl-border::before,
.hl-spot::after { display: none; }

.hl-gradient,
.text-gradient,
.hero-title .accent-word,
.hero-title .accent,
.nav-logo span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary-strong);
    animation: none;
}

#progress-bar,
.progress-bar {
    height: 2px;
    background: var(--primary);
    animation: none;
    box-shadow: none;
}

.loader::before {
    border-top-color: var(--primary);
    border-right-color: var(--border-firm);
}

.loader::after {
    border-bottom-color: var(--accent);
    border-left-color: var(--border);
}

.navbar {
    background: rgba(13, 17, 23, .96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border);
    padding-inline: var(--sp-5);
}

.navbar.is-scrolled {
    background: rgba(13, 17, 23, .98);
    box-shadow: 0 1px 0 rgba(255,255,255,.02);
}

.nav-logo {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .10em;
}

.nav-logo::after { display: none; }

.nav-link {
    color: var(--text-soft);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--snow);
    background: var(--surface-2);
    border-color: transparent;
    box-shadow: none;
}

.nav-link.active {
    color: var(--snow);
    background: var(--surface-3);
    border-color: var(--border);
    box-shadow: none;
}

.nav-link.primary {
    background: var(--primary);
    color: #0c1118;
    border-color: var(--primary);
    box-shadow: none;
}

.nav-link.primary:hover {
    background: var(--primary-strong);
    color: #0c1118;
    transform: none;
    box-shadow: none;
}

.hero {
    min-height: min(760px, 100dvh);
    overflow: visible;
}

.hero-title {
    letter-spacing: -.035em;
    line-height: 1.05;
    max-width: 18ch;
}

.hero-subtitle {
    color: var(--text-soft);
    line-height: 1.65;
}

.btn, .button {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                opacity var(--dur-fast) var(--ease);
}

.btn::before, .button::before,
.btn::after, .button::after { display: none; }

.btn:active, .button:active,
.btn:hover, .button:hover { transform: none; }

.btn-primary, .button {
    background: var(--primary);
    color: #0c1118;
    border-color: var(--primary);
    box-shadow: none;
}

.btn-primary:hover, .button:hover {
    background: var(--primary-strong);
    color: #0c1118;
    box-shadow: none;
}

.btn-accent {
    background: #6f94c5;
    color: #081018;
    border-color: #6f94c5;
    box-shadow: none;
}

.btn-accent:hover {
    background: #85a7d3;
    color: #081018;
    box-shadow: none;
}

.btn-outline {
    border-color: var(--border-firm);
    color: var(--text);
}

.btn-outline:hover {
    border-color: #536070;
    background: var(--surface-2);
    color: var(--snow);
    box-shadow: none;
}

.btn-ghost:hover { background: var(--surface-2); }

.btn-danger:hover,
.btn-success:hover { box-shadow: none; transform: none; }

.card,
.feature-card,
.stat-card,
.event-card,
.email-preview,
.table-wrap {
    background: var(--card-bg);
    border-color: var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.card,
.feature-card { border-radius: var(--radius-md); }

.card:hover,
.feature-card:hover,
.event-card:hover,
.stat-card:hover {
    transform: none;
    border-color: var(--border-firm);
    box-shadow: none;
}

.card-glow {
    border-color: var(--border-firm);
    box-shadow: none;
    animation: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border-color: var(--border);
}

.feature-card .feature-go { color: var(--primary); }
.feature-card:hover .feature-go::after { transform: none; }

.form-label {
    color: var(--text-soft);
    letter-spacing: .04em;
    text-transform: none;
    font-weight: 600;
}

.form-control {
    background: var(--field-bg);
    border-color: var(--border-firm);
    border-radius: var(--radius-sm);
}

.form-control:hover:not(:focus) { border-color: #465260; }

.form-control:focus {
    border-color: var(--primary);
    background: var(--field-bg-focus);
    box-shadow: 0 0 0 3px rgba(143,181,232,.11);
}

.form-control.is-invalid { box-shadow: 0 0 0 3px rgba(244,118,123,.08); }

.switch input:checked + .switch-track {
    background: var(--primary);
    border-color: var(--primary);
}

.auth-box { animation: none; }

.auth-divider::before,
.auth-divider::after { background: var(--border); }

.google-btn {
    background: var(--surface-2);
    border-color: var(--border-firm);
}

.google-btn:hover {
    background: var(--surface-3);
    border-color: #465260;
    box-shadow: none;
}

.stat-card { animation: none; }
.stat-card::before { display: none; }

.tabs,
.segmented {
    background: var(--surface-sunk);
    border-color: var(--border);
}

.tab.active,
.segmented button.active,
.segmented .active {
    background: var(--surface-3);
    box-shadow: none;
}

.tab-pane.active { animation: none; }

.table-wrap { border-radius: var(--radius-md); }

table tbody tr:hover { background: rgba(255,255,255,.025); }

.badge,
.tag,
.chip { box-shadow: none; }

.badge-primary,
.badge-info {
    background: rgba(143,181,232,.10);
    border-color: rgba(143,181,232,.24);
    color: #abc7eb;
}

.avatar {
    background: var(--surface-3);
    box-shadow: none;
}

.avatar-online { box-shadow: 0 0 0 2px var(--background); }

.alert { box-shadow: none; }

.toast {
    background: #171d25;
    border-color: var(--border-firm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-md);
    animation: none;
}

.modal-overlay {
    background: rgba(0, 0, 0, .68);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal {
    background: var(--surface);
    border-color: var(--border-firm);
    box-shadow: var(--shadow-xl);
}

.modal::before { display: none; }

.dropdown-menu {
    background: var(--surface-2);
    border-color: var(--border-firm);
    box-shadow: var(--shadow-md);
}

.dropdown.open .dropdown-menu { animation: none; }

.skeleton {
    background: var(--surface-3);
    animation: none;
}

.progress-track { background: var(--surface-3); }
.progress-fill {
    background: var(--primary);
    animation: none;
}

.event-card::after { display: none; }
.event-cover {
    background: #1b2430;
}
.event-cover::after { background: linear-gradient(180deg, transparent 65%, rgba(13,17,23,.70)); }

.step-line,
.step-progress { background: var(--border-firm); }
.step-progress.is-complete { background: var(--primary); }

.step-dot.active,
.step-dot.complete {
    background: var(--primary);
    box-shadow: none;
}

.attendee-avatar { background: var(--surface-3); }
.attendee-item:hover .attendee-avatar { box-shadow: none; }

.sec-header::after { display: none; }

.email-preview { background: var(--surface); }

.lb-row:hover { box-shadow: none; transform: none; }

.help-button-xl {
    box-shadow: none;
    animation: none;
}
.help-button-xl:hover { box-shadow: none; transform: none; }

.floating,
.glowing,
.fade-up { animation: none; }

.status-dot.online { animation: none; }

footer {
    background: #090d12;
    border-top: 1px solid var(--border);
}

.footer-logo span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary-strong);
}

.scroll-indicator { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .btn,
    .button,
    .nav-link,
    .card,
    .feature-card,
    .form-control,
    .dropdown-item {
        transition-duration: var(--dur-fast);
    }
}
