/* =====================================================================
   BET REBEL — core design system
   Crimson + gold on black. Shared by the public site, the member
   dashboard and the admin panel.
   ===================================================================== */

/* ------------------------------ tokens ----------------------------- */
:root {
  /* surfaces */
  --bg:            #08090C;
  --bg-alt:        #0B0D12;
  --surface:       #12141A;
  --surface-2:     #171A22;
  --surface-3:     #1E222C;

  /* lines */
  --border:        rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);

  /* brand */
  --primary:       #E4262F;
  --primary-hi:    #FF3D46;
  --primary-lo:    #B31A22;
  --primary-soft:  rgba(228, 38, 47, .12);
  --primary-glow:  rgba(228, 38, 47, .35);

  --gold:          #F5B932;
  --gold-hi:       #FFD166;
  --gold-soft:     rgba(245, 185, 50, .12);

  /* text */
  --text:          #F2F4F8;
  --text-dim:      #A2AAB9;
  --muted:         #737C8D;
  --faint:         #4D5566;

  /* semantic */
  --win:           #24C97E;
  --win-soft:      rgba(36, 201, 126, .12);
  --lose:          #F0424E;
  --lose-soft:     rgba(240, 66, 78, .12);
  --pending:       #F5B932;
  --pending-soft:  rgba(245, 185, 50, .12);
  --info:          #4C8DFF;
  --info-soft:     rgba(76, 141, 255, .12);

  /* type */
  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 8px 24px -6px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.75);

  /* layout */
  --nav-h: 70px;
  --container: 1300px;

  /* surfaces that must stay light in both themes (club crests etc.) */
  --crest-bg: #ffffff;
  --crest-ring: rgba(0, 0, 0, .06);

  /* translucent bars */
  --bar-bg: rgba(8, 9, 12, .84);
  --scrim: rgba(4, 5, 8, .82);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================================
   LIGHT THEME
   Dark is the brand default; this is the opt-in palette applied by the
   header toggle (persisted in localStorage as br_theme).
   ===================================================================== */
:root[data-theme="light"] {
  --bg:            #F6F7F9;
  --bg-alt:        #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F1F3F7;
  --surface-3:     #E4E8EF;

  --border:        rgba(12, 16, 26, .10);
  --border-strong: rgba(12, 16, 26, .18);

  --primary:       #D01F28;
  --primary-hi:    #B81820;
  --primary-lo:    #8E1018;
  --primary-soft:  rgba(208, 31, 40, .09);
  --primary-glow:  rgba(208, 31, 40, .28);

  /* gold needs to darken sharply to stay readable on white */
  --gold:          #92640C;
  --gold-hi:       #B8820F;
  --gold-soft:     rgba(197, 141, 22, .13);

  --text:          #0D1017;
  --text-dim:      #414B5A;
  --muted:         #647085;
  --faint:         #8D97A8;

  --win:           #06764A;
  --win-soft:      rgba(6, 118, 74, .11);
  --lose:          #C01F2A;
  --lose-soft:     rgba(192, 31, 42, .10);
  --pending:       #A65B04;
  --pending-soft:  rgba(166, 91, 4, .12);
  --info:          #1552C4;
  --info-soft:     rgba(21, 82, 196, .10);

  --crest-bg:      #FFFFFF;
  --crest-ring:    rgba(12, 16, 26, .12);

  --bar-bg:        rgba(246, 247, 249, .88);
  --scrim:         rgba(20, 24, 34, .45);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow:    0 8px 24px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -12px rgba(16, 24, 40, .2);

  color-scheme: light;
}

