/* ============================================================
   SportsBet Simulator — Stylesheet
   Dark sports aesthetic · Barlow Condensed
   ============================================================ */

:root {
  --bg:        #0a0c10;
  --bg2:       #111318;
  --bg3:       #1a1d24;
  --bg4:       #22262f;
  --border:    #2a2e38;
  --accent:    #f5a623;
  --accent2:   #e8941a;
  --green:     #22c55e;
  --red:       #ef4444;
  --live:      #ff3c3c;
  --blue:      #3b82f6;
  --text:      #e8eaf0;
  --text2:     #9098a8;
  --text3:     #5a6275;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --nav-h:     60px;
  --font-h:    'Barlow Condensed', sans-serif;
  --font-b:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,12,16,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { font-size: 22px; }
.brand-name {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 1px;
}
.brand-tag {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 2px;
  align-self: flex-end;
  margin-bottom: 3px;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text2);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-h);
  font-size: 15px;
  letter-spacing: .5px;
  transition: all .18s;
  border: none;
  background: none;
  text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.balance-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.balance-label { font-size: 10px; color: var(--text3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.balance-amount { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--accent); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .18s;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: #000;
}
.btn-accent:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text3); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.betslip-toggle {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  position: relative;
  transition: all .18s;
}
.betslip-toggle:hover { background: var(--accent2); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 200px 1fr 0px;
  max-width: 1400px;
  margin: var(--nav-h) auto 0;
  min-height: calc(100vh - var(--nav-h));
  gap: 0;
  transition: grid-template-columns .3s;
}
.main-layout.betslip-open {
  grid-template-columns: 200px 1fr 340px;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.filter-title {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.filter-section { margin-bottom: 24px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all .15s;
}
.filter-btn:hover { background: var(--bg3); color: var(--text); }
.filter-btn.active {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--border);
}
.filter-btn.live-btn.active {
  color: var(--live);
  border-color: rgba(255,60,60,.3);
  background: rgba(255,60,60,.08);
}
.search-wrap { position: relative; }
.search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text3); }

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,60,60,.08);
  border: 1px solid rgba(255,60,60,.25);
  border-radius: var(--radius);
  color: var(--live);
  font-weight: 600;
  font-size: 13px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,60,60,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255,60,60,0); }
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content {
  padding: 20px;
  overflow-y: auto;
  min-width: 0;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.page-subtitle {
  color: var(--text2);
  font-size: 13px;
  margin-top: 2px;
}

/* ── MATCHES GRID ────────────────────────────────────────── */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-label {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── MATCH CARD ──────────────────────────────────────────── */
.match-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.match-card:hover {
  border-color: var(--bg4);
  box-shadow: var(--shadow);
}
.match-card.is-live { border-color: rgba(255,60,60,.3); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.league-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 12px;
  font-weight: 500;
}
.league-logo {
  width: 18px; height: 18px;
  border-radius: 3px;
  object-fit: contain;
}
.status-badge {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.status-badge.live {
  background: rgba(255,60,60,.15);
  color: var(--live);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}
.status-badge.scheduled { background: rgba(59,130,246,.12); color: var(--blue); }
.status-badge.finished  { background: var(--bg3); color: var(--text3); }
.status-badge.halftime  { background: rgba(245,166,35,.12); color: var(--accent); }

.card-body {
  display: flex;
  align-items: center;
  padding: 8px 14px 14px;
  gap: 12px;
}
.team-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-block.away { flex-direction: row-reverse; text-align: right; }
.team-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.team-logo-placeholder {
  width: 36px; height: 36px;
  background: var(--bg3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.team-name {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
}
.team-short {
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}
.score-nums {
  font-family: var(--font-h);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}
.score-sep { color: var(--text3); }
.score-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}
.score-time.live { color: var(--live); }
.score-vs {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 1px;
}
.score-date {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
}

/* ── ODDS ROW ────────────────────────────────────────────── */
.odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.odds-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: all .15s;
  gap: 2px;
  position: relative;
  overflow: hidden;
}
.odds-btn:hover {
  border-color: var(--accent);
  background: rgba(245,166,35,.1);
}
.odds-btn.selected {
  border-color: var(--accent);
  background: rgba(245,166,35,.18);
}
.odds-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 4px; right: 6px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}
.odds-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.odds-value {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.odds-more {
  grid-column: 1/-1;
  text-align: center;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
}
.odds-more:hover { color: var(--text); border-color: var(--text3); }

/* ── MARKET SECTIONS (detalle) ───────────────────────────── */
.market-section { margin-bottom: 16px; }
.market-title {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

/* ── BETSLIP ─────────────────────────────────────────────── */
.betslip-panel {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .3s;
  z-index: 50;
}
.betslip-panel.open {
  transform: translateX(0);
}
.betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
}
.betslip-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}
.betslip-close:hover { color: var(--text); }
.betslip-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mode-tab {
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .15s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

.betslip-selections {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.betslip-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  line-height: 1.8;
}
.selection-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  position: relative;
}
.selection-match {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selection-bet {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.selection-desc {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
}
.selection-odds {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}
.selection-remove {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px;
  border-radius: 3px;
  transition: color .15s;
}
.selection-remove:hover { color: var(--red); }

.betslip-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stake-row, .system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stake-row label, .system-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  flex-shrink: 0;
}
.stake-input {
  width: 120px;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  outline: none;
}
.stake-input:focus { border-color: var(--accent); }
#systemSizeSelect {
  padding: 6px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 15px;
  outline: none;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.calc-label { color: var(--text2); }
.calc-value {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
}
.calc-value.big {
  font-size: 20px;
  color: var(--green);
}
.calc-value.odds { color: var(--accent); }

/* ── HISTORY PAGE ────────────────────────────────────────── */
.history-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.history-tab {
  padding: 6px 16px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .15s;
}
.history-tab:hover { color: var(--text); background: var(--bg3); }
.history-tab.active { color: var(--text); background: var(--bg3); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}
.history-item.won  { border-left: 3px solid var(--green); }
.history-item.lost { border-left: 3px solid var(--red); }
.history-item.pending { border-left: 3px solid var(--accent); }

.hist-match { font-weight: 600; font-size: 14px; }
.hist-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}
.hist-badge {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.hist-badge.won { background: rgba(34,197,94,.15); color: var(--green); }
.hist-badge.lost { background: rgba(239,68,68,.15); color: var(--red); }
.hist-badge.pending { background: rgba(245,166,35,.12); color: var(--accent); }
.hist-badge.cashout { background: rgba(59,130,246,.12); color: var(--blue); }

.hist-stake { font-size: 13px; color: var(--text2); }
.hist-win {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}
.hist-win.green { color: var(--green); }
.hist-win.red   { color: var(--red); }
.hist-win.muted { color: var(--text3); }

.slip-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: rgba(59,130,246,.1);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 4px;
}

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 420px;
  max-width: calc(100vw - 32px);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }
.modal-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .8px; }
.form-input {
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 16px;
  font-weight: 500;
}
.form-footer { text-align: center; font-size: 12px; color: var(--text3); }
.form-footer a { color: var(--accent); cursor: pointer; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }
.demo-hint {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text2);
  text-align: center;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 300;
  opacity: 0;
  transition: all .3s;
  max-width: 380px;
  text-align: center;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red); }
.toast.info    { border-color: var(--accent); color: var(--accent); }

/* ── LOADING ─────────────────────────────────────────────── */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--text3);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bg4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout, .main-layout.betslip-open {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .betslip-panel {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: 340px;
    transform: translateX(100%);
    height: auto;
  }
  .betslip-panel.open { transform: translateX(0); }
}
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .nav-links { display: none; }
  .betslip-panel { width: 100%; }
  .match-card .odds-row { grid-template-columns: 1fr 1fr 1fr; }
}
