/* ============================================================
   NinjaBoost — design tokens: the one source of truth for colour.
   Every stylesheet (public site, client area, booster area, HQ)
   reads these. Dark is the default; [data-theme="light"] on <html>
   switches to the light theme (next-themes sets it, see
   components/ThemeProvider.tsx).

   "Akali" (2026-10-07, reskin-akali): a deep night teal (#03121A → #051A24)
   lit like the hero art, ember orange as the primary (#FF6B2C, in the old
   --jade slot so no module changes; dark ink #1A0A03 on its fills) and
   glowing cyan (#3FD4F0) as the secondary (the old --lavender slot). Cyan is
   the atmosphere, orange the attention. No purple anywhere; Master+ and the
   boosters accent are a deep cyan. The logo is cyan + orange. Red only for
   errors, losses, fines and destructive actions; green done, amber pending.
   Rank colours stay as data colours. Glass and shadcn/ui names:
   styles/ui.css. Rules: docs/dashboard-kit.md.

   Contrast (WCAG AA, checked with scripts/contrast.mjs): every text
   token is at least 4.5:1 on --bg-0, --bg-1 and --bg-2 in both
   themes; the *-text colours are at least 4.5:1 on their *-soft
   backgrounds; --on-primary is at least 4.5:1 on --brand-fill, its
   hover and every --grad stop under a button's label (white text on
   purple in both themes); the gradient headline (--grad-text) is at
   least 3:1 (large text) at every stop.
   ============================================================ */

