/* ============================================================
   EVA CASINOS — Global Styles
   ============================================================ */
:root {
  --bg:          #0a0b14;
  --bg2:         #10111f;
  --bg3:         #161828;
  --accent:      #7b3fe4;
  --accent2:     #a259ff;
  --gold:        #f0c040;
  --gold2:       #ffd700;
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --border:      #2a2b40;
  --card-bg:     #14152a;
  --green:       #22c55e;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(123,63,228,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  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); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,20,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

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

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(123,63,228,.18);
}
.nav a.active { color: var(--accent2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-gold {
  background: linear-gradient(135deg, #d4a017 0%, var(--gold2) 100%);
  color: #000;
  font-weight: 700;
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.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(180deg, rgba(10,11,20,0) 0%, rgba(10,11,20,.7) 60%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,63,228,.25);
  border: 1px solid rgba(123,63,228,.4);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  max-width: 680px;
  margin-bottom: 18px;
}

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

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

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btns .btn { padding: 13px 32px; font-size: 15px; border-radius: 12px; }

/* ============================================================
   FEATURES ROW
   ============================================================ */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(123,63,228,.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-card p { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

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

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

.section-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

.see-all {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 600;
  transition: opacity .2s;
  white-space: nowrap;
}
.see-all:hover { opacity: .75; }

/* ============================================================
   LIVE WINS TICKER
   ============================================================ */
.wins-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.wins-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wins-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

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

.wins-ticker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: hidden;
  position: relative;
}

.wins-ticker::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

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

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

.win-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  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: 600; }
.win-game { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold2);
  white-space: nowrap;
}

.win-amount.big { color: var(--green); }

/* ============================================================
   GAMES GRID
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.game-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  aspect-ratio: 3/4;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.game-card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 12px 40px rgba(123,63,228,.35);
  border-color: var(--accent);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.game-card:hover img { transform: scale(1.06); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,15,.92) 100%);
  opacity: 0;
  transition: opacity .22s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: var(--shadow);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .22s;
}

.game-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }

/* ============================================================
   APP BANNER
   ============================================================ */
.app-banner {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.app-banner-inner {
  background: linear-gradient(135deg, #1a0a3a 0%, #0d1a3a 100%);
  border: 1px solid rgba(123,63,228,.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

.app-banner-inner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,63,228,.25) 0%, transparent 70%);
  pointer-events: none;
}

.app-banner-text h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.app-banner-text p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.app-banner-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ============================================================
   SEO / INFO SECTION
   ============================================================ */
.info-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.info-block h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.info-block h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.info-block p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.info-block ol {
  list-style: decimal;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.65; max-width: 240px; }

.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent2); }

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

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

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

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 100px 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero h1 span { color: var(--accent2); }
.page-hero p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

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

.bonus-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bonus-card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.bonus-card-banner.welcome { background: linear-gradient(135deg, #1a0a3a 0%, #2d0d5a 100%); }
.bonus-card-banner.reload  { background: linear-gradient(135deg, #0a1a3a 0%, #0d2d5a 100%); }
.bonus-card-banner.cashback{ background: linear-gradient(135deg, #0a2a1a 0%, #0d5a2d 100%); }
.bonus-card-banner.free    { background: linear-gradient(135deg, #2a1a0a 0%, #5a3a0d 100%); }

.bonus-card-body { padding: 20px; }
.bonus-card-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.bonus-card-body .amount {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold2);
  margin-bottom: 10px;
}
.bonus-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

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

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

.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}

.faq-question:hover { color: var(--accent2); }

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

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

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

.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.live-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}

.live-card-img .live-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.live-card-body { padding: 14px; }
.live-card-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.live-card-body .players { font-size: 12px; color: var(--green); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.nav-drawer.open { display: flex; }

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}

.nav-drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-drawer-panel .logo { margin-bottom: 20px; }

.nav-drawer-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-drawer-panel a:hover,
.nav-drawer-panel a.active {
  color: #fff;
  background: rgba(123,63,228,.18);
}
.nav-drawer-panel a.active { color: var(--accent2); }

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

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn-outline { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .app-banner-inner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .games-grid   { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .bonus-grid   { grid-template-columns: 1fr; }
  .live-grid    { grid-template-columns: repeat(2, 1fr); }
  .info-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .live-grid     { grid-template-columns: repeat(2, 1fr); }
  .hero h1       { font-size: 28px; }
}
