@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #111418; /* Dark gray for desktop margins */
  --bg-app: #181d23; /* Dark gray app background */
  --bg-card: #222831; /* Card background */
  --bg-header: #ffd600;
  --bg-top-nav: #1e252d;
  --bg-league-header: #2d343f;
  --bg-odds-btn: #2d343f;
  --bg-odds-btn-hover: #3d4653;
  --bg-odds-btn-active: #ffd600;
  --text-odds-active: #111111;
  --bg-green-badge: #35a519;
  
  --text-primary: #f0f0f0;
  --text-secondary: #a0aab2;
  --text-light: #ffffff;
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --header-height: 56px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* Main Layout */
.main-content {
  background-color: var(--bg-app);
  max-width: 600px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  padding-bottom: 76px; /* Compact clearance above mobile 60px bottom nav */
}

/* Header */
.site-header {
  background-color: var(--bg-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Auth Buttons */
.btn-login {
  background: transparent;
  border: 1px solid #111;
  color: #111;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.btn-register {
  background: #35a519;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Top Navigation */
.top-nav {
  background-color: var(--bg-top-nav);
  display: flex;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #a5b9ba;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  min-width: 72px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.top-nav-item.active {
  color: #ffffff;
  border-bottom-color: #ffd600;
  background-color: rgba(0,0,0,0.1);
}
.top-nav-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.top-nav-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  background-color: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 10px;
  border: 2px solid var(--bg-top-nav);
}

/* Secondary Toolbar */
.sec-toolbar {
  background-color: #2b3035;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  color: #ffffff;
  overflow-x: auto;
  border-bottom: 1px solid #444;
}
.sec-toolbar::-webkit-scrollbar { display: none; }
.sec-tool {
  font-size: 1.1rem;
  color: #a5b9ba;
  cursor: pointer;
  white-space: nowrap;
}
.sec-tool:hover { color: #fff; }
.sec-tool-text {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Sub filter bar */
.sub-filter-bar {
  background-color: #353a40;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  border-bottom: 2px solid #205357;
  overflow-x: auto;
}
.sub-filter-bar select {
  background: #2b3035;
  color: #fff;
  border: 1px solid #444;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}
.sub-filter-tab {
  color: #a5b9ba;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sub-filter-tab.active {
  color: #ffd600;
}

/* Match List */
.matches-container {
  padding: 0;
}

/* League Header */
.league-header {
  background-color: var(--bg-league-header);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  border-top: 1px solid #6b9c9f;
  border-bottom: 1px solid #4f7375;
}

/* Match Card */
.match-card {
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--border-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Row 1: Teams */
.match-teams-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.star-icon {
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 2px;
}
.star-icon:hover { color: #ffd600; }
.team-names {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.play-icon {
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Row 2: Odds Grid */
.match-odds-row {
  display: flex;
  gap: 8px;
}
.mbs-badge {
  background-color: var(--bg-green-badge);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 44px;
  font-weight: 800;
  line-height: 1.1;
}
.mbs-num { font-size: 0.9rem; }
.mbs-text { font-size: 0.55rem; }

.odds-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.odds-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.odds-label {
  font-size: 0.55rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}
.odds-btn {
  background-color: var(--bg-odds-btn);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.1s;
}
.odds-btn:hover {
  background-color: var(--bg-odds-btn-hover);
}
.odds-btn.selected {
  background-color: var(--bg-odds-btn-active);
  color: var(--text-odds-active);
}
.odds-btn.disabled {
  background-color: rgba(255, 255, 255, 0.03);
  color: #525d6d;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

.more-odds-btn {
  background-color: #4a90e2; /* slightly different color for more odds */
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  height: 30px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bet Slip Panel */
.bet-slip-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border-top: 2px solid var(--bg-header);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
}
.bet-slip-header {
  background: var(--bg-top-nav);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bet-slip-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bet-count {
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bet-slip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bet-slip-actions .btn-text {
  background: none;
  border: none;
  color: #ffd600;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.bet-slip-actions .btn-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.bet-slip-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-app);
}
.empty-slip-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.8;
}
.bet-slip-body {
  max-height: 50vh;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-app);
}
.bet-slip-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  position: relative;
  color: var(--text-primary);
}
.bet-slip-footer {
  padding: 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
}
.btn-remove-bet {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.2rem;
  cursor: pointer;
}

/* General Utilities */
.text-center { text-align: center; }
.loading-state { padding: 40px; text-align: center; color: #fff; }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #ffd600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: #1e252d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  height: 60px;
  z-index: 1000;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a0aab2;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.nav-item.active {
  color: #ffd600;
}

.search-container {
  background: #353a40;
  padding: 8px 12px;
}
.search-container input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid #555;
  background: #2b3035;
  color: #fff;
  font-family: inherit;
}
.search-container input::placeholder { color: #999; }
/* Header Right & Wallet Badge */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 214, 0, 0.4);
  padding: 6px 14px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wallet-badge:hover {
  background: rgba(255, 214, 0, 0.1);
  border-color: #ffd600;
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.2);
}
.wallet-badge i {
  font-size: 1.1rem;
  color: #ffd600;
}
#wallet-balance {
  color: #ffd600;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #1b4f4a;
  border: 2px solid #ffd600;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.4);
}
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: rgba(255, 214, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.d-flex { display: flex; }
.gap-2 { gap: 8px; }

/* Promo Slide Fallback */
.promo-slide {
  background-color: #222831;
}

/* Page Headers */
.page-header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 16px;
  background-color: var(--bg-card);
}
.page-header h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* Stat Card & Profile Card */
.stat-card, .profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 16px 16px 16px;
    color: var(--text-primary);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button (Yellow) */
.btn-primary {
  background-color: var(--bg-header);
  color: #111111;
  box-shadow: 0 4px 10px rgba(255, 214, 0, 0.2);
}
.btn-primary:hover:not(:disabled) {
  background-color: #f0c800;
  box-shadow: 0 6px 15px rgba(255, 214, 0, 0.3);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

/* Secondary Button */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Block Button */
.btn-block {
  display: flex;
  width: 100%;
}
/* Utility */
.spinner-sm {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

/* Promo Slider */
.promo-slider-container {
  position: relative;
  overflow: hidden;
  background: var(--bg-app);
}
.promo-slider {
  display: flex;
  transition: transform 0.5s ease;
  position: relative;
  height: 220px;
}
.promo-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background-color: var(--bg-card);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  pointer-events: none;
}
.promo-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.promo-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}
.promo-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(17, 20, 24, 0.95) 0%, rgba(17, 20, 24, 0.4) 50%, transparent 100%);
  z-index: 1;
}
.promo-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}
.promo-content h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 800;
}
.promo-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
  line-height: 1.4;
}
.promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-btn-primary {
  padding: 8px 18px;
  background: var(--bg-header);
  color: #111;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 214, 0, 0.2);
  transition: transform 0.2s;
}
.promo-btn-primary:hover {
  transform: translateY(-2px);
}
.promo-btn-secondary {
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.promo-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}
.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.promo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.promo-dot.active {
  background: var(--bg-header);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.5);
}
.stat-card h3, .profile-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}
.text-success { color: #35a519 !important; }
.text-danger { color: #ef4444 !important; }

/* Payment Tabs */
.payment-tabs {
  display: flex;
  margin: 0 16px 16px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.payment-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.payment-tab.active {
  background: var(--bg-top-nav);
  color: #fff;
}

/* Stat Items (Profile) */
.stat-row {
  display: flex;
  gap: 16px;
  margin: 0 16px 16px 16px;
}
.stat-item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 16px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.si-value { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.si-label { font-size: 0.8rem; color: var(--text-secondary); }

/* Quick Actions (Profile) */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  transition: background 0.3s;
}
.quick-action-link:hover { background: rgba(255,255,255,0.06); }
.quick-action-link.danger { color: #ef4444; }

/* Info Rows (Profile) */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-card);
}
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.info-row-value { color: var(--text-primary); font-weight: 700; font-size: 0.9rem; }

/* ============================================================
   MATCH DETAIL MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.md-content {
  background: #1e2028;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.md-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.md-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
}

.md-title #md-score {
  color: #ffd600;
  font-size: 1.1rem;
  font-weight: 800;
}

.md-close {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.md-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.md-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: #191c23;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.md-tabs::-webkit-scrollbar { display: none; }

.md-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 14px;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.md-tab.active,
.md-tab:hover {
  background: #ffd600;
  color: #111;
  border-color: #ffd600;
}

.md-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: #cbd5e1;
}
.md-status-bar.is-real {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.md-status-bar .md-count-pill {
  background: rgba(255, 214, 0, 0.14);
  color: #ffd600;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.md-group-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  float: right;
}
.md-cs-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.md-cs-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-cs-col-head {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f87171;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.live-clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: pulse 1.1s infinite;
}
.live-clock-min {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 800;
}

.md-body {
  overflow-y: auto;
  padding: 14px 16px 24px;
  flex: 1;
}

.md-body::-webkit-scrollbar { width: 4px; }
.md-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Odds Groups inside modal */
.md-body .odds-group {
  margin-bottom: 16px;
}

.md-body .odds-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(255,214,0,0.08);
  border-radius: 6px;
  border-left: 3px solid #ffd600;
}

.md-body .odds-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}

