/* =============================================================================
   STATLYZER 3.0 ??? Premium football intelligence UI
   Mobile-first (360???430px), desktop ???1024. Analytics framing only.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Design tokens
   ----------------------------------------------------------------------------- */
:root {
  --bg: #080809;
  --surface: #121214;
  --surface-elevated: #18181b;
  --surface-2: #1c1c1f;
  --border: #2a2a2e;
  --border-subtle: #222226;
  --text: #ffffff;
  --text-secondary: #c4c4c8;
  --text-muted: #8b8b93;
  --red: #e11d2e;
  --red-soft: rgba(225, 29, 46, 0.14);
  --red-glow: rgba(225, 29, 46, 0.22);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --cyan-glow: rgba(34, 211, 238, 0.28);
  --gold: #d4a017;
  --gold-soft: rgba(212, 160, 23, 0.12);
  --gold-glow: rgba(212, 160, 23, 0.28);
  --positive: #22c55e;
  --negative: #ef4444;
  --warning: #f59e0b;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --font-display: 1.75rem;
  --font-h1: 1.35rem;
  --font-h2: 1.125rem;
  --font-h3: 1rem;
  --font-body: 0.9375rem;
  --font-small: 0.8125rem;
  --font-micro: 0.6875rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --app-max: 430px;
  --desktop-max: 1320px;
  --home-max: 1280px;
  --analyzer-max: 1400px;
  --content-max: 960px;
  --nav-height: 64px;
  --header-height: 52px;
  --touch-min: 44px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 180ms;
  --duration-slow: 240ms;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   2. Reset & base (sentence case; no ALL CAPS body)
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-transform: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   3. App shell ??? mobile-first 360???430px
   ----------------------------------------------------------------------------- */
.app-shell {
  width: 100%;
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100dvh;
  padding: var(--safe-top) var(--safe-right)
    calc(var(--nav-height) + var(--safe-bottom) + var(--space-4)) var(--safe-left);
  background: var(--bg);
}
.app-main {
  padding: var(--space-4);
}

/* -----------------------------------------------------------------------------
   4. App header
   ----------------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-height);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-header__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.app-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #333;
  background: var(--red, #ff1e27);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.header-signin-btn:hover { filter: brightness(1.08); }
.signed-out-gate {
  text-align: center;
  padding: 28px 16px 12px;
}
.signed-out-gate p {
  color: #bbb;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
}
.signed-out-gate .analyze-btn {
  margin: 0 auto;
  max-width: 280px;
}
.signed-out-gate__note {
  margin-top: 12px !important;
  color: #777 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}
.desktop-nav { display: none !important; }

/* -----------------------------------------------------------------------------
   5. Plan badge ??? gold glow for PRO only
   ----------------------------------------------------------------------------- */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.plan-badge--pro {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.12);
  box-shadow: 0 0 12px var(--gold-glow);
}
.plan-badge--free {
  color: var(--text-muted);
}
.plan-badge:empty { display: none; }

/* -----------------------------------------------------------------------------
   6. Section title
   ----------------------------------------------------------------------------- */
