@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Unbounded:wght@700;900&display=swap');

:root {
  --bg-0: #07071a;
  --bg-1: #0d0d22;
  --bg-2: #12122c;
  --bg-3: #1a1a3c;
  --bg-4: #232350;
  --gold: #f0a500;
  --gold-light: #ffc94d;
  --purple: #7b2fff;
  --purple-dark: #5200cc;
  --red: #e63946;
  --green: #2ecc71;
  --text: #ffffff;
  --text-dim: #9999bb;
  --text-muted: #55557a;
  --border: rgba(255,255,255,0.07);
  --radius: 10px;
  --radius-lg: 16px;
  --tr: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ── HEADER ─────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,26,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 62px;
  gap: 16px;
}
.logo { height: 38px; flex-shrink: 0; }
.header-nav {
  flex: 1;
  display: flex;
  overflow-x: auto;
  gap: 2px;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: var(--tr);
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active { background: var(--purple); color: #fff; }
.nav-icon { font-size: 15px; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-login { background: var(--bg-3); color: var(--text); }
.btn-login:hover { background: var(--bg-4); }
.btn-register {
  background: linear-gradient(135deg, #7b2fff 0%, #e63946 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(123,47,255,0.35);
}
.btn-register:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('guest_banner.webp') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(7,7,26,0.92) 0%,
    rgba(7,7,26,0.65) 55%,
    rgba(7,7,26,0.15) 100%);
}
.hero-content {
  position: relative;
  padding: 48px 24px;
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240,165,0,0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 10px;
}
.hero-title .gold { color: var(--gold); }
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}
.btn-hero {
  padding: 15px 36px;
  background: linear-gradient(135deg, #f0a500 0%, #ff6b35 100%);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
  box-shadow: 0 6px 28px rgba(240,165,0,0.45);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(240,165,0,0.6); }

/* ── CONTAINER & SECTIONS ─────────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-count {
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.view-all { font-size: 13px; color: var(--purple); font-weight: 500; transition: var(--tr); }
.view-all:hover { color: var(--text); }

/* ── BONUS CARDS ─────────────────────────────────── */
.bonus-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.bonus-scroll::-webkit-scrollbar { display: none; }
.bonus-card {
  flex-shrink: 0;
  width: 190px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--tr);
}
.bonus-card:hover { transform: translateY(-4px); border-color: rgba(123,47,255,0.5); box-shadow: 0 8px 32px rgba(123,47,255,0.2); }
.bonus-card-img {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}
.bonus-card-body { padding: 12px; }
.bonus-card-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.bonus-card-desc { font-size: 11px; color: var(--text-dim); margin-top: 5px; }

/* ── GAME GRID ────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 16px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--bg-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.game-card:hover .game-overlay { opacity: 1; }
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game-name { font-size: 11px; font-weight: 600; line-height: 1.3; }
.game-play-btn {
  margin-top: 7px;
  padding: 6px;
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  display: block;
  transition: var(--tr);
}
.game-play-btn:hover { background: var(--purple-dark); }
.game-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-hot { background: var(--red); color: #fff; }
.badge-new { background: var(--green); color: #000; }
.badge-top { background: var(--gold); color: #000; }

/* ── LIVE WINS ───────────────────────────────────── */
.live-wins-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.wins-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 14px;
}
.wins-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.6s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.wins-feed {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.win-entry {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.win-entry.new {
  animation: slideDown 0.4s ease;
  border-color: rgba(46,204,113,0.25);
  background: rgba(46,204,113,0.04);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.win-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #e63946);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
}
.win-info { flex: 1; min-width: 0; }
.win-player { font-weight: 700; font-size: 13px; }
.win-game { color: var(--text-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount { font-weight: 800; color: var(--gold); white-space: nowrap; font-size: 14px; }

/* ── TABS ────────────────────────────────────────── */
.tabs-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 8px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--tr);
}
.tab-btn:hover { background: var(--bg-3); color: var(--text); }
.tab-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero {
  padding: 44px 16px 36px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero p { color: var(--text-dim); font-size: 15px; max-width: 580px; line-height: 1.6; }

/* ── BONUSES PAGE ────────────────────────────────── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding: 0 16px 40px;
}
.bonus-item {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--tr);
}
.bonus-item:hover { border-color: rgba(240,165,0,0.4); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(240,165,0,0.1); }
.bonus-item-header {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
  text-align: center;
}
.bonus-item-icon { font-size: 44px; margin-bottom: 10px; }
.bonus-item-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.bonus-item-label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.bonus-item-body { padding: 20px 20px 24px; }
.bonus-item-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bonus-item-body li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.4;
}
.bonus-item-body li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.bonus-claim-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  transition: var(--tr);
}
.bonus-claim-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── LIVE CASINO PAGE ────────────────────────────── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 16px 40px;
}
.live-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--tr);
}
.live-card:hover { border-color: rgba(230,57,70,0.5); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(230,57,70,0.15); }
.live-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-badge-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.live-card-body { padding: 14px; }
.live-card-title { font-size: 14px; font-weight: 700; }
.live-card-info { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.live-card-players {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green);
  margin-top: 8px;
  font-weight: 600;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 44px 16px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  max-width: 1300px;
  margin: 0 auto 36px;
}
.footer-brand .logo { height: 36px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--text-muted); transition: var(--tr); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: var(--text-muted); line-height: 1.65; max-width: 700px; }
.footer-legal a { color: var(--text-dim); text-decoration: underline; }
.footer-age {
  width: 38px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.footer-links-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.footer-links-row a { font-size: 12px; color: var(--text-muted); transition: var(--tr); }
.footer-links-row a:hover { color: var(--text); }

/* ── SEARCH & UTILS ──────────────────────────────── */
.search-wrap {
  padding: 0 16px 16px;
  max-width: 360px;
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--tr);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2355557a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.search-input:focus { border-color: rgba(123,47,255,0.5); background-color: var(--bg-3); }
.search-input::placeholder { color: var(--text-muted); }

/* ── SEO CONTENT SECTION ─────────────────────────── */
.seo-content {
  padding: 44px 16px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.seo-section { margin-bottom: 36px; }
.seo-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 13px;
  color: var(--text);
  line-height: 1.3;
}
.seo-section p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── FAQ ─────────────────────────────────────────── */
.seo-faq { margin-bottom: 36px; }
.seo-faq > h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item.open { border-color: rgba(123,47,255,0.35); }
.faq-question {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  transition: background var(--tr);
}
.faq-question:hover { background: var(--bg-3); }
.faq-toggle {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── INTERNAL LINKING ─────────────────────────────── */
.seo-links {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 40px;
}
.seo-links-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.seo-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.seo-link-pill {
  padding: 7px 15px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 5px;
}
.seo-link-pill:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* ── HERO PAGE TITLE (index) ─────────────────────── */
.hero-page-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.hero-bonus-display {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 10px;
}

/* ── INFO TEXT (legacy, keep for compat) ─────────── */
.info-section {
  padding: 36px 16px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.info-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 28px;
}
.info-section p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 10px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .header-top { padding: 0 12px; height: 56px; }
  .btn { padding: 7px 14px; font-size: 12px; }
  .hero-content { padding: 32px 16px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 7px; }
  .bonus-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: 26px; }
  .btn-hero { padding: 12px 24px; font-size: 14px; }
}
