/* ============================================================
   TYRONE TRADING — DESIGN TOKENS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bg: #050505;
  --bg-1: #080808;
  --bg-2: #0c0c0c;
  --bg-3: #111111;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #F5F5F5;
  --text-dim: #B5B5B5;
  --text-mute: #888888;
  --text-faint: #555555;

  /* Accents */
  --acid: #B7FF1A;
  --acid-soft: rgba(183, 255, 26, 0.18);
  --acid-glow: rgba(183, 255, 26, 0.45);
  --cyan: #4FE7D5;
  --cyan-glow: rgba(79, 231, 213, 0.45);
  --gold: #FFCB52;
  --gold-glow: rgba(255, 203, 82, 0.5);
  --blue: #5AC8FF;
  --blue-glow: rgba(90, 200, 255, 0.5);
  --red: #FF5A5A;

  /* Geo palette (matches the elegant-shape inspiration) */
  --indigo: #6366F1;
  --indigo-glow: rgba(99, 102, 241, 0.45);
  --rose: #F43F5E;
  --rose-glow: rgba(244, 63, 94, 0.45);
  --violet: #8B5CF6;
  --violet-glow: rgba(139, 92, 246, 0.45);
  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.45);

  /* Radii */
  --r-chip: 16px;
  --r-card: 22px;
  --r-card-lg: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px var(--line) inset;
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px var(--line) inset;

  /* Spacing scale not strictly used, but for reference */
  --container: 1240px;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --chip-rotate {
  syntax: '<angle>';
  initial-value: -15deg;
  inherits: false;
}

/* ============================================================
   FLOAT CHIP — entry animation + scroll-driven scale
   ============================================================ */

