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

:root {
  --bg:        #0d0b1e;
  --bg2:       #13102a;
  --bg3:       #1a1635;
  --card:      #1e1a38;
  --border:    #2e2860;
  --accent:    #c84bff;
  --accent2:   #7b2fff;
  --gold:      #ffd679;
  --green:     #3ddc84;
  --red:       #ff4f6e;
  --text:      #e6e0ff;
  --muted:     #8577b5;
  --radius:    12px;
  --nav-h:     64px;
}

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

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

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,11,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { height: 34px; width: auto; }
.logo-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -.5px; }
.logo-text span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  white-space: nowrap; padding: 7px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--bg3); color: var(--text);
}

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 20px; border-radius: 8px;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #f7a500, var(--gold)); color: #1a0f00; }
.btn-lg { padding: 13px 32px; font-size: 1rem; border-radius: 10px; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 440px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('header-bg.webp') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,11,30,.95) 40%, rgba(13,11,30,.4) 100%),
              linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 60px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-left { max-width: 520px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,75,255,.15); border: 1px solid rgba(200,75,255,.35);
  border-radius: 20px; padding: 5px 14px; font-size: .8rem;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.hero-badge::before { content: '●'; font-size: .5rem; color: var(--green); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero-title .gold { color: var(--gold); }
.hero-desc { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-features {
  display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap;
}
.feat-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: .82rem;
}
.feat-chip .icon { font-size: 1.1rem; }

/* ===== CATEGORY TABS ===== */
.cat-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 20px 0; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; padding: 9px 18px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
  color: var(--muted);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--bg3); border-color: var(--accent2); color: var(--text);
}
.cat-tab .tab-icon { font-size: 1.1rem; }

/* ===== 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;
}
.section-title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-title .count {
  font-size: .78rem; font-weight: 600; background: var(--accent2);
  color: #fff; border-radius: 20px; padding: 2px 9px;
}
.see-all { font-size: .83rem; color: var(--accent); font-weight: 500; }
.see-all:hover { text-decoration: underline; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.game-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background: var(--card);
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 1/1;
}
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 32px rgba(123,47,255,.4); }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover img { transform: scale(1.06); }
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  opacity: 0; transition: opacity .2s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-name { font-size: .78rem; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.game-play-btn {
  display: block; text-align: center; padding: 7px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 7px; font-size: .8rem; font-weight: 700; color: #fff;
}
.game-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase;
}
.game-badge.hot { background: #ff7a00; }
.game-badge.top { background: var(--gold); color: #1a0f00; }

/* ===== WINS TICKER ===== */
.wins-section { padding: 12px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wins-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.wins-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wins-title { font-size: .9rem; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.wins-ticker { display: flex; gap: 10px; overflow-x: hidden; }
.wins-list { display: flex; gap: 10px; animation: ticker 30s linear infinite; }
.wins-list:hover { animation-play-state: paused; }
.win-item {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; min-width: 200px;
}
.win-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.win-info { min-width: 0; }
.win-user { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-game { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount { font-size: .9rem; font-weight: 800; color: var(--green); flex-shrink: 0; margin-left: auto; }

/* ===== PROMO CARDS ===== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.promo-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--card); border: 1px solid var(--border);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.promo-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
.promo-icon { font-size: 2.5rem; }
.promo-card h3 { font-size: 1.1rem; font-weight: 700; }
.promo-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.promo-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  background: rgba(200,75,255,.15); color: var(--accent);
  border: 1px solid rgba(200,75,255,.3); border-radius: 5px; padding: 3px 9px;
  width: fit-content;
}
.promo-card .btn { margin-top: auto; }

/* ===== APK BANNER ===== */
.apk-banner {
  background: linear-gradient(135deg, #1a0a3e, var(--bg3));
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 28px 32px; margin: 0 20px;
  max-width: 1240px; margin: 0 auto;
}
.apk-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.apk-text p { color: var(--muted); font-size: .9rem; }
.apk-icon { font-size: 3rem; }

/* ===== SEO TEXT ===== */
.seo-section {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  border-top: 1px solid var(--border);
}
.seo-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding-bottom: 16px;
}
.seo-toggle h2 { font-size: 1.3rem; font-weight: 700; }
.seo-toggle .chevron { font-size: 1.2rem; transition: transform .3s; }
.seo-toggle.open .chevron { transform: rotate(180deg); }
.seo-body { display: none; }
.seo-body.open { display: block; }
.seo-body h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.seo-body p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.seo-body ol, .seo-body ul { padding-left: 20px; }
.seo-body li { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1280px; margin: 24px auto 0;
  padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.age-badge {
  background: rgba(255,79,110,.15); border: 1px solid rgba(255,79,110,.3);
  color: var(--red); font-size: .8rem; font-weight: 700;
  border-radius: 6px; padding: 4px 10px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border-bottom: 1px solid var(--border);
  padding: 50px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto 24px; }

/* ===== BONUSES PAGE ===== */
.bonus-hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.bonus-card {
  border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.bonus-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.bonus-card-header {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, rgba(123,47,255,.25), rgba(200,75,255,.15));
  text-align: center;
}
.bonus-card-header .bonus-amount { font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.bonus-card-header .bonus-label { font-size: .85rem; color: var(--muted); }
.bonus-card-body { padding: 20px 24px 24px; }
.bonus-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.bonus-card-body p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.bonus-terms { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg3); }
.faq-question .arrow { font-size: 1.1rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }

/* ===== LIVE PAGE ===== */
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,79,110,.15); border: 1px solid rgba(255,79,110,.35); border-radius: 20px; padding: 4px 12px; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }

/* ===== SLOTS PAGE ===== */
.provider-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.provider-chip {
  padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 500;
  background: var(--card); border: 1.5px solid var(--border); cursor: pointer;
  transition: all .2s; color: var(--muted);
}
.provider-chip:hover, .provider-chip.active { background: var(--bg3); border-color: var(--accent2); color: var(--text); }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .4s ease both; }

/* ===== SEO ARTICLE ===== */
.seo-article { padding: 40px 20px; border-top: 1px solid var(--border); max-width: 1280px; margin: 0 auto; }
.seo-article h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.seo-article h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.seo-article p { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.seo-article ol, .seo-article ul { padding-left: 20px; margin-bottom: 12px; }
.seo-article li { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ===== SEO FAQ BLOCK ===== */
.seo-faq { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.seo-faq h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.seo-faq dl { display: flex; flex-direction: column; gap: 14px; }
.seo-faq dt { font-size: .92rem; font-weight: 700; color: var(--text); }
.seo-faq dd { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 4px 0 0; padding-left: 0; }

/* ===== INTERNAL LINKS ===== */
.internal-links { margin-top: 28px; padding: 20px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.internal-links h3 { font-size: .88rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; }
.internal-links li a { font-size: .85rem; color: var(--accent); border: 1px solid rgba(200,75,255,.25); border-radius: 6px; padding: 5px 12px; display: inline-block; transition: background .2s, color .2s; }
.internal-links li a:hover { background: rgba(200,75,255,.12); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .apk-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .header-actions .btn-outline { display: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
}