.section-title {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.section-title--muted {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
}

/* -----------------------------------------------------------------------------
   7. Hero pick ??? subtle red glow (primary pick)
   ----------------------------------------------------------------------------- */
.hero-pick {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--red-soft);
}
.hero-pick__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.hero-pick__market {
  font-size: 0.875rem;
  color: var(--cyan);
  margin-bottom: var(--space-1);
}
.hero-pick__selection {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.hero-pick__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.hero-pick__meta strong {
  color: var(--cyan);
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   8. Pick card
   ----------------------------------------------------------------------------- */
.pick-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pick-card + .pick-card {
  margin-top: var(--space-3);
}
.pick-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.pick-card__detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   9. Top 10 cards ??? free-available / pro-locked / unlocked
   ----------------------------------------------------------------------------- */
.top10-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.top10-card + .top10-card {
  margin-top: var(--space-3);
}
.top10-card__rank {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--surface-2, #111);
  border: 1px solid var(--border);
}
.top10-card.rank-1 .top10-card__rank,
.top10-card.rank-2 .top10-card__rank,
.top10-card.rank-3 .top10-card__rank {
  background: var(--gold-gradient, linear-gradient(135deg, #bf953f, #fcf6ba, #b38728));
  color: #000;
  border-color: transparent;
}
.top10-card__body {
  flex: 1;
  min-width: 0;
}
.top10-card__match {
  font-size: 0.9375rem;
  font-weight: 600;
}
.top10-card__meta,
.top10-card__family {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.top10-card__pick {
  /* Legacy — list no longer shows primary verdict */
  display: none;
}
.top10-card__status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.top10-card__status--ready {
  color: var(--cyan, #00e6b8);
  border-color: rgba(0, 230, 184, 0.35);
  background: rgba(0, 230, 184, 0.08);
}
.top10-card__status--pro {
  color: #fcf6ba;
  border-color: rgba(191, 149, 63, 0.45);
  background: rgba(191, 149, 63, 0.12);
}
.top10-card__status--settled {
  color: var(--positive, #22c55e);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.top10-card__status--pending {
  color: #9a9a9a;
  border-color: #333;
  background: rgba(255, 255, 255, 0.04);
}
.top10-card__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  color: #666;
  font-size: 1.1rem;
  line-height: 1;
}
.top10-card__chevron {
  font-size: 1.35rem;
  color: #555;
  font-weight: 300;
}
.top10-card__lock {
  font-size: 0.85rem;
  opacity: 0.85;
}
.top10-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.top10-card__hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}
.top10-card--free,
.top10-card--open,
.top10-card--free-available,
.top10-card--pro-locked {
  cursor: pointer;
  min-height: 44px;
}
.top10-card--free:hover,
.top10-card--open:hover,
.top10-card--free-available:hover,
.top10-card--pro-locked:hover {
  border-color: var(--cyan);
}
/* Fixture stays visible when locked; primary verdict never shown in list */
.top10-card--pro-locked {
  position: relative;
}
.top10-card--unlocked {
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 0 16px var(--gold-glow);
}

.section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.pick-card--primary {
  border-color: rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.08);
  padding: var(--space-5, 24px);
  border-radius: var(--radius-lg, 20px);
  background: var(--surface);
  margin-bottom: var(--space-4);
  text-align: center;
}
.pick-card__label {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 8px 0 12px;
}
.pick-card__prob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pick-card__prob strong {
  font-size: 2rem;
  color: var(--cyan);
}
.reason-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.reason-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--font-small);
  line-height: 1.55;
  font-weight: 500;
}
.reason-list.compact {
  background: transparent;
  border: 0;
  padding: var(--space-2) 0 0;
  margin: 0;
}
.quality-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.quality-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}
.quality-chip span {
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.quality-chip strong {
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--text);
}
.match-header { text-align: center; margin-bottom: 20px; }
.match-title { font-size: 1.35rem; font-weight: 900; margin: 8px 0; }
.match-title .vs { color: var(--text-muted); font-weight: 600; font-size: 0.85em; }
.match-meta { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.badge { display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin: 0 4px 8px; }
.badge--board { background: rgba(0,255,204,0.1); color: var(--cyan); border: 1px solid rgba(0,255,204,0.3); }
.badge--muted { background: #151515; color: #888; border: 1px solid #333; }
.badge--demo { background: rgba(191,149,63,0.15); color: #fcf6ba; border: 1px solid rgba(191,149,63,0.4); }
.desktop-row { display: flex; flex-direction: column; gap: var(--space-3); }
.desktop-row__main, .desktop-row__side { min-width: 0; }
@media (min-width: 1024px) {
  .desktop-row { flex-direction: row; align-items: flex-start; }
  .desktop-row__main { flex: 0 0 60%; }
  .desktop-row__side { flex: 0 0 40%; }
}
.advanced-analysis, .signal-details {
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-3) var(--space-4);
}
.advanced-analysis summary, .signal-details summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #ccc;
}
.advanced-analysis__body, .signal-details__body { margin-top: 12px; }
.model-context-badge { margin-bottom: 12px; }
.model-context-badge .hint { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; margin: 6px 0 0; }
.scoreline-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); }
.scoreline-list { list-style: none; margin: 0; padding: 0; }
.scoreline-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #151515; font-weight: 700; }
.scoreline-list li:last-child { border-bottom: 0; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); }
.hero-pick {
  text-align: center;
  padding: var(--space-5, 24px);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid rgba(230,0,0,0.22);
  background: linear-gradient(160deg, rgba(230,0,0,0.06), transparent 62%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  margin-bottom: var(--space-4);
}
.hero-pick h2 { margin: 8px 0 6px; font-size: 1.4rem; }
.hero-pick .analyze-btn { margin-top: 16px; }
.hero-ready {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-desc {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   10. Probability bar
   ----------------------------------------------------------------------------- */
.prob-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.prob-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.prob-bar__label strong {
  color: var(--cyan);
  font-weight: 600;
}
.prob-bar__track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.prob-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--cyan);
  transition: width var(--duration) var(--ease);
}
.prob-bar__fill--market {
  background: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   11. Scoreline row
   ----------------------------------------------------------------------------- */
.scoreline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.scoreline-row:last-child {
  border-bottom: none;
}
.scoreline-row__teams {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.scoreline-row__score {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  white-space: nowrap;
}
.scoreline-row__prob {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   12. Team card
   ----------------------------------------------------------------------------- */
.team-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.team-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.team-card__stat {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.8125rem;
  padding: var(--space-1) 0;
  color: var(--text-muted);
}
.team-card__stat strong {
  color: var(--text);
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   13. Market context
   ----------------------------------------------------------------------------- */
.market-context {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.market-context__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.market-context__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.8125rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.market-context__row:last-child {
  border-bottom: none;
}
.market-context__label {
  color: var(--text-muted);
}
.market-context__value {
  color: var(--cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.market-context__edge {
  color: var(--positive);
  font-weight: 600;
}
.market-context__edge--negative {
  color: var(--negative);
}

/* -----------------------------------------------------------------------------
   14. Paywall card (PRO ??? analytics upsell, no betting CTAs)
   ----------------------------------------------------------------------------- */
.paywall-card {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  text-align: center;
}
.paywall-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 var(--space-2);
}
.paywall-card__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}
.paywall-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-6);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}
.paywall-card__cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* -----------------------------------------------------------------------------
   15. Empty state (SVG icon slot ??? no emoji layout)
   ----------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-5);
  text-align: center;
}
.empty-state__icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.6;
}
.empty-state__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.empty-state__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 280px;
}

