/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #f5c16c;
  --gold-dark: #d4943a;
  --gold-light: #fde8b0;
  --bg: #111318;
  --bg2: #181c24;
  --bg3: #1e2330;
  --card: #1b2033;
  --border: #2a3045;
  --text: #e8e8f0;
  --text-muted: #8899bb;
  --red: #e83b5a;
  --green: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 19, 24, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--gold);
  background: rgba(245, 193, 108, 0.1);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0e12;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,193,108,0.4); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}
.btn-outline:hover { background: rgba(245,193,108,0.1); }
.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: var(--radius); }

/* ===== HAMBURGER ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1020 0%, #1a1f35 50%, #0d0f18 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('guest_banner.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,193,108,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,193,108,0.12);
  border: 1px solid rgba(245,193,108,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-bonus {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(245,193,108,0.5);
}

.hero-bonus-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}
.stat { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ===== LIVE WINS TICKER ===== */
.wins-ticker {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.wins-ticker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d0e12;
  width: fit-content;
}

.wins-list {
  display: flex;
  gap: 0;
  padding: 0;
  animation: ticker-scroll 35s linear infinite;
  width: max-content;
}

.wins-list:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.win-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.win-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d0e12;
  flex-shrink: 0;
}

.win-info { display: flex; flex-direction: column; }
.win-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.win-game { font-size: 0.7rem; color: var(--text-muted); }
.win-amount { font-size: 0.9rem; font-weight: 800; color: var(--green); margin-left: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 60px 20px; }
.section-inner { max-width: 1300px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
}

.view-all {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.view-all:hover { gap: 8px; }

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 4/3;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover img { transform: scale(1.08); }

.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 0.2s;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0e12;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-badge.hot { background: #ff6b35; }
.game-badge.new { background: #7c3aed; }
.game-badge.top { background: var(--gold-dark); color: #0d0e12; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.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: var(--gold-dark);
  transform: translateY(-2px);
}

.bonus-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.bonus-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.bonus-amount {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bonus-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--gold-dark); }

.faq-question {
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ===== LIVE TABLE ===== */
.live-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.live-table thead { background: var(--bg3); }
.live-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-table td { padding: 14px 20px; border-top: 1px solid var(--border); }
.live-table tr:hover td { background: rgba(255,255,255,0.02); }

.win-row-enter { animation: win-flash 0.8s ease; }
@keyframes win-flash {
  0% { background: rgba(52, 211, 153, 0.15); }
  100% { background: transparent; }
}

.amount-positive { color: var(--green); font-weight: 800; }
.amount-negative { color: var(--red); }

/* ===== INFO BLOCKS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--gold); }
.info-card p, .info-card li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.info-card ul { display: flex; flex-direction: column; gap: 8px; }
.info-card li::before { content: '→ '; color: var(--gold); }

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(245,193,108,0.12);
  border-color: var(--gold-dark);
  color: var(--gold);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0d1020 0%, #1a1f35 100%);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,193,108,0.08) 0%, transparent 70%);
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.page-hero p {
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.75rem;
  color: #4a5568;
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== 18+ badge ===== */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}

.mobile-nav.open { display: block; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-panel a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  transition: all 0.2s;
}
.mobile-nav-panel a:hover { background: var(--bg3); color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== PROVIDERS ===== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.provider-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}
.provider-card:hover { border-color: var(--gold-dark); color: var(--gold); }

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(245,193,108,0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-outline { display: none; }

  .hero-inner { flex-direction: column; padding: 40px 20px; }
  .hero-stats { justify-content: center; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
