/* ═══════════════════════════════════════════════════════════════════════
   Tennis Pro Web App Stylesheet
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --primary-color:   #c7ff00;  /* Neon Tennis Yellow */
  --primary-hover:   #b5e600;
  --accent-color:    #10b981;  /* Success Emerald */
  --error-color:     #ef4444;
  --bg-color:        #0c0c0c;
  --surface-color:   #151515;
  --card-bg:         #1e1e1e;
  --header-bg:       #0e0e0e;
  --footer-bg:       #0a0a0a;
  --text-primary:    #ffffff;
  --text-secondary:  #a1a1aa;
  --text-muted:      #71717a;
  --border-color:    #2a2a2a;
  --header-height:   60px;
  --ticker-height:   34px;
  --bottom-nav-h:    64px;
}

/* ════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT MODE OVERRIDES ([data-theme="light"])
   ════════════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT MODE OVERRIDES ([data-theme="light"] & body.light-theme)
   ════════════════════════════════════════════════════════════════════════ */
[data-theme="light"],
body.light-theme {
  --bg-color:        #f8fafc;
  --surface-color:   #ffffff;
  --card-bg:         #ffffff;
  --header-bg:       #ffffff;
  --footer-bg:       #0f172a;
  --text-primary:    #0f172a;
  --text-secondary:  #334155;
  --text-muted:      #64748b;
  --border-color:    #cbd5e1;
  --primary-color:   #15803d; /* Rich court green for optimal light mode contrast */
  --primary-hover:   #166534;
}

/* Force light background on body, main wrapper, and page containers */
[data-theme="light"] body,
body.light-theme,
[data-theme="light"] .main-wrapper,
body.light-theme .main-wrapper,
[data-theme="light"] .page-content-container,
body.light-theme .page-content-container,
[data-theme="light"] .matches-view,
body.light-theme .matches-view {
  background-color: var(--bg-color) !important;
  color: var(--text-primary) !important;
}