/* Light-theme corrections for surfaces that assume a dark ground. */
:root[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(208, 31, 40, .12), transparent 62%),
    radial-gradient(ellipse 50% 42% at 88% 18%, rgba(197, 141, 22, .10), transparent 60%),
    var(--bg);
}
:root[data-theme="light"] .auth-screen__bg {
  background:
    radial-gradient(ellipse 60% 55% at 20% 12%, rgba(208, 31, 40, .12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 84% 82%, rgba(197, 141, 22, .10), transparent 60%),
    var(--bg);
}
:root[data-theme="light"] .hero__grid,
:root[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(12,16,26,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,16,26,.045) 1px, transparent 1px);
}
:root[data-theme="light"] .hero__trust-value {
  background: linear-gradient(120deg, var(--text), var(--muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .auth-box { background: rgba(255, 255, 255, .92); }
:root[data-theme="light"] .btn--gold { color: #241802; }
:root[data-theme="light"] .plan__flag,
:root[data-theme="light"] .chip-vip { color: #241802; }
:root[data-theme="light"] .match__crest,
:root[data-theme="light"] .team-badge,
:root[data-theme="light"] .league-card__crest { box-shadow: inset 0 0 0 1px var(--crest-ring); }
:root[data-theme="light"] .ad-slot__tag { background: rgba(255, 255, 255, .82); color: var(--muted); }
:root[data-theme="light"] .code-input__box { background: var(--surface-2); }
:root[data-theme="light"] .outcome--won input:checked + span { color: #fff; }
:root[data-theme="light"] ::selection { background: var(--primary); color: #fff; }

/* On white, a 1px border alone reads flat — give surfaces real elevation. */
:root[data-theme="light"] .card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .matches,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .stats,
:root[data-theme="light"] .tile,
:root[data-theme="light"] .plan,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .feature,
:root[data-theme="light"] .league-card,
:root[data-theme="light"] .testimonial,
:root[data-theme="light"] .post-card,
:root[data-theme="light"] .widget { box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 12px -6px rgba(16,24,40,.10); }

:root[data-theme="light"] .card--hover:hover,
:root[data-theme="light"] .league-card:hover,
:root[data-theme="light"] .feature:hover,
:root[data-theme="light"] .post-card:hover { box-shadow: 0 4px 8px rgba(16,24,40,.06), 0 16px 32px -12px rgba(16,24,40,.16); }

/* the sidebar needs a hairline separation from the white content area */
:root[data-theme="light"] .side { box-shadow: 1px 0 0 rgba(12,16,26,.06); }
:root[data-theme="light"] .topbar,
:root[data-theme="light"] .site-header.is-stuck { box-shadow: 0 1px 0 rgba(12,16,26,.06); }

/* dark-on-light input wells shouldn't be pure white against white cards */
:root[data-theme="light"] .input,
:root[data-theme="light"] .select,
:root[data-theme="light"] .textarea,
:root[data-theme="light"] .ref-link,
:root[data-theme="light"] .ref-editor { background: #FAFBFC; }
:root[data-theme="light"] .input:focus,
:root[data-theme="light"] .select:focus,
:root[data-theme="light"] .textarea:focus { background: #fff; }

/* scrollbars follow the theme too */
:root[data-theme="light"] * { scrollbar-color: #C6CCD6 transparent; }
:root[data-theme="light"] *::-webkit-scrollbar-thumb { background: #C6CCD6; }
:root[data-theme="light"] *::-webkit-scrollbar-thumb:hover { background: #A9B2C0; }

/* ------------------------------ reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  font-size: 15px;            /* global UI scale — was the 16px default */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.05rem; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* thin dark scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--r-pill);
  border: 3px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: #2A2F3C; }


/* ----------------------------- layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap    { flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none !important; }
.full        { width: 100%; }
.mono        { font-family: var(--font-mono); }
.nowrap      { white-space: nowrap; }

.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;
}

/* --------------------------- typography ---------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-hi);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 62ch;
}

.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Breadcrumbs — mirrors the BreadcrumbList schema emitted in <head>. */
.breadcrumbs { margin-bottom: 20px; font-size: .8rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--faint); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-hi); }
.breadcrumbs [aria-current="page"] { color: var(--text-dim); }

.text-gradient {
  background: linear-gradient(100deg, var(--primary-hi) 0%, var(--gold) 55%, var(--primary-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-primary { color: var(--primary-hi); }
.text-gold    { color: var(--gold); }
.text-win     { color: var(--win); }
.text-lose    { color: var(--lose); }
.text-muted   { color: var(--muted); }
.text-dim     { color: var(--text-dim); }

.label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ----------------------------- buttons ----------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), opacity .18s;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg    { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--primary-hi), var(--primary-lo));
  --btn-bd: transparent;
  --btn-fg: #fff;
  box-shadow: 0 6px 22px -6px var(--primary-glow);
}
.btn--primary:hover { box-shadow: 0 12px 34px -8px var(--primary-glow); }

.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-hi), var(--gold));
  --btn-bd: transparent;
  --btn-fg: #1A1204;
  box-shadow: 0 6px 22px -6px rgba(245,185,50,.4);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: var(--border-strong);
}
.btn--ghost:hover { --btn-bd: var(--primary); background: var(--primary-soft); }

.btn--dark  { --btn-bg: #0D0F14; --btn-bd: var(--border); }
.btn--win   { --btn-bg: var(--win);  --btn-fg: #05130C; --btn-bd: transparent; }
.btn--lose  { --btn-bg: var(--lose); --btn-fg: #fff;    --btn-bd: transparent; }

.btn--sm  { padding: 8px 16px;  font-size: .72rem; }
.btn--lg  { padding: 16px 34px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 10px; border-radius: var(--r); }
.btn--icon svg { width: 18px; height: 18px; }

.btn:disabled, .btn.is-disabled {
  opacity: .45; pointer-events: none; transform: none;
}

/* halo-ringed CTA used in the hero */
.btn--halo { position: relative; isolation: isolate; }
.btn--halo::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary), var(--gold), var(--primary));
  filter: blur(14px);
  opacity: .5;
  z-index: -1;
  transition: opacity .25s var(--ease);
}
.btn--halo:hover::after { opacity: .85; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-hi);
  transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: 11px; }
.link-arrow svg { width: 15px; height: 15px; }


/* ------------------------------ cards ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.card--flush   { padding: 0; overflow: hidden; }
.card--pad-sm  { padding: 18px; }
.card--hover   { transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-3px); }

/* glass panel with a hairline top highlight */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 42%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute; inset-inline: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.panel__body { padding: 24px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.panel__head h3 { font-size: 1.02rem; }

/* premium (gold) treatment for VIP surfaces */
.card--premium {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245,185,50,.16), transparent 58%),
    linear-gradient(140deg, rgba(245,185,50,.06), rgba(228,38,47,.05)),
    var(--surface);
  border-color: rgba(245,185,50,.3);
}
.card--danger {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(228,38,47,.16), transparent 58%),
    var(--surface);
  border-color: rgba(228,38,47,.3);
}


/* ----------------------------- badges ------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.6;
}
.badge svg { width: 12px; height: 12px; }

.badge--primary { background: var(--primary-soft); border-color: rgba(228,38,47,.35); color: var(--primary-hi); }
.badge--gold    { background: var(--gold-soft);    border-color: rgba(245,185,50,.4);  color: var(--gold); }
.badge--win,
.badge.is-won   { background: var(--win-soft);     border-color: rgba(36,201,126,.35); color: var(--win); }
.badge--lose,
.badge.is-lost  { background: var(--lose-soft);    border-color: rgba(240,66,78,.35);  color: var(--lose); }
.badge.is-pending { background: var(--pending-soft); border-color: rgba(245,185,50,.3); color: var(--pending); }
.badge.is-void  { background: var(--surface-3);    color: var(--muted); }
.badge--info    { background: var(--info-soft);    border-color: rgba(76,141,255,.35); color: var(--info); }

/* small solid VIP chip used next to team names */
.chip-vip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #1A1204;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* ---------------------------- stat tiles --------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-dim);
  margin-bottom: 8px;
}
.stat__icon svg { width: 17px; height: 17px; }
.stat__label {
  font-size: .64rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.stat__meta { font-size: .74rem; color: var(--faint); }

.stat--win  .stat__icon { background: var(--win-soft);     color: var(--win); }
.stat--lose .stat__icon { background: var(--lose-soft);    color: var(--lose); }
.stat--gold .stat__icon { background: var(--gold-soft);    color: var(--gold); }
.stat--info .stat__icon { background: var(--info-soft);    color: var(--info); }
.stat--primary .stat__icon { background: var(--primary-soft); color: var(--primary-hi); }

/* free-standing tile variant (rounded individually, not in a strip) */
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tile__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
}
.tile__icon svg { width: 19px; height: 19px; }
.tile__value { font-family: var(--font-display); font-size: 1.28rem; font-weight: 800; line-height: 1.2; }
.tile__label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }


/* --------------------------- match rows ---------------------------- */
.matches {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.match {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(200px, 1.5fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .18s var(--ease);
  position: relative;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: var(--surface-2); }

.match--vip::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.match__league { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match__crest {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--crest-bg);
  display: grid; place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 800; color: #0B0D12;
}
.match__crest img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.match__league-name {
  font-size: .85rem; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match__country {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700;
}

.match__teams { min-width: 0; }
.match__team { font-size: .9rem; font-weight: 600; line-height: 1.45; }
.match__vs { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 1px 0; }
.match__kickoff { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 3px; }
.match__score { font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); margin-top: 3px; }

.match__tip-label { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.match__tip {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700;
  color: var(--win);
  margin-top: 2px;
}
.match__tip--locked { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.match__tip--locked svg { width: 14px; height: 14px; }

.match__end { display: flex; align-items: center; gap: 12px; justify-self: end; }
.odds {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(36,201,126,.3);
  background: var(--win-soft);
  color: var(--win);
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 600;
}
.odds--gold { border-color: rgba(245,185,50,.3); background: var(--gold-soft); color: var(--gold); }
.match__chev { color: var(--faint); display: grid; place-items: center; }
.match__chev svg { width: 17px; height: 17px; }

/* empty state */
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty svg { width: 42px; height: 42px; margin-inline: auto; margin-bottom: 14px; color: var(--faint); }
.empty h4 { color: var(--text-dim); margin-bottom: 6px; }
.empty p { font-size: .88rem; }


/* ------------------------------ tabs ------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  transition: all .18s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active {
  background: linear-gradient(135deg, var(--primary-hi), var(--primary-lo));
  color: #fff;
  box-shadow: 0 4px 16px -4px var(--primary-glow);
}

/* pill-style secondary filter row */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .18s var(--ease);
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }


/* ---------------------------- accordion ---------------------------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.acc.is-open { border-color: rgba(228,38,47,.3); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
}
.acc__btn svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--primary-hi);
  transition: transform .25s var(--ease);
}
.acc.is-open .acc__btn svg { transform: rotate(180deg); }
.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.75;
}


/* ------------------------------ forms ------------------------------ */
.field { margin-bottom: 18px; }
.field > label,
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field__hint { margin-top: 6px; font-size: .78rem; color: var(--faint); }
.field__error { margin-top: 6px; font-size: .78rem; color: var(--lose); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--text);
  font-size: .92rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--surface);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737C8D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}
.select option { background: var(--surface); color: var(--text); }

/* input with a leading icon */
.input-group { position: relative; }
.input-group svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--faint); pointer-events: none;
}
.input-group .input { padding-left: 46px; }
.input-group__action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 8px; color: var(--faint); border-radius: var(--r-sm);
}
.input-group__action:hover { color: var(--text); background: var(--surface-3); }
.input-group__action svg { position: static; transform: none; }