.md-body .odds-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.md-body .odds-btn:hover {
  background: rgba(255,214,0,0.12);
  border-color: #ffd600;
}

.md-body .odds-btn.selected {
  background: rgba(255,214,0,0.18);
  border-color: #ffd600;
}

.md-body .odds-btn .odds-label {
  font-size: 0.72rem;
  color: #aaa;
}

.md-body .odds-btn .odds-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd600;
}

/* Modal odds-group-content grids */
.odds-group-content {
  display: grid;
  gap: 6px;
}
.odds-group-content.cols-2 { grid-template-columns: repeat(2, 1fr); }
.odds-group-content.cols-3 { grid-template-columns: repeat(3, 1fr); }

.odds-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-align: center;
}
.odds-btn:hover {
  background: rgba(255,214,0,0.12);
  border-color: #ffd600;
}
.odds-btn.selected {
  background: rgba(255,214,0,0.2);
  border-color: #ffd600;
}
.odds-btn.disabled {
  opacity: 0.4;
  cursor: default;
}
.odds-btn .odds-label {
  font-size: 0.72rem;
  color: #aaa;
  line-height: 1.2;
}
.odds-btn .odds-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd600;
}


/* ============================================================
   ENHANCED HEADER, CONTROLS & BET SLIP POLISH (MOBILE + WEB)
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo span {
  background: #11161c;
  color: #ffd600;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

/* High-contrast header auth buttons on yellow header */
.btn-header-login,
.site-header .btn-secondary {
  background: rgba(17, 22, 28, 0.12);
  color: #11161c;
  border: 1.5px solid #11161c;
  font-weight: 700;
}
.btn-header-login:hover,
.site-header .btn-secondary:hover {
  background: #11161c;
  color: #ffd600;
}
.btn-header-register,
.site-header .btn-primary {
  background: #11161c;
  color: #ffd600;
  border: 1.5px solid #11161c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-weight: 800;
}
.btn-header-register:hover,
.site-header .btn-primary:hover {
  background: #1e252d;
  color: #fff;
}

