/* ============================================
   SPEEDBET - Pixner Sportsodds Inspired Design
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-primary:   #0d1117;
  --bg-secondary: #161b27;
  --bg-card:      #1c2333;
  --bg-hover:     #212d3b;
  --accent:       #f5c518;
  --accent-dark:  #d4a800;
  --accent-glow:  rgba(245,197,24,0.12);
  --red:          #e53935;
  --red-soft:     rgba(229,57,53,0.15);
  --green:        #2ea043;
  --green-soft:   rgba(46,160,67,0.15);
  --cyan:         #58a6ff;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --text-dim:     #4d5566;
  --border:       #21262d;
  --border-light: #30363d;
  --font:         'Inter', sans-serif;
  --font-display: 'Rajdhani', sans-serif;
  --radius:       6px;
  --radius-sm:    4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text); line-height: 1.5; min-height: 100vh; padding-bottom: 64px; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.global-flash { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.5); min-width: 280px; }
.flash-success { background: #0d1f12; border: 1px solid var(--green); color: #7ee787; }
.flash-error { background: #1f0d0d; border: 1px solid var(--red); color: #f85149; }
.global-flash button { background: none; border: none; color: var(--text-muted); margin-left: auto; font-size: 18px; }

.topbar { background: #090d14; border-bottom: 1px solid var(--border); height: 36px; display: flex; align-items: center; }
.topbar-inner { max-width: 1600px; margin: 0 auto; width: 100%; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.topbar-link { color: var(--text-muted); padding: 3px 8px; transition: color 0.15s; }
.topbar-link:hover { color: var(--accent); }

.navbar-top { background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.navbar-inner { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; height: 60px; padding: 0 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: 32px; flex-shrink: 0; }
.brand-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.brand-icon svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--text); }
.brand-name span { color: var(--accent); }

.nav-sports { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-sports::-webkit-scrollbar { display: none; }
.nav-sport-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 14px; color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; border: none; background: none; white-space: nowrap; transition: all 0.15s; position: relative; height: 60px; justify-content: center; }
.nav-sport-btn .ns-icon { font-size: 18px; }
.nav-sport-btn::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: transparent; transition: background 0.15s; }
.nav-sport-btn:hover { color: var(--text); }
.nav-sport-btn.active { color: var(--accent); }
.nav-sport-btn.active::after { background: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.sidebar-toggle { background: none; border: none; color: var(--text-muted); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.sidebar-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
.btn-login { background: none; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 7px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-register, .btn-deposit { background: var(--accent); border: none; border-radius: var(--radius); padding: 7px 18px; font-size: 13px; font-weight: 700; color: #000; cursor: pointer; transition: all 0.15s; }
.btn-register:hover, .btn-deposit:hover { background: var(--accent-dark); }
.balance-chip { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: var(--accent); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); min-width: 180px; padding: 6px; box-shadow: 0 8px 32px rgba(0,0,0,.6); z-index: 300; }
.user-dropdown.show { display: block; }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; color: var(--text-muted); border-radius: var(--radius-sm); transition: all 0.1s; width: 100%; background: none; border: none; text-align: left; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-hover); color: var(--text); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.betslip-pill { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; color: var(--text); display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.slip-count { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #000; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.page-wrapper { max-width: 1600px; margin: 0 auto; display: flex; }
.sidebar { width: 220px; flex-shrink: 0; background: var(--bg-secondary); border-right: 1px solid var(--border); position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; transition: all 0.25s; }
.sidebar.collapsed { width: 0; overflow: hidden; }
.sidebar-section { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-title { padding: 8px 14px 4px; font-size: 10px; font-weight: 700; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.sport-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; transition: all 0.12s; min-width: 220px; border-left: 3px solid transparent; }
.sport-item:hover { background: var(--bg-hover); }
.sport-item.active { background: var(--accent-glow); border-left-color: var(--accent); }
.sport-item .s-icon { font-size: 16px; flex-shrink: 0; }
.sport-item .s-name { font-size: 13px; font-weight: 500; color: var(--text-muted); flex: 1; }
.sport-item.active .s-name { color: var(--accent); }
.sport-item .s-count { font-size: 11px; background: var(--bg-card); border-radius: 10px; padding: 1px 7px; color: var(--text-dim); }

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

.hero-banner { position: relative; overflow: hidden; height: 220px; }
.hero-slide { display: none; height: 100%; position: relative; }
.hero-slide.active { display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,17,23,0.95) 35%, transparent 80%); }
.hero-content { position: relative; z-index: 2; padding: 0 40px; }
.hero-badge { display: inline-block; background: var(--accent); color: #000; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; margin-bottom: 12px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: var(--radius); transition: all 0.15s; }
.hero-btn:hover { background: var(--accent-dark); }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.2s; }
.hero-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }

.quick-links { background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; scrollbar-width: none; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-link { display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 44px; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.quick-link:hover { color: var(--text); }
.quick-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.quick-link .ql-badge { background: var(--red); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 10px; }

.match-tabs { display: flex; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.mtab { flex: 1; padding: 11px 0; border: none; background: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; border-bottom: 2px solid transparent; transition: all 0.15s; }
.mtab:hover { color: var(--text); }
.mtab.active { color: var(--text); border-bottom-color: var(--accent); }
.mtab-live.active { color: var(--red); border-bottom-color: var(--red); }

.league-group { margin-bottom: 2px; }
.league-header { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bg-card); border-top: 1px solid var(--border); }
.league-flag { font-size: 18px; }
.league-name { font-size: 12px; font-weight: 700; color: var(--text); flex: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.league-count { font-size: 11px; color: var(--text-dim); }

.match-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); transition: background 0.12s; gap: 12px; }
.match-row:hover { background: var(--bg-hover); }
.match-time-col { width: 52px; flex-shrink: 0; text-align: center; }
.match-time { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.match-live-badge { font-size: 10px; font-weight: 800; color: var(--red); display: flex; align-items: center; gap: 3px; justify-content: center; }
.match-live-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: pulse 1.5s infinite; flex-shrink: 0; }
.match-teams-col { flex: 1; min-width: 0; }
.match-team { display: flex; align-items: center; gap: 8px; }
.match-team + .match-team { margin-top: 5px; }
.team-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-score { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; margin-left: auto; padding-right: 10px; min-width: 20px; text-align: right; }
.match-odds-col { display: flex; gap: 5px; flex-shrink: 0; }
.odd-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 5px 0; width: 60px; cursor: pointer; transition: all 0.12s; }
.odd-btn:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-1px); }
.odd-btn.selected { background: var(--accent) !important; border-color: var(--accent) !important; }
.odd-btn.selected .odd-label, .odd-btn.selected .odd-val { color: #000 !important; }
.odd-label { font-size: 10px; color: var(--text-dim); font-weight: 700; }
.odd-val { font-size: 14px; font-weight: 700; color: var(--accent); }
.match-more-col { flex-shrink: 0; }
.more-btn { font-size: 11px; color: var(--text-dim); background: none; border: 1px solid var(--border); border-radius: 3px; padding: 4px 7px; cursor: pointer; transition: all 0.12s; }
.more-btn:hover { border-color: var(--accent); color: var(--accent); }

.empty-state { padding: 48px 20px; text-align: center; color: var(--text-dim); }
.empty-state i { font-size: 36px; margin-bottom: 14px; opacity: 0.3; display: block; }

.betslip { width: 300px; flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; background: var(--bg-secondary); border-left: 1px solid var(--border); }
@media(max-width:1200px) { .betslip { display: none; } }
.betslip-head { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.betslip-tabs { display: flex; }
.bstab { flex: 1; padding: 13px 0; border: none; background: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.bstab.active { color: var(--accent); border-bottom-color: var(--accent); }
.bstab-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #000; border-radius: 10px; width: 18px; height: 18px; font-size: 10px; font-weight: 800; margin-left: 5px; }
.betslip-body { min-height: 160px; }
.betslip-empty { padding: 40px 20px; text-align: center; color: var(--text-dim); }
.betslip-empty i { font-size: 32px; margin-bottom: 12px; opacity: 0.2; display: block; }
.slip-item { background: var(--bg-card); margin: 8px 10px; border-radius: var(--radius); padding: 10px 12px; border: 1px solid var(--border); position: relative; }
.slip-item-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.slip-match { font-size: 12px; font-weight: 700; color: var(--text); }
.slip-league { font-size: 10px; color: var(--text-dim); margin-top: 1px; }
.slip-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; padding: 0; }
.slip-selection { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.slip-sel-label { font-size: 11px; color: var(--text-muted); }
.slip-sel-label span { color: var(--cyan); font-weight: 700; }
.slip-odd { font-size: 17px; font-weight: 800; color: var(--accent); }
.slip-stake { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text); font-size: 13px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
.slip-stake:focus { border-color: var(--accent); }
.betslip-footer { padding: 10px; border-top: 1px solid var(--border); }
.slip-summary { background: var(--bg-card); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--border); }
.slip-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.slip-row.total { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 13px; }
.slip-val-green { color: #7ee787; font-weight: 700; }
.slip-val-accent { color: var(--accent); font-weight: 700; }
.slip-val-cyan { color: var(--cyan); font-weight: 700; }
.btn-place-bet { width: 100%; background: var(--accent); border: none; border-radius: var(--radius); padding: 13px; font-size: 14px; font-weight: 700; color: #000; font-family: var(--font-display); letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s; margin-bottom: 6px; }
.btn-place-bet:hover { background: var(--accent-dark); }
.btn-clear { width: 100%; background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 9px; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.btn-clear:hover { border-color: var(--red); color: var(--red); }
.quick-stakes { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 10px; }
.qs-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; text-align: center; transition: all 0.12s; }
.qs-btn:hover { border-color: var(--accent); color: var(--accent); }

.mobile-slip-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 500; }
.mobile-slip-overlay.show { display: block; }
.mobile-slip { position: fixed; bottom: 60px; left: 0; right: 0; background: var(--bg-secondary); border-top: 2px solid var(--accent); border-radius: 20px 20px 0 0; z-index: 501; max-height: 80vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s ease; }
.mobile-slip.open { transform: translateY(0); }
.mobile-slip-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; border-bottom: 1px solid var(--border); }
.mobile-slip-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.mobile-slip-close { background: var(--bg-card); border: none; color: var(--text-muted); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 14px; cursor: pointer; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--bg-secondary); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; z-index: 300; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-dim); font-size: 10px; font-weight: 600; padding: 6px 12px; background: none; border: none; cursor: pointer; transition: all 0.15s; }
.bottom-nav-item i { font-size: 19px; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--accent); }

.site-footer { background: #090d14; border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand-logo { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--text); margin-bottom: 12px; }
.footer-brand-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-warning { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.footer-age { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 4px; padding: 2px 5px; }
.footer-copy { font-size: 12px; color: var(--text-dim); }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); padding: 20px; }
.auth-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 40px 36px; width: 100%; max-width: 420px; }
.auth-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--text); margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 11px 14px; color: var(--text); font-size: 14px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-auth { width: 100%; background: var(--accent); border: none; border-radius: var(--radius); padding: 13px; font-size: 15px; font-weight: 700; color: #000; font-family: var(--font-display); cursor: pointer; margin-top: 8px; transition: all 0.15s; }
.btn-auth:hover { background: var(--accent-dark); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); font-weight: 700; }

.dashboard-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--text); margin-bottom: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stat-label { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.table-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.table-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-card-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--bg-card); padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-success { background: var(--green-soft); color: #7ee787; }
.badge-warning { background: rgba(210,153,34,.15); color: #d2993a; }
.badge-danger { background: var(--red-soft); color: #f85149; }
.badge-secondary { background: rgba(139,148,158,.1); color: var(--text-muted); }
.badge-info { background: rgba(88,166,255,.1); color: var(--cyan); }
.wallet-card { background: linear-gradient(135deg,#0d2137,#091a2a); border: 1px solid #1e3a56; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.wallet-label { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.wallet-amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: #fff; }

.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #090d14; border-right: 1px solid var(--border); flex-shrink: 0; position: fixed; inset-y: 0; left: 0; overflow-y: auto; z-index: 300; }
.admin-brand { padding: 20px 16px; border-bottom: 1px solid var(--border); }
.admin-nav-title { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all 0.15s; border-left: 3px solid transparent; }
.admin-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-item.active { background: var(--accent-glow); color: var(--accent); border-left-color: var(--accent); }
.admin-content { margin-left: 240px; flex: 1; padding: 28px; background: var(--bg-primary); min-height: 100vh; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; align-items: flex-start; gap: 14px; }
.admin-stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.admin-stat-icon.yellow { background: rgba(245,197,24,.12); color: var(--accent); }
.admin-stat-icon.blue { background: rgba(88,166,255,.1); color: var(--cyan); }
.admin-stat-icon.green { background: var(--green-soft); color: #7ee787; }
.admin-stat-icon.red { background: var(--red-soft); color: #f85149; }
.admin-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.admin-stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.admin-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.admin-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }
.admin-card-body { padding: 18px; }
.btn-admin-primary { background: var(--accent); border: none; border-radius: var(--radius); padding: 8px 18px; font-size: 13px; font-weight: 700; color: #000; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.btn-admin-primary:hover { background: var(--accent-dark); }
.btn-admin-danger { background: var(--red-soft); border: 1px solid rgba(229,57,53,.3); border-radius: var(--radius); padding: 5px 12px; font-size: 12px; font-weight: 600; color: #f85149; cursor: pointer; transition: all 0.15s; }
.btn-admin-secondary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.btn-admin-secondary:hover { border-color: var(--accent); color: var(--accent); }
.form-control-admin { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 9px 12px; color: var(--text); font-size: 13px; font-family: var(--font); outline: none; width: 100%; transition: border-color 0.15s; }
.form-control-admin:focus { border-color: var(--accent); }
.form-group-admin { margin-bottom: 14px; }
.form-label-admin { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 800; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 12px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.7); }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.5s infinite; flex-shrink: 0; }
.text-accent { color: var(--accent); font-weight: 700; }
.text-cyan { color: var(--cyan); font-weight: 700; }
.text-green { color: #7ee787; font-weight: 700; }
.text-red { color: #f85149; font-weight: 700; }
select.form-control, select.form-control-admin { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

@media(max-width:768px) {
  .sidebar { display: none; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 16px; }
  .nav-sports { display: none; }
  .topbar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner { height: 160px; }
  .hero-title { font-size: 22px; }
}

/* ===== CRITICAL FIXES ===== */
.hero-banner { overflow: hidden !important; height: 220px !important; }
.hero-slide { display: none !important; position: absolute !important; inset: 0 !important; height: 100% !important; flex-direction: row; }
.hero-slide.active { display: flex !important; }
.match-row { flex-wrap: nowrap !important; }
.match-odds-col { flex-direction: row !important; }
.page-wrapper { max-width: 100% !important; }
.navbar-top .navbar-inner { max-width: 100% !important; }
.brand-name { font-family: 'Rajdhani', sans-serif !important; }
