/* ===== API INTEGRATION STYLES ===== */
.api-quota-badge {
  font-size: 11px; color: var(--primary); background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3); padding: 4px 10px; border-radius: 12px;
  white-space: nowrap;
}
.btn-refresh {
  background: #222; border: 1px solid #444; color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-refresh:hover { border-color: var(--primary); color: var(--primary); }
.btn-refresh:active i { animation: spin 0.5s linear; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.api-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 16px; color: var(--text-muted); font-size: 14px; }
.spinner { width: 36px; height: 36px; border: 3px solid #333; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

.no-events { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.no-events i { font-size: 36px; margin-bottom: 12px; display: block; opacity: 0.3; }
.no-events p { font-size: 14px; line-height: 1.7; }

.lec-upcoming { font-size: 10px; color: var(--primary); background: rgba(245,166,35,0.1); padding: 2px 7px; border-radius: 3px; }
.lec-odd-inline { font-family: 'Oswald', sans-serif; font-size: 15px; color: var(--primary); font-weight: 700; }
.lec-bm { font-size: 10px; color: var(--text-dim); text-align: right; margin-top: 6px; }
.odd-btn.disabled, .odd-pill.disabled { opacity: 0.3; pointer-events: none; }
.vs-sep { color: var(--text-dim); font-size: 11px; margin: 0 4px; }
.bm-tag { font-size: 10px; color: var(--text-dim); margin-left: 8px; background: #222; padding: 1px 5px; border-radius: 3px; }
.group-count { margin-left: auto; background: #333; color: var(--text-muted); font-size: 10px; padding: 1px 6px; border-radius: 10px; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #f5a623;
  --primary-dark: #e09418;
  --accent: #e63b2e;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card2: #242424;
  --bg-sidebar: #161616;
  --border: #2e2e2e;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --green: #27ae60;
  --live-red: #e63b2e;
  --header-h: 110px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--bg-dark); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
input, select, button { font-family: inherit; outline: none; border: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000; font-weight: 700; font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px; border-radius: 4px; padding: 10px 20px;
  cursor: pointer; transition: all 0.2s; border: none;
  text-transform: uppercase; font-size: 13px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,166,35,0.4); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
  font-weight: 700; font-family: 'Oswald', sans-serif; letter-spacing: 0.5px;
  border-radius: 4px; padding: 9px 20px; cursor: pointer; transition: all 0.2s;
  text-transform: uppercase; font-size: 13px;
}
.btn-outline:hover { background: var(--primary); color: #000; }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }

/* ===== HEADER ===== */
#main-header { position: sticky; top: 0; z-index: 100; }
.header-top { background: #111; border-bottom: 1px solid var(--border); }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; }
.header-flags { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.header-flags span { cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.header-flags span:hover { color: var(--primary); }
.header-links { display: flex; gap: 16px; font-size: 12px; }
.header-links a { color: var(--text-muted); display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.header-links a:hover { color: var(--primary); }

.header-main { background: #161616; border-bottom: 3px solid var(--primary); }
.header-main-inner { display: flex; align-items: center; gap: 20px; padding: 12px 16px; }
.logo { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: #fff; cursor: pointer; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: rgba(245,166,35,0.12); color: var(--primary); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }
.btn-login {
  background: transparent; color: #fff; border: 1px solid #444; padding: 8px 18px;
  border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-register {
  background: var(--primary); color: #000; padding: 8px 18px; border-radius: 4px;
  cursor: pointer; font-weight: 700; font-size: 13px; transition: all 0.2s;
}
.btn-register:hover { background: var(--primary-dark); }
.hamburger { display: none; background: none; color: #fff; font-size: 20px; cursor: pointer; }

.header-promo-bar { background: var(--accent); overflow: hidden; padding: 6px 0; }
.promo-scroll { display: flex; gap: 60px; animation: scrollLeft 25s linear infinite; width: max-content; }
.promo-item { font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; display: flex; align-items: center; gap: 6px; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== PAGES ===== */
.page { min-height: calc(100vh - 120px); }
.page.hidden { display: none; }
.page.active { display: block; }

/* ===== HERO ===== */
.hero-banner { position: relative; overflow: hidden; min-height: 420px; }
.hero-slide { background: var(--bg: #000); min-height: 420px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: var(--bg); }
.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 60px 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.hero-content h1 { font-family: 'Oswald', sans-serif; font-size: 52px; line-height: 1.1; color: #fff; margin-bottom: 16px; font-weight: 700; }
.hero-highlight { color: var(--primary); display: block; }
.hero-content p { color: #aaa; font-size: 16px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-graphic { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); z-index: 2; }
.sport-icons-float { position: relative; width: 200px; height: 200px; }
.float-icon { position: absolute; background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; animation: floatAnim 3s ease-in-out infinite; }
.float-icon.s1 { width: 70px; height: 70px; top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.float-icon.s2 { width: 55px; height: 55px; bottom: 20px; left: 0; animation-delay: 0.5s; }
.float-icon.s3 { width: 55px; height: 55px; bottom: 20px; right: 0; animation-delay: 1s; }
.float-icon.s4 { width: 45px; height: 45px; top: 80px; left: -10px; animation-delay: 1.5s; }
.float-icon.s5 { width: 45px; height: 45px; top: 80px; right: -10px; animation-delay: 2s; }
@keyframes floatAnim { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--primary); }

/* ===== QUICK STATS ===== */
.quick-stats { background: #161616; border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; justify-content: space-around; padding: 20px 16px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTION BLOCKS ===== */
.section-block { padding: 28px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: #fff; letter-spacing: 0.5px; }
.section-header a { font-size: 13px; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.live-dot { display: inline-block; width: 8px; height: 8px; background: var(--live-red); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 6px var(--live-red); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== LIVE EVENTS GRID (HOME) ===== */
.live-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.live-event-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px; transition: all 0.2s; cursor: pointer; }
.live-event-card:hover { border-color: var(--primary); background: var(--bg-card2); }
.lec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lec-sport { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.lec-live { background: var(--live-red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.lec-teams { margin-bottom: 12px; }
.lec-team { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.lec-team-name { font-size: 14px; font-weight: 500; }
.lec-score { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--primary); font-weight: 700; }
.lec-odds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.odd-btn { background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 7px 4px; text-align: center; cursor: pointer; transition: all 0.2s; }
.odd-btn:hover, .odd-btn.selected { background: rgba(245,166,35,0.2); border-color: var(--primary); }
.odd-label { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.odd-val { display: block; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; color: var(--primary); }

/* ===== SPORTS ICONS ROW ===== */
.sports-icons-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.sport-icon-card { flex: 0 0 auto; width: 90px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.sport-icon-card:hover { border-color: var(--primary); background: var(--bg-card2); transform: translateY(-2px); }
.sport-icon-card i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 8px; }
.sport-icon-card span { font-size: 11px; color: var(--text-muted); }

/* ===== CASINO PREVIEW ===== */
.casino-preview-section { background: #111; }
.casino-preview-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.casino-card { border-radius: 10px; overflow: hidden; cursor: pointer; background: #222; transition: transform 0.2s; }
.casino-card:hover { transform: scale(1.02); }
.casino-img { height: 160px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.casino-card.featured .casino-img { height: 200px; }
.casino-img.roulette { background: radial-gradient(circle, #1a0a00, #2d1500), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='90' stroke='%23f5a623' stroke-width='8' fill='none'/%3E%3Ccircle cx='100' cy='100' r='60' stroke='%23f5a62380' stroke-width='4' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }
.casino-img.slots { background: linear-gradient(135deg, #1a0030, #3d006e); }
.casino-img.blackjack { background: linear-gradient(135deg, #001a0d, #004d29); }
.casino-img.baccarat { background: linear-gradient(135deg, #1a0000, #4d0000); }
.casino-img::before { content: attr(data-icon); font-size: 60px; opacity: 0.3; }
.casino-img.roulette::before { content: '🎡'; }
.casino-img.slots::before { content: '🎰'; }
.casino-img.blackjack::before { content: '🃏'; }
.casino-img.baccarat::before { content: '🎴'; }
.casino-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.casino-card:hover .casino-overlay { opacity: 1; }
.play-btn { background: var(--primary); color: #000; border: none; padding: 10px 20px; border-radius: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.casino-info { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.game-name { font-size: 13px; font-weight: 600; }
.game-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.game-tag { background: var(--live-red); color: #fff; }

/* ===== PROMOTIONS ===== */
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-align: center; transition: all 0.2s; }
.promo-card:hover { border-color: var(--primary); }
.promo-icon { width: 60px; height: 60px; background: rgba(245,166,35,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--primary); }
.promo-card h3 { font-family: 'Oswald', sans-serif; font-size: 18px; margin-bottom: 8px; }
.promo-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ===== SPORTS PAGE ===== */
.sports-layout { display: grid; grid-template-columns: 200px 1fr 280px; min-height: calc(100vh - 120px); }
.sports-sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 0; position: sticky; top: var(--header-h); height: fit-content; }
.sidebar-title { padding: 14px 16px; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.sports-menu li { padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: all 0.2s; border-left: 3px solid transparent; }
.sports-menu li:hover, .sports-menu li.active { color: var(--primary); background: rgba(245,166,35,0.06); border-left-color: var(--primary); }
.sports-main { padding: 16px; overflow: hidden; }
.sports-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.sport-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.sport-tab:hover, .sport-tab.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }
.sport-tab-content { display: none; }
.sport-tab-content.active { display: block; }

/* Event Row */
.event-group { margin-bottom: 16px; }
.event-group-header { background: #1e1e1e; padding: 10px 14px; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border: 1px solid var(--border); border-bottom: none; }
.event-row { background: var(--bg-card); border: 1px solid var(--border); border-top: none; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; transition: background 0.15s; }
.event-row:last-child { border-radius: 0 0 6px 6px; }
.event-row:hover { background: var(--bg-card2); }
.event-info { display: flex; flex-direction: column; gap: 4px; }
.event-time { font-size: 11px; color: var(--text-muted); }
.event-teams { font-size: 13px; font-weight: 500; }
.event-league { font-size: 11px; color: var(--text-dim); }
.event-odds { display: flex; gap: 6px; }
.odd-pill { background: #252525; border: 1px solid #3a3a3a; border-radius: 4px; padding: 6px 12px; min-width: 60px; text-align: center; cursor: pointer; transition: all 0.15s; }
.odd-pill:hover, .odd-pill.selected { background: rgba(245,166,35,0.2); border-color: var(--primary); }
.odd-pill .ol { display: block; font-size: 10px; color: var(--text-muted); }
.odd-pill .ov { display: block; font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--primary); font-weight: 600; }
.live-badge { background: var(--live-red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-left: 8px; }

/* ===== BET SLIP ===== */
.betslip { background: var(--bg-sidebar); border-left: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.betslip-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.betslip-header span { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.clear-slip { background: none; color: var(--text-dim); font-size: 12px; cursor: pointer; }
.clear-slip:hover { color: var(--accent); }
.betslip-tabs { display: flex; border-bottom: 1px solid var(--border); }
.bstab { flex: 1; padding: 10px; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.bstab.active, .bstab:hover { color: var(--primary); border-bottom-color: var(--primary); }
.betslip-items { flex: 1; overflow-y: auto; padding: 12px; }
.empty-slip { text-align: center; padding: 40px 16px; color: var(--text-dim); }
.empty-slip i { font-size: 32px; margin-bottom: 12px; display: block; opacity: 0.3; }
.empty-slip p { font-size: 13px; line-height: 1.6; }
.slip-item { background: #202020; border: 1px solid #333; border-radius: 6px; padding: 12px; margin-bottom: 8px; position: relative; }
.slip-item-remove { position: absolute; top: 8px; right: 8px; background: none; color: var(--text-dim); cursor: pointer; font-size: 16px; }
.slip-item-remove:hover { color: var(--accent); }
.slip-match { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.slip-pick { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.slip-odd { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--primary); font-weight: 700; }
.betslip-footer { padding: 12px; border-top: 1px solid var(--border); }
.stake-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stake-row label { font-size: 12px; color: var(--text-muted); }
.stake-row input { background: #222; border: 1px solid #444; color: #fff; padding: 8px 10px; border-radius: 4px; width: 120px; font-size: 14px; text-align: right; }
.stake-row input:focus { border-color: var(--primary); }
.payout-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.payout-val { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--green); font-weight: 700; }
.place-bet { font-size: 14px; }

/* ===== CASINO PAGE ===== */
.casino-page { background: var(--bg-dark); }
.casino-hero { background: linear-gradient(135deg, #0d0d0d, #1a0030, #0d0d0d); padding: 50px 32px; text-align: center; border-bottom: 1px solid var(--border); }
.casino-hero h1 { font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.casino-hero p { color: var(--text-muted); font-size: 16px; }
.casino-nav { display: flex; gap: 8px; padding: 20px 0; overflow-x: auto; flex-wrap: wrap; }
.c-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 18px; border-radius: 24px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.c-tab:hover, .c-tab.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }
.casino-search-bar { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.casino-search-bar i { color: var(--text-muted); }
.casino-search-bar input { background: none; color: #fff; font-size: 14px; flex: 1; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; padding-bottom: 40px; }
.game-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.game-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.game-badge { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; color: #fff; }
.game-badge.live { background: var(--live-red); }
.game-badge.hot { background: #e67e22; }
.game-badge.new { background: #2980b9; }
.game-card-info { padding: 10px 12px; }
.game-card-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.game-card-provider { font-size: 11px; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal { background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 36px 32px; width: 100%; max-width: 420px; position: relative; animation: modalIn 0.2s ease; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; color: #888; font-size: 24px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: #fff; }
.modal-logo { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 6px; }
.modal-title { font-family: 'Oswald', sans-serif; font-size: 24px; text-align: center; margin-bottom: 24px; font-weight: 600; }
.input-group { margin-bottom: 16px; position: relative; }
.input-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.input-group input, .input-group select {
  width: 100%; background: #242424; border: 1px solid #3a3a3a; color: #fff;
  padding: 11px 14px; border-radius: 6px; font-size: 14px; transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--primary); }
.show-pass { position: absolute; right: 12px; bottom: 11px; color: var(--text-muted); cursor: pointer; }
.modal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.checkbox-label input { width: auto; accent-color: var(--primary); }
.forgot-link { font-size: 13px; color: var(--primary); }
.modal-divider { text-align: center; margin: 18px 0; position: relative; }
.modal-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #333; }
.modal-divider span { background: #1a1a1a; position: relative; padding: 0 12px; font-size: 12px; color: var(--text-muted); }
.social-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.social-btn { padding: 10px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.social-btn.google { background: #fff; color: #333; }
.social-btn.google:hover { background: #f0f0f0; }
.social-btn.facebook { background: #1877f2; color: #fff; }
.social-btn.facebook:hover { background: #166fe5; }
.modal-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.modal-switch a { color: var(--primary); font-weight: 600; }
.register-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.reg-tab { flex: 1; padding: 9px; background: #242424; border: 1px solid #3a3a3a; color: var(--text-muted); border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.reg-tab.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }
.phone-input { display: flex; gap: 0; }
.phone-input span { background: #333; padding: 11px 12px; border-radius: 6px 0 0 6px; font-size: 14px; border: 1px solid #3a3a3a; border-right: none; }
.phone-input input { border-radius: 0 6px 6px 0 !important; }
.bonus-box { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); border-radius: 6px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--text); }
.bonus-box i { color: var(--primary); font-size: 18px; }
.terms { margin-bottom: 20px; }
.terms a { color: var(--primary); }
.promo-label { cursor: pointer; margin-top: 12px; }
.reg-section.hidden { display: none; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #27ae60; color: #fff; padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; z-index: 2000; animation: slideUp 0.3s ease; }
.toast.error { background: var(--accent); }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== FOOTER ===== */
.site-footer { background: #0d0d0d; border-top: 1px solid var(--border); padding: 40px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--primary); }
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 36px; height: 36px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; font-size: 14px; }
.social-icons a:hover { background: var(--primary); color: #000; }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.5px; color: #fff; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pay-icon { background: #222; border: 1px solid #333; border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.age-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px; text-align: center; font-size: 12px; color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sports-layout { grid-template-columns: 180px 1fr; }
  .betslip { display: none; }
  .casino-preview-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-links { display: none; }
  .sports-layout { grid-template-columns: 1fr; }
  .sports-sidebar { display: none; }
  .hero-content h1 { font-size: 36px; }
  .hero-graphic { display: none; }
  .stats-grid { gap: 20px; }
  .promos-grid { grid-template-columns: 1fr; }
  .casino-preview-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .modal { padding: 28px 20px; margin: 16px; }
}
@media (max-width: 480px) {
  .hero-content { padding: 40px 20px; }
  .hero-content h1 { font-size: 30px; }
  .casino-preview-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
