/* ==========================================================================
   enix-tokens.css — EnixServer theme tokens (copied from enixserver.com style.css).
   Dark is the default; html[data-theme="light"] switches every token.
   All other enix-*.css files use only these variables for colours.
   ========================================================================== */
:root {
  --bg: #060913;
  --bg-subtle: #0b1120;
  --card: #10182b;
  --card-hover: #162038;
  --terminal-bg: #050811;
  --terminal-bar: #0b1122;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-soft: rgba(59, 130, 246, 0.12);

  --game-accent: #3b82f6;
  --game-glow: rgba(59, 130, 246, 0.3);

  --accent-orange: #fb923c;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --info: #38bdf8;

  /* form fields / table stripes (WHMCS-specific helpers) */
  --input-bg: #0b1120;
  --row-hover: rgba(255, 255, 255, 0.03);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --terminal-bg: #0f172a;
  --terminal-bar: #1e293b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.18);
  --primary-soft: rgba(59, 130, 246, 0.12);

  --game-accent: #2563eb;
  --game-glow: rgba(37, 99, 235, 0.18);

  --accent-orange: #ea580c;
  --success: #059669;
  --warning: #d97706;
  --danger: #e11d48;
  --info: #0284c7;

  --input-bg: #ffffff;
  --row-hover: rgba(15, 23, 42, 0.03);
  --shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.18);

  color-scheme: light;
}

/* no transitions until the first paint, and none while the theme flips (same as the site) */
html.no-motion *, html.no-motion *::before, html.no-motion *::after,
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: none !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

html, body { background-color: var(--bg); }
