/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0a0114;
  --bg-secondary: #110820;
  --bg-card: #1a0f2e;
  --bg-card-hover: #221440;
  --gold: #ffd679;
  --gold-dark: #e6b84a;
  --gold-light: #ffe9a8;
  --purple: #6b21a8;
  --purple-light: #9333ea;
  --pink: #d946a8;
  --text-primary: #ffffff;
  --text-secondary: #b39dcc;
  --text-muted: #6b5780;
  --border: rgba(255, 214, 121, 0.15);
  --border-hover: rgba(255, 214, 121, 0.4);
  --shadow-gold: 0 0 20px rgba(255, 214, 121, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ===== HEADER ===== */
.site-header {
  position: relative;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 480px;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 1, 20, 0.55) 0%,
    rgba(10, 1, 20, 0.2) 40%,
    rgba(10, 1, 20, 0.85) 85%,
    rgba(10, 1, 20, 1) 100%
  );
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
}

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-link img {
  height: 34px;
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--gold);
  background: rgba(255, 214, 121, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-primary {
  background: linear-gradient(135deg, #b845f5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c960ff, #8b5cf6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e6b84a);
  color: #1a0a00;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 214, 121, 0.35);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 214, 121, 0.5);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 214, 121, 0.1);
  border: 1px solid rgba(255, 214, 121, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.5s infinite; }

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #e6b84a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.feature-chip:hover {
  border-color: var(--border-hover);
  background: rgba(255, 214, 121, 0.06);
  color: var(--gold);
}

.feature-chip .icon { font-size: 18px; }

/* ===== MAIN NAV (secondary nav below header) ===== */
.main-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav-inner::-webkit-scrollbar { display: none; }

.main-nav-inner a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav-inner a:hover,
.main-nav-inner a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.section-title .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.section-link {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.section-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== 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);
  border: 1px solid var(--border);
  transition: all var(--transition);
  aspect-ratio: 3/4;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover img { transform: scale(1.06); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.game-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #e6b84a);
  color: #1a0a00;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  text-align: center;
}

/* ===== LIVE WINS WIDGET ===== */
.live-wins-section {
  margin-bottom: 48px;
}

.live-wins-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.live-wins-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: winSlideIn 0.4s ease;
  transition: background 0.2s;
}

.win-item:last-child { border-bottom: none; }
.win-item:hover { background: rgba(255,255,255,0.02); }

@keyframes winSlideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.win-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.win-info { flex: 1; min-width: 0; }

.win-player {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.win-game {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.win-amount.big { color: #ff6b6b; font-size: 18px; }
.win-amount.huge { color: #ff4444; font-size: 20px; animation: glow 1s infinite alternate; }

@keyframes glow {
  from { text-shadow: 0 0 5px rgba(255,68,68,0.5); }
  to { text-shadow: 0 0 15px rgba(255,68,68,0.9); }
}

.win-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, #1e0a3c 0%, #2d1464 50%, #1e0a3c 100%);
  border: 1px solid rgba(255, 214, 121, 0.2);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 69, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.promo-banner-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-banner-text h2 span { color: var(--gold); }

.promo-banner-text p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 400px;
}

.promo-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== INFO SECTION ===== */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
}

.info-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.info-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.info-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.info-section ol {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  padding-left: 20px;
}

.info-section ol li { margin-bottom: 6px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-secondary), #1a0b35);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  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: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.bonus-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.bonus-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bonus-card .amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.bonus-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bonus-tag {
  display: inline-block;
  background: rgba(255, 214, 121, 0.1);
  border: 1px solid rgba(255, 214, 121, 0.25);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: rgba(255, 214, 121, 0.35); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition);
  user-select: none;
}

.faq-question:hover { color: var(--gold); }

.faq-item.open .faq-question { color: var(--gold); }

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 40px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-link img { height: 30px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  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);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(255, 214, 121, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
  .topbar { padding: 14px 20px; }
  .topbar-nav { display: none; }
  .main-nav-inner { padding: 0 20px; }
  .main-content { padding: 24px 20px 48px; }
  .page-hero { padding: 32px 20px; }
  .promo-banner { flex-direction: column; text-align: center; }
  .promo-banner-actions { justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .info-section { padding: 24px; }
  .site-header { min-height: 360px; }
  .hero { padding: 40px 20px 60px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 280px; }
  .btn { width: 100%; }
}
