/* =================================================================
   ArrowVision  ·  app.css  ·  v1.0
   Design system + components for a motorsports streaming platform.
   Dark by default. Single accent. Generous spacing. No frameworks.
   ================================================================= */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, [type="submit"], [type="button"], [type="reset"] {
  font-family: 'Russo One', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer; border: 0; background: none; color: inherit;
}
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; height: 1px; background: var(--rule); margin: 2rem 0; }

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  /* Color — dark theme is the default */
  --bg:           #0B0C0E;
  --bg-elev-1:    #14161A;
  --bg-elev-2:    #1C1F24;
  --bg-elev-3:    #262A30;
  --rule:         #2A2E35;
  --text:         #F3F4F6;
  --text-muted:   #9CA3AF;
  --text-dim:     #6B7280;
  --accent:       #E10600;
  --accent-hot:   #FF1F1A;
  --accent-soft:  rgba(225, 6, 0, 0.12);
  /* v3 system additions — used by .av-* classes derived from the logo */
  --accent-bright: #FF2020;
  --accent-deep:   #A30000;
  --skew: -10deg;
  --skew-counter: 10deg;
  --diag: 56px;
  --success:      #10B981;
  --warn:         #F59E0B;
  --danger:       #EF4444;
  --info:         #3B82F6;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Layout */
  --container: 1240px;
  --nav-h: 64px;
}

/* ── Base ──────────────────────────────────────────────────────── */
html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Russo One reads heavy at body-copy sizes (single-weight 400 with thick strokes).
   Revert long-form text to system sans so paragraphs don't look bolded. Headings,
   nav, cards, buttons, eyebrows still inherit Russo One from their own rules. */
p, .lede, .muted,
.av-card__meta,
.av-stat__meta,
.footer p, .footer__col p,
.empty p,
li:not(.nav__links li):not(.nav__dropdown-menu li),
dd, dt {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Exempt code/pre and form fields — they need their own casing */
code, pre, kbd, samp, var,
input, textarea, select, option {
  text-transform: none;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0;
}
input, textarea, select { font-family: var(--font-sans, system-ui, sans-serif); }

main { flex: 1; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-hot); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--sp-4); }
.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }

::selection { background: var(--accent); color: white; }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-7) 0;
}
.section--tight { padding: var(--sp-5) 0; }

.row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
}
.row--between { justify-content: space-between; }
.row--end     { justify-content: flex-end; }
.row--top     { align-items: flex-start; }

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack--lg { gap: var(--sp-5); }
.stack--sm { gap: var(--sp-2); }

.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .row--responsive { flex-direction: column; align-items: stretch; }
}

/* ── Top nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-transform: uppercase;
}
.nav__brand::before {
  content: "";
  width: 10px; height: 18px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  font-family: 'Russo One', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  line-height: 1;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── Dropdown (Profit Sharing) ───────────────────────────────── */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Russo One', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle.is-active,
.nav__dropdown.is-open .nav__dropdown-toggle {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.nav__dropdown-caret {
  font-size: 0.7em;
  transition: transform .18s ease;
  margin-top: 1px;
}
.nav__dropdown.is-open .nav__dropdown-caret { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  list-style: none;
  margin: 8px 0 0;
  min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
  z-index: 100;
}
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu li { display: block; margin: 0; }
.nav__dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-muted);
  border-bottom: none !important;
  font-family: 'Russo One', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav__dropdown-menu a:hover,
.nav__dropdown-menu a.is-active {
  color: var(--text);
  background: var(--bg-elev-3);
}
.nav__actions { display: flex; gap: var(--sp-3); align-items: center; }
/* Nav action buttons (Account / Admin / EARNINGS / Log in / Sign up) — Russo One */
.nav__actions .btn,
.nav__actions a {
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .2s ease;
}
.nav__toggle span::before { position: absolute; top: -7px; left: 0; right: 0; }
.nav__toggle span::after  { position: absolute; top:  7px; left: 0; right: 0; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-elev-1);
    border-bottom: 1px solid var(--rule);
    padding: var(--sp-4) var(--sp-5);
    flex-direction: column;
    gap: var(--sp-3);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: var(--sp-3) 0; }

  /* Dropdown collapses inline on mobile instead of floating */
  .nav__dropdown { width: 100%; }
  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--sp-3) 0;
  }
  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 var(--sp-4);
    margin: var(--sp-2) 0 0;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__dropdown.is-open .nav__dropdown-menu {
    display: block;
    transform: none;
  }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--accent-hot); color: white; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--quiet {
  background: var(--bg-elev-2);
  color: var(--text);
}
.btn--quiet:hover { background: var(--bg-elev-3); }

