*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d1a;
  --bg2: #13132a;
  --bg3: #1a1a35;
  --card: #1e1e3a;
  --card2: #252548;
  --accent: #ffd679;
  --accent2: #ff8c42;
  --purple: #7c3aed;
  --purple2: #9f60f4;
  --pink: #e040fb;
  --green: #00e676;
  --text: #e8e8ff;
  --muted: #8888aa;
  --border: rgba(124,58,237,0.25);
  --radius: 12px;
  --radius-sm: 8px;
}

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 { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(13,13,26,.98) 0%, rgba(13,13,26,.9) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-main {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-main::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--card2);
}
.nav-link.active { color: var(--accent); }

.nav-link .icon { font-size: 1.1rem; }

.header-btns { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}

.btn-outline {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple2); color: var(--purple2); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124,58,237,.6); }

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #1a0a00;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,214,121,.4); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('header-bg.webp') center/cover no-repeat;
  filter: brightness(.55) saturate(1.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,26,0) 0%, rgba(13,13,26,.7) 60%, var(--bg) 100%),
              linear-gradient(90deg, rgba(124,58,237,.35) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,.25);
  border: 1px solid rgba(124,58,237,.5);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple2);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 540px;
}

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

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.features-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.features-inner::-webkit-scrollbar { display: none; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  font-size: .9rem;
  font-weight: 600;
}

.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 1.4rem; }

/* ── CATEGORIES NAV ── */
.cats-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}

.cat-btn:hover { border-color: var(--purple2); color: var(--text); }
.cat-btn.active {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}

/* ── SECTION ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--purple) 0%, var(--pink) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.see-all {
  font-size: .8rem;
  font-weight: 700;
  color: var(--purple2);
  transition: color .2s;
}
.see-all:hover { color: var(--accent); }

/* ── GAMES GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--card);
  group: true;
}

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

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,26,.9) 100%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

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

.game-name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(124,58,237,.6);
}

.game-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── WINS TICKER ── */
.wins-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}

.wins-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wins-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

.wins-title {
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
}

.wins-track-wrap {
  overflow: hidden;
  position: relative;
}

.wins-track-wrap::before, .wins-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.wins-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.wins-track-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }

.wins-track {
  display: flex;
  gap: 12px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.wins-track:hover { animation-play-state: paused; }

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

.win-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  min-width: 240px;
  flex-shrink: 0;
}

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

.win-info { flex: 1; overflow: hidden; }

.win-user {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.win-amount {
  font-size: .92rem;
  font-weight: 900;
  color: var(--green);
  white-space: nowrap;
}

/* ── BONUSES (homepage preview) ── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.bonus-card:hover { border-color: var(--purple2); transform: translateY(-3px); }

.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
}

.bonus-icon { font-size: 2.5rem; margin-bottom: 14px; }
.bonus-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.bonus-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.bonus-value { font-size: 1.5rem; font-weight: 900; color: var(--accent); 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;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--purple2); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  user-select: none;
}

.faq-arrow {
  font-size: .8rem;
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 60px 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 10px;
}

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

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── LIVE TABLE GRID ── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.live-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  cursor: pointer;
}
.live-card:hover { border-color: var(--purple2); transform: translateY(-3px); }

.live-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--card2) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e02020;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
}

.live-info { padding: 14px; }

.live-name { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }

.live-provider { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }

.live-limits {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
}

.live-limit-val { font-weight: 700; color: var(--text); }

/* ── SEO TEXT ── */
.seo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.seo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.seo-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  user-select: none;
}

.seo-body { color: var(--muted); line-height: 1.8; font-size: .9rem; }
.seo-body h2 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 24px 0 10px; }
.seo-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.seo-body p { margin-bottom: 12px; }
.seo-body ol, .seo-body ul { padding-left: 20px; margin-bottom: 12px; }
.seo-body li { margin-bottom: 4px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.footer-about { font-size: .82rem; color: var(--muted); line-height: 1.7; }

.footer-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-link {
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
}

.age-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── PAGE TABS ── */
.page-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 20px;
  font-weight: 700;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── BONUS PAGE FULL CARDS ── */
.bonus-full-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: border-color .25s;
  position: relative;
  overflow: hidden;
}
.bonus-full-card:hover { border-color: var(--purple2); }

.bonus-full-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.05) 0%, transparent 60%);
  pointer-events: none;
}

.bonus-big-icon { font-size: 3.5rem; text-align: center; }

.bonus-full-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.bonus-full-desc { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-bottom: 12px; }

.bonus-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.bonus-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(124,58,237,.18);
  color: var(--purple2);
  border: 1px solid rgba(124,58,237,.3);
}

.bonus-full-val {
  text-align: center;
  flex-shrink: 0;
}
.bonus-full-num { font-size: 2rem; font-weight: 900; color: var(--accent); display: block; line-height: 1; }
.bonus-full-label { font-size: .75rem; color: var(--muted); }

/* ── SEO FAQ (details/summary) ── */
.seo-faq { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }

.seo-faq-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.seo-faq-q {
  padding: 14px 18px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  transition: color .2s;
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::after { content: '▼'; font-size: .7rem; color: var(--muted); transition: transform .25s; }
.seo-faq-item[open] .seo-faq-q::after { transform: rotate(180deg); }
.seo-faq-item[open] .seo-faq-q { color: var(--accent); }

.seo-faq-a {
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
  margin: 0;
}

/* ── SEO INTERNAL NAV ── */
.seo-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.seo-nav-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.seo-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-nav-list li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}

.seo-nav-list li a:hover {
  color: var(--purple2);
  border-color: var(--purple2);
  background: rgba(124,58,237,.08);
}

.seo-link {
  color: var(--purple2);
  text-decoration: underline;
  text-decoration-color: rgba(159,96,244,.4);
  text-underline-offset: 3px;
  transition: color .2s;
}
.seo-link:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .bonus-full-card { grid-template-columns: 1fr; text-align: center; }
  .bonus-full-val { order: -1; }
  .header-btns .btn-outline { display: none; }
  .hero { min-height: 320px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
