/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0d0f1a;
  --bg-secondary: #161929;
  --bg-card: #1c2035;
  --bg-card-hover: #232842;
  --accent: #f0c040;
  --accent-hover: #ffd84d;
  --accent-dark: #c89e28;
  --red: #e84141;
  --green: #3ecf6a;
  --text-primary: #f0f0f5;
  --text-secondary: #9ea8c8;
  --text-muted: #5a6285;
  --border: #252a42;
  --gradient-gold: linear-gradient(135deg, #f0c040 0%, #c89e28 100%);
  --gradient-hero: linear-gradient(180deg, #0d0f1a 0%, #1a1040 50%, #0d0f1a 100%);
  --shadow-gold: 0 0 20px rgba(240, 192, 64, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap img { height: 48px; width: auto; }
.logo-wrap .logo-text {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }

.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(240, 192, 64, 0.1);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #0d0f1a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(240, 192, 64, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(240, 192, 64, 0.1); }

/* ===== MOBILE MENU ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  background: none;
  border: none;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== PROMO TICKER ===== */
.promo-ticker {
  background: linear-gradient(90deg, #1a0a2e, #0d1535, #1a0a2e);
  border-bottom: 1px solid rgba(240, 192, 64, 0.2);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.ticker-item .icon { font-size: 16px; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../guest_banner.webp');
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,26,0.4) 0%, rgba(13,15,26,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 192, 64, 0.15);
  border: 1px solid rgba(240, 192, 64, 0.4);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cta .btn-primary { font-size: 16px; padding: 14px 32px; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== BONUS CARDS ROW ===== */
.bonus-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.bonus-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bonus-bar-inner::-webkit-scrollbar { display: none; }

.bonus-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.bonus-chip:last-child { border-right: none; }
.bonus-chip:hover { background: rgba(240, 192, 64, 0.06); }

.bonus-chip-icon { font-size: 28px; }
.bonus-chip-title { font-size: 13px; font-weight: 700; color: var(--accent); }
.bonus-chip-desc { font-size: 12px; color: var(--text-muted); }

/* ===== SECTION ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon { font-size: 22px; }

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-link:hover { color: var(--accent-hover); }

/* ===== 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(--bg-card);
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover img { transform: scale(1.05); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,15,26,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-btn {
  background: var(--gradient-gold);
  color: #0d0f1a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  transition: var(--transition);
}

.game-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 10px;
  background: linear-gradient(0deg, rgba(13,15,26,0.95) 0%, transparent 100%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== LIVE WINS ===== */
.live-wins-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.live-wins-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.live-wins-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.4s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.live-wins-title { font-size: 16px; font-weight: 700; }
.live-wins-subtitle { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: hidden;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--border);
  animation: slideIn 0.4s ease;
  transition: var(--transition);
}

.win-item:hover { border-color: rgba(240, 192, 64, 0.3); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a1f5e, #1a3060);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.win-info { flex: 1; min-width: 0; }
.win-user { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-game { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

.win-amount.big { color: var(--accent); font-size: 18px; }

.win-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== INFO SECTION ===== */
.info-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.info-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.info-card:hover { border-color: rgba(240, 192, 64, 0.3); }

.info-card-icon { font-size: 32px; margin-bottom: 14px; }
.info-card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.info-card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== ARTICLE / SEO TEXT ===== */
.seo-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.seo-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.seo-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; margin-top: 24px; color: var(--accent); }
.seo-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.seo-section ol, .seo-section ul { padding-left: 20px; margin-bottom: 14px; }
.seo-section li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(180deg, #161229 0%, #0d0f1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 50px 20px;
  text-align: center;
}

.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero-icon { font-size: 52px; margin-bottom: 14px; }
.page-hero-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 12px; }
.page-hero-title .gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-desc { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 28px; }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.tab:hover, .tab.active {
  background: rgba(240, 192, 64, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== BONUS CARDS ===== */
.bonus-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.bonus-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-gold); }

.bonus-card-top {
  background: linear-gradient(135deg, #1a1040, #0d1535);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bonus-card-top::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(240, 192, 64, 0.08);
  border-radius: 50%;
}

.bonus-card-emoji { font-size: 44px; margin-bottom: 10px; }
.bonus-card-amount { font-size: 32px; font-weight: 900; color: var(--accent); }
.bonus-card-label { font-size: 13px; color: var(--text-secondary); }

.bonus-card-body { padding: 20px 24px; }
.bonus-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.bonus-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }

.bonus-card-terms { font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open { border-color: rgba(240, 192, 64, 0.4); }

.faq-question {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}

.faq-arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  background: #080a14;
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 20px; font-weight: 800; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.8; max-width: 280px; }

.footer-col-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-18 { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.age-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .burger { display: flex; margin-left: auto; }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 70px 0 0;
    background: var(--bg-primary);
    z-index: 99;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); background: rgba(240,192,64,0.08); }

  .hero-content { flex-direction: column; gap: 30px; padding: 40px 20px; }
  .hero-stats { gap: 20px; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .bonus-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}

/* ===== SEO LINKS BLOCK ===== */
.seo-links { margin-top: 36px; }
.seo-links h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.seo-links-list { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.seo-links-list li { list-style: none; font-size: 14px; color: var(--text-secondary); }
.seo-links-list a { color: var(--accent); font-weight: 600; transition: var(--transition); }
.seo-links-list a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ===== HERO BRAND SPAN ===== */
.hero-brand { font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }

/* ===== UTILS ===== */
.text-gold { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-hot { background: rgba(232, 65, 65, 0.2); color: var(--red); }
.badge-new { background: rgba(62, 207, 106, 0.2); color: var(--green); }
.badge-top { background: rgba(240, 192, 64, 0.2); color: var(--accent); }

/* ===== NOTIFICATION TOAST ===== */
#win-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 320px;
}

.toast-item {
  background: var(--bg-card);
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.4s ease;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

.toast-item.removing { animation: toastOut 0.3s ease forwards; }

.toast-avatar { font-size: 22px; }
.toast-body { flex: 1; min-width: 0; }
.toast-name { font-size: 13px; font-weight: 700; }
.toast-win { font-size: 12px; color: var(--text-muted); }
.toast-win span { color: var(--green); font-weight: 700; }
.toast-amount { font-size: 17px; font-weight: 800; color: var(--accent); flex-shrink: 0; }