/* checkbox / radio */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .86rem; color: var(--text-dim); }
.check input { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.switch__slider::before {
  content: '';
  position: absolute; left: 3px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.switch input:checked + .switch__slider { background: var(--win); border-color: var(--win); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch__slider { box-shadow: 0 0 0 3px var(--primary-soft); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }


/* ----------------------------- alerts ------------------------------ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.alert__icon {
  width: 8px; height: 8px; margin-top: 8px;
  border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.alert--success { background: var(--win-soft);     border-color: rgba(36,201,126,.3); color: var(--win); }
.alert--error   { background: var(--lose-soft);    border-color: rgba(240,66,78,.3);  color: var(--lose); }
.alert--warning { background: var(--pending-soft); border-color: rgba(245,185,50,.3); color: var(--pending); }
.alert--info    { background: var(--info-soft);    border-color: rgba(76,141,255,.3); color: var(--info); }
.alert span:last-child { color: var(--text); }
.alert--success span:last-child,
.alert--error span:last-child,
.alert--warning span:last-child,
.alert--info span:last-child { color: inherit; filter: brightness(1.15); }


/* ----------------------------- tables ------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--font-mono); }

.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  transition: all .16s var(--ease);
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.icon-btn--danger:hover { color: var(--lose); border-color: rgba(240,66,78,.4); background: var(--lose-soft); }
.icon-btn--win:hover    { color: var(--win);  border-color: rgba(36,201,126,.4); background: var(--win-soft); }


/* --------------------------- pagination ---------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  padding-inline: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .16s var(--ease);
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }


/* =====================================================================
   SHARED BRAND COMPONENTS
   Used by the public site AND both dashboard shells, so they must
   live in the base layer — the dashboards never load site.css.
   ===================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-hi), var(--primary-lo));
  box-shadow: 0 4px 16px -4px var(--primary-glow);
  flex-shrink: 0;
}
.logo__mark svg { width: 19px; height: 19px; color: #fff; }
.logo__text { white-space: nowrap; }
.logo__text b { color: var(--primary-hi); font-weight: 800; }
.banker-card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(245,185,50,.2), transparent 55%),
    linear-gradient(135deg, rgba(245,185,50,.07), rgba(228,38,47,.06)),
    var(--surface);
  border: 1px solid rgba(245,185,50,.28);
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.banker-card::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,50,.16), transparent 68%);
  pointer-events: none;
}
.banker-card__badge { position: absolute; top: 26px; right: 26px; }
.banker-card__lock {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(245,185,50,.3);
  color: var(--gold);
  margin-bottom: 18px;
}
.banker-card__lock svg { width: 24px; height: 24px; }
.banker-card__match {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.banker-card__meta { font-size: .82rem; color: var(--text-dim); }
.banker-card__foot { margin-top: auto; padding-top: 22px; }
.feature__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--primary-soft);
  border: 1px solid rgba(228,38,47,.25);
  color: var(--primary-hi);
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
  margin-bottom: 16px;
}
.feature__num svg { width: 21px; height: 21px; }
.testimonial__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.testimonial__stars svg { width: 15px; height: 15px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .2s var(--ease);
}
.social svg { width: 17px; height: 17px; }
.social:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }


.avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-lo));
  color: #fff;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 800;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1A1204; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }


/* -------------------------- theme toggle --------------------------- */
.theme-toggle {
  position: relative;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }

.theme-toggle__icon {
  position: absolute;
  display: grid;
  place-items: center;
  transition: opacity .22s var(--ease), transform .32s var(--ease);
}
/* dark theme shows the sun (what you'd switch to); light shows the moon */
.theme-toggle__icon--sun  { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-90deg) scale(.6); }

:root[data-theme="light"] .theme-toggle__icon--sun  { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0) scale(1); }

/* Suppress transitions during the switch so the whole page doesn't smear. */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}