.float-chip-wrap {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.float-chip-wrap-rel { position: relative; }

.float-chip-wrap.chip-revealed {
  animation: chip-entry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
}

@keyframes chip-entry {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(var(--chip-rotate, -15deg));
  }
  50% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.float-chip-scale {
  display: inline-block;
  transform: scale(calc(var(--scroll-scale, 1) * var(--chip-boost, 1)));
  transform-origin: center;
  transition: transform 0.18s linear;
  pointer-events: auto;
}

/* When .hero-float is wrapped in float-chip-wrap, override the dark card look
   with the elegant-shape pill style (gradient + soft glow + inner highlight) */
.float-chip-wrap .hero-float {
  position: relative;
  top: auto; left: auto; right: auto; bottom: auto;
  padding: 16px 26px 16px 14px;
  background:
    linear-gradient(to right, var(--chip-color, rgba(99,102,241,0.18)), rgba(12, 12, 14, 0.55)),
    rgba(12, 12, 14, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Replace top-edge highlight with full inner radial (3D specular feel) */
.float-chip-wrap .hero-float::before {
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
  padding: 0;
  -webkit-mask: none;
          mask: none;
  inset: 0;
  z-index: 0;
}

/* Keep chip content above the radial highlight */
.float-chip-wrap .hero-float > * {
  position: relative;
  z-index: 1;
}

/* Override per-color box-shadows: soft white shadow + colored halo */
.float-chip-wrap .hf-acid,
.float-chip-wrap .hf-cyan,
.float-chip-wrap .hf-blue,
.float-chip-wrap .hf-gold,
.float-chip-wrap .hf-indigo,
.float-chip-wrap .hf-rose,
.float-chip-wrap .hf-violet,
.float-chip-wrap .hf-amber {
  box-shadow:
    0 14px 40px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--chip-glow, rgba(99,102,241,0.5)),
    0 0 70px var(--chip-glow, rgba(99,102,241,0.4));
}

/* Per-color gradient + glow tokens */
.float-chip-wrap .hf-acid   { --chip-color: rgba(183, 255, 26, 0.32); --chip-glow: rgba(183, 255, 26, 0.45); }
.float-chip-wrap .hf-cyan   { --chip-color: rgba(79, 231, 213, 0.32); --chip-glow: rgba(79, 231, 213, 0.45); }
.float-chip-wrap .hf-blue   { --chip-color: rgba(90, 200, 255, 0.32); --chip-glow: rgba(90, 200, 255, 0.45); }
.float-chip-wrap .hf-gold   { --chip-color: rgba(255, 203, 82, 0.32); --chip-glow: rgba(255, 203, 82, 0.45); }
.float-chip-wrap .hf-indigo { --chip-color: rgba(99, 102, 241, 0.38); --chip-glow: rgba(99, 102, 241, 0.55); }
.float-chip-wrap .hf-rose   { --chip-color: rgba(244, 63, 94, 0.38);  --chip-glow: rgba(244, 63, 94, 0.55);  }
.float-chip-wrap .hf-violet { --chip-color: rgba(139, 92, 246, 0.38); --chip-glow: rgba(139, 92, 246, 0.55); }
.float-chip-wrap .hf-amber  { --chip-color: rgba(245, 158, 11, 0.38); --chip-glow: rgba(245, 158, 11, 0.55); }

/* Larger chip variant */
.float-chip-wrap .scatter-chip-lg {
  padding: 22px 36px 22px 18px;
  gap: 16px;
}
.float-chip-wrap .scatter-chip-lg .hf-brand { width: 80px; height: 38px; border-radius: 10px; }
.float-chip-wrap .scatter-chip-lg .hf-icon  { width: 42px; height: 42px; border-radius: 13px; }
.float-chip-wrap .scatter-chip-lg .hf-line  { font-size: 11.5px; }
.float-chip-wrap .scatter-chip-lg .hf-val   { font-size: 15.5px; }

/* Brighter, more legible text inside the floating chips */
.float-chip-wrap .hf-line {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.float-chip-wrap .hf-val {
  color: #ffffff;
  font-weight: 700;
}

/* Hover: intensify the gradient instead of going dark */
.float-chip-wrap .hero-float:hover {
  background: linear-gradient(to right, var(--chip-glow, rgba(99,102,241,0.3)), transparent) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  animation-play-state: paused;
}
.float-chip-wrap .hero-float:hover .hf-line,
.float-chip-wrap .hero-float:hover .hf-val,
.float-chip-wrap .hero-float:hover .hf-val span { color: #ffffff; }

@media (max-width: 900px) {
  .float-chip-wrap { display: none; }
}

/* ============================================================
   LEARN GRID — puzzle snap glow pulse
   ============================================================ */

.learn-grid { perspective: 1200px; }

.learn-card { will-change: transform; }

/* Premium halo — matches the stat-grid pulse for visual consistency */
.learn-card.glow-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 40px rgba(255, 255, 255, 0.10),
    0 0 90px rgba(183, 255, 26, 0.08);
  opacity: 0;
  animation: card-snap-glow 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 3;
}

@keyframes card-snap-glow {
  0%   { opacity: 0; }
  28%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Reduced motion: skip puzzle entry + pulse */
@media (prefers-reduced-motion: reduce) {
  .learn-card.glow-pulse::after { display: none; }
}

/* ============================================================
   STAT GRID — premium glow pulse after assembly
   ============================================================ */

.stat-wrap {
  position: relative;
  will-change: transform;
}

.stat-wrap.stat-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 40px rgba(255, 255, 255, 0.10),
    0 0 90px rgba(183, 255, 26, 0.08);
  opacity: 0;
  animation: stat-snap-glow 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 3;
}

@keyframes stat-snap-glow {
  0%   { opacity: 0; }
  28%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-wrap.stat-pulse::after { display: none; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  /* Reserve room for the floating fixed navbar so content doesn't slide under it. */
  padding-top: 76px;
}

/* Subtle vignette + film grain on whole app */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(183,255,26,0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(90,200,255,0.04), transparent 70%);
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 1;
}

#root { position: relative; z-index: 2; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.5vw, 92px); letter-spacing: -0.035em; font-weight: 900; }
h2 { font-size: clamp(34px, 4.5vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; color: var(--text-dim); }
.lead { font-size: 18px; color: var(--text-dim); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 10px var(--acid-glow);
}
.acid { color: var(--acid); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  position: relative;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-acid {
  background: linear-gradient(180deg, #C8FF35 0%, #A8F00B 100%);
  color: #000000;
  border-color: transparent;
  box-shadow:
    0 0 14px rgba(183,255,26,0.22),
    0 0 36px rgba(183,255,26,0.14);
  position: relative;
  overflow: visible;
}
.btn-acid::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(183,255,26,0.28), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}
.btn-acid:hover {
  transform: translateY(-3px) scale(1.015);
  background: linear-gradient(180deg, #DCFF55 0%, #B7FF1A 100%);
  box-shadow:
    0 0 22px rgba(183,255,26,0.38),
    0 0 52px rgba(183,255,26,0.22);
}
.btn-acid:hover::before {
  background: radial-gradient(ellipse at center, rgba(183,255,26,0.45), transparent 70%);
}
.btn-acid:active {
  transform: translateY(-1px) scale(0.99);
  background: linear-gradient(180deg, #9DE000 0%, #8FC900 100%);
  box-shadow:
    0 0 10px rgba(183,255,26,0.22),
    0 0 28px rgba(183,255,26,0.14);
}

.btn-ghost {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  transform: translateY(-3px) scale(1.015);
  background: linear-gradient(180deg, #333333 0%, #1f1f1f 100%);
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 20px rgba(255,255,255,0.10),
    0 0 50px rgba(255,255,255,0.05);
}

.btn-light {
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(255,255,255,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-light:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 36px rgba(255,255,255,0.20), inset 0 1px 0 rgba(255,255,255,0.7);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 15px; }

.btn-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: currentColor; color: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: -6px;
}
.btn-arrow svg { width: 12px; height: 12px; }
.btn-acid .btn-arrow {
  background: transparent;
  color: #050505;
  box-shadow: none;
  width: 16px; height: 16px;
  margin-right: 2px;
}
.btn-acid .btn-arrow svg { width: 14px; height: 14px; stroke-width: 2.5; }
.btn-light .btn-arrow { background: #0a0a0a; color: #fff; }
.btn-ghost .btn-arrow { background: rgba(255,255,255,0.12); color: var(--text); }

/* Icon-only round button */
.btn-circle {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
}
.btn-circle:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--line-2); }
.card-pad-lg { padding: 36px; }
.card-pad-xl { padding: 48px; }

.card-glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
}

/* Subtle inner top-edge highlight on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

/* ============================================================
   ICON CHIPS with ELECTRIC BORDER ANIMATION
   ============================================================ */

.icon-chip {
  --c: var(--acid);
  --c-glow: var(--acid-glow);
  width: 54px;
  height: 54px;
  border-radius: var(--r-chip);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 60%, rgba(0,0,0,0.15) 100%),
    linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 8px 24px rgba(0,0,0,0.55),
    0 0 0 1px var(--line),
    0 0 0 1px rgba(255,255,255,0.06);
  color: var(--c);
  transition: transform 0.25s ease, box-shadow 0.35s;
  isolation: isolate;
}
.icon-chip.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-chip svg { width: 24px; height: 24px; z-index: 2; }
.icon-chip.lg svg { width: 28px; height: 28px; }

/* Inner glow halo — breathing */
.icon-chip::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 40% 30%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(circle at center, var(--c-glow), transparent 65%);
  opacity: 0.4;
  filter: blur(10px);
  z-index: 0;
  animation: glass-breathe 4s ease-in-out infinite;
}

/* Glass sweep border */
.icon-chip::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--r-chip) + 1.5px);
  padding: 2px;
  background:
    conic-gradient(
      from var(--angle),
      transparent 0%,
      transparent 55%,
      rgba(255,255,255,0.4) 68%,
      var(--c) 78%,
      transparent 92%,
      transparent 100%
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-angle 8s linear infinite;
  filter: blur(0.5px);
  opacity: 0.65;
  z-index: 1;
}

@keyframes spin-angle {
  to { --angle: 360deg; }
}

@keyframes glass-breathe {
  0%, 100% { opacity: 0.3; transform: scale(0.88); }
  50%       { opacity: 0.55; transform: scale(1.18); }
}

.icon-chip:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 10px 30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 24px var(--c-glow);
}
.icon-chip:hover::after {
  opacity: 0.9;
  filter: blur(0px) drop-shadow(0 0 8px var(--c-glow));
}

/* Color variants */
.icon-chip.acid   { --c: var(--acid);  --c-glow: var(--acid-glow); }
.icon-chip.cyan   { --c: var(--cyan);  --c-glow: var(--cyan-glow); }
.icon-chip.gold   { --c: var(--gold);  --c-glow: var(--gold-glow); }
.icon-chip.blue   { --c: var(--blue);  --c-glow: var(--blue-glow); }
.icon-chip.rose   { --c: var(--rose);  --c-glow: var(--rose-glow); }
.icon-chip.violet { --c: #A78BFA;       --c-glow: rgba(139,92,246,0.45); }
.icon-chip.amber  { --c: #F59E0B;       --c-glow: rgba(245,158,11,0.45); }

/* ============================================================
   ELECTRIC BORDER WRAPPER (for cards)
   ============================================================ */

/* Subtle premium glow — no animated line, just a soft ambient
   border-glow accented in the firm's color. Replaces the previous
   spinning conic line. */
.eborder {
  --c: var(--acid);
  --c-glow: var(--acid-glow);
  position: relative;
  isolation: isolate;
  border-color: color-mix(in oklab, var(--c) 35%, transparent) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--c) 18%, transparent) inset,
    0 0 36px color-mix(in oklab, var(--c) 12%, transparent),
    0 0 80px color-mix(in oklab, var(--c) 6%, transparent);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.eborder::before {
  /* Soft top edge highlight — replaces the spinning border animation */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--c) 45%, transparent) 0%, transparent 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.eborder:hover {
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px color-mix(in oklab, var(--c) 28%, transparent) inset,
    0 0 50px color-mix(in oklab, var(--c) 20%, transparent),
    0 0 100px color-mix(in oklab, var(--c) 10%, transparent);
}
.eborder.acid { --c: var(--acid); --c-glow: var(--acid-glow); }
.eborder.cyan { --c: var(--cyan); --c-glow: var(--cyan-glow); }
.eborder.gold { --c: var(--gold); --c-glow: var(--gold-glow); }
.eborder.blue { --c: var(--blue); --c-glow: var(--blue-glow); }

/* ============================================================
   PILL / TAG / BADGE
   ============================================================ */

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid-glow); }
.tag.acid { color: var(--acid); border-color: rgba(183,255,26,0.3); background: rgba(183,255,26,0.06); }
.tag.cyan { color: var(--cyan); border-color: rgba(79,231,213,0.3); background: rgba(79,231,213,0.06); }
.tag.gold { color: var(--gold); border-color: rgba(255,203,82,0.3); background: rgba(255,203,82,0.06); }
.tag.blue { color: var(--blue); border-color: rgba(90,200,255,0.3); background: rgba(90,200,255,0.06); }
.tag.red  { color: var(--red);  border-color: rgba(255,90,90,0.3); background: rgba(255,90,90,0.06); }
.tag.rose { color: var(--rose); border-color: rgba(244,63,94,0.32); background: rgba(244,63,94,0.07); }
.tag.violet { color: var(--violet, #A78BFA); border-color: rgba(139,92,246,0.32); background: rgba(139,92,246,0.07); }
.tag.amber { color: var(--amber, #F59E0B); border-color: rgba(245,158,11,0.32); background: rgba(245,158,11,0.07); }

/* ============================================================
   BUTTON — glassy hover with cursor-tracking circle particles
   ============================================================ */
.btn.btn-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  border: none;
  outline: none;
  background: rgba(43, 55, 80, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  padding: 14px 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
  --circle-start: #A0D9F8;
  --circle-end:   #3A5BBF;
}
.btn.btn-glass:hover { transform: translateY(-1px); }

.btn.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(170, 202, 255, 0.22),
    inset 0 0 16px 0 rgba(170, 202, 255, 0.12),
    inset 0 -3px 12px 0 rgba(170, 202, 255, 0.18),
    0 1px 3px 0 rgba(0, 0, 0, 0.50),
    0 4px 14px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.3s;
}
.btn.btn-glass:active::before { transform: scale(0.975); }

.btn.btn-glass .btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn.btn-glass .btn-arrow,
.btn.btn-glass.btn-acid .btn-arrow,
.btn.btn-glass.btn-ghost .btn-arrow,
.btn.btn-glass.btn-rose  .btn-arrow {
  width: auto; height: auto;
  background: transparent !important;
  color: currentColor;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn.btn-glass .btn-arrow svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* Circle particles */
.btn.btn-glass .btn-spark {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn.btn-glass .btn-spark.btn-circle-in  { opacity: 0.75; }
.btn.btn-glass .btn-spark.btn-circle-out { opacity: 0; transition-duration: 1.2s; }

/* ELITE / ACID — subtle neon green tint on top of glass */
.btn.btn-glass.btn-acid {
  --circle-start: #DCFF7A;
  --circle-end:   #6FB300;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #C9FF45 0%, #B7FF1A 55%, #9EE800 100%);
  color: #0a0a0a;
  font-weight: 700;
}
.btn.btn-glass.btn-acid::before {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(80, 120, 0, 0.4),
    inset 0 -10px 22px 0 rgba(120, 180, 0, 0.25),
    0 1px 3px 0 rgba(0, 0, 0, 0.45),
    0 8px 24px 0 rgba(183, 255, 26, 0.35),
    0 0 36px rgba(183, 255, 26, 0.45);
}
.btn.btn-glass.btn-acid::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--angle),
    transparent 0%,
    transparent 55%,
    rgba(255,255,255,0.9) 68%,
    rgba(255,255,255,0.4) 78%,
    transparent 92%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  animation: spin-angle 6s linear infinite;
  opacity: 0.75;
}
.btn.btn-glass.btn-acid:hover {
  box-shadow: 0 0 50px rgba(183, 255, 26, 0.55);
}
.btn.btn-glass.btn-acid .btn-arrow svg {
  stroke-width: 3 !important;
  width: 16px; height: 16px;
}

/* GHOST — light silver metallic (matches reference "Get In Touch" pill) */
.btn.btn-glass.btn-ghost {
  --circle-start: #ffffff;
  --circle-end:   #888888;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #c8c8c8 0%, #9c9c9c 50%, #6f6f6f 100%);
  color: #0d0d0d;
  font-weight: 600;
}
.btn.btn-glass.btn-ghost::before {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 0 rgba(0, 0, 0, 0.30),
    inset 0 -10px 22px 0 rgba(0, 0, 0, 0.20),
    0 1px 3px 0 rgba(0, 0, 0, 0.45),
    0 8px 22px 0 rgba(0, 0, 0, 0.45);
}
.btn.btn-glass.btn-ghost:hover {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.22) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #dadada 0%, #b0b0b0 50%, #7d7d7d 100%);
}
.btn.btn-glass.btn-ghost .btn-arrow {
  color: #0d0d0d !important;
}
.btn.btn-glass.btn-ghost .btn-arrow svg {
  stroke-width: 2.5;
  stroke: #0d0d0d;
}

/* ROSE accent variant (used sparingly) */
.btn.btn-glass.btn-rose {
  --circle-start: #FFC4CE;
  --circle-end:   #B81335;
  background: rgba(50, 5, 15, 0.18);
  color: #FFD4DC;
}
.btn.btn-glass.btn-rose::before {
  box-shadow:
    inset 0 0 0 1px rgba(244, 63, 94, 0.42),
    inset 0 0 18px 0 rgba(244, 63, 94, 0.22),
    inset 0 -3px 14px 0 rgba(244, 63, 94, 0.30),
    0 1px 3px 0 rgba(0, 0, 0, 0.45),
    0 4px 16px 0 rgba(0, 0, 0, 0.40),
    0 0 24px rgba(244, 63, 94, 0.20);
}

/* Size variants override */
.btn.btn-glass.btn-sm { padding: 9px 18px;  font-size: 13px; border-radius: 14px; }
.btn.btn-glass.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: 22px; }

.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,90,90,0.12);
  border: 1px solid rgba(255,90,90,0.35);
  color: #FF8585;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse-live 1.6s infinite; }
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   INPUTS
   ============================================================ */

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--acid);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(183,255,26,0.08);
}
.textarea { resize: vertical; min-height: 100px; }
.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

