@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,400&family=JetBrains+Mono:wght@400;500;600;700&family=Fira+Code:wght@400;500;600;700&display=swap');

/* ============================================================
   WINERA — WattVision Dashboard Design System
   Dark-first, technical dashboard aesthetic.
   Cyan neon accents, monospace KPIs, #121212 foundation.
   Designed for reliability, control & data clarity.
   ============================================================ */

/* ── Reset & Fundamentals ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ━━━ WattVision Dark Palette (Default) ━━━ */
  --bg: #121212;
  --bg-subtle: #161616;
  --bg-surface: #1E1E1E;
  --bg-surface-elevated: #252525;
  --bg-muted: rgba(255, 255, 255, 0.04);
  --bg-muted-hover: rgba(255, 255, 255, 0.08);

  --border: #2C2C2E;
  --border-light: #232325;
  --border-hover: #3A3A3C;
  --border-accent: rgba(0, 229, 255, 0.35);

  --text: #FFFFFF;
  --text-secondary: #98989D;
  --text-tertiary: #636366;
  --text-muted: #98989D;

  /* Accent: Cyan Neon — data, KPIs, primary actions */
  --accent: #00E5FF;
  --accent-hover: #33EAFF;
  --accent-light: rgba(0, 229, 255, 0.08);
  --accent-muted: rgba(0, 229, 255, 0.18);
  --accent-gradient: linear-gradient(135deg, #00E5FF 0%, #00B8D4 100%);
  --accent-glow: rgba(0, 229, 255, 0.2);

  /* Status Colors */
  --success: #32D74B;
  --success-light: rgba(50, 215, 75, 0.1);
  --warning: #FF9F0A;
  --warning-light: rgba(255, 159, 10, 0.1);
  --danger: #FF453A;
  --danger-light: rgba(255, 69, 58, 0.1);

  /* Alert surface */
  --alert-danger-bg: #3A1C1C;
  --alert-danger-border: #FF453A;

  --glass-bg: rgba(18, 18, 18, 0.88);
  --glass-card: rgba(30, 30, 30, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* ━━━ Typography ━━━ */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px — body default */
  --text-base: 0.875rem;
  /* 14px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.3125rem;
  /* 21px */
  --text-2xl: 1.5rem;
  /* 24px — WattVision title spec */
  --text-3xl: 2rem;
  /* 32px — WattVision KPI spec */
  --text-4xl: 2.5rem;
  /* 40px */
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* ━━━ Spacing Scale (8px multiples) ━━━ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ━━━ Radii — WattVision 16px default ━━━ */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ━━━ Shadows — deep, dramatic on dark ━━━ */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px -4px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px -6px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.15);

  /* ━━━ Layout ━━━ */
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --bottom-nav-height: 60px;
  --container-max: 1360px;
  --content-gap: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;
  --duration-slow: 350ms;
}

/* ── Light Mode — Warm Technical ────────────────────────────── */
html:not([data-theme="dark"]) {
  --bg: #F2F2F7;
  --bg-subtle: #E5E5EA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-muted: #F2F2F7;
  --bg-muted-hover: #E5E5EA;

  --border: #D1D1D6;
  --border-light: #E5E5EA;
  --border-hover: #AEAEB2;
  --border-accent: rgba(0, 184, 212, 0.35);

  --text: #1C1C1E;
  --text-secondary: #636366;
  --text-tertiary: #AEAEB2;
  --text-muted: #8E8E93;

  --accent: #00838F;
  --accent-hover: #006064;
  --accent-light: rgba(0, 131, 143, 0.08);
  --accent-muted: rgba(0, 131, 143, 0.15);
  --accent-gradient: linear-gradient(135deg, #00838F 0%, #00ACC1 100%);
  --accent-glow: rgba(0, 131, 143, 0.12);

  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-card: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.06);

  --alert-danger-bg: #FFF0F0;
  --alert-danger-border: #FF453A;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -3px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 131, 143, 0.08);
  --shadow-cyan: none;
}

/* ── Base Setup ───────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

/* ── Typography — WattVision Spec ────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-mono,
.kpi-value {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Containers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.public-main {
  flex: 1;
}

/* ── Sticky Glass Navigation Header ───────────────────────── */
.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.public-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.public-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.public-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.public-nav__link:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.public-nav__link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.public-nav__actions {
  display: flex;
  align-items: center;
}

/* ── Theme Switcher ───────────────────────────────────────── */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-cyan);
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html:not([data-theme="dark"]) .theme-icon-sun {
  display: none;
}

