/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #08071a;
  --bg-card:    #110f2a;
  --bg-overlay: #1a1740;
  --gold:       #f5c842;
  --gold-light: #ffe57a;
  --gold-dark:  #c9960a;
  --pink:       #e8317a;
  --pink-light: #ff6ba8;
  --purple:     #6b35d4;
  --text:       #e8e0ff;
  --text-muted: #8b7ec4;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,7,26,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,200,66,.12);
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 64px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 40px; }

/* ===== NAV ===== */
.nav { display: flex; gap: 4px; margin-left: auto; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(245,200,66,.08);
}

/* ===== HEADER BUTTONS ===== */
.header-actions { display: flex; gap: 10px; margin-left: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; transition: all .2s;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(245,200,66,.5);
  color: var(--gold);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(245,200,66,.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0b1a;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-pink {
  background: linear-gradient(135deg, #c41e5c, var(--pink));
  color: #fff;
}
.btn-pink:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 10px; }

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 480px;
  background: url('header-bg.webp') center/cover no-repeat;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,7,26,.85) 40%, rgba(107,53,212,.35) 100%);
}
.hero-content {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0b1a; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  letter-spacing: .8px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 16px; color: var(--text-muted);
  max-width: 500px; line-height: 1.6; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FEATURES STRIP ===== */
.features {
  background: var(--bg-overlay);
  border-top: 1px solid rgba(245,200,66,.1);
  border-bottom: 1px solid rgba(245,200,66,.1);
}
.features-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid rgba(245,200,66,.08);
  transition: background .2s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(245,200,66,.04); }
.feature-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(245,200,66,.15), rgba(245,200,66,.05));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--gold); }
.feature-text span { font-size: 12px; color: var(--text-muted); }

/* ===== WINS TICKER ===== */
.wins-ticker {
  background: rgba(17,15,42,.9);
  border-bottom: 1px solid rgba(107,53,212,.2);
  padding: 10px 0; overflow: hidden;
}
.wins-ticker-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 4px; margin-right: 20px; white-space: nowrap;
}
.wins-track {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.wins-track:hover { animation-play-state: paused; }

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

.win-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.win-item .win-name { color: var(--text); font-weight: 600; }
.win-item .win-amount { color: var(--gold); font-weight: 800; }
.win-item .win-game { color: var(--text-muted); }
.win-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-dark); flex-shrink: 0;
}

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  display: block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
}
.section-link { font-size: 14px; color: var(--gold); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background: var(--bg-card);
  transition: transform .25s, box-shadow .25s;
  aspect-ratio: 3/4;
}
.game-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.7); }

.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-card:hover img { transform: scale(1.05); }

.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,7,26,.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px;
  opacity: 0; transition: opacity .25s;
}
.game-card:hover .game-overlay { opacity: 1; }

.game-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }

.btn-play {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0b1a; font-size: 13px; font-weight: 800;
  border: none; cursor: pointer; width: 100%;
  transition: filter .2s;
}
.btn-play:hover { filter: brightness(1.1); }

.game-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-hot { background: var(--pink); color: #fff; }
.badge-new { background: var(--purple); color: #fff; }
.badge-top { background: var(--gold-dark); color: #0d0b1a; }

/* ===== LIVE SECTION ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.live-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232,49,122,.15);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.live-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(232,49,122,.2); }
.live-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.live-img img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
}
.live-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .3; }
}
.live-info { padding: 12px 14px; }
.live-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.live-info p { font-size: 12px; color: var(--text-muted); }
.live-players { font-size: 11px; color: var(--pink); font-weight: 600; margin-top: 6px; }

/* ===== BONUSES SECTION ===== */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid rgba(245,200,66,.1);
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}
.bonus-card:hover { border-color: rgba(245,200,66,.3); transform: translateY(-4px); }
.bonus-icon { font-size: 40px; margin-bottom: 14px; }
.bonus-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.bonus-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.bonus-value {
  font-size: 28px; font-weight: 900; color: var(--gold);
  margin-bottom: 16px;
}
.bonus-value span { font-size: 14px; color: var(--text-muted); font-weight: 400; }

/* ===== APK BANNER ===== */
.apk-banner {
  background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(107,53,212,.3) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid rgba(107,53,212,.25);
  overflow: hidden; position: relative;
}
.apk-banner::before {
  content: '📱';
  position: absolute; right: 200px; bottom: -10px;
  font-size: 120px; opacity: .06;
}
.apk-text h2 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.apk-text p { color: var(--text-muted); font-size: 15px; }
.apk-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(107,53,212,.15);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer;
  font-size: 15px; font-weight: 600;
  transition: color .2s;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(245,200,66,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: transform .3s; flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }

/* ===== SEO TEXT ===== */
.seo-section {
  padding: 60px 0;
  border-top: 1px solid rgba(107,53,212,.15);
}
.seo-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.seo-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.seo-inner h3 { font-size: 16px; font-weight: 700; margin: 20px 0 10px; color: var(--gold); }
.seo-inner p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.seo-inner ol, .seo-inner ul { padding-left: 20px; }
.seo-inner li { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }

/* ===== FOOTER ===== */
.footer {
  background: #060515;
  border-top: 1px solid rgba(245,200,66,.08);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; color: var(--gold); }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-badges { display: flex; gap: 8px; align-items: center; }
.badge-18 {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(232,49,122,.15); border: 1.5px solid var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--pink);
}
.socials { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(107,53,212,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .2s;
}
.social-link:hover { background: rgba(107,53,212,.4); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, rgba(17,15,42,1) 0%, rgba(107,53,212,.15) 100%);
  border-bottom: 1px solid rgba(107,53,212,.15);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 10px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { font-size: 16px; color: var(--text-muted); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--bg-card); color: var(--text-muted);
  border: 1px solid rgba(107,53,212,.15);
  cursor: pointer; transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: rgba(245,200,66,.1);
  color: var(--gold); border-color: rgba(245,200,66,.25);
}

/* ===== WINS FEED SIDEBAR ===== */
.live-wins-feed {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(107,53,212,.2);
  padding: 16px;
  max-height: 420px; overflow: hidden;
}
.wins-feed-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px; color: var(--gold);
}
.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.03);
  animation: slideIn .4s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feed-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.feed-info { flex: 1; min-width: 0; }
.feed-info .feed-user { font-size: 12px; font-weight: 700; }
.feed-info .feed-game { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-amount { font-size: 14px; font-weight: 900; color: var(--gold); white-space: nowrap; }

/* ===== SEO CONTENT ===== */
.seo-article { margin-bottom: 48px; }
.seo-article h2 {
  font-size: 18px; font-weight: 800;
  color: var(--gold); margin: 28px 0 10px;
}
.seo-article h2:first-child { margin-top: 0; }
.seo-article p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.seo-link { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(245,200,66,.4); }
.seo-link:hover { text-decoration-color: var(--gold); }

.seo-faq { margin-bottom: 40px; }
.seo-faq > h2 { font-size: 18px; font-weight: 800; color: var(--gold); margin-bottom: 16px; }

.seo-links { padding-top: 20px; border-top: 1px solid rgba(107,53,212,.12); }
.seo-links h2 { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.seo-links-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.seo-links-list a {
  font-size: 13px; color: var(--gold);
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(245,200,66,.2);
  transition: background .2s, border-color .2s;
}
.seo-links-list a:hover { background: rgba(245,200,66,.08); border-color: rgba(245,200,66,.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }

  .nav.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg-deep);
    padding: 20px; gap: 4px;
    z-index: 99;
  }

  .features-inner { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(245,200,66,.08); }

  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .apk-banner { flex-direction: column; padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 360px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
}
