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

:root {
  --bg: #0e0b1a;
  --bg2: #16122a;
  --bg3: #1e1838;
  --accent: #c62dff;
  --accent2: #7b2fff;
  --gold: #f5c842;
  --gold2: #e0a020;
  --text: #e8e0f5;
  --text-dim: #9b93b8;
  --red: #ff3c3c;
  --green: #2dff7e;
  --radius: 12px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, 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; }

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

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(14, 11, 26, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198, 45, 255, 0.18);
  display: flex; align-items: center;
  padding: 0 24px; gap: 20px;
}

.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo img { height: 44px; }

.header__nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; overflow-x: auto;
  scrollbar-width: none;
}
.header__nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(198, 45, 255, 0.15);
}
.nav-link.active { color: var(--accent); }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.header__actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(198, 45, 255, 0.5);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(198, 45, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(198, 45, 255, 0.55);
  transform: translateY(-1px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #1a0a00;
  box-shadow: 0 4px 18px rgba(245, 200, 66, 0.35);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(245, 200, 66, 0.5);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 60px 24px 40px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover; background-position: center top;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,11,26,.9) 0%, rgba(14,11,26,.6) 60%, transparent 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 520px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(198, 45, 255, 0.18);
  border: 1px solid rgba(198, 45, 255, 0.4);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #c89dff;
  margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .05em;
}
.hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(198,45,255,.4);
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: 16px; color: var(--text-dim);
  line-height: 1.6; margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FEATURES ROW ===== */
.features {
  display: flex; gap: 12px;
  padding: 20px 24px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.features::-webkit-scrollbar { display: none; }

.feature-card {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.feature-card:hover {
  background: rgba(198,45,255,.1);
  border-color: rgba(198,45,255,.3);
  color: #fff;
}
.feature-card__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ===== SECTION ===== */
.section { padding: 40px 24px; max-width: 1400px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(18px, 3vw, 24px); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px; height: 22px;
  background: linear-gradient(var(--accent2), var(--accent));
  border-radius: 2px;
}
.section-link {
  font-size: 13px; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.section-link:hover { gap: 8px; }

/* ===== 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(--bg3);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 4/3;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(198,45,255,.25);
}
.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(0deg, rgba(14,11,26,.85) 0%, transparent 60%);
  opacity: 0; transition: opacity .2s;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  padding: 12px;
  gap: 8px;
}
.game-card:hover .game-card__overlay { opacity: 1; }

.game-card__name {
  font-size: 12px; font-weight: 600;
  text-align: center; color: #fff;
}
.game-card__play {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; border: none; border-radius: 6px;
  padding: 7px 20px; font-size: 12px; font-weight: 700;
  cursor: pointer;
}

.game-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold);
  color: #1a0a00;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}

/* ===== LIVE WINS WIDGET ===== */
.live-wins {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
  overflow: hidden;
}

.live-wins__label {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase; letter-spacing: .08em;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45,255,126,.4); }
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(45,255,126,0); }
}