html:not([data-theme="dark"]) .theme-icon-moon {
  display: block;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(50, 215, 75, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(50, 215, 75, 0);
  }
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 840px;
  margin: 0 auto var(--space-5);
  text-wrap: balance;
  word-break: normal;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ── Interactive Role Switcher Pill Bar ───────────────────── */
.role-switch-container {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.role-switch-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.role-switch-btn.active {
  background: var(--accent);
  color: #121212;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}

/* ── Realistic Minimalist Digital Ticket ──────────────────── */
.digital-ticket {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  text-align: left;
  transition: all var(--duration-slow) var(--ease);
}

.digital-ticket:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.digital-ticket__notch-l,
.digital-ticket__notch-r {
  position: absolute;
  top: 52%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  border: 1px solid var(--border);
  z-index: 3;
}

.digital-ticket__notch-l {
  left: -10px;
}

.digital-ticket__notch-r {
  right: -10px;
}

.digital-ticket__divider {
  border-top: 2px dashed var(--border);
  margin: var(--space-5) 0;
  position: relative;
}

.digital-ticket__hologram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(50, 215, 75, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.ticket-barcode-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  opacity: 0.7;
}

.barcode-line {
  height: 100%;
  background: var(--text);
  border-radius: 1px;
}

/* ── Interactive Ticket Number Picker Pills ───────────────── */
.ticket-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) 0;
}

.ticket-picker-pill {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.ticket-picker-pill:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.08);
  box-shadow: var(--shadow-cyan);
}

.ticket-picker-pill.available {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-light);
}

.ticket-picker-pill.claimed,
.ticket-picker-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--bg-muted);
}

/* ── Slot Reel Spinner for Simulated Draws ────────────────── */
.reel-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: var(--space-5) 0;
  overflow-x: auto;
}

.reel-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
}

.reel-item.spinning {
  animation: reel-pulse 0.2s infinite alternate;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-cyan);
}

.reel-item.winner {
  background: var(--accent-gradient);
  color: #121212;
  border-color: var(--accent);
  transform: scale(1.12);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

@keyframes reel-pulse {
  0% {
    transform: translateY(-2px);
    opacity: 0.7;
  }

  100% {
    transform: translateY(2px);
    opacity: 1;
  }
}

/* ── Interactive Simulator Box ────────────────────────────── */
.simulator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
  transition: border-color var(--duration) var(--ease);
}

.simulator-box:hover {
  border-color: var(--border-hover);
}

.simulator-tabs {
  display: flex;
  gap: var(--space-2);
  padding: 3px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.sim-tab-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.sim-tab-btn:hover {
  color: var(--text);
}

.sim-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

/* ── Economics Pool Bar ───────────────────────────────────── */
.economics-pool-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.pool-segment-prize {
  background: var(--success);
  width: 71%;
  transition: width 0.3s ease;
}

.pool-segment-agent {
  background: var(--warning);
  width: 24%;
  transition: width 0.3s ease;
}

.pool-segment-saas {
  background: var(--accent);
  width: 5%;
  transition: width 0.3s ease;
}

.sim-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.sim-metric-card {
  padding: var(--space-5);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.sim-metric-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.sim-metric-card__value {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.sim-metric-card__sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ── Interactive Ticket Reel Strip ────────────────────────── */
.ticket-reel-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-5);
}

.ticket-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.ticket-chip.winner-gold {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.ticket-chip.winner-silver {
  background: rgba(50, 215, 75, 0.12);
  border-color: var(--success);
  color: var(--success);
}

.ticket-chip.winner-bronze {
  background: rgba(255, 159, 10, 0.12);
  border-color: var(--warning);
  color: var(--warning);
}

/* ── Section Styling ──────────────────────────────────────── */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Responsive Grids (12-column base) ────────────────────── */
.grid {
  display: grid;
  gap: var(--content-gap);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 1200px) {
  .grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Cards & Surfaces — WattVision 16px Radius ────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
}

.card__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__body {
  padding: var(--space-5);
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

/* ── Stat Cards — KPI Focused ─────────────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--duration-slow) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-cyan);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-card__sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ── Layer Cards ─────────────────────────────────────────── */
.layer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all var(--duration-slow) var(--ease);
  display: flex;
  flex-direction: column;
}

.layer-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  align-self: flex-start;
}

.layer-badge--l1 {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-muted);
}

.layer-badge--l2 {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(50, 215, 75, 0.2);
}

.layer-badge--l3 {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(255, 159, 10, 0.2);
}

.layer-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.layer-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.layer-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.layer-item {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.layer-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Strategy Showcase Card ───────────────────────────────── */
.strategy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-slow) var(--ease);
}

