:root {
  --bg-dark: #0d0d1e;
  --bg-card: #161629;
  --bg-nav: #0a0a18;
  --accent-gold: #f4c842;
  --accent-gold-hover: #ffd96a;
  --accent-purple: #7c3aed;
  --accent-pink: #e040fb;
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── TICKER ─── */
.wins-ticker {
  background: linear-gradient(90deg, #1a0a2e, #0d1a2e);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.wins-ticker-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}
.wins-ticker:hover .wins-ticker-inner { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.ticker-item .winner { color: var(--accent-gold); font-weight: 600; }
.ticker-item .amount { color: #4ade80; font-weight: 700; }
.ticker-item .game { color: #c084fc; }
.ticker-dot { color: var(--accent-gold); font-size: 18px; line-height: 1; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,24,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 64px;
}
.nav-logo { height: 40px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}
.nav-links a.active { color: var(--accent-gold); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .2s; white-space: nowrap; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-primary { background: linear-gradient(135deg, #f4c842, #f59e0b); color: #1a0a00; }
.btn-primary:hover { background: linear-gradient(135deg, #ffd96a, #f4c842); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,200,66,.4); }
.btn-ghost { background: transparent; color: var(--text-secondary); font-size: 13px; }
.btn-ghost:hover { color: var(--text-primary); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.55);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,13,30,0.7) 0%, rgba(124,58,237,0.15) 50%, rgba(13,13,30,0.8) 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244,200,66,.15);
  border: 1px solid rgba(244,200,66,.3);
  color: var(--accent-gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent-gold); }
.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-large { padding: 13px 32px; font-size: 16px; border-radius: 10px; }

/* ─── FEATURES STRIP ─── */
.features-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.feature-item span { font-size: 22px; }
.feature-item strong { color: var(--text-primary); }

/* ─── SECTION ─── */
.section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 22px; font-weight: 700; }
.section-title span { color: var(--accent-gold); }

/* ─── GAMES GRID ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .25s;
  cursor: pointer;
  position: relative;
  group: hover;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,200,66,.3);
  box-shadow: 0 12px 40px rgba(244,200,66,.12);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.game-card:hover .game-card-img { transform: scale(1.05); }
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-play {
  background: var(--accent-gold);
  color: #1a0a00;
  border: none;
  border-radius: 7px;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  display: block;
  text-align: center;
}
.game-card-name {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  color: var(--text-secondary);
  background: var(--bg-card);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── LIVE WINS PANEL ─── */
.wins-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 400px;
}
.wins-panel-header {
  background: linear-gradient(90deg, rgba(124,58,237,0.3), rgba(228,64,251,0.2));
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.wins-panel-header h3 { font-size: 15px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 6px #4ade80; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.wins-list { overflow-y: auto; max-height: 340px; padding: 8px 0; }
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  animation: slideIn .4s ease;
  transition: background .2s;
}
.win-item:hover { background: rgba(255,255,255,.03); }
@keyframes slideIn { from { opacity:0; transform: translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.win-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.win-details { flex: 1; min-width: 0; }
.win-details .name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.win-details .game { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount { font-size: 14px; font-weight: 700; color: #4ade80; white-space: nowrap; }
.win-time { font-size: 11px; color: var(--text-secondary); margin-left: 6px; }

/* ─── BONUS CARDS ─── */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.bonus-card:hover { border-color: rgba(244,200,66,.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-pink));
}
.bonus-icon { font-size: 40px; margin-bottom: 14px; }
.bonus-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bonus-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.bonus-value { font-size: 28px; font-weight: 800; color: var(--accent-gold); margin-bottom: 4px; }
.bonus-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 18px; }

/* ─── APK BANNER ─── */
.apk-banner {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1a3a 100%);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: left;
}
.apk-banner-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.apk-banner-text p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 420px; }
.apk-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn-android { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.btn-android:hover { background: linear-gradient(135deg, #4ade80, #34d399); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(52,211,153,.3); }
.apk-icon { font-size: 72px; opacity: .8; flex-shrink: 0; }

/* ─── SEO TEXT ─── */
.seo-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 24px;
}
.seo-inner {
  max-width: 1200px;
  margin: 0 auto;
  columns: 2;
  column-gap: 48px;
}
.seo-inner h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; break-after: avoid; color: var(--accent-gold); column-span: all; }
.seo-inner h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; break-after: avoid; }
.seo-inner p { color: var(--text-secondary); font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
.seo-inner ol, .seo-inner ul { color: var(--text-secondary); font-size: 14px; line-height: 1.75; padding-left: 20px; margin-bottom: 12px; }
.seo-inner li { margin-bottom: 4px; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-secondary); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-secondary); font-size: 12px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all .2s;
}
.social-btn:hover { background: rgba(244,200,66,.15); color: var(--accent-gold); }
.age-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1428 100%);
  padding: 60px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ─── LIVE TABLE ─── */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .25s;
}
.live-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-3px); }
.live-card-header { display: flex; align-items: center; gap: 12px; }
.live-card-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.live-card-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.live-card-info span { font-size: 12px; color: #c084fc; }
.live-players { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.live-players .live-dot { flex-shrink: 0; }
.live-bet-range { font-size: 12px; color: var(--text-secondary); }
.live-bet-range span { color: var(--accent-gold); font-weight: 600; }

/* ─── FAQ ─── */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.faq-question:hover { background: rgba(255,255,255,.04); }
.faq-chevron { font-size: 18px; transition: transform .3s; flex-shrink: 0; color: var(--accent-gold); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover, .tab-btn.active {
  background: rgba(244,200,66,.12);
  border-color: rgba(244,200,66,.35);
  color: var(--accent-gold);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-nav); padding: 16px; border-bottom: 1px solid var(--border); z-index: 99; }
  .burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .seo-inner { columns: 1; }
  .apk-banner { text-align: center; justify-content: center; }
  .apk-icon { display: none; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .features-inner { gap: 24px; }
  .hero { min-height: 420px; }
  .nav-actions .btn-outline { display: none; }
}