/* -----------------------------------------------------------------------------
   16. Skeleton
   ----------------------------------------------------------------------------- */
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
.skeleton {
  display: block;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  animation: skeleton-pulse 1.4s var(--ease) infinite;
}
.skeleton--text {
  height: 0.875rem;
  width: 70%;
  margin-bottom: var(--space-2);
}
.skeleton--title {
  height: 1.25rem;
  width: 50%;
  margin-bottom: var(--space-3);
}
.skeleton--card {
  height: 96px;
  width: 100%;
  border-radius: var(--radius-md);
}
.skeleton--bar {
  height: 8px;
  width: 100%;
  border-radius: var(--radius-full);
}

/* -----------------------------------------------------------------------------
   17. Toast
   ----------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-4));
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  max-width: min(360px, calc(100vw - var(--space-8)));
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
}
.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast--success {
  border-color: var(--positive);
}
.toast--error {
  border-color: var(--negative);
}
.toast--info {
  border-color: var(--cyan);
}

/* -----------------------------------------------------------------------------
   18. Account row
   ----------------------------------------------------------------------------- */
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.account-row:first-child {
  border-top: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.account-row:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.account-row:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.account-row__label {
  font-size: 0.9375rem;
  font-weight: 500;
}
.account-row__value {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.account-row__chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   19. Reason list ??? single cyan marker (no browser bullets)
   ----------------------------------------------------------------------------- */
.reason-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  font-size: var(--font-small);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  list-style: none;
}
.reason-list li:last-child {
  border-bottom: none;
}
.reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.reason-list.compact li {
  border-bottom: none;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

/* -----------------------------------------------------------------------------
   20. HIT / MISS status badges (Results historical transparency)
   ----------------------------------------------------------------------------- */
.status-hit,
.status-miss {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.status-hit {
  color: var(--positive);
  background: rgba(34, 197, 94, 0.15);
}
.status-hit::before {
  content: "HIT";
}
.status-miss {
  color: var(--negative);
  background: rgba(239, 68, 68, 0.15);
}
.status-miss::before {
  content: "MISS";
}
/* Prefer markup text when present (avoids Hit HIT duplication) */
.status-hit[data-label]::before,
.status-miss[data-label]::before {
  content: none;
}

/* -----------------------------------------------------------------------------
   21. Buttons ??? red primary; no betting CTAs
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-5);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--duration) var(--ease);
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn--primary {
  color: var(--text);
  background: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
}
.btn--secondary {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost {
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}
.btn--block {
  width: 100%;
}

/* -----------------------------------------------------------------------------
   22. Bottom nav ??? fixed; home, top10, analyze, results, account
   ----------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
}
.bottom-nav__inner {
  display: flex;
  width: 100%;
  max-width: var(--app-max);
  justify-content: space-around;
  align-items: stretch;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--nav-height);
  min-width: var(--touch-min);
  padding: var(--space-2) var(--space-1);
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: none;
}
.bottom-nav__item:hover {
  color: var(--text);
  text-decoration: none;
}
.bottom-nav__item--active {
  color: var(--red);
}
.bottom-nav__item--active .nav-icon {
  color: var(--red);
}
/* SVG-friendly icon sizes */
.nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}
.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.nav-icon--sm {
  width: 20px;
  height: 20px;
}
.nav-icon--lg {
  width: 28px;
  height: 28px;
}

/* -----------------------------------------------------------------------------
   23. Desktop ???1024 ??? hide nav by default; max-width 1100; 60/40 analysis
   ----------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --app-max: var(--desktop-max);
  }
  .bottom-nav {
    display: none;
  }
  .app-shell {
    max-width: var(--desktop-max);
    padding-bottom: var(--space-8);
  }
  .app-main {
    padding: var(--space-6) var(--space-8);
  }
  .desktop-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .desktop-row__primary {
    flex: 0 0 60%;
    max-width: 60%;
  }
  .desktop-row__secondary {
    flex: 0 0 calc(40% - var(--space-6));
    max-width: calc(40% - var(--space-6));
  }
  .toast {
    bottom: var(--space-8);
  }

  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 0 16px;
  }
  .desktop-nav__item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #888);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    min-height: 40px;
  }
  .desktop-nav__item:hover { color: #fff; border-color: #333; }
  .desktop-nav__item--active {
    color: #fff;
    border-color: rgba(230, 0, 0, 0.5);
    background: rgba(230, 0, 0, 0.12);
  }
  .desktop-nav__item:focus-visible {
    outline: 2px solid var(--cyan, #00ffcc);
    outline-offset: 2px;
  }

  /* Opt-in: keep bottom nav on desktop */
  .bottom-nav.bottom-nav--persist {
    display: flex;
  }
  .bottom-nav.bottom-nav--persist .bottom-nav__inner {
    max-width: var(--desktop-max);
  }
  .app-shell--nav-persist {
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-4));
  }
}