.live-wins__track {
  flex: 1; overflow: hidden;
  position: relative;
}
.live-wins__inner {
  display: flex; gap: 28px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.live-wins__inner:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.win-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 6px 14px;
  font-size: 13px;
  flex-shrink: 0;
}
.win-item__avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.win-item__user { color: var(--text-dim); font-size: 12px; }
.win-item__game { color: var(--text); font-size: 12px; font-weight: 600; }
.win-item__amount { color: var(--green); font-weight: 700; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(198,45,255,.2);
}
.bonus-card__header {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  padding: 24px; position: relative; overflow: hidden;
}
.bonus-card__header::after {
  content: attr(data-emoji);
  position: absolute; right: 20px; top: 10px;
  font-size: 60px; opacity: .25;
}
.bonus-card__tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  color: #fff; text-transform: uppercase;
  margin-bottom: 10px; letter-spacing: .05em;
}
.bonus-card__title {
  font-size: 22px; font-weight: 800; color: #fff;
}
.bonus-card__body { padding: 20px; }
.bonus-card__desc { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.bonus-card__footer { padding: 0 20px 20px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer; font-size: 15px; font-weight: 600;
  transition: color .2s;
  user-select: none;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__icon {
  width: 24px; height: 24px;
  background: rgba(198,45,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .25s, background .2s;
  font-size: 14px; color: var(--accent);
}
.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  color: var(--text-dim); font-size: 14px; line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-item__a {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ===== PAGE HERO (sub pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  padding: 48px 24px 36px;
  text-align: center;
  border-bottom: 1px solid rgba(198,45,255,.12);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(198,45,255,.15) 0%, transparent 70%);
}
.page-hero__emoji { font-size: 52px; margin-bottom: 12px; }
.page-hero__title { font-size: clamp(26px, 5vw, 44px); font-weight: 800; position: relative; }
.page-hero__title span { color: var(--accent); }
.page-hero__sub { font-size: 16px; color: var(--text-dim); margin-top: 10px; position: relative; }

/* ===== LIVE TABLE ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.live-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.live-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(198,45,255,.2);
}
.live-card__img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.live-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
}
.live-card__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: pulse 1s infinite;
}
.live-card__info { padding: 12px; }
.live-card__name { font-size: 14px; font-weight: 600; }
.live-card__players { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.live-card__limit { font-size: 12px; color: var(--gold); margin-top: 2px; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand__logo img { height: 38px; margin-bottom: 14px; }
.footer-brand__desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .2s;
}
.social-btn:hover { background: rgba(198,45,255,.2); }

.footer-col h4 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px; color: var(--text-dim);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-dim);
}
.age-badge {
  background: rgba(255,255,255,.08);
  border-radius: 6px; padding: 4px 10px;
  font-weight: 700;
}

/* ===== SEO TEXT ===== */
.seo-block {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px 40px;
}
.seo-block h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--text-dim); }
.seo-block h2:first-child { margin-top: 0; }
.seo-block h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; color: var(--text-dim); }
.seo-block p { font-size: 13px; color: rgba(155,147,184,.7); line-height: 1.8; margin-bottom: 10px; }
.seo-block ol { padding-left: 20px; }
.seo-block ol li { font-size: 13px; color: rgba(155,147,184,.7); line-height: 1.8; }
.seo-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.seo-block a:hover { color: #fff; }

/* SEO FAQ */
.seo-faq { margin-top: 28px; }
.seo-faq h2 { font-size: 18px; }
.seo-faq__item { margin-bottom: 14px; }
.seo-faq__item h3 {
  font-size: 14px; font-weight: 700;
  color: var(--text-dim); margin: 0 0 4px;
}
.seo-faq__item p { margin: 0; }

/* SEO Internal Links */
.seo-links { margin-top: 28px; }
.seo-links h2 { font-size: 16px; margin-bottom: 10px; }
.seo-links ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.seo-links ul li a {
  display: inline-block;
  background: rgba(198,45,255,.08);
  border: 1px solid rgba(198,45,255,.2);
  border-radius: 6px; padding: 6px 14px;
  font-size: 13px; color: var(--accent);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.seo-links ul li a:hover {
  background: rgba(198,45,255,.18);
  border-color: var(--accent);
  color: #fff;
}

/* ===== PAGINATION / LOAD MORE ===== */
.load-more {
  text-align: center; margin-top: 32px;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 0 24px 32px;
  max-width: 1400px; margin: 0 auto;
}
.stat-card {
  flex: 1; min-width: 140px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat-card__num {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card__label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  margin: 0 24px 32px;
  max-width: calc(1400px - 48px);
  background: linear-gradient(135deg, #1e1838 0%, #2a1060 50%, #1e1838 100%);
  border: 1px solid rgba(198,45,255,.2);
  border-radius: 16px; padding: 32px 40px;
  display: flex; align-items: center; gap: 24px;
  position: relative; overflow: hidden;
}
.promo-banner::before {
  content: '🎰';
  position: absolute; right: 30px; top: 50%;
  transform: translateY(-50%);
  font-size: 100px; opacity: .12;
}
.promo-banner__text h2 {
  font-size: clamp(20px, 3vw, 30px); font-weight: 800;
  margin-bottom: 6px;
}
.promo-banner__text h2 span { color: var(--gold); }
.promo-banner__text p { color: var(--text-dim); font-size: 14px; }
.promo-banner__cta { flex-shrink: 0; }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 24px 20px;
  max-width: 1400px;
}
.tab-btn {
  padding: 8px 18px;
  background: var(--bg2);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  cursor: pointer; transition: all .2s;
}
.tab-btn:hover, .tab-btn.active {
  background: rgba(198,45,255,.15);
  border-color: var(--accent);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header { padding: 0 14px; gap: 10px; }
  .header__nav { display: none; }
  .header__nav.open { display: flex; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 32px; min-height: 360px; }
  .promo-banner { flex-direction: column; text-align: center; padding: 24px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .section { padding: 28px 16px; }
  .stats-row { padding: 0 16px 24px; }
  .filter-tabs { padding: 0 16px 16px; }
}

/* ===== MOBILE MENU BTN ===== */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text);
}
@media (max-width: 640px) {
  .menu-toggle { display: flex; }
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid rgba(198,45,255,.3);
  border-radius: 10px; padding: 12px 20px;
  font-size: 14px; color: #fff;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
  pointer-events: none;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
