/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0b1a;
  --bg2: #13102a;
  --bg3: #1a1535;
  --card: #1e1a38;
  --card2: #221e40;
  --gold: #f5c842;
  --gold2: #e6a800;
  --pink: #e040a0;
  --purple: #7c3aed;
  --purple2: #5b21b6;
  --text: #fff;
  --text2: #b0a8d4;
  --text3: #7a72a0;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== HEADER ===== */
.site-header {
  position: relative;
  background: url('../header-bg.webp') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,26,.55) 0%, rgba(13,11,26,.9) 80%, var(--bg) 100%);
  z-index: 0;
}

/* ===== TOPBAR ===== */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 12px;
}
.topbar-logo img { height: 44px; width: auto; }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.topbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: background .2s, color .2s;
}
.topbar-nav a:hover,
.topbar-nav a.active {
  background: rgba(124,58,237,.25);
  color: var(--text);
}
.topbar-nav a .nav-icon { font-size: 16px; }

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #0d0b1a;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245,200,66,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,200,66,.5); }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 48px;
  flex: 1;
}
.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  margin-top: 12px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text2);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.btn-hero {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 32px;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
.features-strip::-webkit-scrollbar { display: none; }
.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 32px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.feature-chip:hover { background: rgba(124,58,237,.2); border-color: var(--purple); }
.feature-chip .fc-icon { font-size: 22px; }
.feature-chip span { font-size: 14px; font-weight: 500; }

/* ===== WINS TICKER ===== */
.wins-widget {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 24px;
  overflow: hidden;
}
.wins-widget-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.wins-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 0;
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.wins-label .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.wins-scroll {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
}
.wins-track {
  display: flex;
  gap: 0;
  animation: scrollWins 40s linear infinite;
  white-space: nowrap;
}
@keyframes scrollWins {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.win-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.win-item .win-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.win-item .win-game { color: var(--text2); font-size: 12px; }
.win-item .win-amount { color: var(--green); font-weight: 700; }

/* ===== MAIN NAV TABS ===== */
.main-nav {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  background: transparent;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: .2s;
}
.main-nav-tab:hover { color: var(--text2); background: rgba(255,255,255,.04); }
.main-nav-tab.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(245,200,66,.06); }

/* ===== SECTION ===== */
.section { padding: 28px 24px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .ti { font-size: 20px; }
.section-link { font-size: 13px; color: var(--gold); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ===== GAMES GRID ===== */
.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);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 3/4;
}
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-card:hover img { transform: scale(1.06); }
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .2s;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.game-card-play {
  margin-top: 8px;
  padding: 7px;
  background: var(--gold);
  color: #0d0b1a;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-hot { background: var(--red); }
.badge-new { background: var(--green); }
.badge-popular { background: var(--purple); }

/* ===== PROMO BANNER ===== */
.promo-banners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.promo-banner {
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-banner-1 { background: linear-gradient(135deg, #1a0533 0%, #4a0e6e 100%); }
.promo-banner-2 { background: linear-gradient(135deg, #0a1a3a 0%, #1a4080 100%); }
.promo-banner-3 { background: linear-gradient(135deg, #1a0f00 0%, #6b3a00 100%); }
.promo-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.promo-banner-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}
.promo-banner-title { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.promo-banner-sub { font-size: 13px; color: var(--text2); margin-bottom: 14px; }
.promo-banner .btn { align-self: flex-start; padding: 8px 20px; font-size: 13px; }
.promo-emoji {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 72px;
  opacity: .25;
}

/* ===== BONUS CARDS ===== */
.bonus-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bonus-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.bonus-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}
.bonus-card-icon { font-size: 40px; margin-bottom: 14px; }
.bonus-card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.bonus-card-amount { font-size: 28px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.bonus-card-desc { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
.bonus-card-conditions { font-size: 11px; color: var(--text3); }

/* ===== LIVE GAMES ===== */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.live-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(255,255,255,.06);
}
.live-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.6); border-color: var(--purple); }
.live-card-img {
  height: 130px;
  background: linear-gradient(135deg, var(--bg3), var(--card2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}
.live-card-live-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-card-live-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1s infinite;
}
.live-card-players {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text2);
}
.live-card-body { padding: 14px; }
.live-card-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.live-card-provider { font-size: 12px; color: var(--text3); }
.live-card-limits { font-size: 12px; color: var(--gold); margin-top: 6px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--purple); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  gap: 12px;
}
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text3);
  transition: transform .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--gold); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ===== SEO TEXT ===== */
.seo-section {
  padding: 40px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.seo-section h1 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.seo-section h2 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--gold); }
.seo-section h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; color: var(--text2); }
.seo-section p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 10px; }
.seo-section ol, .seo-section ul { padding-left: 20px; margin-bottom: 10px; }
.seo-section li { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--text2); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-logo img { height: 34px; }
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payment-icon {
  height: 26px;
  padding: 4px 8px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  display: flex;
  align-items: center;
}
.footer-18 {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--bg2);
  padding: 40px 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.page-hero-sub { font-size: 15px; color: var(--text2); padding-bottom: 28px; }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.stat-item {
  flex: 1;
  padding: 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 24px; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 32px;
  padding: 4px 16px;
  gap: 10px;
  max-width: 360px;
}
.search-bar input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
  flex: 1;
  padding: 8px 0;
}
.search-bar input::placeholder { color: var(--text3); }
.search-icon { color: var(--text3); font-size: 18px; }

/* ===== PROVIDER FILTER ===== */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text2);
  cursor: pointer;
  transition: .2s;
}
.filter-chip:hover { border-color: var(--purple); color: var(--text); }
.filter-chip.active { background: var(--purple); border-color: var(--purple); color: var(--text); }

/* ===== NOTIFICATION TOAST ===== */
.win-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--card);
  border: 1px solid rgba(245,200,66,.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 1000;
  animation: toastIn .4s ease;
  transform: translateX(0);
  transition: opacity .4s, transform .4s;
}
.win-toast.hiding { opacity: 0; transform: translateX(-30px); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.win-toast-icon { font-size: 28px; flex-shrink: 0; }
.win-toast-body { flex: 1; }
.win-toast-title { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.win-toast-text { font-size: 12px; color: var(--text2); }
.win-toast-amount { font-size: 18px; font-weight: 900; color: var(--green); }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 100;
  padding: 0 8px;
}
.mobile-nav-items {
  display: flex;
  justify-content: space-around;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 600;
  transition: color .2s;
  text-transform: uppercase;
}
.mobile-nav-item:hover,
.mobile-nav-item.active { color: var(--gold); }
.mobile-nav-item .mni { font-size: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: 72px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .hero-title { font-size: 28px; }
  .features-strip { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .topbar { padding: 12px 16px; }
  .section { padding: 20px 16px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
