/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --card: #1e1e30;
  --card2: #252540;
  --gold: #f0b040;
  --gold2: #ffd060;
  --gold-dark: #b07010;
  --green: #2ecc71;
  --red: #e74c3c;
  --text: #e8e8f0;
  --text2: #9090b0;
  --border: #2a2a45;
  --radius: 10px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
img { display: block; max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,20,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

.navbar .logo-wrap { flex-shrink: 0; }
.navbar .logo-wrap img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  color: var(--text2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(240,176,64,0.1);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0b040, #e07820);
  color: #0d0d14;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,176,64,0.4);
  color: #0d0d14;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--gold-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(240,176,64,0.1);
  border-color: var(--gold);
  color: var(--gold2);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text2);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  background: rgba(240,176,64,0.08);
}
.mobile-menu .btn-primary { margin-top: 8px; justify-content: center; }

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../guest_banner.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,20,0.9) 0%, rgba(13,13,20,0.3) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,176,64,0.15);
  border: 1px solid rgba(240,176,64,0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-badge::before {
  content: '🎁';
  font-size: 14px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== PROMO TICKER ===== */
.ticker-wrap {
  background: linear-gradient(90deg, var(--bg3) 0%, #1a1a30 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  border-right: 1px solid var(--border);
}
.ticker-item .ti-icon {
  font-size: 18px;
}
.ticker-item .ti-val {
  color: var(--gold);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  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;
}
.see-all {
  font-size: 13px;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.see-all:hover { color: var(--gold); border-color: var(--gold-dark); }

/* ===== GAMES GRID ===== */
.section { padding: 32px 0; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 4/3;
}
.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  border-color: var(--gold-dark);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  transition: opacity 0.2s;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-card .play-btn {
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0d14;
  font-weight: 700;
  font-size: 12px;
  padding: 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== LIVE WINS FEED ===== */
.wins-section {
  padding: 32px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wins-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow: hidden;
}
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  animation: fadeSlideIn 0.4s ease;
  transition: border-color 0.3s;
}
.win-item.highlight { border-color: rgba(240,176,64,0.4); }
.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.win-info { flex: 1; min-width: 0; }
.win-player {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-game {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-amount {
  font-weight: 800;
  font-size: 15px;
  color: var(--green);
  flex-shrink: 0;
  white-space: nowrap;
}
.win-amount.big { color: var(--gold); }
.win-time {
  font-size: 11px;
  color: var(--text2);
  flex-shrink: 0;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== APP DOWNLOAD ===== */
.app-section {
  background: linear-gradient(135deg, #1a1a30 0%, #13131f 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
}
.app-icon {
  font-size: 56px;
  flex-shrink: 0;
}
.app-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.app-text p {
  color: var(--text2);
  margin-bottom: 16px;
}
.app-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== INFO SECTION ===== */
.info-section {
  padding: 32px 0 48px;
}
.info-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--gold);
}
.info-section p {
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.7;
}
.info-section ul, .info-section ol {
  color: var(--text2);
  margin: 0 0 12px 20px;
  line-height: 1.8;
}
.info-section li::marker { color: var(--gold); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo img { height: 32px; width: auto; opacity: 0.7; }
.footer-legal {
  font-size: 12px;
  color: var(--text2);
  opacity: 0.6;
  max-width: 600px;
  text-align: center;
}
.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
}

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.page-hero p {
  color: var(--text2);
  font-size: 16px;
}

/* ===== BONUS CARDS ===== */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.bonus-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.bonus-icon { font-size: 40px; margin-bottom: 14px; }
.bonus-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bonus-card .bonus-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}
.bonus-card p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.bonus-tag {
  display: inline-block;
  background: rgba(240,176,64,0.1);
  border: 1px solid rgba(240,176,64,0.25);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--card2); }
.faq-question .faq-arrow {
  flex-shrink: 0;
  font-size: 18px;
  transition: transform 0.3s;
  color: var(--gold);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ===== PROVIDER BADGES ===== */
.providers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.provider-badge {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--gold-dark);
  background: rgba(240,176,64,0.1);
  color: var(--gold);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

/* ===== LIVE TABLE ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.live-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.live-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.live-card-img {
  aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.live-card-img img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.live-badge::before {
  content: '● ';
  animation: blink 1s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.live-card-info { padding: 12px; }
.live-card-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.live-card-info .live-meta { font-size: 12px; color: var(--text2); }
.live-limit {
  font-size: 12px;
  color: var(--gold);
  margin-top: 4px;
}

/* ===== INFO LINKS (internal linking nav) ===== */
.info-links {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info-links h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.info-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.info-links li {
  font-size: 14px;
  color: var(--text2);
}
.info-links li a {
  font-weight: 600;
}
.info-links li a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .burger { display: flex; margin-left: auto; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hero-content { padding: 32px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .app-section { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 24px; }
}
