/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d1a;
  --bg2:       #12122a;
  --bg3:       #1a1a35;
  --gold:      #f0c040;
  --gold2:     #d4920c;
  --green:     #1aff6e;
  --green2:    #00c851;
  --red:       #ff4040;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --border:    rgba(240,192,64,0.18);
  --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);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--gold);
  background: rgba(240,192,64,0.1);
}

.header-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--green2), #00a040);
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,200,81,0.45);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(240,192,64,0.5);
}

/* hamburger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }

/* ========== TICKER ========== */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 40px;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.ticker-item::before { content: '★'; color: var(--gold2); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== HERO / BANNER ========== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('guest_banner.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45) saturate(1.3);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,26,0.92) 40%, transparent 100%);
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a0a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
}
.hero-text {
  font-size: 15px;
  color: #b0b0cc;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== FEATURES CARDS ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.feature-icon { font-size: 36px; margin-bottom: 10px; }
.feature-title { font-weight: 700; font-size: 14px; color: var(--gold); margin-bottom: 4px; }
.feature-desc { font-size: 12px; color: var(--muted); }

/* ========== SECTION ========== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.section-title span { color: var(--gold); }
.see-all {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  transition: background .2s;
}
.see-all:hover { background: rgba(240,192,64,0.1); }

/* ========== GAMES GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
  aspect-ratio: 3/4;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border-color: var(--gold);
}
.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(to top, rgba(10,5,30,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-play {
  width: 100%;
  text-align: center;
  background: var(--green2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.game-play:hover { background: #00a040; }
.game-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.game-label.hot { background: var(--gold2); color: #1a0a00; }
.game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 10px;
  background: linear-gradient(to top, rgba(10,5,30,0.95), transparent);
  font-size: 12px;
  font-weight: 600;
}

/* ========== LIVE WINS ========== */
.wins-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 20px 0;
}
.wins-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.wins-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wins-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.wins-list { display: flex; flex-direction: column; gap: 8px; }
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  animation: slideIn .4s ease;
}
@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, var(--gold2), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.win-user { font-size: 13px; font-weight: 700; flex: 1; }
.win-game { font-size: 12px; color: var(--muted); }
.win-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
}
.win-time { font-size: 11px; color: var(--muted); }

/* ========== PROMO BANNER ========== */
.promo-banner {
  background: linear-gradient(135deg, #1e1040 0%, #0d0a30 50%, #1a0820 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(240,192,64,0.15), transparent 70%);
}
.promo-text h2 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.promo-text h2 span { color: var(--gold); }
.promo-text p { color: var(--muted); font-size: 14px; }

/* ========== APP DOWNLOAD BLOCK ========== */
.app-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
}
.app-icon { font-size: 48px; }
.app-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.app-text p { font-size: 13px; color: var(--muted); }
.app-text a {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--green2), #00a040);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 50px;
}

/* ========== SEO TEXT ========== */
.seo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}
.seo-inner {
  max-width: 960px;
  margin: 0 auto;
}
.seo-inner h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.seo-inner h3 { font-size: 18px; font-weight: 700; color: var(--gold); margin: 28px 0 10px; }
.seo-inner p { font-size: 14px; color: #aaa; line-height: 1.8; margin-bottom: 12px; }
.seo-inner ol, .seo-inner ul { margin-left: 20px; margin-bottom: 14px; }
.seo-inner li { font-size: 14px; color: #aaa; line-height: 1.8; margin-bottom: 6px; }

/* ========== FOOTER ========== */
.footer {
  background: #080812;
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 260px; }
.footer-nav h4 { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.footer-nav a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  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 40px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { font-size: 16px; color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ========== 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 var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.bonus-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.bonus-card-top {
  background: linear-gradient(135deg, #1e1040, #2a0830);
  padding: 28px;
  text-align: center;
  position: relative;
}
.bonus-amount {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.bonus-name { font-size: 14px; color: var(--muted); }
.bonus-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.bonus-card-body { padding: 20px; }
.bonus-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bonus-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.bonus-terms { font-size: 11px; color: #666; margin-top: 8px; }

/* ========== FAQ ========== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg2);
}
.faq-q {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  gap: 12px;
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  transition: transform .3s;
  color: var(--gold);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 20px; }

/* ========== LIVE TABLE ========== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.live-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .22s, border-color .22s;
}
.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.live-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-badge::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.live-card-body { padding: 14px; }
.live-card-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.live-card-body p { font-size: 12px; color: var(--muted); }
.live-limit { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; }
.live-limit span { color: var(--gold); font-weight: 700; }

/* ========== SEO ARTICLE EXTRAS ========== */
.seo-article h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.seo-article h2:first-child { margin-top: 0; }

.seo-faq { margin-top: 36px; }
.seo-faq h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

.seo-links { margin-top: 36px; padding: 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); }
.seo-links h2 { font-size: 16px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.seo-links__list { display: flex; flex-direction: column; gap: 8px; }
.seo-links__list li { font-size: 13px; color: var(--muted); }
.seo-links__list a { color: var(--gold); font-weight: 600; }
.seo-links__list a:hover { text-decoration: underline; }

.seo-disclaimer { margin-top: 28px; font-size: 12px; color: #555; }

/* ========== UTILITIES ========== */
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(13,13,26,0.98);
    backdrop-filter: blur(16px);
    padding: 24px 20px;
    gap: 8px;
    z-index: 99;
  }
  .nav.open a { font-size: 18px; padding: 12px 16px; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
  .app-block { flex-direction: column; text-align: center; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 480px) {
  .hero { min-height: 320px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-actions .btn-gold { padding: 12px 24px; font-size: 14px; }
}
