/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:      #0d0b1a;
  --bg-card:      #13102a;
  --bg-card2:     #1a1633;
  --accent:       #c8973a;
  --accent-light: #f0b94a;
  --accent-glow:  rgba(200,151,58,.35);
  --pink:         #e0357a;
  --purple:       #6c3fc5;
  --purple-light: #9b6ef3;
  --text:         #e8e0ff;
  --text-muted:   #8a7aad;
  --border:       rgba(255,255,255,.08);
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,.5);
  --font:         'Montserrat', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-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; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* === HEADER === */
.site-header {
  position: relative;
  background: url('../header-bg.webp') center/cover no-repeat;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,11,26,.55) 0%,
    rgba(13,11,26,.25) 50%,
    rgba(13,11,26,.9) 85%,
    #0d0b1a 100%);
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TOP BAR === */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  gap: 16px;
}

.logo img { height: 48px; width: auto; }

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-nav a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.top-bar-nav a:hover { color: var(--accent-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #0d0b1a; }

.btn-primary {
  background: linear-gradient(135deg, #e0357a, #c82060);
  color: #fff;
  box-shadow: 0 4px 18px rgba(224,53,122,.4);
}
.btn-primary:hover { box-shadow: 0 4px 28px rgba(224,53,122,.65); transform: translateY(-1px); }

.auth-btns { display: flex; gap: 10px; }

/* === MAIN NAV === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
  cursor: pointer;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  background: rgba(108,63,197,.25);
  color: var(--text);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-item .nav-icon {
  width: 22px; height: 22px;
  object-fit: contain;
}

/* === HERO AREA === */
.hero-area {
  position: relative; z-index: 1;
  padding: 20px 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
}

.hero-content { max-width: 550px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,151,58,.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* === FEATURES STRIP === */
.features-strip {
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.features-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
  cursor: default;
}
.feature-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200,151,58,.2), rgba(108,63,197,.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-text .ft-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.feature-text .ft-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent-light);
}

/* === 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;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.link-all {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  transition: all .2s;
}
.link-all:hover { background: var(--accent); color: #0d0b1a; }

/* === GAME CARDS === */
.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-card2);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  group: true;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(200,151,58,.3);
  border-color: var(--accent);
}

.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-card:hover img { transform: scale(1.06); }

.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,26,.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-title {
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.btn-play {
  background: linear-gradient(135deg, var(--pink), #a01850);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  align-self: flex-start;
}
.btn-play:hover { box-shadow: 0 4px 16px rgba(224,53,122,.5); }

/* === LIVE WINS === */
.wins-section {
  background: linear-gradient(180deg, #0d0b1a 0%, rgba(108,63,197,.06) 50%, #0d0b1a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wins-ticker-wrap {
  overflow: hidden;
  position: relative;
}

.wins-ticker-wrap::before,
.wins-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.wins-ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.wins-ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.wins-ticker {
  display: flex;
  gap: 14px;
  transition: transform .6s ease;
  padding: 4px 0;
}

.win-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .3s;
}
.win-card.new-win { border-color: var(--accent); animation: newWin .6s ease; }

@keyframes newWin {
  0%   { box-shadow: 0 0 0 rgba(200,151,58,0); }
  50%  { box-shadow: 0 0 24px rgba(200,151,58,.5); }
  100% { box-shadow: 0 0 0 rgba(200,151,58,0); }
}

.win-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.win-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.win-player { font-size: .82rem; font-weight: 700; }
.win-game   { font-size: .73rem; color: var(--text-muted); }

.win-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-light);
}
.win-amount.big { color: #4dff9e; }

.win-time {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === BONUSES GRID === */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.bonus-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.bonus-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}

.bonus-icon { font-size: 2.8rem; margin-bottom: 14px; }
.bonus-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.bonus-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.bonus-value {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 16px;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  gap: 16px;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent-light); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
  font-size: .7rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 22px 20px; }

/* === APK BANNER === */
.apk-banner {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.apk-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,63,197,.12), rgba(200,151,58,.08));
  pointer-events: none;
}
.apk-banner-text { position: relative; }
.apk-banner-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.apk-banner-text p  { color: var(--text-muted); font-size: .88rem; }
.apk-icon { font-size: 4rem; position: relative; }

/* === FOOTER === */
.site-footer {
  background: rgba(0,0,0,.35);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo { margin-bottom: 14px; }
.footer-about .logo img { height: 38px; }
.footer-about p { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }

.footer-col-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: .83rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: var(--text-muted); }

.age-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* === SOCIAL BTNS === */
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all .2s;
}
.social-btn:hover { background: var(--purple); border-color: var(--purple); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: url('../header-bg.webp') center/cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,26,.6) 0%, #0d0b1a 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.page-hero-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
}
.page-hero-inner h1 span {
  background: linear-gradient(135deg, var(--accent-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LIVE DEALER CARDS === */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.live-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.live-card:hover { border-color: var(--pink); transform: translateY(-3px); }

.live-card-img {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1633, #2a1060);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.live-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e0357a;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.live-card-info { padding: 14px 16px; }
.live-card-title { font-weight: 700; margin-bottom: 4px; }
.live-card-players { font-size: .78rem; color: var(--text-muted); }
.live-card-players span { color: #4dff9e; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* === TOAST === */
#win-toast {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-card2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 240px;
  max-width: 300px;
  box-shadow: var(--shadow);
  animation: toastIn .4s ease, toastOut .4s ease 4.6s forwards;
  pointer-events: none;
}

@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-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.toast-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.toast-name { font-size: .82rem; font-weight: 700; }
.toast-game { font-size: .72rem; color: var(--text-muted); }
.toast-amount {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-light);
}
.toast-amount.big { color: #4dff9e; }

/* === UTILITY === */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mt-0 { margin-top: 0; }
.gap-section { margin-top: 48px; }

/* === SEO TEXT === */
.seo-section {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.seo-section h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--accent-light); }
.seo-section h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.seo-section p  { font-size: .85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.seo-section ol { padding-left: 20px; }
.seo-section ol li { font-size: .85rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }

/* === MOBILE === */
@media (max-width: 900px) {
  .features-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .top-bar-nav { display: none; }
  .main-nav { gap: 2px; }
  .nav-item { padding: 9px 10px; font-size: .78rem; }
  .hero-title { font-size: 1.9rem; }
  .features-strip-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .apk-banner { flex-direction: column; text-align: center; }
  .apk-banner::after { display: none; }
}