:root {
  /* ---- Surfaces: the page is the deep night teal; cards, panels and inputs
     are graphite, so a box never melts into the page (2026-10-08). Text is
     white and neutral grey, never tinted. ---- */
  --bg-0: #03121a; /* page (fades to --bg-0-end at the bottom of the public pages) */
  --bg-0-end: #051a24;
  --bg-1: #14191d; /* cards, sidebar */
  --bg-2: #1b2227; /* inputs, inner boxes, table header */
  --bg-3: #252e34; /* raised, hover */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.126);

  /* ---- Text ---- */
  --text: #f5f7f8;
  --text-2: #bcc4c9;
  --text-3: #949ea5; /* neutral grey, 5:1 on --bg-3 */

  /* ---- Primary: ember orange (it sits in the old --jade slot, so no module changes) ---- */
  --jade: #ff6b2c; /* borders, icons, active states, the primary fill */
  --jade-hover: #ff9a5c;
  --jade-pressed: #e04e14;
  --jade-soft: rgba(255, 107, 44, 0.12);
  --jade-text: #ff7a3d; /* ember text on the night */
  --on-jade: #1a0a03; /* text on an ember fill: dark ink, never white */

  /* ---- Secondary: glowing cyan (the old --lavender slot), for the few things
     that must not be the accent ("Coming soon", a second series). ---- */
  --lavender: #3fd4f0;
  --lavender-2: #a8f0ff; /* hover */
  --lavender-soft: rgba(63, 212, 240, 0.12);
  --lavender-text: #a8f0ff;
  --lavender-fill: #3fd4f0; /* a cyan surface that carries --on-lavender text */
  --on-lavender: #03121a;

  /* ---- Third accent: glowing electric blue, the moonlit sky of the
     backdrop art (2026-10-10, site/56). Cyan stays the brand (~50%), blue
     the light around it (~30%: eyebrows, the current-page rules, card
     edges and their hover glow, outlined buttons, links, focus rings, the
     calculator's ranges), ember the attention (~20%: the main buttons,
     prices, discounts). --glow-blue reads as text (8:1 on the night). ---- */
  --glow-blue: #38b6ff;
  --glow-blue-strong: #1e90ff;
  --glow-blue-soft: rgba(56, 182, 255, 0.15);
  --glow-blue-line: rgba(56, 182, 255, 0.4);
  --glow-blue-shadow: 0 0 24px rgba(56, 182, 255, 0.35);
  /* Cyan into blue: the filled part of a range or a progress bar. */
  --grad-progress: linear-gradient(90deg, #3fd4f0, #38b6ff);

  /* ---- One accent gradient: light ember → ember → cyan. ---- */
  --grad-accent: linear-gradient(135deg, #ff9a5c, #ff6b2c 50%, #3fd4f0);
  --grad-accent-text: var(--grad-accent); /* gradient letters: logo, main prices, the hero accent */
  /* Fills keep the primary (barely shaded); trims are cyan; the accent
     gradient itself is only for the logo, main prices and one hero accent. */
  --grad: linear-gradient(180deg, #ff7a3d 0%, #ff6b2c 100%);
  --grad-gold: linear-gradient(135deg, #a8f0ff 0%, #3fd4f0 50%, #1aa6c4 100%);
  --grad-text: var(--grad-accent);
  /* The customer's own chat bubble: deep ember, white text. */
  --grad-bubble: linear-gradient(135deg, #b4441a 0%, #9c3810 100%);
  --on-bubble: #ffffff;
  /* Master+ keeps its violet, whatever the primary. */
  --master: #1aa6c4;
  --master-soft: rgba(26, 166, 196, 0.16);
  --master-text: #a8f0ff;

  /* ---- The logo's own colours: the shuriken's two halves (and the wordmark) never follow
     the palette. ---- */
  --logo-a: #ff6b2c;
  --logo-a-text: #ff6b2c; /* BOOST in the wordmark */
  --logo-b-text: #00d0ce; /* NINJA in the wordmark */
  --logo-b: #3fd4f0;

  /* ---- Page backdrop (the dashboards' shell; on the public site it sits
     under the fogged art, styles/site.css): the same night as the fog
     (site/56), a moonlit blue glow at the top, cyan from the top right, a
     little ember from the bottom left, over navy that falls to near black.
     Fixed to the viewport. ---- */
  --page-glow-top: rgba(56, 182, 255, 0.08);
  --page-glow-bottom: rgba(255, 107, 44, 0.06);
  --page-bg:
    radial-gradient(ellipse at 50% 0%, rgba(56, 182, 255, 0.14), transparent 60%),
    radial-gradient(1200px 700px at 85% -10%, rgba(63, 212, 240, 0.12), transparent 60%),
    radial-gradient(800px 500px at 15% 105%, rgba(255, 107, 44, 0.08), transparent 60%),
    linear-gradient(180deg, #0a1220 0%, #070b14 45%, #05070d 100%);
  /* Section glows: cyan (atmosphere) always stronger than ember (attention). */
  --section-glow-cyan: radial-gradient(700px 420px at 100% 40%, rgba(63, 212, 240, 0.1), transparent 70%);
  --section-glow-ember: radial-gradient(640px 380px at 0% 60%, rgba(255, 107, 44, 0.06), transparent 70%);
  /* Grain over the gradients, so they never band. */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: 0.05;

  /* ---- Cards and panels: dark glass over the fogged backdrop art
     (site/56), a blue hairline that lights up under the pointer. The blur
     is on the main cards only (--card-blur), never on phones
     (app/globals.css). ---- */
  --card-surface: rgba(10, 16, 28, 0.72);
  --card-border: rgba(120, 200, 255, 0.1);
  --card-border-hover: rgba(56, 182, 255, 0.45);
  --card-blur: blur(10px);

  /* ---- Service icon tiles (components/ServiceIcon.tsx): a dark well, a
     gold trim, the glyph in gold (one hue, a little lighter at the top). ---- */
  --tile-base: #14191d;
  --tile-light: rgba(255, 107, 44, 0.14);
  --tile-well: rgba(3, 18, 26, 0.9);
  --icon-1: #ffd1b3;
  --icon-2: #ff6b2c;
  --icon-3: #ff6b2c;
  --icon-glow: transparent;

  /* ---- Brand names the modules read: teal ---- */
  --brand: var(--jade);
  --brand-hover: var(--jade-hover);
  --brand-soft: var(--jade-soft);
  --brand-text: var(--jade-text);
  --brand-2: var(--text-2);
  --brand-grad: var(--grad);
  --brand-glow: rgba(255, 107, 44, 0.12);
  /* Solid brand fills, with --on-primary text (dark ink). */
  --brand-fill: #ff6b2c;
  --brand-fill-hover: #ff9a5c;
  --brand-fill-pressed: var(--jade-pressed);
  --on-primary: var(--on-jade);
  /* The trim of outlined accents: gold. */
  --trim: rgba(255, 107, 44, 0.4);
  --trim-hover: rgba(255, 107, 44, 0.75);

  /* ---- Money: every price in the brand cyan (owner, 2026-10-20); a struck
     list price is muted grey (--price-was); discount badges stay green. ---- */
  --price: #3fd4f0;
  --price-was: var(--text-3);
  --save: var(--jade-text);

  /* ---- The old "gold"/premium names (credits, badges, money): neutral grey
     now. Money and numbers are white; only the Master+ badge keeps its
     violet through --master*. ---- */
  --gold: var(--text-2);
  --gold-soft: var(--bg-2);
  --gold-text: var(--text);
  --on-gold: var(--bg-0);

  /* ---- Status: always the soft background with the text colour ---- */
  --success: #3dd68c; /* win, completed, paid, yes */
  --success-soft: rgba(61, 214, 140, 0.14);
  --success-text: #8ae9bb;
  --warning: #ffc247; /* warnings, paused, pending */
  --warning-soft: rgba(255, 194, 71, 0.14);
  --warning-text: #ffdb8a;
  --danger: #ff4d5e; /* errors, loss, fines, delete, no */
  --danger-soft: rgba(255, 77, 94, 0.14);
  --danger-text: #ffa3ab;
  --danger-fill: #dc2626; /* filled destructive button (confirm dialogs only), white text 4.8:1 */
  --info: #60a5fa; /* neutral info, in progress: the only blue */
  --info-soft: rgba(96, 165, 250, 0.14);
  --info-text: #93c5fd;
  --cool-glow: transparent;

  /* ---- The older names the modules read: aliases, never other colours ---- */
  --bg: var(--bg-0);
  --surface-1: var(--bg-1);
  --surface-2: var(--bg-2);
  --surface-3: var(--bg-3);
  --panel: var(--bg-1);
  --card: var(--bg-2);
  --elevated: var(--bg-3);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
  --primary-soft: var(--brand-soft);
  --muted: var(--text-2);
  --subtle: var(--text-3);
  --text-secondary: var(--text-2);

  /* ---- Type: Manrope for body and UI, Exo 2 for headings
     (lib/fonts), IBM Plex Sans Arabic behind both on the Arabic pages. ---- */
  --font-body-stack: var(--font-body, var(--font-site-ui, "Manrope")), var(--font-arabic, ui-sans-serif), ui-sans-serif, system-ui, sans-serif;
  --font-display-stack: var(--font-display, "Exo 2"), var(--font-body-stack);
  --font-logo-stack: var(--font-body-stack);

  /* Type scale (mobile → desktop). */
  --text-xs: 0.75rem;   /* caption 12 */
  --text-sm: 0.875rem;  /* small 14 */
  --text-md: 1rem;      /* body 16 */
  --text-lg: 1.125rem;
  --text-xl: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);  /* h3 18 → 22 */
  --text-2xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);    /* card / sub-h2 */
  --text-3xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);   /* h2 28 → 42 */
  --text-4xl: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);      /* h1 36 → 60 */
  --heading-tracking: -0.02em;
  --eyebrow-tracking: 0; /* no letter-spaced uppercase labels */

  /* ---- Spacing (4px base) ---- */
  --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-24: 96px;
  /* Section rhythm: 40px mobile, 64px desktop. */
  --section-y: clamp(40px, 3rem + 1.5vw, 64px);

  /* ---- Shape ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 10px;
  --radius-pill: 999px;
  --blade-cut: 8px;

  /* ---- Layout scale (2026-09-29 consistency pass): spacing steps are
     4 / 8 / 12 / 16 / 24 / 32 / 48 (--space-1..12). Every card (Card,
     Panel, StatTile, EmptyState) has radius 16 and padding 20 on phones,
     24 from tablets; sections are 32 apart on phones, 48 from tablets. */
  --radius-card: 10px;
  --card-pad: 20px;
  --section-gap: 32px;
  --icon-sm: 16px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  /* A card under the pointer: a blue hairline, the card shadow and the blue glow. */
  --lift-ring: rgba(56, 182, 255, 0.45);
  --lift-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7), var(--glow-blue-shadow);
  --glow-brand: 0 0 0 1px rgba(255, 107, 44, 0.35);
  --glow-gold: none;
  --focus-ring: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--brand);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  --dur-fast: 120ms;
  --dur: 220ms;

  --header-h: 64px; /* the public navbar (components/shell/shell.css sets the phone height) */
  --container: 1240px;
  --gutter: 16px;

  /* Buttons: two heights site-wide. */
  --btn-h: 40px;
  --btn-h-lg: 48px;

  /* ---- "Pro" panels (site/68: booster profile, moving reviews, booster
     cards): a hairline panel a step lighter than the page, 24px radius
     for big panels and 18px for cards, muted text at 60% white. ---- */
  --pro-surface: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), var(--card-surface);
  --pro-surface-2: rgba(255, 255, 255, 0.045);
  --pro-line: rgba(255, 255, 255, 0.08);
  --pro-line-strong: rgba(255, 255, 255, 0.1);
  --pro-muted: rgba(255, 255, 255, 0.6);
  --pro-radius: 24px;
  --pro-radius-sm: 18px;
  --pro-star: var(--lavender);

  color-scheme: dark;
}
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --card-pad: 24px;
    --section-gap: 48px;
  }
}

