/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:      #0d0b18;
  --bg-card:      #16132a;
  --bg-card2:     #1e1a35;
  --accent:       #c9a227;
  --accent2:      #e9c44a;
  --purple:       #7b3fe4;
  --purple-light: #9d5ff5;
  --pink:         #e23c7a;
  --text:         #e8e0f5;
  --text-muted:   #8b7faa;
  --border:       rgba(123,63,228,0.25);
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 30px rgba(0,0,0,0.5);
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,11,24,0.92);
  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: 24px;
}

.header-logo {
  flex-shrink: 0;
  height: 42px;
  display: flex;
  align-items: center;
}
.header-logo img { height: 100%; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(123,63,228,0.15);
}
.nav-link.active { color: var(--accent2); }

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,63,228,0.4);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(123,63,228,0.55); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #0d0b18;
  font-weight: 700;
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../header-bg.webp') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,11,24,0.9) 40%, rgba(13,11,24,0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(123,63,228,0.2);
  border: 1px solid rgba(123,63,228,0.4);
  border-radius: 30px;
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-title span { color: var(--accent2); }

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn { padding: 13px 28px; font-size: 15px; }

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-image img {
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 20px 60px rgba(123,63,228,0.4));
  animation: float 4s ease-in-out infinite;
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(123,63,228,0.08); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123,63,228,0.3), rgba(226,60,122,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 14px; font-weight: 600; }
.feature-text span { font-size: 12px; color: var(--text-muted); }

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.3px;
}
.section-title span { color: var(--accent2); }

.section-link {
  font-size: 14px;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent2); gap: 10px; }

/* ===== GAMES GRID ===== */
.games-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 8px 32px rgba(123,63,228,0.3); }

.game-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.game-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-card2) 0%, rgba(123,63,228,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,24,0.95) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
}
.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.game-card-provider {
  font-size: 11px;
  color: var(--text-muted);
}
.game-card-play-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}
.game-card-play-btn:hover { opacity: 0.9; }

.game-card-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.game-card-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #0d0b18;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== WINS TICKER ===== */
.wins-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.wins-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wins-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wins-dot {
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1s infinite;
}
.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-card), transparent); }
.wins-ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-card), transparent); }

.wins-ticker {
  display: flex;
  gap: 0;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wins-ticker::-webkit-scrollbar { display: none; }

.win-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 220px;
  margin-right: 12px;
  flex-shrink: 0;
  animation: slideIn 0.4s ease;
}
.win-card.new-win { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 16px rgba(34,197,94,0.15); }

.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: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.win-info { flex: 1; min-width: 0; }
.win-player { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-game  { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount { font-size: 14px; font-weight: 700; color: #22c55e; white-space: nowrap; }
.win-amount.big { color: var(--accent2); font-size: 16px; }

/* ===== APK BANNER ===== */
.apk-banner {
  background: linear-gradient(135deg, var(--bg-card2) 0%, rgba(123,63,228,0.15) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  margin: 60px auto;
  max-width: 1280px;
  margin-left: 20px;
  margin-right: 20px;
}
.apk-text { flex: 1; }
.apk-text h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; }
.apk-text p  { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.apk-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.apk-image { flex-shrink: 0; max-width: 280px; }
.apk-image img { width: 100%; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.bonus-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 10px 40px rgba(123,63,228,0.25); }

.bonus-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.bonus-card-img-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}

.bonus-card-body { padding: 20px; }
.bonus-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.tag-welcome { background: rgba(226,60,122,0.2); color: var(--pink); }
.tag-reload  { background: rgba(123,63,228,0.2); color: var(--purple-light); }
.tag-cashback{ background: rgba(34,197,94,0.15); color: #22c55e; }
.tag-vip     { background: rgba(201,162,39,0.2); color: var(--accent2); }
.tag-free    { background: rgba(34,197,94,0.15); color: #22c55e; }

.bonus-card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.bonus-card-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.bonus-card-value { font-size: 26px; font-weight: 800; color: var(--accent2); margin-bottom: 18px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.faq-question:hover { color: var(--accent2); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: var(--transition);
  color: var(--purple-light);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent2); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 20px; }

/* ===== LIVE CASINO GRID ===== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.live-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}
.live-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 8px 32px rgba(226,60,122,0.25); }
.live-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.live-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(226,60,122,0.15), rgba(123,63,228,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.live-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #e23c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.live-badge-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
.live-card-body { padding: 12px 14px; }
.live-card-name  { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.live-card-players { font-size: 12px; color: var(--text-muted); }

/* ===== SEO TEXT ===== */
.seo-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.seo-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}
.seo-inner h1 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.seo-inner h3 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; color: var(--accent2); }
.seo-inner p  { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.seo-inner ol { padding-left: 20px; }
.seo-inner li { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: #0a0815;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-logo img { height: 100%; width: auto; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 280px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent2); padding-left: 4px; }

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--purple); border-color: var(--purple); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-age {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-disclaimer { font-size: 12px; color: var(--text-muted); opacity: 0.6; max-width: 600px; text-align: center; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(to bottom, rgba(123,63,228,0.1), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { font-size: 17px; color: var(--text-muted); max-width: 560px; }

/* ===== BURGER MENU ===== */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(13,11,24,0.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 17px; padding: 14px 16px; }
.mobile-menu .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  .hero-image { display: none; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-right: 1px solid var(--border); }
  .apk-banner { flex-direction: column; padding: 28px 20px; }
  .apk-image { max-width: 200px; align-self: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 480px) {
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  .header-actions .btn-outline { display: none; }
}
