/* =============================================
   EVA CASINO — Shared Styles
   ============================================= */

:root {
  --bg-deep:     #07071a;
  --bg-card:     #0f1030;
  --bg-panel:    #12143a;
  --accent:      #a855f7;
  --accent-glow: #c084fc;
  --gold:        #f59e0b;
  --gold-light:  #fcd34d;
  --text:        #e8e8ff;
  --text-muted:  #8888bb;
  --border:      #2a2a5a;
  --btn-grad:    linear-gradient(135deg, #a855f7, #7c3aed);
  --btn-gold:    linear-gradient(135deg, #f59e0b, #d97706);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(168,85,247,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7,7,26,.98) 0%, rgba(7,7,26,.92) 100%);
  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;
}

.logo-link img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(168,85,247,.15);
}
.nav-link.active { color: var(--accent-glow); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn:hover { opacity: .9; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent-glow);
}
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 4px 20px rgba(168,85,247,.4); }
.btn-gold    { background: var(--btn-gold); color: #1a1a00; box-shadow: 0 4px 20px rgba(245,158,11,.4); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* =============================================
   HERO BANNER
   ============================================= */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,7,26,.85) 0%, rgba(80,30,120,.35) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(168,85,247,.2);
  border: 1px solid var(--accent);
  color: var(--accent-glow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   FEATURE STRIP
   ============================================= */
.features {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(124,58,237,.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text span   { font-size: 12px; color: var(--text-muted); }

/* =============================================
   SECTION
   ============================================= */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--btn-grad);
  border-radius: 2px;
}

/* =============================================
   GAMES GRID
   ============================================= */
.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;
  aspect-ratio: 3/4;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(168,85,247,.4); }

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .3s;
}
.game-card:hover img { filter: brightness(.7); }

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,7,26,.95) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .2s;
}
.game-card:hover .game-overlay { opacity: 1; }

.game-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.game-play-btn {
  width: 100%;
  padding: 8px;
  background: var(--btn-grad);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.game-play-btn:hover { opacity: .85; }

/* =============================================
   LIVE WINS TICKER
   ============================================= */
.wins-ticker-wrap {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.wins-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wins-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.wins-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.wins-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  animation: slideIn .4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.win-info { flex: 1; min-width: 0; }
.win-name { font-size: 13px; font-weight: 700; }
.win-game { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-amount {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-light);
  white-space: nowrap;
}

.win-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* =============================================
   PROMO BANNER (App Download)
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(80,30,120,.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(168,85,247,.2), transparent 70%);
  pointer-events: none;
}

.promo-text h2 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.promo-text p  { color: var(--text-muted); margin-bottom: 22px; font-size: 15px; line-height: 1.6; }

/* =============================================
   BONUS CARDS
   ============================================= */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.bonus-img-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(124,58,237,.15));
}

.bonus-body { padding: 20px; }
.bonus-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.bonus-body p  { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.bonus-tag {
  display: inline-block;
  background: rgba(168,85,247,.2);
  color: var(--accent-glow);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  margin-bottom: 14px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: rgba(168,85,247,.08); }

.faq-q .faq-icon {
  font-size: 18px;
  transition: transform .3s;
  flex-shrink: 0;
  color: var(--accent);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.open .faq-a { display: block; }

/* =============================================
   SEO TEXT BLOCK
   ============================================= */
.seo-block {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.seo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.seo-inner h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.seo-inner h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; color: var(--accent-glow); }
.seo-inner p  { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.seo-inner ol, .seo-inner ul { padding-left: 18px; }
.seo-inner li { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 4px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #050514;
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand .logo-link img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 12px; color: var(--text-muted); max-width: 300px; line-height: 1.7; }

.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent-glow); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); }

.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(80,30,120,.3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 900; margin-bottom: 12px; }
.page-hero p  { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.65; }

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

.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.live-card-img {
  height: 130px;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(7,7,26,.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.live-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.live-card-body { padding: 14px 16px; }
.live-card-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.live-card-body p  { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.live-limits { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.live-limits span { background: rgba(168,85,247,.12); padding: 2px 8px; border-radius: 4px; color: var(--accent-glow); font-weight: 600; }

/* =============================================
   MOBILE HAMBURGER
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .seo-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }

  .header-actions .btn-outline { display: none; }

  .features-inner { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .promo-banner { flex-direction: column; padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
