/* ============================================================
   KVB 2.0 — Design System
   Dark mode · frosted glass over vibrant Kick-green · Apple-grade
   ============================================================ */

:root {
  /* ---- driven by Tweaks panel ---- */
  --accent-h: 140;            /* hue of the brand green #53FC18 */
  --glass-blur: 26px;         /* frosted intensity */
  --bg-glow: 0.5;             /* vibrancy of the color field */

  /* ---- derived accent ramp · tuned to Kick green #53FC18 ---- */
  --accent:      oklch(0.869 0.275 var(--accent-h));
  --accent-soft: oklch(0.82 0.215 var(--accent-h));
  --accent-deep: oklch(0.63 0.205 var(--accent-h));
  --accent-ink:  oklch(0.22 0.07 var(--accent-h));
  --accent-glow: oklch(0.869 0.275 var(--accent-h) / 0.45);

  /* ---- surfaces ---- */
  --bg-0: oklch(0.115 0.014 162);   /* page base */
  --bg-1: oklch(0.155 0.018 162);   /* raised */
  --ink:  oklch(0.975 0.004 160);   /* primary text */
  --ink-2: oklch(0.80 0.012 165);   /* secondary text */
  --ink-3: oklch(0.62 0.012 165);   /* tertiary / captions */

  /* ---- glass (dark, smoky, translucent) ---- */
  --glass-fill: color-mix(in oklch, var(--bg-0) 64%, transparent);
  --glass-fill-strong: color-mix(in oklch, var(--bg-0) 80%, transparent);
  --glass-border: color-mix(in oklch, white 12%, transparent);
  --glass-border-soft: color-mix(in oklch, white 6%, transparent);
  --glass-hi: color-mix(in oklch, white 22%, transparent);
  --glass-sheen: color-mix(in oklch, white 7%, transparent);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --shadow-1: 0 1px 0 var(--glass-sheen) inset, 0 12px 34px -14px rgba(0,0,0,0.8);
  --shadow-2: 0 1px 0 var(--glass-sheen) inset, 0 34px 90px -28px rgba(0,0,0,0.9);
  --shadow-float: 0 1px 0 var(--glass-sheen) inset, 0 50px 140px -34px rgba(0,0,0,0.95);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1180px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

#root { min-height: 100vh; }

/* ---------- The vibrant color field that lives behind all glass ---------- */
.bgfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-0);
}
.bgfield::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 50% at 18% 12%, oklch(0.82 0.20 var(--accent-h) / calc(0.55 * var(--bg-glow))), transparent 60%),
    radial-gradient(46% 55% at 88% 22%, oklch(0.78 0.16 calc(var(--accent-h) + 12) / calc(0.42 * var(--bg-glow))), transparent 62%),
    radial-gradient(60% 60% at 70% 95%, oklch(0.70 0.16 calc(var(--accent-h) + 8) / calc(0.40 * var(--bg-glow))), transparent 60%),
    radial-gradient(50% 50% at 30% 80%, oklch(0.66 0.13 calc(var(--accent-h) - 8) / calc(0.30 * var(--bg-glow))), transparent 60%);
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
}
.bgfield::after {                      /* fine grain so the gradient isn't flat */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .bgfield::before { animation: none; }
}

/* background style variants (set via data attr on body) */
body[data-bg="mesh"]  .bgfield::before { opacity: 1; }
body[data-bg="aurora"] .bgfield::before {
  background:
    radial-gradient(38% 80% at 50% -10%, oklch(0.84 0.22 var(--accent-h) / calc(0.6 * var(--bg-glow))), transparent 60%),
    radial-gradient(40% 70% at 12% 60%, oklch(0.74 0.16 calc(var(--accent-h)+12) / calc(0.45 * var(--bg-glow))), transparent 60%),
    radial-gradient(40% 70% at 90% 70%, oklch(0.70 0.15 calc(var(--accent-h)-10) / calc(0.45 * var(--bg-glow))), transparent 60%);
}
body[data-bg="spot"] .bgfield::before {
  background:
    radial-gradient(46% 46% at 50% 8%, oklch(0.84 0.22 var(--accent-h) / calc(0.7 * var(--bg-glow))), transparent 55%),
    radial-gradient(70% 60% at 50% 120%, oklch(0.55 0.12 var(--accent-h) / calc(0.5 * var(--bg-glow))), transparent 60%);
}