/* ----------------- searchable combobox (country) ------------------- */
.combo { position: relative; }
.combo__search { padding-right: 42px; }
.combo::after {
  content: '';
  position: absolute; right: 16px; top: 22px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
  transition: transform .2s var(--ease);
}
.combo.is-open::after { transform: rotate(-135deg); }
.combo.has-value .combo__search { border-color: var(--border-strong); }

.combo__list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 60;
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.combo.is-open .combo__list { opacity: 1; visibility: visible; transform: none; }

.combo__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.combo__list li:hover,
.combo__list li.is-active { background: var(--primary-soft); color: var(--primary-hi); }
.combo__list li small { color: var(--faint); font-size: .74rem; font-family: var(--font-mono); }
.combo__empty { color: var(--faint); cursor: default !important; justify-content: center !important; }
.combo__empty:hover { background: none !important; color: var(--faint) !important; }

/* referral code editor with a fixed domain prefix */
.ref-editor {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ref-editor:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.ref-editor__prefix {
  display: grid;
  place-items: center;
  padding-inline: 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}
.ref-editor .input {
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
}
.ref-editor .input:focus { box-shadow: none; background: none; }

@media (max-width: 520px) {
  .ref-editor { flex-direction: column; }
  .ref-editor__prefix {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-block: 8px;
  }
}

/* brief highlight when a field is auto-filled */
.is-flash {
  animation: field-flash .7s var(--ease);
}
@keyframes field-flash {
  0%   { border-color: var(--win); box-shadow: 0 0 0 3px var(--win-soft); }
  100% { border-color: var(--border-strong); box-shadow: none; }
}


/* --------------------- verification code boxes --------------------- */
.code-input {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.code-input__box {
  aspect-ratio: 3 / 4;
  width: 100%;
  padding: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.code-input__box:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.code-input__box:not(:placeholder-shown),
.code-input__box[value]:not([value=""]) { border-color: var(--gold); }

@media (max-width: 420px) {
  .code-input { gap: 6px; }
}


/* --------------------------- team badges --------------------------- */
.team-badge {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--crest-bg);
  overflow: hidden;
  vertical-align: -4px;
  font-family: var(--font-display);
  font-size: .5rem;
  font-weight: 800;
  color: #0B0D12;
  flex-shrink: 0;
}
.team-badge img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.team-badge--lg { width: 30px; height: 30px; font-size: .62rem; margin-right: 10px; vertical-align: -9px; }

/* risky pick chip */
.chip-risk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  border: 1px solid rgba(228,38,47,.35);
  color: var(--primary-hi);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.chip-risk svg { width: 10px; height: 10px; }

/* timezone suffix on kickoff times */
.match__tz {
  margin-left: 5px;
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}

/* odds pill for longshots */
.odds--risk {
  border-color: rgba(228,38,47,.35);
  background: var(--primary-soft);
  color: var(--primary-hi);
}


/* ------------------------------ ads -------------------------------- */
.ad-slot {
  position: relative;
  display: block;
  margin-block: 24px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 0;
}
.ad-slot img { width: 100%; height: auto; }
.ad-slot__tag {
  position: absolute;
  top: 7px; left: 7px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(4px);
  color: var(--faint);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
  pointer-events: none;
}
.ad-slot--sidebar, .ad-slot--blog_sidebar { margin-block: 0 18px; }
.ad-slot--footer { margin-block: 0 32px; }

/* monospace sample block used in admin help panels */
.code-sample {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--text-dim);
  overflow-x: auto;
}
.mt-4 { margin-top: 4px; }

/* unbooked slot — only ever rendered for administrators */
.ad-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 96px;
  margin-block: 24px;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  background: var(--bg-alt);
  text-align: center;
  line-height: 1.5;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.ad-empty:hover { border-color: var(--primary); background: var(--primary-soft); }
.ad-empty--tall { min-height: 200px; margin-block: 0 18px; }

.ad-empty__tag {
  position: absolute;
  top: 8px; left: 10px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-empty__label { font-size: .86rem; font-weight: 600; color: var(--text-dim); }
.ad-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-hi);
}
.ad-empty__cta svg { width: 13px; height: 13px; }