.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn--danger:hover { background: var(--danger); color: white; }

.btn--sm { padding: 6px 12px; font-size: 0.85rem; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.field__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.field__error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 2px;
}

.input, .textarea, .select {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.textarea { min-height: 110px; resize: vertical; }

.form-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  max-width: 460px;
  margin: 0 auto;
}
.form-card h1 { margin-bottom: var(--sp-2); }
.form-card .lede { color: var(--text-muted); margin-bottom: var(--sp-5); }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .12s ease, border-color .15s ease;
}
.card:hover { border-color: var(--bg-elev-3); }

.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-2px); color: inherit; }

.card__poster {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg-elev-3) 100%);
  position: relative;
}
.card__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__body {
  padding: var(--sp-4) var(--sp-5);
}
.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
}
.card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--r-pill);
  background: var(--bg-elev-3);
  color: var(--text);
  line-height: 1.4;
}
.badge--live { background: var(--accent); color: white; }
.badge--live::before {
  content: "";
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.badge--upcoming { background: var(--bg-elev-3); color: var(--text-muted); }
.badge--free    { background: rgba(16,185,129,.15); color: var(--success); }
.badge--warn,
.badge--ppv,    /* legacy alias — kept so cached pages still render */
.badge--gold    { background: rgba(245,158,11,.15); color: var(--warn); }
.badge--sub     { background: rgba(59,130,246,.15); color: var(--info); }
.badge--dirt    { background: rgba(217,119,6,.18); color: #FBBF24; }
.badge--asphalt { background: rgba(107,114,128,.25); color: #D1D5DB; }
.badge--drag    { background: rgba(220,38,38,.18); color: #FCA5A5; }
.badge--drift   { background: rgba(139,92,246,.20); color: #C4B5FD; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
/* The .hero background stacks (top → bottom):
 *   1. Red radial accent gradients
 *   2. 82% dark overlay — clamps the photo to ~18% visibility
 *   3. --hero-photo (set per page via inline style; defaults to none)
 *   4. --bg solid color (deepest layer)
 * Setting `style="--hero-photo: url('...')"` on the section turns on photography. */
.hero {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-7);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 20% 0%, rgba(225,6,0,.25), transparent 60%),
    radial-gradient(900px 400px at 80% 20%, rgba(225,6,0,.08), transparent 60%),
    linear-gradient(rgba(11,12,14,0.82), rgba(11,12,14,0.82)),
    var(--hero-photo, none);
  background-size: auto, auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--rule);
}

/* Reusable: any section gets a darkened grayscale photo backdrop by
 * adding `class="hero-photo"` + `style="--hero-photo: url(...)"`. */
.hero-photo {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(11,12,14,0.82), rgba(11,12,14,0.82)),
    var(--hero-photo, none);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--sp-4);
  max-width: 18ch;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ── Recipient profile bits ────────────────────────────────────── */
.profile-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-7) 0 var(--sp-5);
  align-items: center;
}
.profile-hero__img {
  width: 200px; height: 200px;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
}
.profile-hero__name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--sp-2);
}
.profile-hero__sub {
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  font-size: 1rem;
}
@media (max-width: 720px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-hero__img { margin: 0 auto; width: 160px; height: 160px; }
}

