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

:root {
  --bg:        #0b0b1a;
  --bg2:       #11112b;
  --bg3:       #1a1a38;
  --card:      #15153a;
  --border:    #2a2a55;
  --gold:      #ffd679;
  --gold2:     #f0b429;
  --purple:    #6c3fff;
  --purple2:   #8f5fff;
  --text:      #ffffff;
  --muted:     #8080a8;
  --green:     #30e07a;
  --red:       #ff4d6a;
  --radius:    12px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Arial', 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%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11,11,26,0.98) 0%, rgba(11,11,26,0.85) 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: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { height: 34px; width: auto; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-main a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-main a.active { color: var(--gold); }

.header-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }

.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: white;
  border: none;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,63,255,0.4); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0b0b1a;
  border: none;
  font-weight: 800;
}

.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,214,121,0.4); }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg3);
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 20px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg2);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: url('header-bg.webp') center/cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,11,26,0.85) 0%, rgba(11,11,26,0.5) 60%, rgba(11,11,26,0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 500px;
}

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

/* Features strip */
.features-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

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

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 40px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.feature-badge:hover { border-color: var(--gold); }

.feature-badge .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== CATEGORY TABS ===== */
.categories {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 50;
}

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

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-tab .cat-icon { font-size: 1.1rem; }

.cat-tab:hover { color: var(--text); }

.cat-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.section-title .s-icon { font-size: 1.2rem; }

.see-all {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-all:hover { color: var(--gold); }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  aspect-ratio: 1 / 1.1;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,11,26,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}

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

.play-btn {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0b0b1a;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  transition: transform var(--transition);
}

.play-btn:hover { transform: scale(1.05); }

.game-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(11,11,26,0.95) 0%, transparent 100%);
  text-align: center;
}

.game-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-badge.new { background: var(--green); color: #0b0b1a; }
.game-badge.hot { background: #ff7730; }
.game-badge.top { background: var(--purple); }

/* ===== LIVE WINS TICKER ===== */
.wins-section {
  margin-bottom: 40px;
}

.wins-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wins-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px; height: 8px;
  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: 0.5; transform: scale(0.85); }
}

.wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: slideIn 0.5s ease;
  transition: border-color var(--transition);
}

.win-item:hover { border-color: var(--green); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.win-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.win-info { flex: 1; min-width: 0; }

.win-player {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

.win-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.win-amount.big { color: var(--gold); font-size: 1.1rem; }

.win-time {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== APK BANNER ===== */
.apk-banner {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.apk-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(108,63,255,0.2) 0%, transparent 70%);
}

.apk-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.apk-text p { color: var(--muted); font-size: 0.9rem; }

.apk-icon { font-size: 3rem; flex-shrink: 0; }

/* ===== SEO TEXT ===== */
.seo-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.seo-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gold);
}

.seo-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

.seo-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.seo-section ul {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9rem;
  padding-left: 18px;
}

/* ===== FOOTER ===== */
.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: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

.footer-logo { display: flex; align-items: center; gap: 8px; }

.age-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
  text-align: center;
}

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

.page-hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.bonus-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.bonus-card-top {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--bg3), var(--card));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.bonus-icon { font-size: 2.5rem; }

.bonus-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--purple);
  color: white;
}

.bonus-card-top h3 { font-size: 1.2rem; font-weight: 800; }

.bonus-card-top .amount {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bonus-card-bottom {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-card-bottom p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--purple); }

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  background: none;
  color: var(--text);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ===== LIVE PAGE ===== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(48,224,122,0.15);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}

/* ===== UTILITY ===== */
.section-divider { margin: 40px 0; border: none; border-top: 1px solid var(--border); }

.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-gold { background: rgba(255,214,121,0.15); color: var(--gold); border: 1px solid rgba(255,214,121,0.3); }
.tag-green { background: rgba(48,224,122,0.15); color: var(--green); border: 1px solid rgba(48,224,122,0.3); }
.tag-purple { background: rgba(108,63,255,0.15); color: var(--purple2); border: 1px solid rgba(108,63,255,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 260px; }
  .hero-inner { padding: 40px 16px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .apk-banner { flex-direction: column; text-align: center; }
  .bonus-grid { grid-template-columns: 1fr; }
  .win-time { display: none; }
}