/* placeholder shown in the admin preview */
.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  color: var(--faint);
  font-size: .8rem;
  background: var(--bg-alt);
}


/* ------------------------------ modal ------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: var(--scrim);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fade-in .2s var(--ease); }
.modal__box {
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: modal-in .26s var(--ease);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3 { font-size: 1.1rem; }
.modal__body { padding: 26px; }
.modal__foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
}
.modal__close { color: var(--muted); padding: 6px; border-radius: var(--r-sm); }
.modal__close:hover { color: var(--text); background: var(--surface-3); }
.modal__close svg { width: 20px; height: 20px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}


/* ------------------------ progress / meters ------------------------ */
.meter {
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width .5s var(--ease);
}
.meter--win .meter__fill { background: linear-gradient(90deg, var(--win), #6EE7B7); }


/* ------------------------ decorative layers ------------------------ */
/* faint dot grid used behind hero + section backgrounds */
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.055) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .5;
}
.bg-glow--primary { background: var(--primary); }
.bg-glow--gold    { background: var(--gold); }

.divider { height: 1px; background: var(--border); border: 0; margin-block: 28px; }
.divider--glow {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .5;
}


/* ------------------------------ utils ------------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* scroll reveal — .reveal elements fade up when they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* --------------------------- responsive ---------------------------- */
@media (max-width: 900px) {
  .match {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'league end'
      'teams  end'
      'tip    end';
    gap: 10px 16px;
    padding: 16px;
  }
  .match__league { grid-area: league; }
  .match__teams  { grid-area: teams; }
  .match__pick   { grid-area: tip; }
  .match__end    { grid-area: end; flex-direction: column; align-items: flex-end; gap: 8px; }
  .match__chev   { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .card, .panel__body { padding: 18px; }
  .btn { padding: 11px 20px; }
  .btn--lg { padding: 14px 26px; font-size: .84rem; }
  .stat { padding: 18px 16px; }
  .match__crest { width: 32px; height: 32px; }
}