.site-header .wallet-badge {
  background: #11161c;
  border: 1px solid rgba(17, 22, 28, 0.4);
}
.site-header .header-avatar {
  border: 2px solid #11161c;
  background: #11161c;
  color: #ffd600;
}

/* Desktop Navigation (hidden on mobile) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #161b22;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.desktop-nav-link:hover {
  background: rgba(17, 22, 28, 0.12);
}
.desktop-nav-link.active {
  background: #11161c;
  color: #ffd600;
}

.live-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: pulse 1.3s infinite;
}

/* Search & Quick Filter Bar */
.search-container {
  background: #1e252d;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.search-input-wrap {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b95a5;
  font-size: 0.85rem;
  pointer-events: none;
}
.search-container input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141920;
  color: #fff;
  font-size: 0.88rem;
}
.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.search-clear-btn:hover {
  background: rgba(255, 214, 0, 0.25);
  color: #ffd600;
}
.search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 214, 0, 0.09);
  border: 1px solid rgba(255, 214, 0, 0.28);
  color: #fde68a;
  padding: 9px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.search-status-bar button {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 214, 0, 0.35);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.search-status-bar button:hover {
  background: rgba(255, 214, 0, 0.2);
  color: #ffd600;
}
.search-container input:focus {
  outline: none;
  border-color: rgba(255, 214, 0, 0.55);
}

.desktop-filter-pills {
  display: none;
  align-items: center;
  gap: 6px;
}
.filter-pill {
  background: #141920;
  color: #a0aab2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 214, 0, 0.35);
}
.filter-pill.active {
  background: #ffd600;
  color: #111;
  border-color: #ffd600;
}

.active-league-chip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.25);
  color: #ffd600;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}
