/* ===============================
   THEME TOKENS
================================ */
:root{
  color-scheme: dark;

  /* brand */
  --accent: #3b82f6;
  --accent-hover: #6a9ced;

  /* status */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger:  #e74c3c;
  --info:    #38bdf8;

  /* dark */
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: rgba(255,255,255,.03);
  --surface-3: rgba(255,255,255,.06);
  --surface-4: rgba(255,255,255,.09);

  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.16);

  --text: #e2e8f0;
  --text-2: rgba(226,232,240,.78);
  --muted: rgba(226,232,240,.72);

  --shadow: 0 10px 25px rgba(0,0,0,.25);
  --shadow-2: 0 20px 40px rgba(0,0,0,.35);
  --shadow-3: 0 24px 60px rgba(0,0,0,.40);

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --radius-pill: 999px;

  --nav-hover-bg: rgba(59,130,246,.22);
  --nav-hover-ring: rgba(59,130,246,.22);

  --overlay: rgba(0,0,0,.55);

  --pin: #ff4d4d;
  --pin-ring: rgba(255,77,77,.25);

  --control-bg: rgba(0,0,0,.55);
  --control-bg-hover: var(--accent);

  --backdrop-blur: blur(12px);
}

/* LIGHT */
html[data-theme="light"]{
  color-scheme: light;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: rgba(15,23,42,.02);
  --surface-3: rgba(15,23,42,.05);
  --surface-4: rgba(15,23,42,.08);

  --border: rgba(15,23,42,.10);
  --border-strong: rgba(15,23,42,.16);

  --text: #0f172a;
  --text-2: rgba(15,23,42,.74);
  --muted: rgba(15,23,42,.62);

  --shadow: 0 10px 25px rgba(2,6,23,0.08);
  --shadow-2: 0 20px 40px rgba(2,6,23,0.10);
  --shadow-3: 0 24px 60px rgba(2,6,23,0.14);

  --nav-hover-bg: rgba(59,130,246,.12);
  --nav-hover-ring: rgba(59,130,246,.18);

  --overlay: rgba(15,23,42,.35);

  --control-bg: rgba(15,23,42,.08);
  --control-bg-hover: var(--accent);
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}

[hidden] {
  display: none !important;
}