/* ── Sportsbook — sportsbook-style dense lobby in the site's
   violet/zinc theme (matches base.html, flip, slots, etc.).
   ────────────────────────────────────────────────────────────── */

.sb-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  min-height: calc(100vh - 72px);
  background: linear-gradient(to bottom, #0c0c18 0%, #0f0c1f 50%, #0c0c18 100%);
  color: #e4e4e7;
}

/* ── Sport tabs ─────────────────────────────────────────────────── */
.sb-sports {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid #27272a;
  margin-bottom: 0.85rem;
}
.sb-sport {
  appearance: none;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.sb-sport:hover { color: #e4e4e7; }
.sb-sport-active {
  color: #ffffff;
  border-bottom-color: #8b5cf6;
}

/* ── Toolbar (time filters) ─────────────────────────────────────── */
.sb-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  margin-bottom: 0.65rem;
}
.sb-filters {
  display: flex;
  gap: 0.25rem;
  background: rgba(24,24,27,0.7);
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  padding: 0.2rem;
}
.sb-chip {
  appearance: none;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.sb-chip:hover { color: #e4e4e7; }
.sb-chip-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.sb-toolbar-spacer { flex: 1; }
.sb-link {
  font-size: 0.78rem;
  color: #38bdf8;
}
.sb-link:hover { color: #7dd3fc; }

/* ── Alert + anon banner ─────────────────────────────────────────── */
.sb-alert {
  margin: 0.5rem 0;
  padding: 0.55rem 0.85rem;
  border-radius: 0.4rem;
  font-size: 0.83rem;
  border: 1px solid rgba(244,63,94,0.3);
  background: rgba(244,63,94,0.10);
  color: #fda4af;
}
.sb-alert.sb-alert-ok {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.10);
  color: #6ee7b7;
}
.sb-anon {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 1rem; margin-bottom: 0.7rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  color: #d4d4d8;
}
.sb-anon a {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  padding: 0.4rem 0.9rem; border-radius: 0.4rem;
  font-weight: 600; font-size: 0.8rem;
}
.sb-anon a:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* ── Layout grid ─────────────────────────────────────────────────── */
.sb-grid {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 0.85rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .sb-grid { grid-template-columns: 1fr 320px; }
  .sb-rail { display: none; }
}
@media (max-width: 720px) {
  .sb-grid { grid-template-columns: 1fr; }
  .sb-slip-col { position: static; }
}

/* ── League sidebar ──────────────────────────────────────────────── */
.sb-rail {
  position: sticky;
  top: 80px;
  background: rgba(24,24,27,0.7);
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  overflow: hidden;
}
.sb-rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #27272a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
}
.sb-rail-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717a;
  background: rgba(255,255,255,0.05);
  padding: 0.05rem 0.45rem;
  border-radius: 0.3rem;
}
.sb-leagues {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.sb-league {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: #d4d4d8;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sb-league:hover { background: rgba(124,58,237,0.10); color: #ffffff; }
.sb-league-active {
  background: rgba(124,58,237,0.18);
  color: #ffffff;
  border-left-color: #8b5cf6;
}
.sb-league-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-league-n {
  font-size: 0.72rem;
  color: #71717a;
  background: rgba(255,255,255,0.04);
  padding: 0.05rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: 600;
}
.sb-league-active .sb-league-n { color: #c4b5fd; background: rgba(124,58,237,0.25); }

/* ── Fixtures feed ───────────────────────────────────────────────── */
.sb-feed { min-width: 0; }
.sb-league-section { margin-bottom: 0.7rem; }

.sb-league-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: rgba(124,58,237,0.10);
  border: 1px solid #27272a;
  border-bottom: none;
  border-radius: 0.85rem 0.85rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d4d4d8;
}
.sb-league-bar-name { display: flex; align-items: center; gap: 0.5rem; }
.sb-mkt-head {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Match row */
.sb-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(24,24,27,0.7);
  border-left: 1px solid #27272a;
  border-right: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  transition: background 0.1s;
}
.sb-row:hover { background: rgba(124,58,237,0.06); }
.sb-row:last-child { border-radius: 0 0 0.85rem 0.85rem; }

.sb-time { display: flex; flex-direction: column; line-height: 1.15; }
.sb-time-day {
  font-size: 0.65rem;
  color: #a1a1aa;
  text-transform: uppercase;
  font-weight: 600;
}
.sb-time-clock {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.sb-teams { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sb-team {
  font-size: 0.85rem;
  color: #e4e4e7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* Odds */
.sb-odds {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 0.3rem;
}
.sb-odd {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.4rem;
  padding: 0.45rem 0.3rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.12rem;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, transform 0.08s;
}
.sb-odd:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.45);
}
.sb-odd:active { transform: scale(0.97); }
.sb-odd-sel {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #7c3aed;
  box-shadow: 0 2px 10px rgba(124,58,237,0.35);
}
.sb-odd-sel .sb-odd-price,
.sb-odd-sel .sb-odd-tag { color: white; }
.sb-odd-empty {
  cursor: default;
  background: transparent;
  border-style: dashed;
  border-color: #27272a;
}
.sb-odd-empty .sb-odd-price { color: #52525b; }
.sb-odd-tag {
  font-size: 0.58rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sb-odd-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e4e4e7;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sb-more {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #a1a1aa;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.sb-more:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.45);
  color: white;
}
.sb-more-active {
  background: rgba(124,58,237,0.20);
  border-color: rgba(124,58,237,0.55);
  color: white;
}

.sb-row-extra {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem 0.7rem;
  background: rgba(15,12,31,0.6);
  border-left: 1px solid #27272a;
  border-right: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
}
.sb-row-extra-body {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.sb-mini-market { display: flex; flex-direction: column; gap: 0.25rem; }
.sb-mini-market-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  font-weight: 700;
}
.sb-mini-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

.sb-empty {
  background: rgba(24,24,27,0.7);
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #71717a;
}

/* ── Bet slip ────────────────────────────────────────────────────── */
.sb-slip-col { position: relative; display: flex; flex-direction: column; gap: 0.7rem; }
.sb-slip,
.sb-open {
  background: rgba(24,24,27,0.7);
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  overflow: hidden;
}
.sb-slip { position: sticky; top: 80px; }

.sb-slip-head,
.sb-open-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #27272a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4d4d8;
}
.sb-slip-clear {
  appearance: none; background: transparent; border: none;
  color: #71717a; font-size: 0.7rem; cursor: pointer;
}
.sb-slip-clear:hover { color: #fda4af; }

.sb-slip-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #71717a;
  font-size: 0.82rem;
}
.sb-slip-body { padding: 0.85rem; }

.sb-slip-pick {
  background: rgba(15,12,31,0.6);
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.7rem;
}
.sb-slip-fixture {
  font-size: 0.7rem;
  color: #a1a1aa;
  margin-bottom: 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-slip-row { display: flex; align-items: center; justify-content: space-between; }
.sb-slip-sel {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}
.sb-slip-odds {
  font-size: 0.95rem;
  font-weight: 800;
  color: #c4b5fd;
}
.sb-slip-market {
  font-size: 0.65rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.sb-slip-stake { margin-bottom: 0.7rem; }
.sb-slip-stake label {
  display: block;
  font-size: 0.65rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.sb-slip-stake input {
  width: 100%;
  background: rgba(15,12,31,0.6);
  border: 1px solid #27272a;
  border-radius: 0.4rem;
  color: white;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  font-variant-numeric: tabular-nums;
}
.sb-slip-stake input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.sb-slip-chips { display: flex; gap: 0.3rem; margin-top: 0.4rem; }
.sb-slip-chips button {
  flex: 1; appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d4d4d8;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem; border-radius: 0.3rem;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.sb-slip-chips button:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.45);
  color: white;
}

.sb-slip-payout {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.7rem;
  background: rgba(15,12,31,0.6);
  border: 1px solid #27272a;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  color: #a1a1aa;
  margin-bottom: 0.85rem;
}
.sb-slip-payout span:last-child {
  color: #6ee7b7;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sb-place {
  display: block; width: 100%;
  appearance: none;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.1s, opacity 0.1s, transform 0.08s;
  text-align: center;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.sb-place:hover:not(:disabled) {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.sb-place:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.sb-place-anchor { display: block; }

/* ── My Open Bets ────────────────────────────────────────────────── */
.sb-open-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(124,58,237,0.18);
  padding: 0.05rem 0.45rem;
  border-radius: 0.3rem;
}
.sb-open-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.55rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.sb-open-empty {
  padding: 1.2rem 1rem;
  text-align: center;
  color: #71717a;
  font-size: 0.78rem;
  font-style: italic;
}
.sb-open-item {
  background: rgba(15,12,31,0.6);
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s;
}
.sb-open-item-just-placed {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  animation: sb-flash 1.6s ease-out;
}
@keyframes sb-flash {
  0%   { background: rgba(124,58,237,0.30); }
  100% { background: rgba(15,12,31,0.6); }
}
.sb-open-fixture {
  font-size: 0.7rem;
  color: #a1a1aa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-open-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.15rem;
}
.sb-open-sel {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.sb-open-odds {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 0.4rem;
}
.sb-open-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #71717a;
  font-variant-numeric: tabular-nums;
}
.sb-open-stake { color: #a1a1aa; }
.sb-open-payout { color: #6ee7b7; font-weight: 700; }
.sb-open-status {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(124,58,237,0.18);
  color: #c4b5fd;
  margin-left: 0.4rem;
}

/* ─── multi-bet slip additions ────────────────────────────────────── */

.sb-slip-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin: 0 0 0.7rem 0;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
}
.sb-slip-mode-tab {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.sb-slip-mode-tab:hover { color: #fff; }
.sb-slip-mode-active {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.sb-slip-legs { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.7rem; }
.sb-slip-leg {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.4rem;
  padding: 0.5rem 0.6rem;
}
.sb-slip-leg-fix {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 0.3rem;
}
.sb-slip-leg-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
}
.sb-slip-leg-sel { font-size: 0.85rem; color: #fff; }
.sb-slip-leg-sel small { color: #94a3b8; font-size: 0.72rem; }
.sb-slip-leg-odds { color: #a78bfa; font-weight: 700; }
.sb-slip-leg-x {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f87171;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  font-size: 0.9rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms;
}
.sb-slip-leg-x:hover { background: rgba(239, 68, 68, 0.12); }

.sb-slip-combined {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.6rem;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
.sb-slip-combined span:last-child { color: #a78bfa; font-weight: 700; font-size: 1rem; }

.sb-slip-hint {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.sb-open-item-multi { border-left: 2px solid #7c3aed; padding-left: 0.5rem; }
.sb-open-leg {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0.15rem 0;
}

.hidden { display: none !important; }