[data-theme="light"] {
  --pro-surface: var(--bg-1);
  --pro-surface-2: var(--bg-2);
  --pro-line: rgba(6, 32, 43, 0.1);
  --pro-line-strong: rgba(6, 32, 43, 0.16);
  --pro-muted: var(--text-2);
  /* Cool off-white paper: gold fills keep their dark-ink label; gold and
     ice text go deeper so they read on paper; soft diffused shadows. */
  --bg-0: #f3fafc;
  --bg-1: #ffffff;
  --bg-2: #e8f4f8;
  --bg-3: #d9ecf2;
  --line: rgba(6, 32, 43, 0.1);
  --line-strong: rgba(6, 32, 43, 0.18);
  --text: #06202b;
  --text-2: #3a5a66;
  --text-3: #4b6873;
  --jade: #c2410c; /* icons, borders, focus, active states */
  --jade-hover: #a3360a;
  --jade-pressed: #e04e14;
  --jade-soft: rgba(255, 107, 44, 0.16);
  --jade-text: #a3360a; /* ember text on paper */
  --on-jade: #1a0a03;
  /* Prices on paper: a cyan dark enough to read (5.3:1 on white). */
  --price: #0b7f97;
  --price-was: var(--text-3);
  --lavender: #1aa6c4;
  --lavender-2: #0d6a80;
  --lavender-soft: rgba(63, 212, 240, 0.16);
  --lavender-text: #0d6a80;
  --lavender-fill: #3fd4f0;
  --on-lavender: #03121a;
  /* The blue on paper: deep enough to read (5:1), no glow. */
  --glow-blue: #0b6fb8;
  --glow-blue-strong: #0a5a96;
  --glow-blue-soft: rgba(30, 144, 255, 0.1);
  --glow-blue-line: rgba(11, 111, 184, 0.4);
  --glow-blue-shadow: 0 8px 22px -12px rgba(11, 111, 184, 0.35);
  --grad-progress: linear-gradient(90deg, #1aa6c4, #1e90ff);
  --grad-accent: linear-gradient(135deg, #ff9a5c, #ff6b2c 50%, #3fd4f0);
  /* Gradient letters on paper: the same hues, deep enough to read (4.5:1+). */
  --grad-accent-text: linear-gradient(135deg, #c2410c, #a3360a 50%, #0d6a80);
  /* Fills keep the primary (barely shaded); trims are cyan; the accent
     gradient itself is only for the logo, main prices and one hero accent. */
  --grad: linear-gradient(180deg, #ff7a3d 0%, #ff6b2c 100%);
  --grad-gold: linear-gradient(135deg, #a8f0ff 0%, #3fd4f0 50%, #1aa6c4 100%);
  --grad-text: var(--grad-accent);
  --grad-bubble: linear-gradient(135deg, #b4441a 0%, #9c3810 100%);
  --on-bubble: #ffffff;
  --master: #0d6a80;
  --master-soft: rgba(13, 106, 128, 0.1);
  --master-text: #0d6a80;
  --logo-a: #e04e14;
  --logo-a-text: #a3360a; /* BOOST on paper */
  --logo-b-text: #007a78; /* NINJA on paper */
  --logo-b: #1aa6c4;
  --bg-0-end: #eaf6fa;
  --page-glow-top: rgba(63, 212, 240, 0.08);
  --page-glow-bottom: rgba(255, 107, 44, 0.05);
  /* Paper keeps the same lighting, very faint. */
  --page-bg:
    radial-gradient(1200px 700px at 85% -10%, rgba(63, 212, 240, 0.12), transparent 60%),
    radial-gradient(800px 500px at 15% 105%, rgba(255, 107, 44, 0.06), transparent 60%),
    linear-gradient(180deg, #f3fafc 0%, #eef8fb 100%);
  --section-glow-cyan: radial-gradient(700px 420px at 100% 40%, rgba(63, 212, 240, 0.08), transparent 70%);
  --section-glow-ember: radial-gradient(640px 380px at 0% 60%, rgba(255, 107, 44, 0.04), transparent 70%);
  --noise-opacity: 0.03;
  --card-surface:
    radial-gradient(400px 200px at 100% 0%, rgba(63, 212, 240, 0.06), transparent 70%),
    linear-gradient(160deg, #ffffff, #fbfeff);
  --card-border: rgba(13, 106, 128, 0.14);
  --card-border-hover: rgba(11, 111, 184, 0.4);
  --tile-base: #ffffff;
  --tile-light: rgba(255, 107, 44, 0.14);
  --tile-well: rgba(232, 244, 248, 0.9);
  --icon-1: #ff6b2c;
  --icon-2: #c2410c;
  --icon-3: #c2410c;
  --icon-glow: transparent;
  /* No neon on paper: the "glow" names resolve to soft shadows. */
  --brand-glow: rgba(6, 32, 43, 0.1);
  --brand-fill: #ff6b2c; /* dark-ink label */
  --brand-fill-hover: #ff9a5c;
  --trim: rgba(194, 65, 12, 0.45);
  --trim-hover: rgba(194, 65, 12, 0.8);
  --lift-ring: rgba(11, 111, 184, 0.35);
  --lift-shadow: 0 18px 40px -16px rgba(6, 32, 43, 0.2);
  --success: #1fa866;
  --success-soft: rgba(61, 214, 140, 0.14);
  --success-text: #126b40;
  --warning: #c98a12;
  --warning-soft: rgba(255, 194, 71, 0.16);
  --warning-text: #8a5a05;
  --danger: #d9424f;
  --danger-soft: rgba(255, 77, 94, 0.12);
  --danger-text: #b42a37;
  --danger-fill: #dc2626;
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.1);
  --info-text: #1d4ed8;
  --cool-glow: transparent;
  --shadow-md: 0 8px 24px -10px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, 0.22);
  --glow-brand: 0 0 0 1px rgba(194, 65, 12, 0.3);
  --glow-gold: none;
  color-scheme: light;
}
/* Dashboard layouts (lib/fonts/panel.ts): Inter is set on this element. */
.panel-fonts {
  --font-body-stack: var(--font-body, "Inter"), ui-sans-serif, system-ui, sans-serif;
  --font-display-stack: var(--font-body-stack);
  /* The dashboards' display face (page titles, headline figures): the
     homepage's Tektur 800, falling back to Inter. */
  --panel-display: var(--font-display, var(--font-body, "Inter")), var(--font-body-stack);
  font-family: var(--font-body-stack);
}

/* ============================================================
   Dashboard system (2026-09-30, site/21): the admin, booster and client
   dashboards get their own layered surfaces and a semantic accent palette.
   The public site keeps the Neon tokens above.

   Surfaces, darkest to lightest, each a visible step: page → sidebar →
   card → raised (table head, inputs, inner boxes) → hover. Slate with a
   little blue instead of saturated navy, so the accents carry the colour.

   Accents mean one thing each, everywhere: blue = info and the primary
   action, green = money and success, amber = waiting on someone, red = a
   problem, violet = boosters, cyan = customers; rose = the marketplace
   (accounts, smurfs, coaching) and slate = system. Each has a solid
   (icons, bars, dots), a soft 15% tint (tiles, pills, washes) and a text
   colour that is ≥4.5:1 on its soft tint over a card.

   Any element can take an accent with data-accent="blue|green|…": it sets
   --accent, --accent-soft, --accent-text and --accent-line for its subtree.
   ============================================================ */
.panel-fonts {
  --d-page: #03121a;
  --d-sidebar: #101519;
  --d-card: #14191d;
  --d-raised: #1b2227;
  --d-hover: #252e34;
  --d-border: rgba(148, 163, 184, 0.11);
  --d-border-strong: rgba(148, 163, 184, 0.2);
  --d-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  --d-zebra: rgba(148, 163, 184, 0.025);

  --c-blue: #4d8dff;
  --c-blue-soft: rgba(77, 141, 255, 0.15);
  --c-blue-text: #a3c3ff;
  --c-blue-fill: #2f6fe4; /* white text 4.6:1: the primary button, your own chat bubble */
  --c-blue-fill-hover: #2862cf;
  --c-green: #3dd68c;
  --c-green-soft: rgba(62, 207, 116, 0.14);
  --c-green-text: #86efac;
  --c-amber: #ffc247;
  --c-amber-soft: rgba(245, 165, 36, 0.15);
  --c-amber-text: #fcd34d;
  --c-red: #ff4d5e;
  --c-red-soft: rgba(240, 82, 82, 0.15);
  --c-red-text: #fca5a5;
  --c-violet: #1aa6c4;
  --c-violet-soft: rgba(26, 166, 196, 0.16);
  --c-violet-text: #8ee8f7;
  --c-cyan: #22c7e0;
  --c-cyan-soft: rgba(34, 199, 224, 0.14);
  --c-cyan-text: #7ee6f5;
  --c-rose: #f472b6;
  --c-rose-soft: rgba(244, 114, 182, 0.14);
  --c-rose-text: #f9a8d4;
  --c-slate: #94a3b8;
  --c-slate-soft: rgba(148, 163, 184, 0.14);
  --c-slate-text: #cbd5e1;

  /* The shared names every dashboard stylesheet reads, re-pointed at the
     scale above (custom properties resolve where they are declared, so the
     aliases are declared again here). */
  --bg-0: var(--d-page);
  --bg-1: var(--d-card);
  --bg-2: var(--d-raised);
  --bg-3: var(--d-hover);
  --line: var(--d-border);
  --line-strong: var(--d-border-strong);
  --text: #eef2f8;
  --text-2: #a5b0c2;
  --text-3: #8a96aa; /* labels and meta: 4.7:1 on --d-hover */
  --bg: var(--bg-0);
  --surface-1: var(--bg-1);
  --surface-2: var(--bg-2);
  --surface-3: var(--bg-3);
  --panel: var(--bg-1);
  --card: var(--bg-2);
  --elevated: var(--bg-3);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --muted: var(--text-2);
  --subtle: var(--text-3);
  --text-secondary: var(--text-2);

  /* Primary = blue in this base system; the Neon skin below (every
     dashboard area wears it) re-points it to the site's purple. */
  --brand: var(--c-blue);
  --brand-hover: #3d7cf0;
  --brand-soft: var(--c-blue-soft);
  --brand-text: var(--c-blue-text);
  --brand-glow: rgba(77, 141, 255, 0.35);
  --brand-fill: var(--c-blue-fill);
  --brand-fill-hover: var(--c-blue-fill-hover);
  --on-primary: #ffffff;
  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
  --primary-soft: var(--brand-soft);
  --focus-ring: 0 0 0 2px var(--d-page), 0 0 0 4px var(--c-blue);

  /* Status names read by the kit's pills and notices. */
  --success: var(--c-green);
  --success-soft: var(--c-green-soft);
  --success-text: var(--c-green-text);
  --warning: var(--c-amber);
  --warning-soft: var(--c-amber-soft);
  --warning-text: var(--c-amber-text);
  --danger: var(--c-red);
  --danger-soft: var(--c-red-soft);
  --danger-text: var(--c-red-text);
  --info: var(--c-blue);
  --info-soft: var(--c-blue-soft);
  --info-text: var(--c-blue-text);
  --money: var(--c-green-text);

  /* Type scale of the dashboards: page title (display face), section
     title, card title, body, meta. Labels muted, values bright. */
  --t-page: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  --t-section: 1rem;
  --t-card: 0.875rem;
  --t-body: 0.875rem;
  --t-meta: 0.75rem;
  --t-figure: clamp(1.625rem, 1.4rem + 0.5vw, 1.875rem);

  --accent: var(--c-slate);
  --accent-soft: var(--c-slate-soft);
  --accent-text: var(--c-slate-text);
  --accent-line: rgba(148, 163, 184, 0.35);
  background: var(--d-page);
  color: var(--text);
}
[data-theme="light"] .panel-fonts {
  --d-page: #f4f6fa;
  --d-sidebar: #eceff5;
  --d-card: #ffffff;
  --d-raised: #f3f5f9;
  --d-hover: #e8ecf3;
  --d-border: rgba(15, 23, 42, 0.09);
  --d-border-strong: rgba(15, 23, 42, 0.16);
  --d-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 0 transparent;
  --d-zebra: rgba(15, 23, 42, 0.022);
  --c-blue: #2563eb;
  --c-blue-soft: rgba(37, 99, 235, 0.1);
  --c-blue-text: #1d4ed8;
  --c-blue-fill: #2563eb;
  --c-blue-fill-hover: #1d4fd0;
  --c-green: #15803d;
  --c-green-soft: rgba(22, 163, 74, 0.1);
  --c-green-text: #166534;
  --c-amber: #b45309;
  --c-amber-soft: rgba(217, 119, 6, 0.11);
  --c-amber-text: #9a4a07;
  --c-red: #dc2626;
  --c-red-soft: rgba(220, 38, 38, 0.1);
  --c-red-text: #b91c1c;
  --c-violet: #0d6a80;
  --c-violet-soft: rgba(13, 106, 128, 0.1);
  --c-violet-text: #0b5c6e;
  --c-cyan: #0891b2;
  --c-cyan-soft: rgba(8, 145, 178, 0.1);
  --c-cyan-text: #0e6b85;
  --c-rose: #db2777;
  --c-rose-soft: rgba(219, 39, 119, 0.1);
  --c-rose-text: #be185d;
  --c-slate: #64748b;
  --c-slate-soft: rgba(100, 116, 139, 0.12);
  --c-slate-text: #475569;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #5b6779;
  --brand-hover: #1d4fd0;
  --brand-glow: rgba(37, 99, 235, 0.25);
  --accent-line: rgba(100, 116, 139, 0.35);
}
.panel-fonts [data-accent="blue"] {
  --accent: var(--c-blue);
  --accent-soft: var(--c-blue-soft);
  --accent-text: var(--c-blue-text);
  --accent-line: color-mix(in srgb, var(--c-blue) 38%, transparent);
}
.panel-fonts [data-accent="green"] {
  --accent: var(--c-green);
  --accent-soft: var(--c-green-soft);
  --accent-text: var(--c-green-text);
  --accent-line: color-mix(in srgb, var(--c-green) 38%, transparent);
}
.panel-fonts [data-accent="amber"] {
  --accent: var(--c-amber);
  --accent-soft: var(--c-amber-soft);
  --accent-text: var(--c-amber-text);
  --accent-line: color-mix(in srgb, var(--c-amber) 38%, transparent);
}
.panel-fonts [data-accent="red"] {
  --accent: var(--c-red);
  --accent-soft: var(--c-red-soft);
  --accent-text: var(--c-red-text);
  --accent-line: color-mix(in srgb, var(--c-red) 38%, transparent);
}
.panel-fonts [data-accent="violet"] {
  --accent: var(--c-violet);
  --accent-soft: var(--c-violet-soft);
  --accent-text: var(--c-violet-text);
  --accent-line: color-mix(in srgb, var(--c-violet) 38%, transparent);
}
.panel-fonts [data-accent="cyan"] {
  --accent: var(--c-cyan);
  --accent-soft: var(--c-cyan-soft);
  --accent-text: var(--c-cyan-text);
  --accent-line: color-mix(in srgb, var(--c-cyan) 38%, transparent);
}
.panel-fonts [data-accent="rose"] {
  --accent: var(--c-rose);
  --accent-soft: var(--c-rose-soft);
  --accent-text: var(--c-rose-text);
  --accent-line: color-mix(in srgb, var(--c-rose) 38%, transparent);
}
.panel-fonts [data-accent="slate"] {
  --accent: var(--c-slate);
  --accent-soft: var(--c-slate-soft);
  --accent-text: var(--c-slate-text);
  --accent-line: color-mix(in srgb, var(--c-slate) 38%, transparent);
}

/* One card shape site-wide: rounded corners (the old cut-corner "blade"
   class now maps to it, so every card, modal and panel matches). */
.blade {
  border-radius: var(--radius-lg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   Neon skin for the dashboards (2026-10-02: client site/25, booster
   site/26, HQ site/27; purple primary site/28): each area's layout sets
   data-skin="neon" on its .panel-fonts root. The surfaces become glass
   over the night (translucent cards, white/5% inner blocks, hairline
   borders), the primary becomes the public site's electric purple with
   white text on fills; the semantic accents (green money, amber waiting,
   red problems, blue info, violet boosters, cyan customers) keep their
   meaning. Shell rules (floating glass sidebar and top bar, page glows)
   live in components/panel/panel.module.css under [data-skin="neon"].
   ============================================================ */
.panel-fonts[data-skin="neon"] {
  /* The public site's night (site/56): navy black, dark navy glass. */
  --d-page: #05070d;
  --d-sidebar: rgba(10, 16, 28, 0.86);
  --d-card: rgba(12, 19, 33, 0.86);
  --d-raised: rgba(255, 255, 255, 0.035);
  --d-hover: rgba(255, 255, 255, 0.056);
  --d-border: rgba(255, 255, 255, 0.07);
  --d-border-strong: rgba(255, 255, 255, 0.126);
  --d-card-shadow: var(--glass-highlight), var(--glass-shadow);
  --d-zebra: rgba(255, 255, 255, 0.014);
  /* An opaque glass for things that float over content (menus, toasts). */
  --d-float: rgba(10, 16, 28, 0.95);
  --text: #f5f7f8;
  --text-2: #bcc4c9;
  --text-3: #949ea5; /* neutral grey, 5:1 on --bg-3 */

  --brand: #ff6b2c;
  --brand-hover: #ff9a5c;
  --brand-soft: rgba(255, 107, 44, 0.12);
  --brand-text: #ff7a3d;
  --brand-glow: rgba(255, 107, 44, 0.12);
  --brand-fill: #ff6b2c;
  --brand-fill-hover: #ff9a5c;
  --on-primary: #1a0a03;
  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
  --primary-soft: var(--brand-soft);
  --focus-ring: 0 0 0 2px var(--d-page), 0 0 0 4px var(--glow-blue);
  --accent: #ff6b2c;
  --accent-soft: rgba(255, 107, 44, 0.12);
  --accent-text: #ff7a3d;
  --accent-line: rgba(255, 107, 44, 0.4);
  background: var(--d-page);
}
[data-theme="light"] .panel-fonts[data-skin="neon"] {
  --d-page: #f3fafc;
  --d-sidebar: rgba(255, 255, 255, 0.7);
  --d-card: rgba(255, 255, 255, 0.78);
  --d-raised: rgba(15, 23, 42, 0.035);
  --d-hover: rgba(15, 23, 42, 0.06);
  --d-border: rgba(15, 23, 42, 0.08);
  --d-border-strong: rgba(15, 23, 42, 0.14);
  --d-card-shadow: var(--glass-highlight), 0 18px 44px -24px rgba(15, 23, 42, 0.22);
  --d-zebra: rgba(15, 23, 42, 0.02);
  --d-float: rgba(255, 255, 255, 0.96);
  --text: #06202b;
  --text-2: #3a5a66;
  --text-3: #4b6873;
  --brand: #c2410c;
  --brand-hover: #a3360a;
  --brand-soft: rgba(255, 107, 44, 0.16);
  --brand-text: #a3360a;
  --brand-glow: rgba(15, 23, 42, 0.12);
  --brand-fill: #ff6b2c;
  --brand-fill-hover: #ff9a5c;
  --on-primary: #1a0a03;
  --focus-ring: 0 0 0 2px var(--d-page), 0 0 0 4px var(--glow-blue);
  --accent: #c2410c;
  --accent-soft: rgba(255, 107, 44, 0.16);
  --accent-text: #a3360a;
  --accent-line: rgba(194, 65, 12, 0.35);
}
