/* =========================================================
   EVA CASINO — design system
   ========================================================= */

:root {
  --bg: #0b0b14;
  --bg-soft: #12121f;
  --bg-card: #181828;
  --bg-card-hover: #1f1f33;
  --line: #2a2a40;
  --text: #eceaf6;
  --text-muted: #a6a3bd;
  --gold: #ffd679;
  --gold-dark: #e0aa3e;
  --pink: #ff5f8f;
  --purple: #7c5cff;
  --green: #37d68e;
  --red: #ff5c5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --header-h: 76px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--text-muted); }
.lead { font-size: 18px; color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 214, 121, 0.12);
  border: 1px solid rgba(255, 214, 121, 0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: .02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 100px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #201400;
  box-shadow: 0 6px 20px rgba(255, 214, 121, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255, 214, 121, 0.4); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--gold); color: var(--gold); }
.btn-pink {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
}
.btn-pink:hover { box-shadow: 0 10px 26px rgba(124, 92, 255, 0.45); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 11, 20, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1320px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 52px; height: 36px; display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,0.04); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch;
    background: var(--bg-soft); padding: 14px; overflow-y: auto; border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .header-actions .btn-lg { padding: 11px 14px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, rgba(11,11,20,.55), rgba(11,11,20,.92)), url("/img/header-bg.webp") center / cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .badge { margin-bottom: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: var(--gold); font-weight: 800; }
.hero-stats div span { font-size: 13px; color: var(--text-muted); }
.page-hero { padding: 42px 0 36px; }
.page-hero h1 { margin-bottom: 10px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--text-muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .5; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.alt-bg { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,214,121,.4); background: var(--bg-card-hover); }
.card .icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 14px; }

/* ---------- Game cards ---------- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(255,214,121,.4); }
.game-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0d0d18; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb .rtp { position: absolute; top: 10px; right: 10px; background: rgba(11,11,20,.8); border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.game-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { font-size: 16px; margin: 0; }
.game-provider { font-size: 12px; color: var(--text-muted); }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.game-tags span { font-size: 11px; background: rgba(124,92,255,.15); color: #c9beff; padding: 3px 8px; border-radius: 100px; }
.game-body p { font-size: 13px; margin: 0; flex: 1; }
.game-actions { display: flex; gap: 8px; margin-top: 8px; }
.game-actions .btn { flex: 1; padding: 10px 14px; font-size: 13px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-muted);
  padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.filters button.active, .filters button:hover { color: #201400; background: var(--gold); border-color: var(--gold); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #201400; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 17px;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: var(--bg-soft); color: var(--gold); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td { color: var(--text-muted); }

/* ---------- Promo code box ---------- */
.promo-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(255,214,121,.12), rgba(124,92,255,.12));
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.promo-code { font-size: 24px; font-weight: 800; letter-spacing: .08em; color: var(--gold); font-family: "Courier New", monospace; }
.promo-copy { display: flex; align-items: center; gap: 14px; }

/* ---------- FAQ (accordion) ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--bg-card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 20px; flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 14px; }

/* ---------- Reviews ---------- */
.review-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.review-name { font-weight: 700; }
.review-date { font-size: 12px; color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review-card p { font-size: 14px; margin: 0; }
.rating-summary { display: flex; align-items: center; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); margin-bottom: 26px; flex-wrap: wrap; }
.rating-score { font-size: 44px; font-weight: 800; color: var(--gold); }

/* ---------- Forms ---------- */
.form-shell { max-width: 460px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-shell h1 { text-align: center; font-size: 26px; }
.form-shell .lead { text-align: center; font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; text-align: center; }
.form-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; margin: 20px 0; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.checkbox-row input { margin-top: 3px; }
.form-msg { display: none; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.form-msg.show { display: block; }
.form-msg.success { background: rgba(55,214,142,.12); border: 1px solid var(--green); color: var(--green); }

/* ---------- Mirror status ---------- */
.status-box { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--line); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 26px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55,214,142,.2); flex-shrink: 0; }
.status-box strong { color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(255,214,121,.14), rgba(124,92,255,.14));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 560px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; }
.footer-col h4 { font-size: 14px; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-muted); }
.footer-col a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.age-flag { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; font-weight: 800; font-size: 11px; color: var(--gold); flex-shrink: 0; }
.footer-disclaimer { font-size: 12px; color: var(--text-muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; display: flex; gap: 12px; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--gold); color: var(--text);
  padding: 12px 20px; border-radius: 100px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 999;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.not-found { text-align: center; padding: 90px 0; }
.not-found .code { font-size: 100px; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
