/* ============================================================
   Lootly — design system
   Live scores + premium Telegram alerts
   Dark-first, mobile-first, sports-terminal vibe
   ============================================================ */

:root {
  /* surfaces */
  --bg: #0a0e14;
  --bg-elev: #11161d;
  --bg-elev-2: #161c25;
  --border: #1f2937;
  --border-strong: #2a3441;

  /* text */
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --text-faint: #4b5563;

  /* accents */
  --accent: #22d3ee;        /* cyan — primary CTA, links */
  --accent-2: #818cf8;      /* indigo — secondary */
  --gold: #f59e0b;          /* premium / highlights */
  --green: #10b981;         /* live / win / positive */
  --red: #ef4444;           /* lose / down */

  /* state */
  --live: #ef4444;          /* live pulse */
  --live-glow: rgba(239, 68, 68, 0.45);

  /* sports */
  --sport-football: #84cc16;
  --sport-tennis: #eab308;
  --sport-basketball: #f97316;

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter',
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-med: 0.3s;
  --t-slow: 0.5s;
}

/* ─── Reset ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

/* ─── Layout primitives ─── */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 1024px) {
  .container { max-width: 960px; padding: 0 var(--s-6); }
}

.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.row   { display: flex; align-items: center; gap: var(--s-3); }
.row-tight { display: flex; align-items: center; gap: var(--s-2); }
.spacer { flex: 1; }

/* ─── App shell ─── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--s-4);
  max-width: 960px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--text);
}
.brand__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand__emblem {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

main { padding-bottom: var(--s-16); }

/* ─── Search hero ─── */
.hero {
  padding: var(--s-10) var(--s-4) var(--s-8);
  text-align: center;
}
.hero__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.hero__subtitle {
  color: var(--text-dim);
  margin-bottom: var(--s-6);
  font-size: 15px;
}
.search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.search__input {
  width: 100%;
  height: 56px;
  padding: 0 var(--s-12) 0 var(--s-12);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.search__input::placeholder { color: var(--text-muted); }
.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.search__icon {
  position: absolute;
  left: var(--s-5);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search__hint {
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--text-muted);
}

/* Autocomplete dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 60;
  display: none;
  text-align: left;
}
.search-results.is-open { display: block; }
.search-results__group {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
}
.search-results__group:last-child { border-bottom: none; }
.search-results__heading {
  padding: var(--s-2) var(--s-4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.search-result {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  transition: background var(--t-fast) var(--ease);
}
.search-result:hover, .search-result.is-active {
  background: rgba(34, 211, 238, 0.06);
}
.search-result__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
  object-fit: cover;
}
.search-result__main {
  flex: 1;
  min-width: 0;
}
.search-result__name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.search-result__kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.search-empty {
  padding: var(--s-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.search__hint kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ─── Sport tabs ─── */
.sport-tabs {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.sport-tab:hover { color: var(--text); border-color: var(--border-strong); }
.sport-tab.is-active {
  background: var(--accent);
  color: #001318;
  border-color: var(--accent);
}

/* ─── Filter chips (All/Live/Scheduled/Finished) ─── */
.filter-chips {
  display: flex;
  gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.is-active {
  background: var(--bg-elev-2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Date scrubber ─── */
.date-scrubber {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.date-scrubber::-webkit-scrollbar { display: none; }
.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--t-fast) var(--ease);
}
.date-chip:hover { color: var(--text); border-color: var(--border-strong); }
.date-chip.is-active {
  background: var(--accent);
  color: #001318;
  border-color: var(--accent);
}
.date-chip__day { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.date-chip__num { font-size: 18px; font-weight: 700; line-height: 1; margin-top: 2px; }

/* ─── Match card ─── */
.match-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  transition: border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.match-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.match-card.is-live {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(239, 68, 68, 0.04) 100%);
}
.match-card.flash-update {
  animation: flashUpdate 0.6s var(--ease);
}
@keyframes flashUpdate {
  0% { background: rgba(34, 211, 238, 0.15); }
  100% { background: var(--bg-elev); }
}
.match-card__team {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.match-card__team--away { justify-content: flex-end; text-align: right; }
.match-card__team-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-card__team-crest {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  flex-shrink: 0;
}
.match-card__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.match-card__score {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.match-card__score--scheduled {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.match-card__status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}
.match-card__status.is-live { color: var(--live); font-weight: 600; }

.live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--live-glow); opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: 0.5; }
}

/* ─── League group ─── */
.league-group { margin-bottom: var(--s-5); }
.league-group__header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) var(--s-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.league-group__matches { display: flex; flex-direction: column; gap: var(--s-2); padding: 0 var(--s-4); }

/* ─── Live status indicator (header) ─── */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-status__dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #001318;
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0d00;
}
.btn--gold:hover { filter: brightness(1.08); }
.btn--lg { padding: var(--s-4) var(--s-8); font-size: 15px; border-radius: var(--r-lg); }
.btn--full { width: 100%; }

/* ─── Pro badge ─── */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0d00;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-sm);
}

