/* ============================================================
   Reusable components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--r-md);
  color: var(--text-on-brand);
  box-shadow: var(--btn-shadow);
  transition: filter var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { filter: brightness(.94); }

.btn-primary   { background: var(--brand-blue); font-weight: 700; }
.btn-primary:hover { background: var(--brand-blue-hover); }
.btn-secondary { background: var(--surface-500); }
.btn-ghost     { background: transparent; box-shadow: none; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); filter: none; background: var(--hairline); }
.btn-success   { background: var(--brand-green); color: #07140A; }
.btn-block     { width: 100%; padding: 13px 20px; font-size: var(--text-base); }
.btn-lg        { padding: 14px 22px; font-size: var(--text-base); }
.btn-sm        { padding: 7px 14px; font-size: var(--text-xs); }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: var(--r-md);
  background: transparent; color: var(--text-muted);
  box-shadow: none;
}
.btn-icon:hover { background: var(--surface-700); color: var(--text-primary); filter: none; }
.hero-link {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-primary);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 1px; cursor: pointer; user-select: none;
}
.hero-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* Default sizing for rail-link icons — applies everywhere, including
   the mobile Browse screen which reuses .rail-link. Desktop overrides below. */
.rail-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; color: var(--text-muted); }
.rail-link:hover { color: var(--text-primary); }
.rail-link svg { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.rail-link span { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); flex: 1; min-width: 0; }
.rail-link .chev { margin-left: auto; opacity: 0.5; flex: none; }
.rail-link .chev svg { width: 14px; height: 14px; }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-700);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text-muted);
}
.search svg { width: 16px; height: 16px; flex: none; }
.search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
}
.search input::placeholder { color: var(--text-muted); }
.search:focus-within {
  border-color: var(--hairline-2);
  background: var(--surface-600);
}

/* ---------- Section header ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 12px;
  padding: 0 var(--gutter);
}
.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-primary);
  flex: 1; min-width: 0;
}
.section-head h2 .title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-head h2 .pill-icon {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-blue);
}
.section-head h2 .pill-icon svg { width: 16px; height: 16px; }
.section-head .actions { display: flex; align-items: center; gap: 8px; }
.section-head .view-all {
  color: var(--text-muted); font-size: var(--text-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex: none;
}
.section-head .view-all:hover { color: var(--text-primary); }
.section-head .view-all svg { width: 12px; height: 12px; }
.section-head .count {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: var(--text-xs); font-weight: 600;
}
.section-head .count::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
}

/* Chevron carousel buttons */
.chev-row {
  display: inline-flex;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  overflow: hidden;
}
.chev-btn {
  background: transparent; width: 32px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.chev-btn + .chev-btn { border-left: 1px solid var(--hairline-2); }
.chev-btn:hover { background: var(--hairline); color: var(--text-primary); }
.chev-btn svg { width: 12px; height: 12px; }

/* ---------- Game card ---------- */
.game-card {
  position: relative;
  background: var(--surface-600);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  display: block;
  text-decoration: none;
}
.game-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 1; }
.game-card:active { transform: scale(.98); }
.game-card .tile,
.game-card .thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}
.game-card .players {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-primary);
  font-size: var(--text-xs); font-weight: 600;
  padding: 0;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.game-card .players::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
  animation: pulse 1.6s var(--ease) infinite;
}
.game-card .badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--r-sm);
  background: var(--brand-gold);
  color: #1A1410;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.game-card .badge.new   { background: var(--brand-green); color: #07140A; }
.game-card .badge.excl  { background: var(--brand-purple); color: #fff; }
.game-card .badge.live  { background: var(--brand-red); color: #fff; }

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

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .card-grid { gap: 14px; }
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 114px;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row .game-card { scroll-snap-align: start; }
@media (min-width: 768px) { .card-row { grid-auto-columns: 160px; gap: 12px; } }
@media (min-width: 1280px){ .card-row { grid-auto-columns: 180px; gap: 14px; } }

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  gap: 8px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface-600);
  border-radius: var(--r-pill);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex: none;
  transition: background-color var(--t-fast) var(--ease);
}
.chip:hover { background: var(--surface-500); }
.chip.active {
  background: var(--surface-700);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.chip.ghost { background: transparent; color: var(--text-muted); }
.chip svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero {
  padding: 20px var(--gutter) 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.hero h1 {
  font-size: clamp(1.375rem, 6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 18ch;
}
.hero .sub {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.hero .sub a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-dim);
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn-primary { box-shadow: none; }
.hero .or-caption {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  margin-top: 6px;
}
.hero .oauth-row { padding: 0; max-width: 320px; }

@media (min-width: 1024px) {
  .hero { padding: 40px var(--gutter-lg) 28px; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .hero h1 { font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 500; }
  .hero .copy { max-width: 560px; }
  .hero-art { display: flex; gap: 12px; flex: none; }
}

/* ---------- Mode tiles (Casino / Sports) ---------- */
.mode-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
}
@media (min-width: 768px)  { .mode-tiles { gap: 14px; } }
@media (min-width: 1024px) { .mode-tiles { grid-template-columns: repeat(4, 1fr); } }

.mode-tile {
  position: relative;
  background: var(--surface-600);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 11;
  transition: transform var(--t-fast) var(--ease);
}
.mode-tile:hover { transform: translateY(-2px); }
.mode-tile .art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--text-primary);
  overflow: hidden;
}
.mode-tile .label {
  position: absolute; inset: auto 0 0 0;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
}
.mode-tile .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 600;
}
.mode-tile .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
}
.mode-tile.casino .art {
  background: radial-gradient(circle at 70% 30%, rgba(0, 202, 81, 0.30), transparent 65%), var(--surface-600);
}
.mode-tile.sports .art {
  background: radial-gradient(circle at 70% 30%, rgba(232, 156, 65, 0.30), transparent 65%), var(--surface-600);
}
.mode-tile .art img {
  height: 64%; width: auto; max-width: 100%; object-fit: contain;
}
@media (min-width: 1024px) {
  .mode-tile { aspect-ratio: 16 / 7; }
}

