/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080c18;
  --bg2:       #0d1224;
  --bg3:       #131829;
  --card:      #151c30;
  --card2:     #1a2238;
  --border:    rgba(255,255,255,.07);
  --gold:      #f5c518;
  --gold2:     #ffa800;
  --gold-glow: rgba(245,197,24,.25);
  --purple:    #7c3aed;
  --green:     #22c55e;
  --red:       #ef4444;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }

/* ========== TICKER ========== */
.ticker-wrap {
  background: linear-gradient(90deg, var(--purple) 0%, #4f46e5 100%);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  z-index: 100;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.ticker-item .ico { font-size: 16px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,12,24,.95);
  backdrop-filter: blur(16px);
  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: 32px;
}
.logo {
  height: 44px;
  flex-shrink: 0;
}
.logo img { height: 100%; width: auto; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: var(--card2);
}
.nav a.active { color: var(--gold); }

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ========== BUTTONS ========== */
.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: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #000;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 20px var(--gold-glow); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 18px 48px; font-size: 18px; border-radius: var(--radius); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../guest_banner.webp') center/cover no-repeat;
  filter: brightness(.45);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,24,.92) 0%, rgba(8,12,24,.5) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,.15);
  border: 1px solid rgba(245,197,24,.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== FEATURES STRIP ========== */
.features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.features-inner::-webkit-scrollbar { display: none; }
.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.feat-icon {
  width: 40px; height: 40px;
  background: var(--card2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feat-label { font-size: 13px; color: var(--muted); }
.feat-val { font-size: 15px; font-weight: 700; color: #fff; }

/* ========== SECTION ========== */
.section { padding: 60px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ========== GAME GRID ========== */
.game-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(--card);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 3/4;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.game-card:hover img { transform: scale(1.06); }
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s ease;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-overlay .play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.game-badge.hot { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.game-badge.new { background: linear-gradient(90deg, #22c55e, #16a34a); }

/* ========== LIVE WINS ========== */
.wins-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: hidden;
}
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  animation: slideIn .4s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.win-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.win-info { flex: 1; min-width: 0; }
.win-user { font-size: 13px; font-weight: 600; color: #fff; }
.win-game { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}
.win-time { font-size: 11px; color: var(--muted); }

/* ========== PROMO CARDS ========== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.promo-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
}
.promo-icon { font-size: 36px; margin-bottom: 14px; }
.promo-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.promo-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.promo-value { font-size: 28px; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.promo-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

/* ========== APP BANNER ========== */
.app-banner {
  background: linear-gradient(135deg, var(--card2) 0%, #0f1831 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  position: relative;
}
.app-banner::after {
  content: '📱';
  position: absolute;
  right: -20px;
  font-size: 220px;
  opacity: .06;
  line-height: 1;
  bottom: -30px;
}
.app-banner-content { flex: 1; }
.app-banner h2 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.app-banner p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ========== SEO SECTION ========== */
.seo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.seo-block h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.seo-block p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand { flex: 0 0 200px; }
.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex: 1; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-age {
  width: 32px; height: 32px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* ========== PAGE HEADER ========== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero p { font-size: 16px; color: var(--muted); max-width: 600px; }

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-q .arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: transform .25s ease;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.faq-a-inner ul { margin: 10px 0 0 16px; list-style: disc; }
.faq-a-inner li { margin-bottom: 6px; }

/* ========== BONUSES PAGE ========== */
.bonus-table {
  width: 100%;
  border-collapse: collapse;
}
.bonus-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.bonus-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bonus-table tr:last-child td { border-bottom: none; }
.bonus-table tr:hover td { background: rgba(255,255,255,.02); }

/* ========== LIVE PAGE ========== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.live-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.live-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.live-thumb {
  aspect-ratio: 16/9;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 4px;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.live-info { padding: 14px; }
.live-info h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.live-info p { font-size: 12px; color: var(--muted); }
.live-players { font-size: 12px; color: var(--green); margin-top: 8px; }

/* ========== WINS LAYOUT ========== */
@media (max-width: 900px) {
  .wins-layout { grid-template-columns: 1fr !important; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card2); border-radius: 3px; }

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: toastIn .3s ease;
  pointer-events: auto;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.exit { animation: toastOut .3s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}
.toast-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-user { font-size: 12px; font-weight: 700; color: #fff; }
.toast-text { font-size: 11px; color: var(--muted); }
.toast-amount { font-size: 14px; font-weight: 800; color: var(--green); white-space: nowrap; }

/* ========== COUNTER WIDGET ========== */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.counter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.counter-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.counter-label { font-size: 13px; color: var(--muted); }

/* ========== SEO ARTICLE ========== */
.seo-article { max-width: 1240px; }
.seo-article__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
}
.seo-article__lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 860px;
  margin-bottom: 36px;
}
.seo-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(245,197,24,.35);
}
.seo-link:hover { text-decoration-color: var(--gold); }
.seo-faq { margin-top: 48px; }
.seo-faq .seo-article__title { margin-bottom: 20px; }
.seo-nav { margin-top: 48px; }
.seo-nav .seo-article__title { margin-bottom: 16px; }
.seo-nav__list { display: flex; flex-direction: column; gap: 10px; }
.seo-nav__link {
  font-size: 14px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.seo-nav__link::before {
  content: '→';
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
.seo-nav__link:hover { color: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner { gap: 16px; }
  .nav { display: none; }
  .hero { min-height: 340px; }
  .app-banner { padding: 28px; gap: 20px; flex-direction: column; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-xl { width: 100%; }
  .counters { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav toggle */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg);
    z-index: 150;
    padding: 20px;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); background: var(--card); }
}
