/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #f5c518;
  --gold2:   #e0a800;
  --green:   #1db954;
  --red:     #e03c3c;
  --dark:    #0d0d14;
  --card-bg: rgba(18, 18, 30, 0.92);
  --nav-bg:  rgba(10, 10, 18, 0.97);
  --text:    #e8e8f0;
  --muted:   #8888aa;
  --radius:  12px;
  --shadow:  0 4px 32px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ========== BACKGROUND ========== */
.bg-wrap {
  position: fixed; inset: 0; z-index: -1;
  background: url('../background.webp') center/cover no-repeat;
}
.bg-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,20,.85) 0%, rgba(13,13,20,.95) 100%);
}

/* ========== WINS TICKER ========== */
.wins-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(90deg, #1a0a00, #2a1400, #1a0a00);
  border-bottom: 2px solid var(--gold);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.wins-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.wins-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 0 28px;
  color: var(--text);
}

.wins-ticker__item .player { color: var(--gold); font-weight: 700; }
.wins-ticker__item .game   { color: #aaa; }
.wins-ticker__item .amount { color: var(--green); font-weight: 700; }
.wins-ticker__item .icon   { font-size: 14px; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,197,24,.2);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.navbar__logo { height: 46px; flex-shrink: 0; }
.navbar__logo img { height: 100%; width: auto; object-fit: contain; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 16px;
}

.navbar__nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}
.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--gold);
  background: rgba(245,197,24,.1);
}

.navbar__spacer { flex: 1; }

.navbar__cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(245,197,24,.5);
  color: var(--gold);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(245,197,24,.08); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
}
.btn-gold:hover { background: linear-gradient(135deg, #ffd700, var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,197,24,.4); }

.btn-green {
  background: linear-gradient(135deg, #1db954, #16a34a);
  color: #fff;
}
.btn-green:hover { background: linear-gradient(135deg, #22d460, #1db954); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,185,84,.4); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ========== PAGE WRAPPER ========== */
.page-content {
  padding-top: 104px; /* ticker 36 + nav 68 */
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}

.hero__inner {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.35);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__title span { color: var(--gold); }

.hero__sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245,197,24,.15), rgba(245,197,24,.05));
  border: 1px solid rgba(245,197,24,.3);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text);
  margin-top: 24px;
}
.hero__bonus-tag strong { color: var(--gold); font-size: 15px; }

/* ========== FEATURES BAR ========== */
.features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(245,197,24,.1);
  border-top: 1px solid rgba(245,197,24,.15);
  border-bottom: 1px solid rgba(245,197,24,.15);
  margin: 0 0 48px;
}

.features-bar__item {
  background: var(--card-bg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.features-bar__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(245,197,24,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.features-bar__text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.features-bar__text span {
  font-size: 12px;
  color: var(--muted);
}

/* ========== SECTION ========== */
.section { padding: 0 24px 60px; max-width: 1280px; margin: 0 auto; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section__title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title span { color: var(--gold); }

.tab-bar {
  display: flex;
  gap: 4px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: none;
  transition: all .2s;
}
.tab-btn:hover { background: rgba(245,197,24,.1); color: var(--gold); }
.tab-btn.active { background: rgba(245,197,24,.18); color: var(--gold); }

/* ========== GAMES GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 3/4;
}

.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 32px rgba(245,197,24,.3); }

.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .3s;
}

.game-card:hover img { filter: brightness(1.1); }

.game-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity .25s;
}

.game-card:hover .game-card__overlay { opacity: 1; }

.game-card__name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold);
  color: #1a0a00;
  border-radius: 6px;
  padding: 7px;
  font-size: 12px;
  font-weight: 700;
}

.game-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-card__badge.hot { background: var(--gold); color: #1a0a00; }
.game-card__badge.new { background: var(--green); }

/* ========== LIVE SECTION ========== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.live-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.live-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.live-card__img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.live-card__img img { width: 100%; height: 100%; object-fit: cover; }

.live-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.live-card__body { padding: 14px 16px; }
.live-card__name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.live-card__info { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.live-card__cta { padding: 12px 16px 16px; }

/* ========== BONUSES ========== */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bonus-card {
  background: var(--card-bg);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.bonus-card:hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(245,197,24,.15); }

.bonus-card__icon { font-size: 36px; }

.bonus-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.bonus-card__amount {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bonus-card__desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

.bonus-card__terms { font-size: 11px; color: #666; margin-top: auto; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: rgba(245,197,24,.05); }

.faq-chevron {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 18px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 48px 24px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-hero__title span { color: var(--gold); }
.page-hero__sub { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto; }

/* ========== WINS POPUP ========== */
.win-popup {
  position: fixed;
  bottom: 24px; left: 24px;
  background: rgba(18,18,30,.97);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 320px;
  z-index: 999;
  transform: translateX(-120%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 24px rgba(29,185,84,.3);
}

.win-popup.show { transform: translateX(0); }

.win-popup__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.win-popup__text { flex: 1; }
.win-popup__text .name { font-size: 13px; font-weight: 700; color: var(--gold); }
.win-popup__text .game { font-size: 12px; color: var(--muted); }
.win-popup__text .amount { font-size: 15px; font-weight: 800; color: var(--green); }

/* ========== FOOTER ========== */
footer {
  background: rgba(8,8,14,.98);
  border-top: 1px solid rgba(245,197,24,.12);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: #555; }

.footer-18 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}

.age-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #555;
  flex-shrink: 0;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar__nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(245,197,24,.15);
  }
  .navbar__nav.open { display: flex; }
  .navbar__nav a { padding: 12px 16px; width: 100%; }
  .navbar__spacer { display: none; }
  .navbar__cta { gap: 6px; }
  .btn { padding: 8px 14px; font-size: 13px; }
}

/* ========== SCROLL BAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(245,197,24,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