.strategy-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-cyan);
}

.strategy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.strategy-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-muted);
}

.strategy-code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-top: var(--space-4);
  display: block;
  border: 1px solid var(--border-light);
}

/* ── Draw Cards (Active Lotteries) ────────────────────────── */
.draw-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-slow) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.draw-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

.draw-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.draw-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.draw-card__subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.draw-card__prize-hero {
  margin: var(--space-4) 0;
  text-align: left;
}

.draw-card__prize-amount {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.draw-card__perforated {
  border-top: 1px dashed var(--border);
  margin: var(--space-5) 0 var(--space-4);
  padding-top: var(--space-4);
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
  transition: all var(--duration-slow) var(--ease);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid var(--accent-muted);
}

.draw-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress,
.draw-progress {
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-3) 0 var(--space-4);
  border: 1px solid var(--border-light);
}

.progress__bar,
.draw-progress__bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.35s var(--ease);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.progress__bar--warning {
  background: var(--warning);
  box-shadow: none;
}

.progress__bar--success {
  background: var(--success);
  box-shadow: none;
}

.justify-between {
  justify-content: space-between !important;
}

/* ── Buttons — Refined WattVision Style ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary,
.btn-primary {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.2);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  color: #121212;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

.btn--gradient {
  background: var(--accent-gradient);
  color: #121212;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--gradient:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--secondary,
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover,
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn--danger,
.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn--danger:hover {
  background: #e11d48;
}

.btn--sm,
.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-xs);
}

.btn--lg,
.btn-lg {
  padding: 12px 28px;
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge,
.badge--neutral {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.badge--primary,
.badge-primary {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-muted);
}

.badge--success,
.badge-success {
  background: var(--success-light);
  color: var(--success);
  border-color: rgba(50, 215, 75, 0.2);
}

.badge--warning,
.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
  border-color: rgba(255, 159, 10, 0.2);
}

.badge--danger,
.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(255, 69, 58, 0.2);
}

/* ── Tables — WattVision Style ────────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) var(--bg-muted);
}

.table-responsive::-webkit-scrollbar {
  height: 5px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-muted);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
}

.table th {
  padding: 12px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.table tr:hover td {
  background: var(--bg-surface-elevated);
}

/* Compact Table Variant */
.table--compact th {
  padding: 10px 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.table--compact td {
  padding: 12px;
  font-size: 0.8rem;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control,
.form-input {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--duration) var(--ease);
  line-height: 1.5;
}

.form-control:focus,
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-cyan);
  background: var(--bg-surface);
}

/* Form Select */
.form-select,
select.form-control,
select.form-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 10px 36px 10px 14px;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg-surface-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398989D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  line-height: 1.5;
}

.form-select:hover,
select.form-control:hover,
select.form-input:hover {
  border-color: var(--border-hover);
}

.form-select:focus,
select.form-control:focus,
select.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background-color: var(--bg-surface);
}

.form-select option,
select.form-control option,
select.form-input option {
  background-color: var(--bg-surface);
  color: var(--text);
  padding: 10px 14px;
}

.form-select--sm,
select.form-control--sm,
select.form-input--sm {
  height: 34px;
  padding: 5px 30px 5px 12px;
  font-size: var(--text-xs);
  background-position: right 10px center;
  background-size: 14px 14px;
}

/* ── Input Group ──────────────────────────────────────────── */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group>.form-input,
.input-group>.form-control,
.input-group>.form-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
  min-width: 0;
}

.input-group>.btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group>.btn+.btn {
  border-radius: 0;
  border-left: 1px solid var(--border);
}

.input-group>.btn:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* ── Report Filter Toolbar ────────────────────────────────── */
.report-filters {
  background: var(--bg-surface);
}

.report-filter-grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.report-filter-field {
  display: flex;
  flex-direction: column;
}

.report-filter-field--scope {
  flex: 1 1 290px;
  min-width: 250px;
}

.report-filter-field--time {
  flex: 0 1 180px;
  min-width: 160px;
}

.report-filter-field--search {
  flex: 2 1 300px;
  min-width: 260px;
}

.report-filter-field--actions {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 1100px) {
  .report-filter-field--actions {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ── Auth Layout ──────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: all var(--duration) var(--ease);
}

.auth-card:hover {
  border-color: var(--border-hover);
}

.auth-card__brand {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-card__brand-mark {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  color: #121212;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.auth-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}

.auth-card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Auth Card Wide */
.auth-card--wide {
  max-width: 520px;
}

.role-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.role-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: left;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.role-picker-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-muted-hover);
  transform: translateY(-1px);
}

.role-picker-card.active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 16px var(--accent-glow);
}

