/* ============================
   EVA CASINO — Global Styles
   ============================ */

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

:root {
  --gold:        #f5c842;
  --gold-light:  #ffe178;
  --gold-dark:   #c9952a;
  --bg-deep:     #0b0e1a;
  --bg-card:     #131728;
  --bg-card2:    #1a1f35;
  --border:      rgba(245,200,66,.18);
  --text:        #e8e8f0;
  --text-muted:  #7b82a8;
  --red:         #e03e3e;
  --green:       #2dde8e;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Roboto', Arial, 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%; }
ul { list-style: none; }

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11,14,26,.97) 0%, rgba(11,14,26,.88) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

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

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }

.header-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--gold);
  background: rgba(245,200,66,.08);
}

.header-spacer { flex: 1; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0e1a;
}

/* mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ============================
   MOBILE NAV DRAWER
   ============================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.65);
}
.mobile-nav.open { display: flex; }
.mobile-nav-panel {
  width: 280px;
  background: var(--bg-card);
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.mobile-nav-panel a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background .2s, color .2s;
}
.mobile-nav-panel a:hover { background: rgba(245,200,66,.1); color: var(--gold); }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 8px;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../header-bg.webp') center/cover no-repeat;
  filter: brightness(.55);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,14,26,.85) 0%, rgba(11,14,26,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  max-width: 620px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn-lg { padding: 13px 32px; font-size: 1rem; }

/* ============================
   FEATURES STRIP
   ============================ */
.features {
  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: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}
.feature-item:hover { color: var(--gold); }
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,200,66,.15) 0%, rgba(245,200,66,.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================
   WINS TICKER
   ============================ */
.wins-ticker {
  background: linear-gradient(90deg, var(--bg-deep) 0%, var(--bg-card2) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.wins-ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
}
.wins-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.wins-label .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
.wins-scroll-wrap {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.wins-scroll-track {
  display: flex;
  gap: 32px;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.wins-scroll-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.win-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: .82rem;
}
.win-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.win-name { color: var(--text-muted); }
.win-game { color: var(--text); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.win-amount { color: var(--green); font-weight: 800; }

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

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.section-title span { color: var(--gold); }
.section-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(245,200,66,.35);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.section-link:hover { border-color: var(--gold); }

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

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  aspect-ratio: 3/4;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(245,200,66,.3);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .3s;
}
.game-card:hover img { filter: brightness(.55); }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .3s;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%);
}
.game-card:hover .game-overlay { opacity: 1; }

.play-btn {
  padding: 9px 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0e1a;
  font-weight: 800;
  font-size: .88rem;
  transition: filter .2s;
}
.play-btn:hover { filter: brightness(1.15); }

.game-name-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================
   CATEGORIES / TABS
   ============================ */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .2s;
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,200,66,.08);
}

/* ============================
   BONUSES
   ============================ */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.bonus-icon { font-size: 2.4rem; }
.bonus-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
}
.bonus-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.bonus-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.bonus-value small {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ============================
   FAQ
   ============================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: rgba(245,200,66,.05); }
.faq-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  transition: transform .3s, border-color .2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); border-color: var(--gold); color: var(--gold); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ============================
   LIVE CASINO
   ============================ */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.live-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.live-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}
.live-card-img {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1f35, #0d1124);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.live-players {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-card-body { padding: 14px 16px; }
.live-card-name { font-size: .92rem; font-weight: 700; color: #fff; }
.live-card-provider { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

/* ============================
   SEO BLOCK
   ============================ */
.seo-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.seo-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px;
}
.seo-inner h1 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.seo-inner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 8px;
}
.seo-inner p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.seo-inner ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.seo-inner ol li {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
  list-style: decimal;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-logo img { height: 40px; }
.footer-logo p {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================
   PAGE BANNER (inner pages)
   ============================ */
.page-banner {
  background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 36px;
}
.page-banner-inner { max-width: 1280px; margin: 0 auto; }
.page-banner h1 { font-size: 2rem; font-weight: 900; color: #fff; }
.page-banner h1 span { color: var(--gold); }
.page-banner p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 560px;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* ============================
   NOTIFICATION TOAST
   ============================ */
#win-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card2);
  border: 1px solid rgba(245,200,66,.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  animation: toastIn .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all;
  max-width: 320px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.hiding { animation: toastOut .3s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) scale(.95); }
}
.toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.toast-sub { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.toast-amount { font-size: 1.05rem; font-weight: 900; color: var(--green); flex-shrink: 0; }

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

  .hero { min-height: 340px; }
  .hero-content { padding: 40px 16px; }

  .features-inner { gap: 20px; }
  .feature-item span { display: none; }

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

  .section { padding: 36px 16px; }
  .footer-top { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