/* -----------------------------------------------------------------------------
   24. Reduced motion
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .skeleton {
    animation: none;
    opacity: 0.55;
  }
}

/* -----------------------------------------------------------------------------
   25. Utilities
   ----------------------------------------------------------------------------- */
.text-muted {
  color: var(--text-muted);
}
.text-cyan {
  color: var(--cyan);
}
.text-gold {
  color: var(--gold);
}
.text-positive {
  color: var(--positive);
}
.text-negative {
  color: var(--negative);
}
.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;
}


/* =============================================================================
   STATLYZER 2.1 market intelligence + responsive
   ============================================================================= */
/* STATLYZER 2.1 market intelligence + responsive */
.home-desktop { display: flex; flex-direction: column; gap: var(--space-4); }
.home-desktop__primary, .home-desktop__side { min-width: 0; width: 100%; }

.analysis-layout { display: flex; flex-direction: column; gap: var(--space-4); }
.analysis-layout__main, .analysis-layout__side { min-width: 0; width: 100%; }

.market-intel { margin: var(--space-4) 0; }
.market-intel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 0;
}
.market-card--selected {
  border-color: rgba(0, 255, 204, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 255, 204, 0.12), 0 12px 28px rgba(0, 0, 0, 0.25);
  background: linear-gradient(165deg, rgba(0, 255, 204, 0.06), transparent 55%);
}
.market-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.market-card__line {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.market-card__proj {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.market-card__proj strong {
  color: #fff;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.market-card__note, .market-card__hint {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}

.ou-side { margin-bottom: 12px; }
.ou-side:last-child { margin-bottom: 0; }
.ou-side__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ccc;
  min-width: 0;
}
.ou-side__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ou-side__meta strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ou-side--selected .ou-side__meta {
  color: var(--cyan, #00ffcc);
}
.ou-side--selected .ou-side__meta strong { color: var(--cyan, #00ffcc); }
.ou-side--selected .prob-bar__fill {
  background: linear-gradient(90deg, #00ffcc, #00c4a7);
}
.sel-tag {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--cyan, #00ffcc);
  margin-left: 6px;
  vertical-align: middle;
}

.pick-card--primary {
  border-color: rgba(0, 255, 204, 0.35);
  background: linear-gradient(160deg, rgba(0, 255, 204, 0.07), transparent 60%);
}
.pick-card__family {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.pick-card--paused { opacity: 0.85; }
.pick-card--paused .muted { color: var(--text-muted); font-weight: 700; }

.market-context {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.market-context__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #151515;
  font-weight: 700;
  color: #aaa;
}
.market-context__row:last-child { border-bottom: 0; }
.market-context__row strong { color: #fff; font-variant-numeric: tabular-nums; }

.top10-card__family {
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan, #00ffcc);
}
.top10-card__pick {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  overflow-wrap: anywhere;
}

.legal-footer {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: #080809;
  text-align: center;
}
.legal-footer__brand {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}
.legal-footer__company {
  margin: 6px 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4c4c8;
}
.legal-footer__line {
  margin: 0 0 6px;
  font-size: 0.68rem;
  line-height: 1.5;
  font-weight: 600;
  color: #8b8b93;
}
.legal-footer__line a {
  color: #b0b0b6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 14px 0 12px;
}
.legal-footer__links a {
  color: #c4c4c8;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 1px;
}
.legal-footer__links a:hover,
.legal-footer__line a:hover {
  color: #fff;
}
.legal-footer__disclaimer {
  margin: 0 0 14px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #777;
}
.legal-footer__disclaimer strong { color: #bbb; }
.legal-footer__sal {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 12px;
  max-width: 100%;
}
.legal-footer__sal img {
  width: 250px;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.legal-footer__copy {
  margin: 0;
  font-size: 0.62rem;
  color: #555;
}
.legal-lang { font-size: 13px; font-weight: 700; margin: 10px 0; }
.legal-lang a { color: var(--gold, #c9a227); text-decoration: none; }
@media (max-width: 360px) {
  .legal-footer__sal img {
    width: min(250px, calc(100vw - 48px));
    height: auto;
    aspect-ratio: 5 / 1;
  }
}

.home-state {
  text-align: center;
  padding: 20px 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.home-state--error { color: #ff8a8a; }
.home-state--signedout { color: #bbb; }

@media (min-width: 768px) {
  .market-intel__grid { grid-template-columns: 1fr 1fr; }
  .hero-pick h2 { font-size: 1.55rem; }
  .match-title { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .home-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: start;
  }
  .home-desktop__primary .hero-pick {
    text-align: left;
    padding: 28px 32px;
  }
  .home-desktop__primary .hero-pick .analyze-btn { width: auto; min-width: 220px; }
  .home-desktop__side .section-head { text-align: left; margin-bottom: 12px; }

  .analysis-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .market-intel__grid { grid-template-columns: 1fr 1fr; }
  .match-header { text-align: left; }
  .match-title { font-size: 1.75rem; }
}

@media (min-width: 1440px) {
  .market-intel__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .home-desktop { gap: 36px; }
  .analysis-layout { gap: 36px; }
}

/* Prevent page-level horizontal scroll */
html, body { overflow-x: hidden; }
.app-shell, .app-main, .tab-panel, .market-card, .top10-card, .hero-pick {
  max-width: 100%;
}

/* -----------------------------------------------------------------------------
   STATLYZER 3.0 ??? Analyzer fixture browser, Results, cookie, home extras
   ----------------------------------------------------------------------------- */
.home-intel-label {
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
  text-align: center;
}
.home-analyzer-cta {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.home-analyzer-cta p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: var(--font-small);
  line-height: 1.5;
}
.analyzer-search {
  width: 100%;
  min-height: var(--touch-min);
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.analyzer-filters {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.analyzer-filters label {
  display: block;
  margin: 0 0 var(--space-1);
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fixture-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.fixture-row {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--touch-min);
  height: auto;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}
.fixture-row__main {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}
.fixture-row__time {
  flex: 0 0 auto;
  align-self: flex-start;
  padding-top: 2px;
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
}
.fixture-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.fixture-row__match {
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fixture-row__home,
.fixture-row__away {
  font-size: var(--font-small);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.fixture-row__away { color: var(--text-secondary); font-weight: 700; }
.fixture-row__meta {
  font-size: var(--font-micro);
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fixture-row__btn {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: var(--font-micro);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.fixture-row__btn:hover { border-color: var(--cyan); }

/* Mobile: stack CTA under teams so long names stay readable */
@media (max-width: 1023px) {
  .fixture-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .fixture-row__main {
    width: 100%;
  }
  .fixture-row__btn {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }
}

.history-session-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ddd;
}
.hist-sep { color: #444; font-weight: 700; }
.hist-outcome--hit { color: var(--positive, #22c55e); }
.hist-outcome--miss { color: #ff8a8a; }
.hist-outcome--pending { color: #c9a227; font-size: 0.78rem; font-weight: 700; }
.hist-outcome--void { color: #888; font-size: 0.78rem; font-weight: 700; }
.bottom-nav { z-index: 50; }
body.account-open .bottom-nav { z-index: 60; }
.fixture-empty {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-small);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.results-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.results-stat {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.results-stat span {
  display: block;
  font-size: var(--font-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.results-stat strong {
  font-size: 1.25rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pick-card__hint {
  margin: 0 0 10px;
  color: var(--text-muted, #888);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}
.market-context .hint {
  margin: 0 0 10px;
  color: var(--text-muted, #888);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}
.results-session {
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.results-session__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-height: var(--touch-min);
}
.results-session__head strong {
  display: block;
  font-size: var(--font-h3);
}
.results-session__head span {
  font-size: var(--font-small);
  color: var(--text-muted);
}
.results-pick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.results-pick__rank {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: var(--font-micro);
  font-weight: 800;
  background: var(--surface-2);
  color: var(--text-muted);
}
.results-pick__match {
  font-size: var(--font-small);
  font-weight: 700;
}
.results-pick__meta {
  font-size: var(--font-micro);
  color: var(--text-muted);
  margin-top: 2px;
}
.cookie-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: none;
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + var(--safe-bottom));
  background: transparent;
  pointer-events: none;
}
.cookie-sheet.is-open {
  display: block;
  pointer-events: auto;
}
.cookie-sheet__panel {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.cookie-sheet__panel h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-h3);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.cookie-sheet__panel p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: var(--font-small);
  line-height: 1.5;
}
.cookie-sheet__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cookie-sheet__actions .analyze-btn {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.legal-footer {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-4) calc(96px + var(--safe-bottom));
}
.legal-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 12px 12px calc(80px + var(--safe-bottom));
  background: transparent;
}
.legal-cookie[hidden],
.legal-cookie [hidden] { display: none !important; }
.legal-cookie__panel {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.legal-cookie__panel h3 { margin: 0 0 8px; font-size: 1rem; }
.legal-cookie__panel p { margin: 0; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.legal-cookie__prefs { display: grid; gap: 8px; margin: 12px 0; font-size: 0.8rem; color: #ccc; }
.legal-cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legal-cookie__btn {
  flex: 1;
  min-width: 140px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.legal-cookie__btn--primary { background: var(--gold, #c9a227); color: #000; border-color: var(--gold, #c9a227); }
.legal-cookie__btn--ghost { background: transparent; }
@media (min-width: 1024px) {
  .legal-footer { padding-bottom: var(--space-5); }
  .legal-cookie { padding-bottom: 12px; }
}
.paywall-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  text-align: left;
}
.paywall-compare article {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.paywall-compare h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.paywall-compare ul {
  margin: 0;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: var(--font-small);
  line-height: 1.55;
}
.paywall-compare article.is-pro {
  border-color: rgba(212, 160, 23, 0.45);
  background: var(--gold-soft);
}
.paywall-legal details {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-small);
  line-height: 1.45;
}
.paywall-legal summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
}
.scoreline-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-2);
  align-items: center;
}
.scoreline-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.scoreline-bar > i {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: inherit;
}
@media (min-width: 768px) {
  .analyzer-filters {
    grid-template-columns: 1fr 1fr;
  }
  .results-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .analyzer-desktop {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
    gap: var(--space-5);
    align-items: start;
  }
}

/* ===== STATLYZER 3.2 ? conversion + analyzer sheets ===== */
.home-plan-badge {
  display: inline-block;
  margin: 0 auto 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #222);
  color: #9a9a9a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-sealed-line {
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
}
.home-state--resolving {
  text-align: center;
  padding: 28px 16px;
  color: #888;
}
.brand-loader {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid #222;
  border-top-color: var(--cyan, #00ffcc);
  animation: statlyzer-spin 0.7s linear infinite;
}
@keyframes statlyzer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand-loader { animation: none; border-top-color: #444; }
}
.hero-pick--tappable { cursor: pointer; }
.hero-pick--tappable:active,
.analyze-btn:active,
.top10-card:active,
.fixture-row__btn:active,
.unlock-btn:active {
  transform: scale(0.98);
  transition: transform 140ms ease;
}
.top10-card__free-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan, #00ffcc);
}
.scoreline-list--ranked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scoreline-list--ranked li {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  color: #ddd;
  font-weight: 700;
}
.scoreline-rank { color: #666; min-width: 1.5rem; }
.advanced-analysis--locked summary { cursor: default; }
.advanced-analysis__body--locked .advanced-lock-list {
  margin: 8px 0 14px;
  padding-left: 18px;
  color: #888;
  font-size: 0.78rem;
  line-height: 1.6;
}
.fixture-row__btn--lock {
  color: var(--gold, #f5c542) !important;
  border-color: rgba(245, 197, 66, 0.35) !important;
  background: rgba(245, 197, 66, 0.08) !important;
}
.sheet-trigger {
  text-align: left;
  cursor: pointer;
}
.analyzer-sheet {
  position: fixed;
  inset: 0;
  z-index: 120000;
}
.analyzer-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.analyzer-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  background: #0c0c0c;
  border-radius: 20px 20px 0 0;
  border: 1px solid #222;
  border-bottom: none;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analyzer-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.analyzer-sheet__close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}
.analyzer-sheet__list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.analyzer-sheet__item {
  text-align: left;
  background: #121212;
  border: 1px solid #1e1e1e;
  color: #eee;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.analyzer-sheet__item:active { border-color: var(--cyan, #00ffcc); }

/* -----------------------------------------------------------------------------
   STATLYZER 3.3 ? world-class shells, combobox, Analyzer rows
   ----------------------------------------------------------------------------- */
.combo-fallback {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.combo-field { position: relative; min-width: 0; }
.combo-trigger,
button.combo-trigger,
.sheet-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--touch-min);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-elevated) !important;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.combo-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}
.combo-trigger:focus-visible,
.analyzer-search:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}
.analyzer-toolbar { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.analyzer-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: end;
}
.analyzer-clear {
  min-height: var(--touch-min);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.analyzer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #eee;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.analyze-btn--hero {
  width: auto;
  min-width: 200px;
  min-height: 48px;
  padding: 12px 22px !important;
  font-size: 0.82rem !important;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.18) !important;
}
.analyze-btn--ghost,
.analyze-btn--secondary {
  background: #161616 !important;
  color: #f4f4f5 !important;
  border: 1px solid #9a9a9a !important;
  box-shadow: none !important;
}
.top10-card__ready {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.home-plan-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 4px;
}
.home-sealed-line {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.fixture-row__home,
.fixture-row__away {
  font-size: var(--font-small);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.fixture-row__away { color: var(--text-secondary); font-weight: 700; }
.fixture-row--skeleton { pointer-events: none; min-height: 64px; }
.skeleton-block {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1a1a, #2a2a2e, #1a1a1a);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-block--lg { height: 16px; width: 70%; margin-bottom: 8px; }
.skeleton-block--sm { height: 10px; width: 45%; }
.skeleton-block--btn { width: 72px; height: 36px; }
.analysis-loading { padding: 12px 0 28px; text-align: center; }
.analysis-loading .match-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 6px; }

.analyzer-sheet[hidden] { display: none !important; }
.analyzer-sheet:not([hidden]) { display: block; }
.analyzer-sheet--popover .analyzer-sheet__backdrop { background: transparent; }
.analyzer-sheet--popover .analyzer-sheet__panel {
  left: auto;
  right: auto;
  bottom: auto;
  max-height: min(52vh, 420px);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-elevated);
}

@media (min-width: 768px) {
  .analyzer-filters { grid-template-columns: 1fr 1fr auto; }
  .home-desktop { max-width: 100%; }
}

@media (min-width: 1024px) {
  .app-shell { max-width: var(--home-max); }
  #tab-manual .filter-box { padding: 28px 8px; }
  #tab-manual { max-width: var(--analyzer-max); margin: 0 auto; }
  .home-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 32px;
    align-items: start;
  }
  .desktop-nav__item--active {
    background: rgba(225, 29, 46, 0.1);
    border-color: rgba(225, 29, 46, 0.38);
    box-shadow: none;
  }
  .fixture-row {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .fixture-row__btn {
    width: auto;
    align-self: center;
  }
}

@media (min-width: 1440px) {
  .app-shell { max-width: 1320px; }
  #tab-manual { max-width: 1400px; }
  .home-desktop { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
}

@media (min-width: 1920px) {
  .app-shell { max-width: 1360px; }
  #tab-manual { max-width: 1400px; }
}
