/* ========================
   EVA CASINO — GLOBAL STYLES
   ======================== */

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

:root {
  --bg:         #0d0b1a;
  --bg2:        #13102a;
  --bg3:        #1a1635;
  --accent:     #e91e8c;
  --accent2:    #f72585;
  --gold:       #ffd700;
  --purple:     #7b2ff7;
  --purple2:    #9d4edd;
  --text:       #eee;
  --text-muted: #9991b8;
  --border:     rgba(123,47,247,.28);
  --card-bg:    rgba(255,255,255,.04);
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 8px 40px rgba(0,0,0,.55);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); }

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,30,140,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233,30,140,.55);
  filter: brightness(1.08);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233,30,140,.08);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ========================
   HEADER
   ======================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,11,26,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-bg {
  display: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo { height: 40px; }

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 20px 20px;
  background: rgba(13,11,26,.98);
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 12px 16px;
  font-size: 16px;
  color: #fff;
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,11,26,.92) 40%, rgba(123,47,247,.25) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.chip-icon { font-size: 18px; }

/* ========================
   WINS TICKER
   ======================== */
.wins-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(90deg, var(--bg2), #1c1640);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 44px;
  overflow: hidden;
}
.wins-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
  background: rgba(255,215,0,.07);
  height: 100%;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.wins-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4cff91;
  box-shadow: 0 0 8px #4cff91;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}
.wins-ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.wins-ticker {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 13px;
  padding: 0 24px;
}
.wins-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.win-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  flex-shrink: 0;
}
.win-item .win-name  { color: var(--accent); font-weight: 600; }
.win-item .win-game  { color: var(--text-muted); }
.win-item .win-amount { color: var(--gold); font-weight: 700; }

/* ========================
   WINS POPUP
   ======================== */
.wins-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.win-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20,16,45,.95);
  border: 1px solid rgba(255,215,0,.3);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  animation: toastIn .35s ease forwards;
  pointer-events: all;
}
.win-toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-30px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}
.toast-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.toast-body { flex: 1; }
.toast-player { font-size: 13px; font-weight: 700; color: #fff; }
.toast-detail { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.toast-amount { font-size: 16px; font-weight: 800; color: var(--gold); }

/* ========================
   SECTIONS
   ======================== */
.section { padding: 64px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
}

/* ========================
   GAMES GRID
   ======================== */
.games-section { background: var(--bg); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: block;
}
.game-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.game-card:hover img { transform: scale(1.06); }
.game-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,11,26,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.game-card:hover .game-overlay { opacity: 1; }
.play-btn {
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(233,30,140,.5);
}

.game-name {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================
   BONUS SECTION
   ======================== */
.bonus-section { background: var(--bg2); }

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.bonus-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(233,30,140,.2);
}
.bonus-card--hot {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1a1635, #2a1a00 200%);
}
.bonus-card--hot:hover { border-color: var(--gold); box-shadow: 0 16px 40px rgba(255,215,0,.2); }

.bonus-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold), #ff9d00);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 50px;
}
.bonus-icon { font-size: 48px; margin-bottom: 16px; }
.bonus-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.bonus-card p  { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

/* ========================
   APP SECTION
   ======================== */
.app-section { background: linear-gradient(135deg, #0d0b1a, #1a0a2e); }

.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(120deg, rgba(123,47,247,.2), rgba(233,30,140,.15));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
}
.app-text h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 700; margin-bottom: 12px; }
.app-text p  { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; max-width: 440px; }

.app-phone-mock {
  width: 160px;
  height: 260px;
  border-radius: 30px;
  border: 3px solid var(--border);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  flex-shrink: 0;
}

/* ========================
   SEO SECTION
   ======================== */
.seo-section { background: var(--bg); border-top: 1px solid var(--border); }

.seo-article { max-width: 860px; }
.seo-article h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.seo-article h3 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; color: var(--accent); }
.seo-article p  { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.seo-article ol { margin-left: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.9; }

/* ========================
   FOOTER
   ======================== */
.footer {
  background: #080615;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-logo { height: 32px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.footer-nav a {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: var(--transition);
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-disclaimer, .footer-copy { font-size: 12px; color: var(--text-muted); }

/* ========================
   PAGE HERO (inner pages)
   ======================== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--bg2), #1a0a2e);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 800; }
.page-hero p  { font-size: 16px; color: var(--text-muted); margin-top: 12px; }

/* ========================
   LIVE GAMES SECTION
   ======================== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.live-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: block;
}
.live-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.live-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #1a0a2e, #2a0a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.live-card-body { padding: 14px 16px; }
.live-card-title { font-size: 15px; font-weight: 600; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #ff4d4d;
  font-weight: 700;
  margin-top: 6px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: blink 1s infinite;
}

/* ========================
   FAQ
   ======================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  gap: 16px;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ========================
   BONUSES PAGE EXTRA
   ======================== */
.bonus-full-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: var(--transition);
}
.bonus-full-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(233,30,140,.15); }
.bonus-full-icon { font-size: 56px; flex-shrink: 0; }
.bonus-full-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.bonus-full-body p  { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.bonus-full-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.bonus-full-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.bonus-full-list li::before { content: '✓'; color: #4cff91; font-weight: 700; }

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

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
  .header-inner { gap: 16px; }

  .hero { min-height: 480px; }
  .hero-content { padding-top: 32px; padding-bottom: 48px; }

  .app-banner { flex-direction: column; padding: 32px 24px; text-align: center; }
  .app-phone-mock { display: none; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }

  .bonus-full-card { flex-direction: column; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .wins-popup { bottom: 12px; left: 12px; right: 12px; }
  .win-toast { max-width: 100%; min-width: 0; }
}