/* ── Tabs ──────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: var(--sp-5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-6);
}
.tabs a {
  padding: var(--sp-3) 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Stat cards · stock terminal ───────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: var(--sp-5);
}
.stats > .stat { border: none; border-radius: 0; }
.stats > .stat + .stat { box-shadow: -1px 0 0 var(--rule); }
.stats > .stat:nth-child(n+4) { box-shadow: -1px 0 0 var(--rule), 0 -1px 0 var(--rule); }
.stats > .stat:nth-child(3n+1) { box-shadow: 0 -1px 0 var(--rule); }
.stats > .stat:nth-child(-n+3) { box-shadow: -1px 0 0 var(--rule); }
.stats > .stat:first-child     { box-shadow: none; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stats { grid-template-columns: 1fr; } }

.stat {
  position: relative;
  background: #000;
  padding: 18px 20px 16px;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--stat-color, var(--accent));
}
.stat--green  { --stat-color: #10B981; }
.stat--red    { --stat-color: #EF4444; }
.stat--amber  { --stat-color: #F59E0B; }
.stat--white  { --stat-color: #E5E7EB; }

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #9CA3AF;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat__value-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat__delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat__delta.up   { color: #10B981; }
.stat__delta.down { color: #EF4444; }
.stat__spark {
  position: absolute;
  right: 12px; bottom: 12px;
  opacity: 0.5;
}
.stat__spark svg { display: block; }

/* ── Ticker tape ───────────────────────────────────────────────── */
.ticker {
  position: relative;
  background: #000;
  border: 1px solid var(--rule);
  margin-bottom: var(--sp-5);
  overflow: hidden;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 60px;
  pointer-events: none;
  z-index: 2;
}
.ticker::before { left: 0;  background: linear-gradient(to right, #000 0%, transparent 100%); }
.ticker::after  { right: 0; background: linear-gradient(to left,  #000 0%, transparent 100%); }
.ticker__label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker__label::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.ticker__track {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  padding-left: 130px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E5E7EB;
}
.ticker__item--up   { color: #10B981; }
.ticker__item--down { color: #EF4444; }
.ticker__item--neutral { color: #9CA3AF; }
.ticker__tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #fff;
  background: #1f1f1f;
  padding: 2px 6px;
  border-radius: 2px;
}
.ticker__tag--live  { background: var(--accent); }
.ticker__tag--money { background: rgba(16,185,129,0.2); color: #10B981; }
.ticker__tag--info  { background: #2a2a2a; color: #E5E7EB; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Status bar above the ticker ──────────────────────────────── */
.av-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: #000;
  margin-bottom: -1px;  /* merge into ticker */
}
.av-status__group { display: flex; gap: 18px; align-items: center; }
.av-status__cell { display: inline-flex; align-items: center; gap: 6px; }
.av-status__cell strong { color: #E5E7EB; font-weight: 800; }
.av-status__cell--up    strong { color: #10B981; }
.av-status__cell--down  strong { color: #EF4444; }
.av-status__cell--live  strong { color: var(--accent); }
.av-status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ── Tables ────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.table th, .table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-elev-1);
}
.table tbody tr:hover { background: var(--bg-elev-1); }

/* ── Flash messages ────────────────────────────────────────────── */
.flash {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: 0.95rem;
  background: var(--bg-elev-1);
}
.flash--success { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.08); color: var(--success); }
.flash--error   { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); color: var(--danger); }
.flash--info    { border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.08); color: var(--info); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  border-top: 4px solid var(--accent);
  padding: var(--sp-7) 0 var(--sp-6);
  margin-top: var(--sp-8);
  background: var(--bg-elev-1);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-6) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer__col { flex: 0 0 auto; }
.footer__col--brand { flex: 0 1 400px; }
.footer__col--brand p { max-width: 40ch; margin: 0; line-height: 1.65; }
.footer__col h4 {
  font-family: 'Russo One', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin: 0 0 var(--sp-3);
  line-height: 1;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col li:last-child { margin-bottom: 0; }
.footer__col a { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer__legal a { color: var(--text-dim); text-decoration: none; }
.footer__legal a:hover { color: var(--text); }
.footer__legal .footer__sep { opacity: 0.45; }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .footer__col--brand { flex-basis: 100%; }
}

/* ── Empty states ──────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  color: var(--text-muted);
}
.empty h3 { color: var(--text); margin-bottom: var(--sp-2); }

/* ── Admin shell ───────────────────────────────────────────────── */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-6);
  max-width: 1640px;
  margin: 0 auto;
  padding: var(--sp-5);
  align-items: flex-start;
}
.admin-nav {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-2);
  overflow: hidden;
}
.admin-nav__group {
  position: relative;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--rule);
}
.admin-nav__group:first-child {
  border-top: 0;
  padding-top: var(--sp-2);
}
.admin-nav__group:last-child { padding-bottom: 0; }
.admin-nav__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-nav__title::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-color, var(--text-dim));
}
/* Section color coding — terminal palette only (no blue/violet) */
.admin-nav__group--overview   { --accent-color: #E5E7EB; }  /* white */
.admin-nav__group--operations { --accent-color: #F59E0B; }  /* amber */
.admin-nav__group--races      { --accent-color: #22C55E; }  /* green — race ops */
.admin-nav__group--payouts    { --accent-color: #06B6D4; }  /* cyan */
.admin-nav__group--members    { --accent-color: #10B981; }  /* green */
.admin-nav__group--shop       { --accent-color: #A855F7; }  /* purple */
.admin-nav__group--marketing  { --accent-color: #E10600; }  /* red (brand) */
.admin-nav__group--platform   { --accent-color: #6B7280; }  /* gray */
.admin-nav__group .admin-nav__title { color: var(--accent-color); }

.admin-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1px;
}
.admin-nav__link:hover {
  color: var(--text);
  background: var(--bg-elev-2);
}
.admin-nav__link.is-active {
  color: var(--text);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding-left: calc(var(--sp-3) - 2px);
  font-weight: 600;
}
.admin-nav__count {
  font-size: 0.72rem;
  background: var(--bg-elev-3);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.admin-main { min-width: 0; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-5);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.admin-header h1 { margin: 0 0 var(--sp-2); font-size: 1.875rem; }
.admin-header__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
    padding: var(--sp-4);
  }
  .admin-nav { position: static; }
}

/* ── Admin-wide terminal styling ──────────────────────────────── *
 * Every page inside the admin shell gets:
 *   - ALL CAPS headings (h1–h4) with terminal letter-spacing
 *   - ALL CAPS form labels in monospace-ish weight
 *   - ALL CAPS table headers, badges, buttons
 *   - Sharp corners (2–4px), mono numbers, no blue
 */
.admin-main h1,
.admin-main h2,
.admin-main h3,
.admin-main h4,
.admin-main h5 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.admin-main h1 { letter-spacing: 0.02em; }
.admin-main h2 { font-size: 1.25rem; letter-spacing: 0.06em; }
.admin-main h3 { font-size: 1.05rem; letter-spacing: 0.08em; }
.admin-main h4 { font-size: 0.88rem; letter-spacing: 0.12em; color: #9CA3AF; }

.admin-main .admin-header__breadcrumb {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.72rem;
  color: #6B7280;
  font-family: var(--font-mono);
}

.admin-main .field__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.7rem;
  color: #9CA3AF;
  margin-bottom: 6px;
}
.admin-main .field__hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #6B7280;
}

.admin-main .input,
.admin-main .select,
.admin-main .textarea {
  border-radius: 3px;
  background: #000;
  border-color: #2A2E35;
  font-variant-numeric: tabular-nums;
}
.admin-main .input:focus,
.admin-main .select:focus,
.admin-main .textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.admin-main .card {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
}

.admin-main .table th {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #9CA3AF;
  background: #000;
}
.admin-main .table td {
  font-variant-numeric: tabular-nums;
}

.admin-main .badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.66rem;
  border-radius: 2px;
  font-family: var(--font-mono);
}

.admin-main .btn {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 2px;
  font-family: var(--font-sans);
}

/* No blue flashes in admin — info goes amber/neutral */
.admin-main .flash--info {
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.08);
  color: #F59E0B;
}
.admin-main .flash {
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Section divider — for "PLATFORM · SETTINGS" feel between cards */
.admin-main .card + .card { margin-top: var(--sp-3); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3);
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.filter-bar .input,
.filter-bar .select { width: auto; flex: 0 0 auto; }

/* ── Coming-soon stub ─────────────────────────────────────────── */
.stub {
  background: var(--bg-elev-1);
  border: 1px dashed var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.stub h2 { margin-bottom: var(--sp-3); }
.stub__features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.stub__features li {
  list-style: none;
  padding: var(--sp-3);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 0.9rem;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-small  { font-size: 0.875rem; }
.text-mono   { font-family: var(--font-mono); }
.fill        { width: 100%; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: var(--sp-1); }
.mt-2  { margin-top: var(--sp-2); }
.mt-3  { margin-top: var(--sp-3); }
.mt-4  { margin-top: var(--sp-4); }
.mt-5  { margin-top: var(--sp-5); }
.mt-6  { margin-top: var(--sp-6); }
.mt-7  { margin-top: var(--sp-7); }
.mt-8  { margin-top: var(--sp-8); }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: var(--sp-1); }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-3  { margin-bottom: var(--sp-3); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-5  { margin-bottom: var(--sp-5); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-7  { margin-bottom: var(--sp-7); }
.mb-8  { margin-bottom: var(--sp-8); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile fixes ──────────────────────────────────────────────────────── */

/* Safety net against any horizontal overflow site-wide */
html, body { overflow-x: hidden; }
body { width: 100%; max-width: 100vw; }

/* Nav: ensure hamburger stays visible on narrow phones; shrink chrome */
@media (max-width: 480px) {
  .nav__inner       { gap: var(--sp-2); padding: 0 var(--sp-3); }
  .nav__brand       { font-size: 1.05rem; }
  .nav__actions     { gap: var(--sp-1, 4px); }
  .nav__actions .btn--sm,
  .nav__actions .btn { padding: 6px 10px; font-size: 0.78rem; }
  .nav__toggle      { flex-shrink: 0; }
}

/* Footer: collapse 2x2 to single column on small phones (prevents
   "Dollars and Sense" header wrapping to 2 lines) */
@media (max-width: 480px) {
  .footer__grid { gap: var(--sp-5) var(--sp-6); }
}

/* Event player shell: when showing the countdown for an upcoming event,
   the 16:9 box is too short on mobile to fit the badge + title + digits
   + date row, so the date gets clipped. Allow it to grow vertically. */
@media (max-width: 640px) {
  .av-player-shell--upcoming {
    aspect-ratio: unset !important;
    min-height: 420px;
  }
}

/* ── AV brand accents — kept from the older badge-style layer.
   Chrome / bevel treatments removed; only the swoosh and the logo
   lockup remain. */

.nav__brand-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.nav__brand-logo img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .nav__brand-logo img { height: 28px; }
}

/* Red swoosh decoration — soft radial glow behind hero content */
.av-swoosh { position: relative; overflow: hidden; }
.av-swoosh::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 60%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%,
      rgba(225, 6, 0, 0.25) 0%,
      rgba(225, 6, 0, 0.10) 35%,
      transparent 70%);
  transform: rotate(-3deg);
  z-index: 0;
}
.av-swoosh > * { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
 * AV v3 BRAND SYSTEM
 * Logo-derived primitives. All classes prefixed with .av- to avoid colliding
 * with existing .badge / .pill / .stat / .btn rules from the original design.
 * Adopt progressively — pages opt into v3 by swapping in .av-* classes.
 * ═════════════════════════════════════════════════════════════════════════ */

/* ── Type primitives ────────────────────────────────────────────── */

.av-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-muted);
}
.av-eyebrow::before {
  content: ""; width: 32px; height: 2px; background: var(--accent);
  display: inline-block;
}
.av-eyebrow--accent { color: var(--accent); }

.av-display {
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em; line-height: 0.95;
  font-size: clamp(3rem, 8.5vw, 7rem);
  text-transform: uppercase;
  color: var(--text);
}
.av-display .accent { color: var(--accent); }

/* Russo One — applied to every display surface site-wide:
   heroes, section headings, card titles. Hero-tier headlines stay uppercase;
   smaller h2/h3 keep natural case so they read at section scale. */
.hero h1,
.av-display,
.av-hero-head {
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1, h2, h3,
.av-card__title,
.av-badge-card h3,
.av-badge-card .h3 {
  font-family: 'Russo One', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Swoosh wrapper — pair with an inline <svg> using viewBox 0 0 400 32 */
.av-headline-with-swoosh {
  position: relative; display: inline-block;
}
.av-headline-with-swoosh svg {
  position: absolute;
  left: -2%; right: -2%; width: 104%;
  bottom: -22px; height: 32px;
  pointer-events: none;
}

/* ── The forward arrow — pulled from the red arrow inside the logo's "A" ── */
.av-arrow {
  display: inline-block; width: 14px; height: 14px;
  position: relative; vertical-align: middle;
}
.av-arrow::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  clip-path: polygon(0 30%, 65% 30%, 65% 0, 100% 50%, 65% 100%, 65% 70%, 0 70%);
}
.av-arrow--sm { width: 11px; height: 11px; }
.av-arrow--lg { width: 18px; height: 18px; }

/* Arrow buttons — italic, uppercased, with forward arrow on the right */
.av-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font-family: 'Russo One', system-ui, sans-serif;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-style: normal;
  background: transparent; color: var(--text);
  border: 2px solid var(--rule);
  cursor: pointer; transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
  position: relative; line-height: 1;
}
.av-btn:hover { border-color: var(--text); }
.av-btn--primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.av-btn--primary:hover {
  background: var(--accent-bright); border-color: var(--accent-bright);
}
.av-btn--primary:active { background: var(--accent-deep); }
.av-btn--lg { padding: 20px 32px; font-size: 14px; }

/* ── Arrow list — bullets become red forward arrows ─────────────── */
.av-arrow-list { list-style: none; padding: 0; margin: 0; }
.av-arrow-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.av-arrow-list li:last-child { border-bottom: none; }
.av-arrow-list li::before {
  content: ""; position: absolute;
  left: 0; top: 18px;
  width: 18px; height: 14px;
  background: var(--accent);
  clip-path: polygon(0 30%, 65% 30%, 65% 0, 100% 50%, 65% 100%, 65% 70%, 0 70%);
}

/* ── /// motif — the triple slash from the logo's .LIVE block ───── */
.av-slashes {
  display: inline-flex; gap: 4px;
  pointer-events: none;
}
.av-slashes b {
  display: block; width: 3px; height: 18px;
  background: var(--accent);
  transform: skewX(var(--skew));
}
.av-slashes b:nth-child(2) { opacity: 0.6; }
.av-slashes b:nth-child(3) { opacity: 0.3; }
.av-slashes--lg b { width: 5px; height: 36px; }
.av-slashes--lg b:nth-child(2) { height: 28px; margin-top: 4px; }
.av-slashes--lg b:nth-child(3) { height: 20px; margin-top: 8px; }

/* ── The badge — core layout primitive ────────────────────────────
   Skewed parallelogram with red bands top/bottom and /// in corner.
   Children counter-skew so text reads straight. */
.av-badge {
  position: relative;
  transform: skewX(var(--skew));
  background: linear-gradient(180deg, #15151a 0%, #0e0e12 100%);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  padding: clamp(48px, 7vw, 80px) clamp(48px, 9vw, 96px);
}
.av-badge > * { transform: skewX(var(--skew-counter)); }
.av-badge::before, .av-badge::after {
  content: ""; position: absolute;
  height: 2px; background: var(--accent); opacity: 0.4;
  left: 0; right: 0;
  pointer-events: none;
}
.av-badge::before { top: 12px; }
.av-badge::after  { bottom: 12px; }

/* /// corner mark inside an .av-badge */
.av-badge__slashes {
  position: absolute !important;
  top: 32px; right: 56px;
  display: flex; gap: 5px;
  transform: skewX(var(--skew-counter)) !important;
  z-index: 2;
}
.av-badge__slashes b {
  display: block; width: 4px; height: 28px; background: var(--accent);
  transform: skewX(var(--skew));
}
.av-badge__slashes b:nth-child(2) { opacity: 0.6; height: 22px; margin-top: 3px; }
.av-badge__slashes b:nth-child(3) { opacity: 0.3; height: 16px; margin-top: 6px; }

/* ── Mini-badge card — each card is a skewed parallelogram ──────── */
.av-badge-card {
  position: relative;
  transform: skewX(var(--skew));
  background: var(--bg-elev-1);
  border-left: 4px solid var(--accent);
  padding: 28px 36px;
  transition: transform 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.av-badge-card:hover {
  transform: skewX(var(--skew)) translateY(-3px);
  border-color: var(--accent-bright);
}
.av-badge-card > * { transform: skewX(var(--skew-counter)); display: block; }
.av-badge-card__top-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); opacity: 0.5;
  transform: none !important;
}

/* ── Skewed status pills ───────────────────────────────────────── */
.av-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-style: italic;
  transform: skewX(var(--skew));
  border: 0;
}
.av-pill > span { display: inline-block; transform: skewX(var(--skew-counter)); }
.av-pill--live   { background: var(--accent); color: #fff; }
.av-pill--live::before {
  content: ""; width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
.av-pill--ghost  { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.av-pill--replay { background: #22c55e; color: #04140a; }
.av-pill--paid   { background: var(--text); color: #000; }
.av-pill--warn   { background: rgba(245,158,11,0.16); color: var(--warn); }
.av-pill--success{ background: rgba(16,185,129,0.16); color: var(--success); }

/* ── v3 stat tiles — top red rule + /// motif top-right ────────── */
.av-stat {
  position: relative;
  background: var(--bg-elev-1);
  padding: 28px 32px 24px;
  border-top: 3px solid var(--accent);
}
.av-stat::before {
  content: "";
  position: absolute; top: 16px; right: 16px;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--skew),
      var(--accent) 0 2px, transparent 2px 5px,
      var(--accent) 5px 7px, transparent 7px 10px,
      var(--accent) 10px 12px, transparent 12px 100%);
  opacity: 0.5;
}
.av-stat__label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--text-muted); font-weight: 700;
}
.av-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800; font-style: italic;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1; margin: 14px 0 10px;
  color: var(--text);
}
.av-stat__num--accent { color: var(--accent); }
.av-stat__meta {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

/* ── /// motif in the nav corner ────────────────────────────────── */
.nav__slashes {
  position: absolute; top: 50%; right: 24px;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
}
.nav__slashes b {
  display: block; width: 3px; height: 18px;
  background: var(--accent);
  transform: skewX(var(--skew));
}
.nav__slashes b:nth-child(2) { opacity: 0.6; }
.nav__slashes b:nth-child(3) { opacity: 0.3; }

/* Hide nav slashes when the mobile menu trigger takes that space */
@media (max-width: 820px) {
  .nav__slashes { display: none; }
}

/* ── Photo card variant — v3 character without the parallelogram ──
   Use for image-led grids (event posters, recipient profile photos)
   where skewing the photo would look weird. Gives a red leading edge
   on hover + italic title + mono meta. */
.av-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-left: 3px solid transparent;
  transition: border-left-color 180ms ease, transform 180ms ease;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.av-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.av-card__poster {
  position: relative; overflow: hidden;
  background: var(--bg-elev-2);
}
.av-card__poster img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.av-card__body {
  padding: var(--sp-4) var(--sp-5);
}
.av-card__title {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}
.av-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

/* ── v3 status pill: danger (static red, no pulse) ────────────────
   For destructive admin states like FAILED, REJECTED, CANCELED, PAST DUE.
   Same red as --live but without the pulsing dot, so it reads as a permanent
   status rather than "happening right now." */
.av-pill--danger {
  background: var(--accent);
  color: #fff;
}

/* Pending-count badge in the admin sidebar (chat moderation). */
.admin-nav__badge {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--font-mono, monospace); font-size: 0.62rem; font-weight: 700;
  line-height: 1.5; text-align: center; vertical-align: middle;
}
