/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #f5c518;
  --gold2:   #e0a800;
  --purple:  #7c3aed;
  --purple2: #6d28d9;
  --dark:    #0d0d1a;
  --dark2:   #12122a;
  --card:    rgba(20, 18, 45, 0.85);
  --card2:   rgba(30, 25, 60, 0.9);
  --text:    #e8e8f0;
  --muted:   #8888aa;
  --red:     #ef4444;
  --green:   #22c55e;
  --radius:  12px;
  --shadow:  0 8px 32px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; }

/* ===== BACKGROUND ===== */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('background.webp') center/cover no-repeat;
}
.bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,26,.82) 0%, rgba(10,8,26,.72) 60%, rgba(10,8,26,.95) 100%);
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 26, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124,58,237,.3);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img { height: 38px; }

.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--text);
  background: rgba(124,58,237,.2);
}
.header-nav a.active { color: var(--gold); }

.header-actions { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 8px; padding: 9px 22px; font-size: .88rem; transition: all .2s; }
.btn-outline { border: 1px solid rgba(124,58,237,.6); color: var(--text); background: transparent; }
.btn-outline:hover { background: rgba(124,58,237,.2); border-color: var(--purple); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%); color: #0d0d1a; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-purple { background: linear-gradient(135deg, var(--purple) 0%, var(--purple2) 100%); color: #fff; }
.btn-purple:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-lg { padding: 13px 32px; font-size: 1rem; border-radius: 10px; }

/* ===== BURGER ===== */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: transparent; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(10,8,26,.97);
  z-index: 99;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
  backdrop-filter: blur(20px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--muted); }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(124,58,237,.2); color: var(--text); }
.mobile-nav .mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav .mobile-actions .btn { flex: 1; justify-content: center; }

/* ===== HERO ===== */
.hero {
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); animation: pulse 1.5s infinite; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 12px;
}
.hero h1 .gold { color: var(--gold); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-bonus {
  background: linear-gradient(135deg, rgba(245,197,24,.12) 0%, rgba(124,58,237,.18) 100%);
  border: 1px solid rgba(245,197,24,.3);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.hero-bonus .bonus-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.hero-bonus .bonus-value { font-size: 1.8rem; font-weight: 800; color: var(--gold); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-inner {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: var(--card2);
  border: 1px solid rgba(124,58,237,.3);
  overflow: hidden;
  position: relative;
}
.hero-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,.35) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== FEATURES STRIP ===== */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.18);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(124,58,237,.5); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 8px; }
.feature-title { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.feature-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ===== SECTION ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 1.4rem; font-weight: 800; }
.section-title span { color: var(--gold); }
.section-more { font-size: .85rem; color: var(--purple); font-weight: 600; }
.section-more:hover { color: var(--gold); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s;
}
.tab-btn:hover { color: var(--text); background: rgba(124,58,237,.15); }
.tab-btn.active { background: linear-gradient(135deg, var(--purple), var(--purple2)); color: #fff; border-color: transparent; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(124,58,237,.15);
  position: relative;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 12px 40px rgba(124,58,237,.25);
}
.game-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,8,26,.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity .2s;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-name { font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.game-play-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #0d0d1a;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.game-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}
.game-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* ===== WINS TICKER ===== */
.wins-section { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.wins-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.wins-header .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
.wins-title { font-size: 1.1rem; font-weight: 700; }

.wins-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: hidden;
  position: relative;
}
.wins-feed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(0deg, rgba(13,13,26,1) 0%, transparent 100%);
  pointer-events: none;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 10px;
  padding: 10px 14px;
  animation: slideIn .4s ease;
  transition: border-color .2s;
}
.win-item:hover { border-color: rgba(245,197,24,.3); }
.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.win-info { flex: 1; }
.win-player { font-size: .85rem; font-weight: 700; }
.win-game { font-size: .75rem; color: var(--muted); }
.win-amount { font-size: 1rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.win-amount.big { color: #ff6b35; font-size: 1.05rem; }
.win-time { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.promo-inner {
  background: linear-gradient(135deg, rgba(124,58,237,.25) 0%, rgba(245,197,24,.12) 100%);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.promo-text h2 .gold { color: var(--gold); }
.promo-text p { color: var(--muted); font-size: .95rem; }
.promo-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ===== APP SECTION ===== */
.app-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.app-inner {
  background: var(--card2);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.app-icon { font-size: 4rem; flex-shrink: 0; }
.app-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.app-text p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1rem; max-width: 600px; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.bonus-card {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 16px;
  padding: 26px 22px;
  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(--purple), var(--gold));
}
.bonus-card:hover { border-color: rgba(124,58,237,.5); transform: translateY(-3px); }
.bonus-card.featured { border-color: rgba(245,197,24,.4); }
.bonus-card.featured::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.bonus-icon { font-size: 2.2rem; margin-bottom: 12px; }
.bonus-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.bonus-amount { font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.bonus-desc { font-size: .85rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.bonus-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #0d0d1a;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq-item {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.18);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.faq-q:hover { background: rgba(124,58,237,.08); }
.faq-q .arrow { font-size: .8rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-a-inner { padding: 0 20px 18px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ===== LIVE TABLE ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.live-card {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
  position: relative;
}
.live-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,.4); }
.live-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: rgba(124,58,237,.1); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.live-card-img img { width: 100%; height: 100%; object-fit: cover; }
.live-card-body { padding: 12px 14px; }
.live-card-name { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.live-card-meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }

/* ===== SEO TEXT ===== */
.seo-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.seo-inner {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.1);
  border-radius: 16px;
  padding: 36px 40px;
}
.seo-inner h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.seo-inner h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; color: var(--gold); }
.seo-inner p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ===== FOOTER ===== */
footer {
  background: rgba(8,6,20,.95);
  border-top: 1px solid rgba(124,58,237,.2);
  padding: 48px 20px 100px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; font-size: .85rem; color: var(--muted); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
}
.footer-badges { display: flex; gap: 10px; align-items: center; }
.footer-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
}

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,8,26,.97);
  border-top: 1px solid rgba(124,58,237,.25);
  backdrop-filter: blur(14px);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  transition: color .2s;
  text-decoration: none;
}
.bn-item .bn-icon { font-size: 1.3rem; }
.bn-item:hover, .bn-item.active { color: var(--gold); }

/* ===== STATS BAR ===== */
.stats-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  background: var(--card);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .burger { display: flex; }
  .bottom-nav { display: block; }
  footer { padding-bottom: 80px; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .bonus-grid { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; text-align: center; }
  .promo-actions { flex-direction: column; width: 100%; }
  .promo-actions .btn { width: 100%; justify-content: center; }
  .app-inner { flex-direction: column; text-align: center; }
  .seo-cols { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .seo-inner { padding: 24px 20px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