/* ============================================================
   FLOATING GLASS CHIP (used in hero + about portrait)
   ============================================================ */

.hero-float {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 11px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%),
    rgba(10,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  animation: float-y 8s ease-in-out infinite;
}
.hero-float:hover {
  background: linear-gradient(180deg, #3a3a3a 0%, #1f1f1f 100%);
  border-color: rgba(255,255,255,0.3);
  animation-play-state: paused;
}
.hero-float:hover .hf-line,
.hero-float:hover .hf-val,
.hero-float:hover .hf-val span { color: #F5F5F5; }
.hero-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hf-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.hf-brand {
  width: 64px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid;
  overflow: hidden; flex-shrink: 0;
}
.hf-brand img { width: 88%; height: 80%; object-fit: contain; display: block; }
.hf-text { display: flex; flex-direction: column; gap: 2px; }
.hf-line { font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.hf-val { font-size: 13px; color: var(--text); font-weight: 600; transition: color 0.2s; }
.hf-acid { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(183,255,26,0.16), 0 0 36px rgba(183,255,26,0.18); }
.hf-cyan { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(79,231,213,0.16), 0 0 36px rgba(79,231,213,0.18); }
.hf-blue { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(90,200,255,0.18), 0 0 36px rgba(90,200,255,0.22); }
.hf-gold   { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(255,203,82,0.18), 0 0 36px rgba(255,203,82,0.22); }
.hf-indigo { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(99,102,241,0.22), 0 0 40px rgba(99,102,241,0.28); }
.hf-rose   { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(244,63,94,0.22),  0 0 40px rgba(244,63,94,0.28); }
.hf-violet { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(139,92,246,0.22), 0 0 40px rgba(139,92,246,0.28); }
.hf-amber  { box-shadow: 0 22px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(245,158,11,0.22), 0 0 40px rgba(245,158,11,0.28); }

/* Scatter chip — version used across the site sections */
.scatter-chip { z-index: 3; }
.scatter-chip-sm { padding: 8px 14px 8px 8px; gap: 9px; }
.scatter-chip-sm .hf-icon { width: 26px; height: 26px; border-radius: 9px; }
.scatter-chip-sm .hf-line { font-size: 9px; }
.scatter-chip-sm .hf-val { font-size: 11.5px; }
.scatter-chip-sm .hf-brand { width: 50px; height: 24px; border-radius: 6px; }

@media (max-width: 1200px) {
  .scatter-chip { display: none; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ============================================================
   ANIMATIONS — fade-in on scroll
   ============================================================ */

/* Reveal — no animation. Cards appear immediately. */
.reveal { opacity: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; } .mb-6 { margin-bottom: 64px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

::selection { background: var(--acid); color: #050505; }

/* ============================================================
   ELITE COUNTDOWN — section above the weekly schedule
   ============================================================ */
.elite-countdown {
  position: relative;
  margin: 28px 0 36px;
  padding: 28px 32px;
  border-radius: var(--r-card-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(183,255,26,0.06), transparent 60%),
    rgba(0,0,0,0.4);
  border: 1px solid rgba(183,255,26,0.18);
  box-shadow: 0 0 24px rgba(183,255,26,0.10), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
}
.elite-countdown.is-live {
  border-color: rgba(255,90,90,0.45);
  box-shadow: 0 0 40px rgba(255,90,90,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}
.elite-countdown::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(183,255,26,0.18), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}
.elite-countdown-inner { position: relative; z-index: 1; }
.ec-head { display: flex; align-items: center; gap: 10px; }
.ec-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 10px var(--acid-glow);
}
.ec-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #FF5A5A;
  box-shadow: 0 0 14px rgba(255,90,90,0.7);
  animation: ec-pulse 1.4s infinite;
}
@keyframes ec-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(0.65); opacity: 0.5; }
}
.ec-title {
  margin-top: 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ec-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.ec-grid {
  margin-top: 20px;
  display: flex; align-items: flex-end; gap: 6px;
  flex-wrap: wrap;
}
.ec-cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 88px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ec-lbl {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ec-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  color: var(--text-faint);
  padding: 0 2px;
  align-self: center;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .elite-countdown { padding: 22px 20px; }
  .ec-cell { min-width: 64px; padding: 10px 12px; }
  .ec-sep  { font-size: 20px; margin-bottom: 14px; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.ap-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .ap-shell { grid-template-columns: 1fr; }
}

.ap-side {
  padding: 22px;
  border-radius: var(--r-card-lg);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 16px;
}
.ap-side-user {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ap-side-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(183,255,26,0.12);
  color: var(--acid);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ap-side-name { font-size: 13px; font-weight: 600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-side-mail { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.ap-side-nav { display: flex; flex-direction: column; gap: 4px; }
.ap-side-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-side-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.ap-side-btn.active {
  background: rgba(183,255,26,0.08);
  color: var(--acid);
  border-color: rgba(183,255,26,0.25);
}
.ap-side-back {
  margin-top: auto;
  color: var(--text-mute);
  font-size: 12px;
}

.ap-main { min-width: 0; }

.ap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 760px) { .ap-stats { grid-template-columns: repeat(2, 1fr); } }
.ap-stat { padding: 20px 22px; }
.ap-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ap-stat-value {
  margin-top: 6px;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em;
}

.ap-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 880px) { .ap-row-2 { grid-template-columns: 1fr; } }

.ap-section-head {
  display: flex; justify-content: space-between; align-items: center;
}
.ap-link {
  background: transparent; border: none; color: var(--acid);
  font-family: inherit; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 6px;
}
.ap-link:hover { background: rgba(183,255,26,0.08); }

.ap-mini-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}
.ap-mini-unread { border-left: 3px solid var(--acid); }
.ap-mini-title { font-size: 13px; font-weight: 500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-mini-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-mini-time { font-size: 11px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }

.ap-toolbar {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.ap-search {
  flex: 1; min-width: 220px; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ap-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 13px;
}
.ap-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ap-filter-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); font-family: 'JetBrains Mono', monospace;
}
.ap-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit; font-size: 13px;
  padding: 8px 10px;
  cursor: pointer;
}

.ap-table-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: auto;
  backdrop-filter: blur(12px);
}
.ap-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.ap-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
.ap-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.ap-table tbody tr:last-child td { border-bottom: none; }
.ap-mono-cell { font-size: 12px; color: var(--text-dim); }

.ap-row-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-grid; place-items: center;
  transition: all 0.2s;
}
.ap-row-btn:hover { color: var(--acid); border-color: var(--line-2); background: rgba(183,255,26,0.06); }

.ap-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.ap-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-mute);
}
.ap-error {
  padding: 14px 18px;
  background: rgba(255,90,90,0.08);
  border: 1px solid rgba(255,90,90,0.3);
  border-radius: 12px;
  color: #FF8585;
  font-size: 13px;
}