.active-league-chip-bar button {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 214, 0, 0.35);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* League column header (shown only on desktop >= 992px) */
.league-cols-header {
  display: none;
}

/* Desktop Sidebar hidden on mobile */
.desktop-sidebar {
  display: none;
}

/* Bet slip extra polish */
.bet-slip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  backdrop-filter: blur(2px);
}
.bet-slip-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bet-event-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}
.bet-slip-item .btn-remove-bet {
  position: static;
  font-size: 0.72rem;
  color: #f87171;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
}
.bet-slip-item .btn-remove-bet:hover {
  background: rgba(239, 68, 68, 0.2);
}
.bet-slip-item-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.bet-selection {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffd600;
}
.bet-odds {
  background: rgba(255, 214, 0, 0.14);
  color: #ffd600;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.84rem;
  font-weight: 800;
}
.bet-slip-item-league {
  font-size: 0.72rem;
  color: #8b95a5;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.odds-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd600;
}
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0aab2;
  margin-bottom: 6px;
}
.quick-stake-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.quick-stake-btn {
  background: #141920;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-stake-btn:hover {
  border-color: #ffd600;
  color: #ffd600;
}

.nav-item {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
  background: var(--bg-card);
  border-radius: 10px;
  margin: 12px 0;
}
.empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; color: #f1f5f9; font-size: 1.05rem; }
.empty-state p { margin: 0 0 14px; font-size: 0.86rem; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #1e252d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #ffd600;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-success { border-left-color: #22c55e; }
.toast.toast-error   { border-left-color: #ef4444; }

/* Match card odds refinement (clean dark theme on mobile too) */
.match-card .odds-btn {
  background-color: #2a313c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  height: 32px;
  padding: 0 4px;
  font-size: 0.83rem;
}
.match-card .odds-btn:hover:not(.disabled) {
  background-color: rgba(255, 214, 0, 0.15);
  border-color: #ffd600;
  color: #ffd600;
}
.match-card .odds-btn.selected {
  background-color: #ffd600;
  border-color: #ffd600;
  color: #111111;
}
.match-card .more-odds-btn {
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transition: filter 0.15s ease;
}
.match-card .more-odds-btn:hover {
  filter: brightness(1.12);
}

/* ============================================================
   DESKTOP / WEB RESPONSIVE LAYOUT (>= 992px)
   Mobile (< 992px) keeps exact mobile-app layout with bottom nav!
   ============================================================ */
@media (min-width: 992px) {
  :root {
    --header-height: 64px;
  }

  body {
    background: radial-gradient(circle at top center, #1a212b 0%, #0f1318 65%);
  }

  /* Header full-width desktop bar */
  .site-header {
    padding: 0 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
  .header-inner {
    max-width: 1440px;
    margin: 0 auto;
  }
  .desktop-nav {
    display: flex;
  }

  /* Hide mobile bottom nav on desktop */
  .bottom-nav {
    display: none !important;
  }

  /* Inner pages (deposit, withdraw, profile, my-bets) clean centered web card */
  .main-content:not(.sportsbook-main) {
    max-width: 900px;
    margin: 24px auto 48px;
    min-height: auto;
    padding-bottom: 32px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }

  /* Sportsbook full-width 3-column grid */
  .main-content.sportsbook-main {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 48px;
    background: transparent;
    min-height: calc(100vh - var(--header-height));
  }

  .sportsbook-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
  }

  /* Hide mobile icon strip on desktop (replaced by rich Left Sidebar) */
  body.page-sportsbook .top-nav {
    display: none;
  }

  /* Left Sidebar */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 2px;
  }
  .sidebar-card {
    background: #1a2029;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  .sidebar-card-title {
    padding: 12px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-reset-btn {
    background: rgba(255, 214, 0, 0.14);
    border: none;
    color: #ffd600;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
  }
  .sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
  }
  .sidebar-sport-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
  }
  .sidebar-sport-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }
  .sidebar-sport-item.active {
    background: rgba(255, 214, 0, 0.12);
    border-left-color: #ffd600;
    color: #ffd600;
    font-weight: 700;
  }
  .side-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  .side-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 26px;
    text-align: center;
  }
  .sidebar-sport-item.active .side-badge {
    background: #ffd600;
    color: #111;
  }
  .side-badge.live {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
  }
  .side-badge.hot {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 0.65rem;
  }

  .sidebar-leagues {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    gap: 2px;
  }
  .sidebar-league-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
  }
  .sidebar-league-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }
  .sidebar-league-item.active {
    background: rgba(255, 214, 0, 0.14);
    color: #ffd600;
    font-weight: 700;
  }
  .sidebar-league-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-league-count {
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 999px;
    flex-shrink: 0;
  }
  .sidebar-leagues-empty {
    padding: 14px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
  }

  /* Center Column */
  .sportsbook-center {
    min-width: 0;
  }
  .promo-slider-container {
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  }
  .promo-slider {
    height: 230px;
  }
  .promo-slide {
    padding: 28px 32px;
  }
  .promo-content h2 {
    font-size: 1.75rem;
  }
  .promo-content p {
    font-size: 0.95rem;
    max-width: 540px;
  }

  .search-container {
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 14px;
  }
  .desktop-filter-pills {
    display: flex;
  }
  .active-league-chip-bar,
  .search-status-bar {
    border-radius: 8px;
    margin-bottom: 12px;
  }

  /* League Cards & Horizontal Sportsbook Rows */
  .league-group {
    background: #1a2029;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  }
  .league-header {
    background: #232b36;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
  .league-cols-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 426px;
  }
  .league-col-mbs {
    width: 38px;
    text-align: center;
    font-size: 0.68rem;
    color: #94a3b8;
  }
  .league-cols-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
  }

  .match-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    gap: 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
  }
  .match-card:last-child {
    border-bottom: none;
  }
  .match-card:hover {
    background: rgba(255, 255, 255, 0.025);
  }
  .match-card.is-live {
    border-left: 3px solid #ef4444;
  }

  .match-teams-row {
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }
  .team-names {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .team-names > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .play-icon {
    flex-shrink: 0;
    text-align: right;
  }

  .match-odds-row {
    flex: 0 0 426px;
    align-items: center;
    gap: 8px;
  }
  .mbs-badge {
    min-width: 38px;
    height: 36px;
  }
  .odds-grid {
    gap: 6px;
  }
  .match-card .odds-col .odds-label {
    display: none; /* Already shown cleanly in league-header on desktop */
  }
  .match-card .odds-btn,
  .match-card .more-odds-btn {
    height: 36px;
    font-size: 0.86rem;
  }

  /* Right Sticky Bet Slip Column */
  .desktop-betslip-col {
    position: sticky;
    top: 82px;
  }
  .bet-slip-overlay {
    display: none !important;
  }
  .bet-slip-panel {
    position: static !important;
    display: flex !important;
    transform: none !important;
    opacity: 1 !important;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 214, 0, 0.25);
    border-top: 3px solid #ffd600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }
  .mobile-only-btn {
    display: none !important;
  }
  #bet-slip-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    background: #141920;
  }
  .bet-slip-empty {
    padding: 36px 20px;
  }

  /* Centered Desktop Match Detail Modal */
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .md-content {
    border-radius: 16px;
    max-width: 680px;
    max-height: 82vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

/* Compact Laptop Tuning (992px - 1220px) */
@media (min-width: 992px) and (max-width: 1220px) {
  .sportsbook-grid {
    grid-template-columns: 200px minmax(0, 1fr) 290px;
    gap: 14px;
  }
  .league-cols-header,
  .match-odds-row {
    flex: 0 0 348px;
  }
  .desktop-nav-link {
    padding: 7px 9px;
    font-size: 0.8rem;
  }
}


/* ============================================================
   DATE SELECTOR STRIP (Bugün / Yarın / Gelecek Hafta / Takvim)
   ============================================================ */
.date-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a2029;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.date-tabs-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.date-tabs-list::-webkit-scrollbar { display: none; }

.date-tab-btn {
  flex-shrink: 0;
  background: #141920;
  color: #a0aab2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  transition: all 0.15s ease;
}
.date-tab-btn small {
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.75;
}
.date-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 214, 0, 0.35);
}
.date-tab-btn.active {
  background: rgba(255, 214, 0, 0.15);
  color: #ffd600;
  border-color: #ffd600;
}

.date-picker-btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #232b36;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.date-picker-btn:hover,
.date-picker-btn.active {
  border-color: #ffd600;
  color: #ffd600;
}
.date-picker-btn input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

@media (min-width: 992px) {
  .date-filter-bar {
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
  }
  .search-container {
    margin-bottom: 10px;
  }
}
