/* OXBET luxury emerald & gold design system */
:root {
  --color-primary-1: #000000;
  --color-primary-2: #FFCC00;
  --color-accent-1: #FFFFFF;
  --color-accent-2: #444444;
  --color-bg: #F5F5F5;
  --color-text: #000000;
  --color-accent: #FFFFFF;
  --font-primary: 'Roboto', Arial, sans-serif;
  --font-secondary: Arial, Helvetica, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);

  /* screenshot-derived palette (official site: deep emerald + gold) */
  --ox-bg: #08150e;
  --ox-bg-2: #0c1f14;
  --ox-surface: #10281a;
  --ox-surface-2: #143122;
  --ox-line: rgba(255, 204, 0, 0.14);
  --ox-line-soft: rgba(255, 255, 255, 0.08);
  --ox-gold: #FFCC00;
  --ox-gold-deep: #d9a800;
  --ox-ink: #0b0b06;
  --ox-text: #eef2ec;
  --ox-muted: #a8bcab;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  background: var(--ox-bg);
  color: var(--ox-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ox-text);
}

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

a { color: var(--ox-gold); }

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

:focus-visible {
  outline: 2px solid var(--ox-gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: 0;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-gold {
  background: linear-gradient(180deg, #ffd83d 0%, var(--ox-gold) 55%, var(--ox-gold-deep) 100%);
  color: var(--ox-ink);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.25);
}
.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(255, 204, 0, 0.4);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--ox-text);
  border: 1px solid rgba(255, 204, 0, 0.45);
}
.btn-outline:hover { background: rgba(255, 204, 0, 0.1); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 21, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ox-line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ox-gold);
}
.logo span { color: var(--ox-text); }

.header-cta { padding: 10px 22px; font-size: 0.95rem; }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.lang-switch a, .lang-switch span {
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--ox-muted);
}
.lang-switch a:hover { color: var(--ox-gold); }
.lang-switch .active {
  color: var(--ox-ink);
  background: var(--ox-gold);
}

main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(255, 204, 0, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ox-bg-2) 0%, var(--ox-bg) 100%);
  border-bottom: 1px solid var(--ox-line-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 18px;
}
.hero h1 .gold { color: var(--ox-gold); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--ox-muted);
  max-width: 34rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ox-line);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--ox-muted); }

/* ---------- About / features ---------- */
.about { background: var(--ox-bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: linear-gradient(180deg, var(--ox-surface) 0%, var(--ox-bg-2) 100%);
  border: 1px solid var(--ox-line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature.feature-wide { grid-column: span 2; }
.feature i {
  font-size: 1.5rem;
  color: var(--ox-gold);
  margin-bottom: 14px;
  display: inline-block;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--ox-muted); font-size: 0.95rem; }

/* ---------- Top games ---------- */
.slots { background: linear-gradient(180deg, var(--ox-bg) 0%, var(--ox-bg-2) 100%); }
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.slot-card {
  background: var(--ox-surface);
  border: 1px solid var(--ox-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 204, 0, 0.25);
}
.slot-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.slot-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.slot-body h3 { font-size: 1.15rem; }
.slot-body .slot-desc { color: var(--ox-muted); font-size: 0.95rem; flex: 1; }
.slot-body .btn { margin-top: 8px; align-self: flex-start; padding: 11px 22px; font-size: 0.92rem; }

/* ---------- Article ---------- */
.article { background: var(--ox-bg); }
.article-wrap { max-width: 800px; }
.article-wrap h2 {
  font-size: 1.55rem;
  margin: 44px 0 16px;
  padding-top: 8px;
}
.article-wrap h2:first-of-type { margin-top: 0; }
.article-wrap p { margin-bottom: 16px; color: #cfdccf; }
.article-wrap ul { margin: 0 0 16px 22px; color: #cfdccf; }
.article-wrap li { margin-bottom: 8px; }
.article-wrap li::marker { color: var(--ox-gold); }

.payments-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  background: var(--ox-surface);
  border: 1px solid var(--ox-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
.payments-table th, .payments-table td {
  padding: 13px 16px;
  text-align: left;
}
.payments-table th {
  background: var(--ox-surface-2);
  color: var(--ox-gold);
  font-family: var(--font-primary);
}
.payments-table tr + tr td { border-top: 1px solid var(--ox-line-soft); }
.table-scroll { overflow-x: auto; }

.article-cta {
  background: linear-gradient(135deg, var(--ox-surface-2) 0%, var(--ox-surface) 100%);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta strong {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  color: var(--ox-text);
}
.article-cta p { margin: 4px 0 0; color: var(--ox-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--ox-bg-2); }
.faq-list { max-width: 800px; }
.faq-item {
  border: 1px solid var(--ox-line);
  border-radius: var(--radius);
  background: var(--ox-surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  color: var(--ox-text);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
}
.faq-q i { color: var(--ox-gold); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 20px 18px; color: var(--ox-muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255, 204, 0, 0.1), transparent 65%),
    var(--ox-bg);
  text-align: center;
  border-top: 1px solid var(--ox-line-soft);
}
.final-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.final-cta p { color: var(--ox-muted); max-width: 36rem; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #050d08;
  border-top: 1px solid var(--ox-line);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-col h4 { font-size: 0.95rem; color: var(--ox-gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ox-muted); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ox-gold); }
.footer-about p { color: var(--ox-muted); margin-top: 12px; max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid var(--ox-line-soft);
  padding-top: 22px;
  color: #7d9282;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rg-notice { display: flex; align-items: flex-start; gap: 10px; }
.rg-notice i { color: var(--ox-gold); margin-top: 3px; }

/* ---------- Bonus popup ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup.active { display: flex; }
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.popup-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: linear-gradient(180deg, var(--ox-surface-2) 0%, var(--ox-bg-2) 100%);
  border: 1px solid rgba(255, 204, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.2), var(--shadow);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  animation: popup-in 0.3s ease;
}
@keyframes popup-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.popup-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ox-ink);
  background: var(--ox-gold);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.popup-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.popup-card .popup-sub { color: var(--ox-muted); margin-bottom: 22px; font-size: 0.98rem; }
.popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: 0;
  color: var(--ox-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.popup-close:hover { color: var(--ox-gold); }

/* ---------- Info pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--ox-bg-2) 0%, var(--ox-bg) 100%);
  border-bottom: 1px solid var(--ox-line-soft);
  padding: 56px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 46rem; margin-bottom: 14px; }
.page-hero p { color: var(--ox-muted); max-width: 42rem; }
.page-body { max-width: 800px; }
.page-body h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin-bottom: 15px; color: #cfdccf; }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; color: #cfdccf; }
.page-body li { margin-bottom: 9px; }
.page-body li::marker { color: var(--ox-gold); }
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
}
.steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--ox-surface);
  border: 1px solid var(--ox-line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ox-gold);
  color: var(--ox-ink);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; text-decoration: none; }
.back-home:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.nf-wrap {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.nf-code {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(6rem, 16vw, 10rem);
  line-height: 1;
  color: var(--ox-gold);
  text-shadow: 0 0 60px rgba(255, 204, 0, 0.25);
}
.nf-wrap h1 { font-size: 1.6rem; margin: 18px 0 10px; }
.nf-wrap p { color: var(--ox-muted); max-width: 28rem; margin-bottom: 26px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  section { padding: 52px 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 48px;
  }
  .hero-media { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .feature.feature-wide { grid-column: span 1; }
  .slots-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .logo { font-size: 1.3rem; }
  .header-cta { padding: 9px 16px; font-size: 0.88rem; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .article-cta .btn { width: 100%; }
}