/* Force Light Theme on all dark background classes & Bootstrap utility classes */
html[data-theme="light"] .bg-black, body.light-theme .bg-black,
html[data-theme="light"] .bg-dark, body.light-theme .bg-dark,
html[data-theme="light"] .bg-surface, body.light-theme .bg-surface,
html[data-theme="light"] .bg-card, body.light-theme .bg-card,
html[data-theme="light"] .card, body.light-theme .card,
html[data-theme="light"] .match-card, body.light-theme .match-card,
html[data-theme="light"] .prediction-card, body.light-theme .prediction-card,
html[data-theme="light"] .tournament-header, body.light-theme .tournament-header,
html[data-theme="light"] .matches-header-tabs, body.light-theme .matches-header-tabs,
html[data-theme="light"] .predictions-date-header, body.light-theme .predictions-date-header,
html[data-theme="light"] .info-card, body.light-theme .info-card,
html[data-theme="light"] .legal-card, body.light-theme .legal-card,
html[data-theme="light"] .dev-card, body.light-theme .dev-card,
html[data-theme="light"] .performance-board, body.light-theme .performance-board,
html[data-theme="light"] .pick-item, body.light-theme .pick-item,
html[data-theme="light"] .betslip-drawer-content, body.light-theme .betslip-drawer-content,
html[data-theme="light"] .list-group-item, body.light-theme .list-group-item,
html[data-theme="light"] .accordion-item, body.light-theme .accordion-item {
  background-color: var(--surface-color) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

html[data-theme="light"] .app-header, body.light-theme .app-header {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

html[data-theme="light"] .header-ticker, body.light-theme .header-ticker {
  background: #f1f5f9 !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* Light Theme Text & Contrast Overrides */
html[data-theme="light"] .text-white:not(.keep-white), body.light-theme .text-white:not(.keep-white),
html[data-theme="light"] .header-brand-name, body.light-theme .header-brand-name,
html[data-theme="light"] h1, body.light-theme h1, html[data-theme="light"] h2, body.light-theme h2, 
html[data-theme="light"] h3, body.light-theme h3, html[data-theme="light"] h4, body.light-theme h4, 
html[data-theme="light"] h5, body.light-theme h5, html[data-theme="light"] h6, body.light-theme h6,
html[data-theme="light"] .player-name, body.light-theme .player-name,
html[data-theme="light"] .fw-bold.text-white, body.light-theme .fw-bold.text-white {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .text-secondary, body.light-theme .text-secondary {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .text-muted, body.light-theme .text-muted {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .border-gray-800, body.light-theme .border-gray-800,
html[data-theme="light"] .border-gray-900, body.light-theme .border-gray-900,
html[data-theme="light"] .border-top, body.light-theme .border-top,
html[data-theme="light"] .border-bottom, body.light-theme .border-bottom,
html[data-theme="light"] .border-left, body.light-theme .border-left,
html[data-theme="light"] .border-right, body.light-theme .border-right {
  border-color: var(--border-color) !important;
}

/* Set Scores Badge in Light Mode */
html[data-theme="light"] .set-score, body.light-theme .set-score {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

/* Odds Buttons in Light Mode */
html[data-theme="light"] .odd-btn, body.light-theme .odd-btn {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .odd-btn:hover, body.light-theme .odd-btn:hover,
html[data-theme="light"] .odd-btn.bg-primary, body.light-theme .odd-btn.bg-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}
html[data-theme="light"] .odd-btn.bg-primary .odds-value, body.light-theme .odd-btn.bg-primary .odds-value,
html[data-theme="light"] .odd-btn:hover .odds-value, body.light-theme .odd-btn:hover .odds-value {
  color: #ffffff !important;
}

/* Date Pills in Light Mode */
html[data-theme="light"] .date-circle-btn.bg-surface, body.light-theme .date-circle-btn.bg-surface,
html[data-theme="light"] .date-pill-btn.bg-surface, body.light-theme .date-pill-btn.bg-surface {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .date-circle-btn.active, body.light-theme .date-circle-btn.active,
html[data-theme="light"] .date-pill-btn.bg-primary, body.light-theme .date-pill-btn.bg-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* Inputs & Form Controls in Light Mode */
[data-theme="light"] .form-control, body.light-theme .form-control,
[data-theme="light"] .stake-input, body.light-theme .stake-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .form-control:focus, body.light-theme .form-control:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: var(--primary-color) !important;
}

/* Primary CTA Buttons in Light Mode */
[data-theme="light"] .btn-primary, body.light-theme .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn-primary:hover, body.light-theme .btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

/* Bottom Mobile Navigation in Light Mode */
[data-theme="light"] .bottom-nav, body.light-theme .bottom-nav {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
}
[data-theme="light"] .bottom-nav .nav-link, body.light-theme .bottom-nav .nav-link {
  color: #64748b !important;
}
[data-theme="light"] .bottom-nav .nav-link.active, body.light-theme .bottom-nav .nav-link.active {
  color: var(--primary-color) !important;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.8; color: var(--primary-hover); }

/* ── App Shell ──────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════════
   RICH APP HEADER / APP BAR
   ════════════════════════════════════════════════════════════════════════ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Main header row */
.app-header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.header-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.header-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}
.brand-accent { color: var(--primary-color); }

/* Desktop nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-grow: 1;
}
.header-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.header-nav-link i { font-size: 14px; }
.header-nav-link:hover,
.header-nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(199,255,0,0.08);
  opacity: 1;
}
.header-nav-link.active {
  box-shadow: inset 0 -2px 0 var(--primary-color);
}

/* Right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.header-icon-btn {
  position: relative;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.18s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header-icon-btn:hover { color: var(--primary-color); opacity: 1; background: rgba(199,255,0,0.08); }

.header-cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Ticker bar */
.header-ticker {
  background: linear-gradient(90deg, #111 0%, #141400 50%, #111 100%);
  border-top: 1px solid rgba(199,255,0,0.08);
  height: var(--ticker-height);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ticker-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  background: rgba(199,255,0,0.1);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(199,255,0,0.15);
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 20px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Main Wrapper ─────────────────────────────────────────────────────── */
.main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bottom-nav-h); /* Space for mobile bottom nav */
}

@media (min-width: 992px) {
  .main-wrapper {
    padding-bottom: 0;
  }
}

.page-content-container {
  flex-grow: 1;
  padding: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE 2-COLUMN WIDESCREEN LAYOUT & COMPACT MATCH CARDS
   ════════════════════════════════════════════════════════════════════════ */
.content-layout-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 16px 20px;
}

.main-content-col {
  flex: 1 1 66%;
  min-width: 0;
}

.sidebar-col {
  flex: 0 0 34%;
  max-width: 380px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767px) {
  .content-layout-wrapper {
    flex-direction: column;
    padding: 10px 12px;
    gap: 16px;
  }
  .main-content-col {
    width: 100%;
  }
  .sidebar-col {
    width: 100%;
    max-width: 100%;
    position: static;
  }
}

/* Compact Match Card Styling — Squeezes Team A vs Team B and Scores */
.match-card {
  max-width: 820px;
  margin: 0 auto 12px auto;
  transition: all 0.2s ease;
}

.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.player-name {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.scores {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 575px) {
  .match-card {
    max-width: 100%;
  }
  .player-name {
    max-width: 180px;
    font-size: 14px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.app-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 991px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Brand column */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: #fff;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 320px;
}

/* App Store buttons */
.footer-stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  transition: all 0.22s ease;
  min-width: 148px;
}
.store-badge-btn:hover {
  border-color: var(--primary-color);
  background: rgba(199,255,0,0.07);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  opacity: 1;
}
.store-badge-btn i {
  font-size: 24px;
  flex-shrink: 0;
}
.store-badge-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 700;
}
.store-badge-btn span small {
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}
.store-badge-btn:hover span small { color: inherit; }

/* Nav columns */
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  text-decoration: none;
}
.footer-links li a:hover { color: var(--primary-color); opacity: 1; }
.footer-links li a i { width: 14px; font-size: 12px; opacity: 0.7; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.18s ease;
  text-decoration: none;
}
.footer-social a:hover { color: var(--primary-color); transform: translateY(-2px); opacity: 1; }

/* ════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ════════════════════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  gap: 3px;
  padding: 6px 0;
  flex-grow: 1;
  transition: color 0.18s ease;
}
.bottom-nav .nav-link i { font-size: 18px; }
.bottom-nav .nav-link.active,
.bottom-nav .nav-link:hover { color: var(--primary-color) !important; }

/* ── Font utilities ─────────────────────────────────────────────────── */
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-mono   { font-family: 'Roboto Mono', monospace; }
.fw-black    { font-weight: 900; }

/* ── Colors & Surfaces ──────────────────────────────────────────────── */
.neon-yellow-text   { color: var(--primary-color); }
.neon-green         { color: var(--accent-color); }
.neon-green-text    { color: var(--accent-color); }
.text-primary       { color: var(--primary-color) !important; }
.text-secondary     { color: var(--text-secondary) !important; }
.text-muted         { color: var(--text-muted) !important; }
.bg-surface         { background-color: var(--surface-color) !important; }
.bg-card            { background-color: var(--card-bg) !important; }
.border-gray-800    { border-color: var(--border-color) !important; }
.border-gray-900    { border-color: #121212 !important; }
.rounded-xl         { border-radius: 16px !important; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #000;
  box-shadow: 0 0 15px rgba(199,255,0,0.45);
}
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #000;
}

/* ── Pulsing live dot ────────────────────────────────────────────────── */
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulse 1.5s infinite;
}
.neon-red-dot { color: var(--error-color); animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.8; }
  50%  { transform: scale(1.2);  opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ── Date selector bar ──────────────────────────────────────────────── */
.date-selector-bar::-webkit-scrollbar { display: none; }

.date-circle-btn {
  width: 60px; height: 60px;
  border: none; outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.date-circle-btn:hover { transform: translateY(-2px); }

/* ── Match Cards ────────────────────────────────────────────────────── */
.match-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color) !important;
}

.player-logo-circle {
  width: 24px; height: 24px;
  object-fit: cover;
  background-color: var(--bg-color);
}
.player-logo-large {
  width: 72px; height: 72px;
  object-fit: cover;
  background-color: var(--bg-color);
}

/* ── Odds buttons ───────────────────────────────────────────────────── */
.odd-btn {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.2s ease;
}
.odd-btn:hover { background-color: var(--primary-color); color: #000 !important; }
.odd-btn:hover .odds-value { color: #000 !important; }

/* ── Metric cards ───────────────────────────────────────────────────── */
.metric-card { border: 1px solid var(--border-color); }

/* ── Badge count ────────────────────────────────────────────────────── */
.betslip-badge-wrapper { color: var(--text-primary); }
.badge-count {
  font-size: 8px; font-weight: bold;
  background-color: var(--primary-color);
  color: #000;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: 0; right: -4px;
}

/* ── Floating Bet Slip button ───────────────────────────────────────── */
.floating-betslip-action {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 20px;
  z-index: 999;
  border-radius: 30px;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ── Bet Slip Drawer ────────────────────────────────────────────────── */
.betslip-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.betslip-drawer-content {
  width: 380px;
  background: var(--surface-color);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@media (max-width: 576px) {
  .betslip-drawer-overlay { align-items: flex-end; }
  .betslip-drawer-content {
    width: 100vw; height: 75vh;
    border-left: none;
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

/* ── Stake input ────────────────────────────────────────────────────── */
.stake-input {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
}
.stake-input:focus {
  background: var(--bg-color);
  border-color: var(--primary-color);
  box-shadow: none;
  color: #fff;
}

/* ── Glow utilities ─────────────────────────────────────────────────── */
.border-glow  { border: 1px solid rgba(199,255,0,0.15); box-shadow: 0 0 10px rgba(199,255,0,0.05); }
.shadow-glow  { box-shadow: 0 0 15px rgba(199,255,0,0.1); }

/* ── Nav pills (match detail tabs) ─────────────────────────────────── */
.nav-pills .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  color: var(--text-secondary);
}
.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: #000 !important;
}

.btn-close-custom { border: none; background: transparent; font-size: 20px; }

/* ── Onboarding ─────────────────────────────────────────────────────── */
.hero-logo { width: 90px; height: 90px; object-fit: contain; }

/* ── Accordion overrides ────────────────────────────────────────────── */
.accordion-button::after { filter: invert(1); }
.accordion-button:not(.collapsed) {
  background-color: rgba(199,255,0,0.1);
  color: var(--primary-color);
}

/* ── Predictions Date Selector ──────────────────────────────────────── */
.predictions-date-header { z-index: 10; }
.date-pill-btn {
  cursor: pointer;
  min-width: 60px;
  text-align: center;
  transition: all 0.18s ease;
  line-height: 1.2;
}
.date-pill-btn:hover:not(.bg-primary) {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}
#pred-date-selector::-webkit-scrollbar { display: none; }

/* ── Match Not Found ────────────────────────────────────────────────── */
.match-not-found-card { max-width: 480px; margin: 0 auto; }

/* ── Sizing helpers ─────────────────────────────────────────────────── */
.fs-7  { font-size: 0.82rem !important; }
.fs-8  { font-size: 0.75rem !important; }
.fs-9  { font-size: 0.68rem !important; }
.max-width-600 { max-width: 600px; }
.max-width-800 { max-width: 800px; }
.leading-normal { line-height: 1.6; }
.cursor-pointer { cursor: pointer; }