/* ─── Skeleton loaders ─── */
.skel {
  background: linear-gradient(
    90deg,
    var(--bg-elev) 0%,
    var(--bg-elev-2) 50%,
    var(--bg-elev) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel--card { height: 64px; margin-bottom: var(--s-2); }

/* ─── Empty / error states ─── */
.empty {
  text-align: center;
  padding: var(--s-12) var(--s-4);
  color: var(--text-muted);
}
.empty__title { color: var(--text-dim); font-size: 16px; margin-bottom: var(--s-2); }

/* ─── Bottom nav (mobile) ─── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-3) var(--s-2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--t-fast) var(--ease);
}
.bottom-nav__item:hover { color: var(--text-dim); }
.bottom-nav__item.is-active { color: var(--accent); }
.bottom-nav__icon { font-size: 18px; margin-bottom: 2px; }
@media (min-width: 768px) { .bottom-nav { display: none; } main { padding-bottom: var(--s-8); } }

/* ─── Live counters bar (hero strip) ─── */
.live-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: var(--s-6);
}
.counter {
  background: var(--bg);
  padding: var(--s-4) var(--s-3);
  text-align: center;
}
.counter__value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.counter__value.is-live { color: var(--live); }
.counter__value.is-gold { color: var(--gold); }
.counter__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Picks of the day section ─── */
.picks-section {
  padding: var(--s-6) var(--s-4) var(--s-4);
  max-width: 960px;
  margin: 0 auto;
}
.picks-section__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.picks-section__title h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.picks-section__title .badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0d00;
}
.picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) {
  .picks-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .picks-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.pick-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
}
.pick-card__league {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.pick-card__teams {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s-3);
  line-height: 1.3;
}
.pick-card__metrics {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.pick-card__metric {
  flex: 1;
  text-align: center;
  padding: var(--s-2);
  background: var(--bg);
  border-radius: var(--r-sm);
}
.pick-card__metric-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.pick-card__metric-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1px;
}
.pick-card__locked {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--r-sm);
  padding: var(--s-2);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  position: relative;
}
.pick-card__locked .blur-text {
  filter: blur(4px);
  user-select: none;
}
.pick-card__locked-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 12px;
}

/* ─── Sidebar (desktop) ─── */
.layout {
  display: block;
}
.sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--s-6);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--s-4);
  }
  .sidebar {
    display: block;
    position: sticky;
    top: 70px;
    align-self: start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .container { padding: 0; }
}
.sidebar__title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: var(--s-2) var(--s-3) var(--s-2);
}
.sidebar__league {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-size: 13px;
  color: var(--text-dim);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.sidebar__league:hover { background: var(--bg-elev); color: var(--text); }
.sidebar__league.is-active { background: var(--bg-elev); color: var(--accent); }
.sidebar__league-flag {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-elev-2);
  flex-shrink: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__league-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ─── News section ─── */
.news-section { padding: var(--s-6) var(--s-4) var(--s-4); max-width: 960px; margin: 0 auto; }
.news-section__title {
  font-size: 18px; font-weight: 700; margin-bottom: var(--s-4);
  display: flex; align-items: center; gap: var(--s-2);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }
.news-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--t-fast) var(--ease);
}
.news-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.news-card__img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--bg-elev-2);
}
.news-card__body { padding: var(--s-3); flex: 1; display: flex; flex-direction: column; }
.news-card__source {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: var(--s-2);
}
.news-card__title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  margin-bottom: var(--s-2); flex: 1;
}
.news-card__time { font-size: 11px; color: var(--text-muted); }

/* ─── Favorites star ─── */
.fav-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px; border-radius: var(--r-md);
  font-size: 13px; transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.fav-btn:hover { color: var(--gold); border-color: var(--gold); }
.fav-btn.is-fav { color: var(--gold); border-color: var(--gold); background: rgba(245, 158, 11, 0.1); }

/* ─── Footer ─── */
.site-footer {
  margin-top: var(--s-16);
  padding: var(--s-10) var(--s-4) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-weight: 700;
  font-size: 16px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.footer-bottom {
  max-width: 960px;
  margin: var(--s-6) auto 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom small {
  color: var(--text-muted);
  font-size: 11px;
}
.responsible-gambling {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--r-full);
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Pro CTA card (sticky-ish) ─── */
.pro-cta {
  margin: var(--s-5) var(--s-4);
  padding: var(--s-5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.pro-cta__body { flex: 1; }
.pro-cta__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 2px;
}
.pro-cta__sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Onboarding modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  animation: fadeIn 0.3s var(--ease);
}
.modal-overlay.is-open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  color: var(--text-muted);
  font-size: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.modal__close:hover { color: var(--text); background: var(--bg); }
.modal__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-3);
  border-radius: 14px;
}
.modal__title { font-size: 22px; font-weight: 700; margin-bottom: var(--s-2); }
.modal__sub { color: var(--text-dim); margin-bottom: var(--s-5); font-size: 14px; line-height: 1.5; }
.modal__features {
  text-align: left;
  margin-bottom: var(--s-5);
}
.modal__feat {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.modal__feat:last-child { border-bottom: none; }
.modal__feat-icon { font-size: 22px; flex-shrink: 0; }
.modal__feat-title { font-weight: 600; font-size: 14px; }
.modal__feat-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.modal__actions { display: flex; gap: var(--s-3); flex-direction: column; }

/* ─── Install banner ─── */
.install-banner {
  position: fixed;
  bottom: 70px;  /* above bottom-nav on mobile */
  left: var(--s-4); right: var(--s-4);
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #001318;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  display: none;
  align-items: center;
  gap: var(--s-3);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  font-size: 13px;
  animation: slideUp 0.4s var(--ease);
}
.install-banner.is-open { display: flex; }
@media (min-width: 768px) {
  .install-banner { bottom: var(--s-6); right: var(--s-6); left: auto; max-width: 380px; }
}
.install-banner__body { flex: 1; }
.install-banner__title { font-weight: 700; }
.install-banner__sub { font-size: 11px; opacity: 0.85; }
.install-banner button {
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 12px;
}
.install-banner__close {
  background: transparent !important;
  color: rgba(0, 19, 24, 0.7) !important;
  font-size: 18px;
  padding: 4px 8px !important;
}

/* ─── Utility ─── */
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-live { color: var(--live); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.fs-xs { font-size: 11px; }
.fs-sm { font-size: 12px; }
.hidden { display: none !important; }