/* ---------- Glass primitive ---------- */
.glass {
  background:
    linear-gradient(180deg, var(--glass-sheen), transparent 42%),
    var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%) brightness(0.92);
  backdrop-filter: blur(var(--glass-blur)) saturate(125%) brightness(0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.glass-strong {
  background:
    linear-gradient(180deg, color-mix(in oklch, white 9%, transparent), transparent 38%),
    var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 10px)) saturate(135%) brightness(0.9);
  backdrop-filter: blur(calc(var(--glass-blur) + 10px)) saturate(135%) brightness(0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* ---------- Type scale ---------- */
.h-display { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 680; }
.h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 660; }
.h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.022em; font-weight: 640; }
.h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 620; }
.body-lg { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); }
.body { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.cap { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-3); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-soft);
}

.accent-text { color: var(--accent); }
.gradient-text {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-size: 15px; font-weight: 560; letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s cubic-bezier(.2,.85,.3,1), box-shadow .12s cubic-bezier(.2,.85,.3,1),
              background .16s, border-color .18s;
  display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
.btn:active { transform: translateY(4px); }
/* Clay: a lit top face, a shaded bottom lip, and a hard edge underneath so the button has a
   SIDE rather than a halo. The 4px edge is what the press collapses onto. */
.btn-primary {
  background: linear-gradient(176deg, #6BFF3C 0%, var(--accent) 46%, #3FCB0E 100%);
  color: var(--accent-ink);
  font-weight: 640;
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset,
              0 -2px 6px rgba(4,40,0,0.35) inset,
              0 6px 0 #1F7A00,
              0 10px 18px -6px rgba(0,0,0,0.7);
}
.btn-primary:hover {
  background: linear-gradient(176deg, #7DFF55 0%, #5CFF28 46%, #46DB12 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset,
              0 -2px 6px rgba(4,40,0,0.3) inset,
              0 6px 0 #1F7A00,
              0 14px 24px -7px rgba(0,0,0,0.72),
              0 0 24px -6px var(--accent-glow);
}
.btn-primary:active {
  transform: translateY(6px);
  background: linear-gradient(176deg, #4FE016 0%, #43C912 46%, #2E9A06 100%);
  box-shadow: 0 3px 7px rgba(2,40,0,0.6) inset,
              0 0 0 #1F7A00,
              0 0 0 rgba(0,0,0,0);
}
.btn-ghost {
  background: linear-gradient(176deg, #1A211D, #121815);
  border-color: rgba(255,255,255,0.10);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset,
              0 5px 0 #0A0F0C,
              0 9px 16px -7px rgba(0,0,0,0.8);
}
.btn-ghost:hover {
  background: linear-gradient(176deg, #202823, #161D19);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset,
              0 5px 0 #0A0F0C,
              0 13px 22px -8px rgba(0,0,0,0.82);
}
.btn-ghost:active {
  transform: translateY(5px);
  box-shadow: 0 3px 7px rgba(0,0,0,0.55) inset,
              0 0 0 #0A0F0C,
              0 0 0 rgba(0,0,0,0);
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(176deg, #1A211D, #121815);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset, 0 2px 0 #0A0F0C;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { position: relative; z-index: 1; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.divider { height: 1px; background: var(--glass-border-soft); border: 0; }

/* image placeholder look */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, white 5%, transparent) 0 12px, transparent 12px 24px),
    color-mix(in oklch, var(--bg-1) 70%, transparent);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.ph .ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3);
  background: color-mix(in oklch, black 30%, transparent);
  padding: 5px 10px; border-radius: 7px;
}

image-slot { border-radius: var(--radius-sm); overflow: hidden; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--glass-hi); background-clip: padding-box; }

/* entrance animations */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.fade { animation: fade .8s ease both; }
@media (prefers-reduced-motion: reduce) { .rise, .fade { animation: none; } }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
::selection { background: color-mix(in oklch, var(--accent) 40%, transparent); color: var(--ink); }

/* ============================================================
   Dashboard component kit
   ============================================================ */
.dinput {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: #0B100D;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 13px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5) inset;
  transition: border-color .2s, box-shadow .2s;
}
.dinput:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
/* ---------- Input typeface ---------- */
/* "Kick Font" by NachoZombiezz - the brand display face, SIL OFL 1.1. The licence and the archive
   readme ship beside it at ui/assets/fonts/kick/ because FontStruct's terms require the font to be
   redistributed with its accompanying files.
   Declared as `KickInput`, a private name, so it can only ever be reached by the one rule below -
   nothing can pull it into --font by accident.
   It is a FontStruct modular face: 106 glyphs, complete for a-z A-Z 0-9 _ - and punctuation, which
   is everything a Kick username needs, but it has no other coverage - hence the system stack behind
   it so anything unusual still renders.
   ascent/descent-override pin its 1.2500em line box to Segoe UI's 1.3301em, so swapping the font in
   moves nothing vertically. Its x-height is 0.583em against Segoe's 0.500em, so it reads noticeably
   larger at the same px - that is the face, not a bug. */
@font-face {
  font-family: KickInput;
  src: url(/ui/assets/fonts/kick/kick-font.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 107.91%;
  descent-override: 25.10%;
  line-gap-override: 0%;
}

/* CUSTOMER DASHBOARD ONLY. This stylesheet is shared by 13 pages, so the rule is gated on a marker
   that only app/dashboard.php sets - login, the KCIP checkout, the reseller portal and the admin
   panel (which uses the same <body data-bg="mesh">) all keep the system stack. */
/* Only the streamer-username field. DField's `channel` mode tags its wrapper .kvb-username, and all
   six live username fields use that mode - Viewer Bot, Chat Bot, Follow Bot, Clip Viewbot, AI
   Chatbot and Poll Bot. Every other input keeps the system stack. */
body[data-app="dashboard"] .kvb-username input { font-family: KickInput, var(--font); }

.dinput input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-size: 14.5px; padding: 12px 0; font-family: var(--font);
}
.dinput input::placeholder { color: var(--ink-3); }

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 3px; border-radius: 12px;
  background: color-mix(in oklch, black 26%, transparent); border: 1px solid var(--glass-border-soft); }
.seg button {
  border: none; background: transparent; color: var(--ink-2); cursor: pointer;
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  transition: background .2s, color .2s; white-space: nowrap;
}
.seg button[data-on="true"] { background: var(--glass-fill-strong); color: var(--ink); box-shadow: 0 1px 0 var(--glass-sheen) inset, 0 4px 12px -6px rgba(0,0,0,.6); }

/* toggle switch */
.tgl { width: 44px; height: 26px; border-radius: 99px; border: 1px solid var(--glass-border);
  background: color-mix(in oklch, black 30%, transparent); cursor: pointer; position: relative; transition: background .25s, border-color .25s; flex-shrink: 0; }
.tgl[data-on="true"] { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-color: transparent; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: white; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.tgl[data-on="true"]::after { transform: translateX(18px); }

/* table */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; padding: 11px 14px; color: var(--ink-3); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--glass-border-soft); }
.dtable td { padding: 13px 14px; border-bottom: 1px solid var(--glass-border-soft); color: var(--ink-2); }
.dtable tr:last-child td { border-bottom: none; }
.dtable tr { transition: background .15s; }
.dtable tbody tr:hover { background: var(--glass-fill); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; letter-spacing: -0.01em; }

/* status badge */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.status .sd { width: 6px; height: 6px; border-radius: 50%; }
.status.ok  { background: color-mix(in oklch, var(--accent) 14%, transparent); color: var(--accent); }
.status.ok .sd { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.status.warn { background: color-mix(in oklch, oklch(0.8 0.15 75) 16%, transparent); color: oklch(0.85 0.15 75); }
.status.warn .sd { background: oklch(0.82 0.15 75); }
.status.bad  { background: color-mix(in oklch, oklch(0.65 0.2 25) 18%, transparent); color: oklch(0.78 0.18 25); }
.status.bad .sd { background: oklch(0.7 0.2 25); }
.status.idle { background: var(--glass-fill); color: var(--ink-3); }
.status.idle .sd { background: var(--ink-3); }

/* scrolly feed */
.feed { overflow-y: auto; }
.feed::-webkit-scrollbar { width: 7px; }

/* range input — consistent dark look */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px;
  background: var(--glass-border); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: white; box-shadow: 0 0 0 4px var(--accent-glow), 0 2px 6px rgba(0,0,0,.4); cursor: pointer; }

.tile { transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, background .25s; }
.tile:hover { transform: translateY(-3px); border-color: var(--glass-hi); }

@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

/* sub-pages responsive */
@media (max-width: 820px){
  .disc-grid{ grid-template-columns: 1fr !important; }
  .status-row{ grid-template-columns: 1fr auto !important; }
  .status-row .status-bars{ display: none !important; }
}
@media (max-width: 680px){
  .rg3, .rg4{ grid-template-columns: 1fr 1fr !important; }
}

/* --------------------------------------------------------------------------
   Mobile INP fix - 2026-08-11
   backdrop-filter makes the GPU re-composite the blurred region on every
   interaction; that cost lands in the presentation half of INP and is far
   worse on mobile GPUs. Universal inside the query on purpose: enumerating
   class names missed 21 elements on the first attempt, and on a phone nothing
   should be paying for this effect.
   Elements keep their own background colour, so only the see-through look is
   lost. Desktop (fine pointer, >900px) is untouched.
   -------------------------------------------------------------------------- */
@media (max-width: 900px), (pointer: coarse) {
  *, *::before, *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 900px), (pointer: coarse) {
  :root {
    /* was 64% / 80%; the blur supplied the rest of the panel separation */
    --glass-fill: color-mix(in oklch, var(--bg-0) 93%, transparent);
    --glass-fill-strong: color-mix(in oklch, var(--bg-0) 97%, transparent);
  }
  /* the always-on full-bleed glow competes for the same GPU that paints each
     interaction - hold it still on touch devices */
  .bgfield::before, .bgfield::after { animation: none !important; }
}

/* ============================================================================
   BRAND: TVB (Twitch)
   ----------------------------------------------------------------------------
   kvb.gg and tvb.gg serve the SAME stylesheet and the SAME JS bundle; the only
   difference is the `data-brand` attribute each site's PHP puts on <body>.

   The whole accent system is derived from a single hue via oklch(), so the
   entire ramp - buttons, glows, focus rings, the four background gradients -
   follows from changing ONE number. 140 is Kick green (#53FC18); 295 is Twitch
   purple (#9146FF). Nothing else needs a per-brand rule.

   MUST be :root (the <html> element), NOT <body>. --accent and the rest of the
   ramp are DECLARED on :root as oklch(... var(--accent-h)); custom properties are
   substituted at the element where they are declared, so redefining --accent-h on a
   descendant like <body> leaves the derived ramp resolved at :root's value and the
   page stays green. Setting it on <html> is what actually re-derives the ramp.

   Scoped to [data-brand="tvb"], so KVB is untouched: it never sets the attribute.
   ========================================================================== */
:root[data-brand="tvb"] {
  --accent-h: 295;

  /* The hue alone is NOT enough. The ramp above is tuned to Kick green #53FC18, which is an
     unusually LIGHT colour (L=0.869). Rotating only the hue keeps that lightness, and purple at
     L=0.869 is a pastel lilac, nothing like Twitch's #9146FF. So the ramp is re-derived here at
     the lightness purple actually needs.

     --accent-ink is the critical one: it is the text colour used ON an accent-filled button.
     KVB sets it DARK (L=0.22) because bright green needs dark text. Twitch purple is a DARK
     colour, so inheriting that would put near-black text on a dark purple button - illegible.
     It is flipped to near-white here. */
  --accent:      oklch(0.62 0.24 var(--accent-h));   /* ~#9146FF, Twitch purple */
  --accent-soft: oklch(0.72 0.19 var(--accent-h));
  --accent-deep: oklch(0.50 0.22 var(--accent-h));
  --accent-ink:  oklch(0.97 0.02 var(--accent-h));   /* text ON accent - light, not dark */
  --accent-glow: oklch(0.62 0.24 var(--accent-h) / 0.45);
}

/* The clay primary button does NOT derive its colours - it bakes them as literal greens
   (#6BFF3C / #3FCB0E / #1F7A00 and a dark-green inner shadow), so the hue override above cannot
   reach it. On TVB that left every primary button Kick-green while the rest of the page went
   purple. Re-derived here from --accent-h so it tracks whatever the brand hue is.
   The three stops mirror the original's shape: a lighter top, the accent in the middle, a darker
   bottom, plus the solid 6px "edge" underneath that gives the button its clay depth. */
:root[data-brand="tvb"] .btn-primary {
  background: linear-gradient(176deg,
              oklch(0.72 0.22 var(--accent-h)) 0%,
              var(--accent) 46%,
              oklch(0.50 0.22 var(--accent-h)) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.34) inset,
              0 -2px 6px rgba(18,0,40,0.35) inset,
              0 6px 0 oklch(0.36 0.16 var(--accent-h)),
              0 10px 18px -6px rgba(0,0,0,0.7);
}
:root[data-brand="tvb"] .btn-primary:hover {
  background: linear-gradient(176deg,
              oklch(0.78 0.20 var(--accent-h)) 0%,
              oklch(0.68 0.24 var(--accent-h)) 46%,
              oklch(0.56 0.22 var(--accent-h)) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.42) inset,
              0 -2px 6px rgba(18,0,40,0.3) inset,
              0 6px 0 oklch(0.36 0.16 var(--accent-h)),
              0 14px 24px -7px rgba(0,0,0,0.72),
              0 0 24px -6px var(--accent-glow);
}
:root[data-brand="tvb"] .btn-primary:active {
  background: linear-gradient(176deg,
              oklch(0.58 0.23 var(--accent-h)) 0%,
              oklch(0.52 0.22 var(--accent-h)) 46%,
              oklch(0.42 0.20 var(--accent-h)) 100%);
  box-shadow: 0 3px 7px rgba(12,0,30,0.6) inset,
              0 0 0 oklch(0.36 0.16 var(--accent-h)),
              0 0 0 rgba(0,0,0,0);
}