/* Pills */
.ap-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: inherit; font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
}
.ap-pill:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }
.ap-pill.active {
  background: var(--acid); color: #050505; border-color: var(--acid);
}
.ap-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.ap-pill-static {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 10px;
  text-transform: uppercase;
}

/* Modals (admin) */
.ap-modal {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  animation: rise 0.3s cubic-bezier(.2,.7,.2,1);
}
.ap-modal-md { max-width: 700px; }
.ap-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.ap-modal-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px;
  padding: 24px 28px;
}
@media (max-width: 880px) { .ap-modal-grid { grid-template-columns: 1fr; } }
.ap-modal-col { display: flex; flex-direction: column; }

.ap-kv {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 10px;
}
.ap-kv > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  font-size: 13px;
}
.ap-kv > div > span { color: var(--text-mute); }
.ap-kv > div > b    { color: var(--text); font-weight: 500; }

.ap-action-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 0;
}
.ap-days-input { width: 90px; }
.ap-help { margin-top: 6px; font-size: 12px; color: var(--text-mute); }

.ap-note {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ap-note-text { font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.ap-note-date {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-mute);
}

/* Notifications */
.ap-notif {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
.ap-notif.unread { border-left: 3px solid var(--acid); background: rgba(183,255,26,0.04); }
.ap-notif-msg { font-size: 14px; }
.ap-notif-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.ap-notif-read { font-size: 11px; color: var(--text-mute); letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   AUTH MODAL — gradient card with acid-green palette
   (extracted from page-auth.jsx so other components can reuse
    the popup styles even when AuthModal isn't mounted.)
   ============================================================ */
.amx-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #000;
  animation: amx-fade-in 0.3s ease;
}
@keyframes amx-fade-in { from { opacity: 0; } to { opacity: 1; } }

.amx-atmos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.amx-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(183, 255, 26, 0.04) 0%, rgba(143, 224, 0, 0.02) 30%, #000 100%);
}
.amx-noise {
  position: absolute; inset: 0;
  opacity: 0.04; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.amx-blob {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 120vh; height: 60vh; filter: blur(100px); opacity: 0.18;
}
.amx-blob-top {
  top: 0;
  background: radial-gradient(ellipse at top, rgba(183, 255, 26, 0.18) 0%, transparent 70%);
  border-radius: 0 0 50% 50%;
  animation: amx-blob-pulse 10s ease-in-out infinite;
}
.amx-blob-bot {
  bottom: 0; width: 90vh; height: 90vh;
  background: radial-gradient(ellipse at bottom, rgba(79, 231, 213, 0.10) 0%, transparent 70%);
  border-radius: 50% 50% 0 0;
  animation: amx-blob-pulse 8s ease-in-out infinite 1s;
}
@keyframes amx-blob-pulse {
  0%, 100% { opacity: 0.12; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.20; transform: translateX(-50%) scale(1.04); }
}
.amx-close {
  position: fixed; top: 22px; right: 22px; z-index: 110;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.amx-close:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.30); transform: scale(1.05); }

.amx-card-wrap {
  position: relative; z-index: 5;
  width: 100%; max-width: 400px;
  animation: amx-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
@keyframes amx-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.amx-beams { position: absolute; inset: -2px; border-radius: 22px; overflow: hidden; pointer-events: none; }
.amx-beam { position: absolute; opacity: 0.7; filter: blur(2px); }
.amx-beam-top    { top: 0; left: -50%; height: 3px; width: 50%; background: linear-gradient(90deg, transparent, var(--acid, #B7FF1A), transparent); animation: amx-beam-h 3.5s ease-in-out infinite; }
.amx-beam-right  { top: -50%; right: 0; width: 3px; height: 50%; background: linear-gradient(180deg, transparent, var(--acid, #B7FF1A), transparent); animation: amx-beam-v 3.5s ease-in-out infinite 0.7s; }
.amx-beam-bottom { bottom: 0; right: -50%; height: 3px; width: 50%; background: linear-gradient(90deg, transparent, var(--acid, #B7FF1A), transparent); animation: amx-beam-h-rev 3.5s ease-in-out infinite 1.4s; }
.amx-beam-left   { bottom: -50%; left: 0; width: 3px; height: 50%; background: linear-gradient(180deg, transparent, var(--acid, #B7FF1A), transparent); animation: amx-beam-v-rev 3.5s ease-in-out infinite 2.1s; }
@keyframes amx-beam-h     { 0%{left:-50%;opacity:0.3;} 50%{opacity:0.9;} 100%{left:100%;opacity:0.3;} }
@keyframes amx-beam-h-rev { 0%{right:-50%;opacity:0.3;} 50%{opacity:0.9;} 100%{right:100%;opacity:0.3;} }
@keyframes amx-beam-v     { 0%{top:-50%;opacity:0.3;} 50%{opacity:0.9;} 100%{top:100%;opacity:0.3;} }
@keyframes amx-beam-v-rev { 0%{bottom:-50%;opacity:0.3;} 50%{opacity:0.9;} 100%{bottom:100%;opacity:0.3;} }
.amx-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid, #B7FF1A); box-shadow: 0 0 8px var(--acid, #B7FF1A);
  opacity: 0.6; animation: amx-dot-pulse 2.2s ease-in-out infinite;
}
.amx-dot-tl { top: -3px; left: -3px; }
.amx-dot-tr { top: -3px; right: -3px; animation-delay: 0.5s; }
.amx-dot-br { bottom: -3px; right: -3px; animation-delay: 1s; }
.amx-dot-bl { bottom: -3px; left: -3px; animation-delay: 1.5s; }
@keyframes amx-dot-pulse { 0%,100%{opacity:0.3;transform:scale(1);} 50%{opacity:1;transform:scale(1.3);} }

.amx-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px rgba(183, 255, 26, 0.08);
  overflow: hidden; isolation: isolate;
}
.amx-grid-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,1) 0.5px, transparent 0.5px),
    linear-gradient(45deg,  rgba(255,255,255,1) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
}
.amx-head { position: relative; z-index: 1; text-align: center; margin-bottom: 22px; }
.amx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.amx-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid, #B7FF1A);
  box-shadow: 0 0 8px var(--acid, #B7FF1A);
}
.amx-title {
  margin: 10px 0 6px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.amx-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.45; }

.amx-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.amx-field {
  position: relative; display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent; border-radius: 10px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.amx-field.is-focused {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 255, 26, 0.45);
  box-shadow: 0 0 0 3px rgba(183, 255, 26, 0.12);
}
.amx-field-icon {
  position: absolute; left: 12px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.40);
  transition: color 0.25s; pointer-events: none;
}
.amx-field.is-focused .amx-field-icon { color: var(--acid, #B7FF1A); }
.amx-field input, .amx-field textarea {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; padding: 11px 14px 11px 40px;
  font: inherit; font-size: 14px; line-height: 1.4; font-family: inherit;
}
.amx-field input::placeholder, .amx-field textarea::placeholder { color: rgba(255, 255, 255, 0.30); }
.amx-error {
  padding: 10px 12px;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: 10px; color: #ff9090;
  font-size: 12.5px; line-height: 1.4;
}
.amx-btn-primary {
  position: relative; margin-top: 6px;
  height: 42px; border-radius: 10px;
  background: linear-gradient(180deg, #C8FF35 0%, #A8F00B 100%);
  color: #050505; font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(0,0,0,0.18); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(183, 255, 26, 0.35),
    0 0 30px rgba(183, 255, 26, 0.30);
}
.amx-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(183, 255, 26, 0.45),
    0 0 40px rgba(183, 255, 26, 0.45);
}
.amx-btn-primary:disabled { cursor: not-allowed; }
.amx-arrow { transition: transform 0.25s ease; font-weight: 800; }
.amx-btn-primary:hover:not(:disabled) .amx-arrow { transform: translateX(3px); }
.amx-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(5, 5, 5, 0.25);
  border-top-color: rgba(5, 5, 5, 0.85);
  border-radius: 50%; animation: amx-spin 0.7s linear infinite;
}
@keyframes amx-spin { to { transform: rotate(360deg); } }

.amx-bottom {
  text-align: center; margin-top: 10px;
  font-size: 12px; color: rgba(255, 255, 255, 0.55);
}
.amx-bottom-sm { margin-top: 4px; font-size: 11.5px; opacity: 0.85; }

.amx-success { position: relative; z-index: 1; text-align: center; padding: 14px 6px 6px; }
.amx-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(183, 255, 26, 0.10);
  border: 1px solid rgba(183, 255, 26, 0.40);
  color: var(--acid, #B7FF1A);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(183, 255, 26, 0.30);
  animation: amx-success-pulse 2s ease-in-out infinite;
}
@keyframes amx-success-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(183, 255, 26, 0.30); }
  50%      { box-shadow: 0 0 60px rgba(183, 255, 26, 0.50); }
}
.amx-success h3 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.amx-success p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.55); }
.amx-success .amx-btn-primary { margin-top: 22px; width: 100%; }

@media (max-width: 480px) {
  .amx-card-wrap { max-width: none; }
  .amx-card { padding: 24px 20px; }
  .amx-title { font-size: 20px; }
  .amx-close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .amx-blob, .amx-beam, .amx-dot, .amx-success-icon { animation: none; }
  .amx-card-wrap { transform: none !important; }
}

