/* ===== VARIABLES ===== */
:root {
  --bg-deep: #0B0B1A;
  --bg-mid: #120F2E;
  --bg-light: #1A1445;
  --cta-start: #FF2D7A;
  --cta-end: #FF6A9F;
  --purple: #6C3BFF;
  --purple-light: #7B61FF;
  --neon: #00CFFF;
  --gold: #FFC107;
  --gold-light: #FFD54F;
  --white: #FFFFFF;
  --text: #B0B3C7;
  --muted: #8A8FA3;
  --card-bg: #1C1F3A;
  --card-bg2: #23264A;
  --card-hover: #2E3270;
  --border: rgba(255,255,255,0.08);
  --header-h: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: 'Poppins', Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(108,59,255,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 60%, rgba(255,45,122,.12) 0%, transparent 65%),
    radial-gradient(ellipse 45% 30% at 50% 80%, rgba(0,207,255,.10) 0%, transparent 65%);
}

/* ===== SKIP LINK ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  width: auto; height: auto; padding: .5rem 1rem;
  margin: 0; overflow: visible; clip: auto;
  background: var(--cta-start); color: #fff;
  z-index: 9999; top: 0; left: 0;
  border-radius: 0 0 8px 0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,11,26,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.is-pinned { box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  position: relative; z-index: 1;
}
.logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.logo img { display: block; height: 38px; width: auto; object-fit: contain; }
.header-buttons { display: flex; gap: .75rem; flex-shrink: 0; }

.btn-register, .btn-cta {
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff; font-weight: 600; font-size: .875rem;
  border: none; border-radius: 14px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255,45,122,.35);
  transition: opacity .2s, transform .2s;
}
.btn-register:hover, .btn-cta:hover { opacity: .88; transform: translateY(-1px); }
.btn-cta { padding: .8rem 2rem; font-size: 1rem; font-weight: 700; }

.btn-login {
  padding: .55rem 1.25rem;
  background: transparent; color: var(--purple-light);
  font-weight: 600; font-size: .875rem;
  border: 1.5px solid var(--purple); border-radius: 14px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background .2s, color .2s; white-space: nowrap;
}
.btn-login:hover { background: rgba(108,59,255,.15); color: var(--white); }

.btn-purple {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.5rem;
  background: var(--purple); color: #fff;
  font-weight: 600; font-size: .875rem;
  border: none; border-radius: 10px;
  cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.btn-purple:hover { background: var(--purple-light); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: .6rem 1.5rem;
  font-size: .8rem; color: var(--muted);
  display: flex; align-items: center;
  gap: .4rem; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs .current { color: var(--cta-start); }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  text-align: center; padding: 5rem 1.5rem 4rem; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute;
  right: -100px; top: 50%; transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,45,122,.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 1rem;
}
.hero-highlight {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text); max-width: 680px;
  margin: 0 auto 2rem;
}

/* ===== CONTAINER ===== */
.container {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* ===== CONTENT CARD ===== */
.content-card {
  background: linear-gradient(160deg, var(--card-bg) 0%, var(--card-bg2) 100%);
  border-radius: 18px; padding: 2.5rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  position: relative; overflow: hidden;
}
.content-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cta-start), var(--purple), var(--neon));
}