/* ---------- Match card (sportsbook) ---------- */
.match {
  background: var(--surface-600);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: filter var(--t-fast) var(--ease);
}
.match:hover { filter: brightness(1.1); }
@media (min-width: 1024px) {
  .match { padding: 20px 24px; }
  .match-names { font-size: var(--text-base); }
}
.match-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 600;
}
.match-tags { display: flex; gap: 6px; }
.match-tag {
  background: var(--surface-700);
  padding: 3px 7px;
  border-radius: var(--r-sm);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.match-tag.live { background: var(--brand-red); color: #fff; }
.match-teams {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.team-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--text-xs);
  color: var(--text-primary);
}
.match-names {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.match-names .vs { color: var(--text-muted); font-weight: 600; }
.match-odds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.odd-btn {
  background: var(--surface-700);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: background-color var(--t-fast) var(--ease);
}
.odd-btn:hover { background: var(--surface-500); }
.odd-btn .label { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.odd-btn .price { font-size: var(--text-base); font-weight: 700; color: var(--brand-blue); }
.odd-btn.selected {
  background: rgba(20, 117, 225, 0.18);
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}
.odd-btn.selected .label { color: var(--text-muted); }
.odd-btn.selected .price { color: var(--brand-blue); }

/* ---------- Promo card ---------- */
.promo-card {
  background: var(--surface-600);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast) var(--ease);
}
.promo-card:hover { transform: translateY(-2px); }
.promo-card .art {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.promo-card.race .art    { background: linear-gradient(135deg, #2A3340, #1A2330); }
.promo-card.boost .art   { background: linear-gradient(135deg, #1F4D3A, #0F3122); }
.promo-card.raffle .art  { background: linear-gradient(135deg, #3A1F66, #1F0E3D); }
.promo-card.wheel .art   { background: linear-gradient(135deg, #6E5318, #3A2A0A); }
.promo-card.casino .art  { background: linear-gradient(135deg, #5C1543, #2D0A21); }
.promo-card.poker .art   { background: linear-gradient(135deg, #0F3148, #1A4D6E); }
.promo-card.sport .art   { background: linear-gradient(135deg, #1F4D3A, #0F3122); }
.promo-card.cashback .art{ background: linear-gradient(135deg, #1F4D3A, #0F3122); }
.promo-card .art::after {
  content: ""; position: absolute; inset: auto -20% -20% auto;
  width: 70%; height: 130%;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.promo-card .art .glyph {
  position: absolute; right: 12px; bottom: 6px;
  font-size: 96px; line-height: 1; opacity: 0.65;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.promo-card .art .promo-illustration {
  position: absolute;
  right: -6%; bottom: -8%;
  width: 70%; height: 130%;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
}
.promo-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.promo-card .body h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); }
.promo-card .body .sub { color: var(--text-muted); font-size: var(--text-sm); }
.promo-card .body .ends {
  font-size: var(--text-xs); color: var(--text-muted);
  border-top: 1px solid var(--hairline);
  padding-top: 8px; margin-top: 4px;
}
.promo-card .ends-time { color: var(--text-primary); font-weight: 700; font-size: var(--text-sm); margin-left: 6px; }
.promo-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

/* ---------- VIP tier ---------- */
.vip-tiers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
}
.vip-tiers::-webkit-scrollbar { display: none; }
.vip-tier {
  background: var(--surface-600);
  border-radius: var(--r-xl);
  padding: 20px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
}
.vip-tier .star {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.vip-tier .star svg { width: 20px; height: 20px; color: var(--text-muted); }
.vip-tier .star.bronze   { background: rgba(178, 119, 68, 0.18); color: #B27744; }
.vip-tier .star.silver   { background: rgba(201, 203, 208, 0.18); color: #C9CBD0; }
.vip-tier .star.gold     { background: rgba(230, 182, 66, 0.18); color: #E6B642; }
.vip-tier .star.platinum { background: rgba(127, 196, 217, 0.18); color: #7FC4D9; }
.vip-tier .star.diamond  { background: rgba(179, 225, 240, 0.18); color: #B3E1F0; }
.vip-tier .star.bronze svg, .vip-tier .star.silver svg, .vip-tier .star.gold svg,
.vip-tier .star.platinum svg, .vip-tier .star.diamond svg { color: inherit; }
.vip-tier .tier-name {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--text-xs);
  letter-spacing: 0.02em;
  width: max-content;
}
.vip-tier .tier-name.bronze   { background: #B27744; color: #1A0F08; }
.vip-tier .tier-name.silver   { background: #C9CBD0; color: #1B1E26; }
.vip-tier .tier-name.gold     { background: #E6B642; color: #1A1410; }
.vip-tier .tier-name.platinum { background: #7FC4D9; color: #0F2832; }
.vip-tier .tier-name.diamond  { background: #B3E1F0; color: #0F2832; }
.vip-tier .amount {
  font-size: var(--text-2xl); font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.vip-tier .lbl { color: var(--text-muted); font-size: var(--text-xs); }
.vip-tier .perks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--text-xs); color: var(--text-muted);
}
.vip-tier .perks li::before {
  content: "✓ "; color: var(--brand-blue); font-weight: 700; margin-right: 6px;
}

@media (min-width: 1024px) {
  .vip-tiers { grid-template-columns: repeat(5, 1fr); grid-auto-flow: row; grid-auto-columns: auto; padding: 0 var(--gutter-lg); }
}

/* ---------- Blog card ---------- */
.blog-card {
  background: var(--surface-600);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast) var(--ease);
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card .art {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #14323E, #1F4D6E);
  position: relative;
}
.blog-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.blog-card .body h3 { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.blog-card .excerpt { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.4; }
.blog-card .meta {
  margin-top: 4px;
  font-size: var(--text-xs); color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.blog-card .meta .date { color: var(--text-primary); font-weight: 700; }

/* ---------- Stats row (affiliate) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 var(--gutter);
}
.stat .n {
  font-size: var(--text-2xl); font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.stat .lbl { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.2; }

/* ---------- Toggle ---------- */
.toggle {
  width: 44px; height: 24px;
  background: var(--surface-500);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background-color var(--t-fast) var(--ease);
}
.toggle::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t-fast) var(--ease);
}
.toggle.on { background: var(--brand-blue); }
.toggle.on::after { transform: translateX(20px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px);
  transform: translate(-50%, 30px);
  background: var(--surface-900);
  border: 1px solid var(--hairline-2);
  color: var(--text-primary);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: var(--text-sm); font-weight: 600;
  z-index: 100;
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) {
  .toast { bottom: 28px; }
}

/* ---------- Bet slip ---------- */
.betslip {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px);
  width: min(calc(100vw - 32px), 360px);
  background: var(--surface-900);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 14px;
  z-index: 60;
  box-shadow: var(--shadow-2xl);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.betslip[hidden] { display: none; }
.betslip.collapsed { transform: translateY(calc(100% - 48px)); }
.betslip .head { display: flex; align-items: center; justify-content: space-between; }
.betslip .head h4 { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); }
.betslip .legs { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.betslip .leg {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: var(--text-sm);
}
.betslip .leg .lbl { color: var(--text-primary); font-weight: 700; }
.betslip .leg .ev  { color: var(--text-muted); font-size: var(--text-xs); }
.betslip .leg .price { color: var(--brand-blue); font-weight: 700; }
.betslip .totals { display: flex; justify-content: space-between; padding-top: 8px; font-size: var(--text-sm); }
.betslip .total-amt { color: var(--brand-green); font-weight: 700; }
@media (min-width: 1024px) {
  .betslip { bottom: 24px; right: 24px; }
}

/* ---------- Dividers ---------- */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 20px var(--gutter);
}

/* ---------- Generic surfaces ---------- */
.surface { background: var(--surface-600); border-radius: var(--r-md); padding: 16px; }
.surface-raised { background: var(--surface-700); border-radius: var(--r-md); padding: 16px; }

/* ---------- OAuth buttons ---------- */
.oauth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 var(--gutter);
}
.oauth-btn {
  background: var(--surface-600);
  height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--btn-shadow);
  color: var(--text-primary);
  transition: background-color var(--t-fast) var(--ease);
}
.oauth-btn:hover { background: var(--surface-500); }
.oauth-btn svg { width: 22px; height: 22px; }

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
  padding: 20px var(--gutter) 12px;
  color: var(--text-muted);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.08em;
}
.or-divider::before, .or-divider::after {
  content: ""; height: 1px; background: var(--hairline);
}

/* ---------- Footer ---------- */
.foot-meta {
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-xs);
  line-height: 1.6;
  padding: 32px var(--gutter) 48px;
}
.foot-meta .pill {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--surface-700);
  border-radius: var(--r-pill);
  font-weight: 700;
  color: var(--text-muted);
}
.foot-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 var(--gutter);
}
.foot-link {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}
.foot-link svg { width: 14px; height: 14px; color: var(--text-muted); }
@media (min-width: 1024px) {
  .foot-links {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    padding: 0 var(--gutter-lg);
  }
  .foot-link { cursor: default; }
}