.role-picker-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.role-picker-card__icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-1);
  width: 100%;
}

.role-picker-card__icon {
  font-size: 16px;
  line-height: 1;
}

.role-picker-card__title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.role-picker-card.active .role-picker-card__title {
  color: var(--accent);
}

.role-picker-card__layer {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.role-picker-card__meta {
  font-size: 10px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-top: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-group .form-control,
.auth-input-group .form-input {
  padding-left: 40px;
  padding-right: 44px;
  height: 44px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.auth-toggle-pass-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
}

.auth-toggle-pass-btn:hover {
  color: var(--accent);
}

.auth-engine-badge {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
}

@media (max-width: 480px) {
  .role-picker-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Dashboard Sidebar & Shell ────────────────────────────── */
.sidebar-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--duration) var(--ease);
  user-select: none;
}

.sidebar__brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-surface);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity var(--duration) var(--ease);
}

.sidebar__brand:hover {
  opacity: 0.9;
}

.sidebar__brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  color: #121212;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.2);
}

.sidebar__brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar__brand-text {
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

.sidebar__role-tag {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar__role-tag--admin {
  color: var(--danger);
}

.sidebar__role-tag--agent {
  color: var(--success);
}

.sidebar__close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.sidebar__close-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.sidebar__nav {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar__nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.sidebar__section {
  margin-bottom: var(--space-6);
}

.sidebar__section-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px var(--space-3);
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  position: relative;
  margin-bottom: 2px;
}

.sidebar__link:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.sidebar__link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.sidebar__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}

.sidebar__link:hover svg,
.sidebar__link.active svg {
  opacity: 1;
}

.sidebar__link--switch {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.sidebar__link--switch:hover {
  color: var(--text);
}

/* Agent Quick Referral Box */
.sidebar__ref-box {
  margin: 0 var(--space-2);
  padding: var(--space-4);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Sidebar Theme Toggle */
.sidebar__theme-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

/* Sidebar Footer */
.sidebar__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  margin-top: auto;
}

.sidebar__user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.sidebar__user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.sidebar__user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.sidebar__user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.sidebar__user-balance {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.sidebar__logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  color: var(--text-tertiary);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}

.sidebar__logout-btn:hover {
  color: var(--danger);
  background: rgba(255, 69, 58, 0.08);
}

/* Avatar */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.avatar--admin {
  background: linear-gradient(135deg, #FF453A 0%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 69, 58, 0.2);
}

.avatar--agent {
  background: linear-gradient(135deg, #32D74B 0%, #28a745 100%);
  color: #121212;
  box-shadow: 0 0 0 2px rgba(50, 215, 75, 0.2);
}

/* ── Top Navbar ───────────────────────────────────────────── */
.navbar {
  height: var(--navbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 60;
  gap: var(--space-4);
}

.navbar__left,
.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.navbar__left {
  min-width: 0;
}

.navbar__hamburger {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.navbar__hamburger:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Breadcrumb */
.navbar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  line-height: 1.2;
}

.navbar__context-tag {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.navbar__context-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.navbar__context-tag--admin {
  background: rgba(255, 69, 58, 0.08);
  color: var(--danger);
  border-color: rgba(255, 69, 58, 0.2);
}

.navbar__context-tag--agent {
  background: rgba(50, 215, 75, 0.08);
  color: var(--success);
  border-color: rgba(50, 215, 75, 0.2);
}

.navbar__context-sep {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.navbar__context-page {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ── Navbar Center (Portal Switcher) ──────────────────────── */
.navbar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.portal-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  gap: 2px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.portal-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.portal-switcher__btn:hover {
  color: var(--text);
}

.portal-switcher__btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.portal-switcher__btn--admin.active {
  color: var(--danger);
}

.portal-switcher__btn--agent.active {
  color: var(--success);
}

/* ── Balance Chip ─────────────────────────────────────────── */
.navbar__balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}

.navbar__balance:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.navbar__balance-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.navbar__balance-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Quick Action */
.navbar__action-btn {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Theme Toggle */
.navbar__theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.navbar__theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* User Pill */
.navbar__user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 8px 3px 3px;
  cursor: pointer;
  color: var(--text);
  transition: all var(--duration) var(--ease);
}

.navbar__user-pill:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.navbar__user-pill-name {
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__chevron {
  color: var(--text-tertiary);
  transition: transform var(--duration) var(--ease);
}

.navbar__dropdown.show~.navbar__user-pill .navbar__chevron {
  transform: rotate(180deg);
}

.navbar__avatar {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #121212;
  flex-shrink: 0;
}

.navbar__avatar--admin {
  background: linear-gradient(135deg, #FF453A, #e11d48);
  color: #fff;
}

.navbar__avatar--agent {
  background: linear-gradient(135deg, #32D74B, #28a745);
  color: #121212;
}

/* Dropdown */
.navbar__dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.navbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: all 180ms var(--ease-out);
  pointer-events: none;
}

.navbar__dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.navbar__dropdown--user {
  width: 260px;
}

.navbar__dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}

.navbar__dropdown-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 6px 10px 3px;
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 120ms ease;
}

.navbar__dropdown-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.navbar__dropdown-item:hover {
  color: var(--text);
  background: var(--bg-muted-hover);
}

.navbar__dropdown-item:hover svg {
  opacity: 1;
}

.navbar__dropdown-item--active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
}

.navbar__dropdown-item--danger {
  color: var(--danger);
}

.navbar__dropdown-item--danger:hover {
  color: #fff;
  background: var(--danger);
}

.navbar__dropdown-item--danger:hover svg {
  stroke: #fff;
}

.navbar__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@media (max-width: 1023px) {
  .navbar__center {
    display: none;
  }

  .navbar__user-pill-name {
    display: none;
  }

  .navbar__user-pill {
    padding: 3px;
  }

  .navbar__hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }

  .navbar__context-page {
    display: none;
  }

  .navbar__context-sep {
    display: none;
  }

  .navbar__action-btn {
    display: none;
  }
}

/* ── Desktop & Mobile Adjustments ─────────────────────────── */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-left: var(--sidebar-width);
  }
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar__close-btn {
    display: flex;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .navbar__hamburger {
    display: flex;
  }

  .public-nav__links {
    display: none;
  }
}

.mobile-menu {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}

/* ── Mobile Bottom Navigation ─────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  z-index: 90;
}

.bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-tertiary);
  font-size: 0.625rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.bottom-nav__item:hover {
  color: var(--text-secondary);
}

.bottom-nav__item.active {
  color: var(--accent);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__item--highlight {
  color: var(--danger);
}

.bottom-nav__item--highlight.active {
  color: var(--danger) !important;
}

.bottom-nav__item--highlight-agent {
  color: var(--success);
}

.bottom-nav__item--highlight-agent.active {
  color: var(--success) !important;
}

@media (max-width: 1023px) {
  .bottom-nav {
    display: block;
  }
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  margin-bottom: var(--space-8);
}

.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.page-header__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── WattVision Alert Boxes ───────────────────────────────── */
.alert-danger,
.alert--danger {
  background: var(--alert-danger-bg);
  color: var(--danger);
  border: 1px solid transparent;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.alert-success,
.alert--success {
  background: rgba(50, 215, 75, 0.08);
  color: var(--success);
  border: 1px solid transparent;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.alert-info,
.alert--info {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid transparent;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ── Utilities ────────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col,
.flex-column {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 800;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-primary {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.text-muted {
  color: var(--text-secondary);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-10 {
  margin-bottom: var(--space-10);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mb-16 {
  margin-bottom: var(--space-16);
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-auto {
  margin-top: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-5 {
  padding: var(--space-5);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

.w-full {
  width: 100%;
}

.block {
  display: block;
}

.hidden {
  display: none !important;
}

.break-all {
  word-break: break-all;
}

.rounded {
  border-radius: var(--radius-sm);
}

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

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

.leading-tight {
  line-height: var(--leading-tight);
}

.uppercase {
  text-transform: uppercase;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-l {
  border-left: 1px solid var(--border);
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* ── Toast Container ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toast-in 0.3s var(--ease-out);
  border-left: 3px solid transparent;
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast--success {
  background: var(--bg-surface);
  color: var(--success);
  border-left-color: var(--success);
}

.toast--error {
  background: var(--alert-danger-bg);
  color: var(--danger);
  border-left-color: var(--danger);
}

.toast--info {
  background: var(--bg-surface);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.97);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

/* ── Celebration Banner ───────────────────────────────────── */
.celebration-banner {
  background: linear-gradient(135deg, rgba(50, 215, 75, 0.1), rgba(0, 229, 255, 0.1));
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  animation: banner-pop 0.4s var(--ease-out);
}

@keyframes banner-pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Gold / Legacy Gradient (mapped to accent) ────────────── */
.text-gradient-gold {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold {
  color: var(--accent);
}

.gold-light {
  color: var(--accent-light);
}