/* ===== PROSE ===== */
.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700; color: var(--white);
  margin: 2.5rem 0 1rem; line-height: 1.3;
  padding-left: 1rem;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--cta-start), var(--neon)) 1;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.2rem; font-weight: 600;
  color: var(--neon); margin: 1.75rem 0 .75rem;
}
.prose p { color: var(--text); margin-bottom: 1rem; line-height: 1.7; }
.prose ul, .prose ol { color: var(--text); padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; line-height: 1.6; }
.prose strong { color: var(--white); }
.prose em { font-style: italic; }
.prose a { color: var(--neon); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* ===== APP BONUS (inside content card) ===== */
.app-bonus {
  display: flex; align-items: center;
  gap: .85rem; flex-wrap: wrap;
  border: 1.5px solid rgba(255,193,7,.35);
  background: linear-gradient(135deg, rgba(255,193,7,.07), rgba(255,45,122,.05));
  border-radius: 12px; padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.bonus-icon { font-size: 1.6rem; flex-shrink: 0; }
.bonus-text { font-size: .9rem; color: var(--text); }
.bonus-text strong { color: var(--gold); display: block; margin-bottom: .2rem; }
.bonus-text span { color: var(--muted); font-size: .82rem; }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
  align-items: start; grid-auto-rows: min-content;
}
.feature-card {
  background: linear-gradient(160deg, rgba(44,47,90,.8), rgba(28,31,58,.9));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem 1rem; text-align: center;
  align-self: start; height: auto; min-height: 0;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(0,207,255,.18);
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.feature-card h3 {
  font-size: .95rem; font-weight: 700;
  color: var(--white); margin: 0 0 .4rem;
}
.feature-card p { font-size: .8rem; color: var(--muted); margin: 0; }

/* ===== WIDGET PANEL ===== */
.widget-panel {
  background: linear-gradient(160deg, #16193A 0%, #1E2148 100%);
  border: 1.5px solid var(--purple);
  border-radius: 16px; padding: 1.75rem;
  position: relative;
}
.widget-panel h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold); margin: 0 0 1.25rem;
  padding-left: 0; border: none; border-image: none;
}

/* ===== CALCULATOR ===== */
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
.calc-item { display: flex; flex-direction: column; gap: .4rem; }
.calc-item label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.calc-item input[type="range"] {
  width: 100%; accent-color: var(--purple-light); cursor: pointer;
}
.calc-value {
  font-weight: 700; color: var(--neon);
  font-size: .95rem; margin-top: .2rem;
}
.calc-result {
  background: rgba(108,59,255,.12);
  border: 1px solid rgba(108,59,255,.3);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.result-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.result-value { font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: .25rem; }
.calc-total { font-size: .88rem; color: var(--text); }
.calc-note { font-size: .78rem; color: var(--muted); }

/* ===== SLOTS LOBBY ===== */
.slots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .85rem; margin-bottom: 1rem;
}
.slot-card {
  background: linear-gradient(160deg, rgba(44,50,112,.7), rgba(28,31,58,.9));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem .75rem; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  outline: none;
}
.slot-card:hover, .slot-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,59,255,.25);
  border-color: var(--purple);
}
.slot-thumb {
  font-size: 2.2rem; text-align: center;
  margin-bottom: .5rem; position: relative;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.demo-badge {
  font-size: .6rem; font-weight: 700;
  background: var(--cta-start); color: #fff;
  padding: .15rem .4rem; border-radius: 4px;
  letter-spacing: .04em; align-self: flex-start;
}
.slot-info { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.slot-name { font-size: .78rem; color: var(--white); font-weight: 600; text-align: center; }
.slot-provider { font-size: .7rem; color: var(--muted); text-align: center; }
.lobby-cta { margin-top: .75rem; }

/* ===== STEP LIST ===== */
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  display: flex; gap: .75rem;
  align-items: flex-start; margin-bottom: .75rem;
  color: var(--text);
}
.step-list li::before {
  content: counter(step);
  flex-shrink: 0; width: 26px; height: 26px;
  background: var(--purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff; margin-top: .1rem;
}

/* ===== QUIZ ===== */
.quiz-question { font-weight: 600; color: var(--white); font-size: 1rem; margin-bottom: .85rem; }
.quiz-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.quiz-option {
  display: flex; align-items: center; gap: .65rem;
  cursor: pointer; font-size: .9rem; color: var(--text);
  padding: .6rem .85rem; border-radius: 8px;
  border: 1px solid var(--border); transition: background .2s;
}
.quiz-option:hover { background: rgba(108,59,255,.1); }
.quiz-option input { accent-color: var(--purple-light); flex-shrink: 0; }
.quiz-result {
  margin-top: .85rem; padding: .85rem 1.1rem;
  background: rgba(0,207,255,.08);
  border: 1px solid rgba(0,207,255,.2);
  border-radius: 10px; color: var(--neon);
  font-size: .9rem; min-height: 2rem;
}
.quiz-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; }

/* ===== ROULETTE ===== */
.roulette-widget {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.roulette-wheel {
  width: 140px; height: 140px; border-radius: 50%;
  background: conic-gradient(
    #c0392b 0deg 20deg, #1a1a1a 20deg 40deg,
    #c0392b 40deg 60deg, #1a1a1a 60deg 80deg,
    #c0392b 80deg 100deg, #1a1a1a 100deg 120deg,
    #c0392b 120deg 140deg, #1a1a1a 140deg 160deg,
    #c0392b 160deg 180deg, #1a1a1a 180deg 200deg,
    #c0392b 200deg 220deg, #1a1a1a 220deg 240deg,
    #c0392b 240deg 260deg, #1a1a1a 260deg 280deg,
    #c0392b 280deg 300deg, #1a1a1a 300deg 320deg,
    #c0392b 320deg 340deg, #1a1a1a 340deg 360deg
  );
  border: 4px solid var(--gold);
  box-shadow: 0 0 24px rgba(255,193,7,.3);
  transition: transform 1.5s cubic-bezier(.17,.67,.12,.99);
}
.roulette-number {
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold); min-height: 2rem;
  text-align: center;
}
.roulette-note { font-size: .78rem; color: var(--muted); text-align: center; }

/* ===== TABLES ===== */
.table-wrapper {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  margin: 1.25rem 0; overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table thead tr {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}
.data-table thead th {
  padding: .85rem 1rem; color: var(--white);
  font-weight: 600; text-align: left;
  text-transform: uppercase; font-size: .78rem;
  letter-spacing: .05em; white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--card-hover); }
.data-table td { padding: .85rem 1rem; color: var(--text); vertical-align: middle; }
.data-table td b { color: var(--gold); }

/* ===== CTA BLOCK ===== */
.cta-block {
  background: linear-gradient(135deg, rgba(255,45,122,.08), rgba(108,59,255,.08));
  border: 1.5px solid rgba(255,45,122,.25);
  border-radius: 18px; padding: 2.5rem 2rem;
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700; color: var(--white);
  margin-bottom: .75rem;
  padding-left: 0; border: none; border-image: none;
}
.cta-block p { color: var(--text); margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-disclaimer { font-size: .78rem; color: var(--muted); margin-top: 1rem; margin-bottom: 0; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem; text-align: center;
}
.pay-row {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.pay-chip {
  padding: .35rem .85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px; font-size: .8rem;
  font-weight: 600; color: var(--text);
}
.footer-copy { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.footer-copy a { color: var(--muted); text-decoration: none; }
.footer-copy a:hover { color: var(--neon); }
.footer-18 {
  display: inline-block; margin-left: .5rem;
  padding: .1rem .5rem; border: 1px solid var(--muted);
  border-radius: 4px; font-size: .75rem; font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --header-h: 108px; }
  body { font-size: .875rem; line-height: 1.55; }
  .header-inner {
    flex-direction: column; height: auto;
    padding: .6rem 1rem; gap: .5rem;
  }
  .header-buttons { width: 100%; gap: .5rem; }
  .btn-register, .btn-login {
    flex: 1; justify-content: center;
    min-height: 42px; font-size: .82rem;
  }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .hero-lead { font-size: .875rem; }
  .container { padding: 0 .85rem 2rem; gap: 1rem; }
  .content-card { padding: 1.5rem 1.1rem; border-radius: 14px; }
  .prose h2 { font-size: clamp(1.05rem, 4vw, 1.35rem); margin-top: 2rem; }
  .prose h3 { font-size: .95rem; }
  .prose p, .prose li { font-size: .875rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .slots-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }

  /* Table → card layout */
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: .75rem; padding: .75rem;
  }
  .data-table tbody tr:hover { background: var(--card-hover); }
  .data-table td {
    display: flex; justify-content: space-between;
    align-items: center; padding: .45rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .82rem; gap: .5rem;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    font-size: .75rem; color: var(--muted); font-weight: 600;
    flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em;
  }
}
@media (max-width: 380px) {
  body { font-size: .8125rem; }
  .prose h2 { font-size: clamp(.95rem, 4.5vw, 1.15rem); }
  .content-card { padding: 1.1rem .9rem; }
}
