/* ==========================================================================
   Betfun Argentina — Design System
   ========================================================================== */

:root {
  --brand-900: #15112E;
  --brand-800: #1A1639;
  --brand-700: #201C41;          /* Primary brand */
  --brand-600: #2A2553;
  --brand-500: #3A2D6B;
  --brand-400: #5C4AA0;
  --brand-300: #8B7BD1;
  --brand-200: #C8BFEF;
  --brand-100: #EAE5FA;
  --brand-50:  #F5F2FE;

  --gold-600: #D4A41B;
  --gold-500: #F2C43B;          /* Casino accent */
  --gold-400: #FFD23F;
  --gold-300: #FFE489;

  --green-500: #2EC27E;          /* Success / win */
  --green-600: #1E9E63;
  --red-500: #E55B5B;            /* Lose / live */

  --ink-900: #0E0C24;
  --ink-700: #2B2845;
  --ink-500: #5B5874;
  --ink-300: #A1A0B5;
  --line: #E5E2F1;
  --bg: #F7F6FB;
  --surface: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 6px rgba(32,28,65,.06);
  --shadow:    0 12px 32px rgba(32,28,65,.10);
  --shadow-md: 0 16px 40px rgba(32,28,65,.14);
  --shadow-lg: 0 24px 60px rgba(32,28,65,.18);

  --container: 1200px;
  --gutter: 24px;

  --ff-heading: 'Manrope', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-body:    'Inter',   system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); text-decoration: underline; }
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-heading); color: var(--ink-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #1B1739;              /* ровно цвет верхней кромки hero; без альфы — иначе сквозь неё
                                       просвечивает светлый body и на стыке видна ступенька */
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: none;
}
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  flex-wrap: nowrap;                 /* шапка строго в одну строку */
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  flex: 0 0 auto;
  text-decoration: none;
}
.nav-brand img { height: 25px; width: auto; }
.nav-brand-tag {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #1B1632;
  font-family: var(--ff-heading); font-weight: 800;
  font-size: .68rem; letter-spacing: .06em; line-height: 1;
  padding: 5px 7px; border-radius: 7px;
}
.nav-links {
  display: flex; gap: 2px; flex-wrap: nowrap;
  margin: 0 0 0 6px; padding: 0; list-style: none;
  flex: 1 1 auto; min-width: 0;      /* меню — единственный сжимаемый элемент */
  justify-content: center;
}
.nav-links > li { margin: 0; }
.nav-links a, .nav-drop-toggle {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-drop-toggle:hover {
  color: #fff; background: rgba(255,255,255,.08); text-decoration: none;
}

/* Dropdown «Más» */
.nav-links .has-drop { position: relative; }
.nav-drop-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--ff-body);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-drop-toggle::after {
  content: ""; width: 5px; height: 5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
}
.nav-drop {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 210px; margin: 0; padding: 8px; list-style: none;
  background: #221E48;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0,0,0,.42);
  z-index: 999;
}
.nav-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop li { margin: 0; }
.nav-drop a { padding: 9px 12px; }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop { display: block; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #1B1632 !important;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .95rem;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 8px 22px rgba(255,210,63,.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,210,63,.45); text-decoration: none; }
.nav-secondary {
  color: rgba(255,255,255,.85);
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav-secondary:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
/* кнопка скачивания APK в шапке */
.nav-secondary-apk {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.26);
  color: #fff;
  font-weight: 700;
}
.nav-secondary-apk::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  border-left: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400);
  transform: rotate(-45deg) translate(1px, 1px);
}
.nav-secondary-apk:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  color: #fff; border: none; padding: 8px 11px; border-radius: 10px;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.nav-mobile-actions { display: none; }

@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; row-gap: 10px; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-secondary, .nav-cta { display: none; }

  /* строка 2: две широкие равные кнопки, всегда видимые */
  .nav-mobile-actions {
    display: flex; width: 100%; gap: 10px; order: 3;
  }
  .nav-mobile-actions a {
    flex: 1 1 0; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 10px; border-radius: 999px;
    font-family: var(--ff-heading); font-weight: 800; font-size: .95rem;
    text-align: center; text-decoration: none; white-space: nowrap;
  }
  .nav-mobile-actions .nav-mb-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: #1B1632; box-shadow: 0 8px 20px rgba(255,210,63,.30);
  }
  .nav-mobile-actions .nav-mb-outline {
    background: rgba(255,255,255,.07); color: #fff;
    border: 1px solid rgba(255,255,255,.22);
  }

  .nav-links {
    display: none; order: 4; flex-direction: column; flex-wrap: nowrap;
    gap: 2px; width: 100%; margin: 0; padding: 8px 0 4px; justify-content: flex-start;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 1rem; }

  /* дропдаун внутри бургер-меню разворачивается списком */
  .nav-links .has-drop { position: static; }
  .nav-drop-toggle {
    pointer-events: none;
    color: rgba(255,255,255,.45);
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    padding: 14px 12px 6px;
  }
  .nav-drop-toggle::after { display: none; }
  .nav-drop {
    display: block; position: static; transform: none;
    min-width: 0; padding: 0 0 0 12px; margin-left: 12px;
    background: none; border: none; border-left: 2px solid rgba(255,255,255,.12);
    border-radius: 0; box-shadow: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--ff-heading);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #1B1632;
  box-shadow: 0 14px 28px rgba(255,210,63,.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255,210,63,.42); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--brand-700); border: 2px solid var(--brand-700);
}
.btn-ghost:hover { background: var(--brand-700); color: #fff; text-decoration: none; }
.btn-light {
  background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ==========================================================================
   Section / Hero / Common blocks
   ========================================================================== */
section { padding: 64px 0; }
section.section-tight { padding: 36px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500); font-weight: 700;
  background: var(--brand-100); padding: 6px 12px; border-radius: 999px;
}
.eyebrow.eyebrow-light { color: #fff; background: rgba(255,255,255,.10); }
.section-title { margin-top: 14px; }
.section-lead { font-size: 1.1rem; color: var(--ink-500); max-width: 720px; }

.hero {
  position: relative; overflow: hidden;
  padding: 0;                       /* section{padding:64px 0} здесь не нужен — отступы задаёт .container */
  background: radial-gradient(1100px 600px at 80% -10%, rgba(255,210,63,.18), transparent 60%),
              radial-gradient(700px 600px at -10% 110%, rgba(92,74,160,.32), transparent 60%),
              linear-gradient(140deg, #15112E 0%, #201C41 55%, #2A2356 100%);
  color: #fff;
}
/* стык с шапкой: верх hero растворяется из цвета шапки, без видимой ступеньки */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px;
  background: linear-gradient(to bottom, #1B1739 0%, rgba(27,23,57,.55) 45%, rgba(27,23,57,0) 100%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 56px; }
@media (max-width: 900px) {
  .hero .container { padding-top: 24px; padding-bottom: 36px; }
  .hero::before { height: 120px; }
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 600px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-dark { background: var(--brand-700); color: #fff; border-color: rgba(255,255,255,.06); }
.card-dark h3 { color: #fff; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px;
}
table.data th, table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:nth-child(even) td { background: #FBFAFE; }
table.data tbody tr:hover td { background: var(--brand-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--brand-100); color: var(--brand-700);
}
.badge-gold { background: #FFF3C2; color: #6A4C00; }
.badge-green { background: #D8F5E5; color: #126D3F; }
.badge-red { background: #FCE2E2; color: #92201F; }

/* Charts */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin-bottom: 6px; }
.chart-card .chart-meta { color: var(--ink-500); font-size: .92rem; margin-bottom: 14px; }
.chart-canvas { position: relative; height: 320px; }
.chart-canvas.tall { height: 380px; }
.chart-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .stat-num { font-family: var(--ff-heading); font-size: 1.9rem; font-weight: 800; color: #fff; }
.stat .stat-label { color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* SEO content */
.seo-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  font-size: 1.02rem;
  line-height: 1.8;
}
.seo-block h2, .seo-block h3 { margin-top: 1.4em; }
.seo-block h2:first-child, .seo-block h3:first-child { margin-top: 0; }
.seo-block ul li::marker { color: var(--gold-500); }
.seo-block a { color: var(--brand-700); font-weight: 600; border-bottom: 1px dashed var(--brand-300); }
.seo-block a:hover { color: var(--gold-600); border-color: var(--gold-500); text-decoration: none; }
@media (max-width: 700px) { .seo-block { padding: 24px 20px; } }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink-900); font-family: var(--ff-heading);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-500); transition: transform .15s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { box-shadow: var(--shadow); }
.faq details p { margin-top: 12px; color: var(--ink-500); }

/* Author card */
.author {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.author img { width: 180px; height: 220px; object-fit: cover; border-radius: var(--radius); }
.author h4 { margin: 0 0 4px; }
.author .author-role { color: var(--brand-500); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .author { grid-template-columns: 1fr; text-align: center; } .author img { margin: 0 auto; } }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #15112E 0%, #0E0C24 100%);
  color: rgba(255,255,255,.72);
  padding: 56px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; margin-bottom: 32px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-disclaimer {
  font-size: .82rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 20px; margin-top: 8px; line-height: 1.6;
}
.footer-disclaimer .age { display: inline-block; background: var(--red-500); color: #fff; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }

/* Forms (login/register) */
.auth-card {
  width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--ink-500); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-700); }
.field input, .field select {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 1rem;
  font-family: inherit; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-500); margin-bottom: 16px; }
.auth-link { text-align: center; margin-top: 14px; font-size: .95rem; color: var(--ink-500); }

/* Image utilities */
.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tilt { transform: rotate(-2deg); transition: transform .25s ease; }
.tilt:hover { transform: rotate(0); }

/* Lists with icon */
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.icon-list li:last-child { border-bottom: none; }
.icon-list .ic {
  width: 28px; height: 28px; min-width: 28px; border-radius: 8px;
  background: var(--brand-100); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.icon-list .ic.gold { background: #FFF3C2; color: #6A4C00; }
.icon-list .ic.green { background: #D8F5E5; color: #126D3F; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: flex-start;
  background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--ff-heading); font-weight: 800; font-size: 1.3rem;
}
.step-num::after { content: counter(step); }

/* Pills row */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  font-size: .9rem; color: var(--ink-700); font-weight: 600;
}
.pill.gold { background: #FFF6D1; border-color: #F2C43B; color: #6A4C00; }
.pill.dark { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Breadcrumbs */
.crumbs { padding: 14px 0; font-size: .9rem; color: var(--ink-500); }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs span { color: var(--ink-700); font-weight: 600; }
.crumbs .sep { margin: 0 8px; color: var(--ink-300); }

/* Hero variants per page */
.hero-app {
  background: radial-gradient(900px 500px at 110% 0%, rgba(46,194,126,.30), transparent 60%),
              linear-gradient(160deg, #15112E 0%, #1F1B45 60%, #2E2A5E 100%);
}
.hero-pay {
  background: radial-gradient(900px 500px at -10% 0%, rgba(255,210,63,.22), transparent 60%),
              linear-gradient(160deg, #15112E 0%, #201C41 70%, #1A1639 100%);
}
.hero-sport {
  background: radial-gradient(900px 500px at 20% 0%, rgba(46,194,126,.22), transparent 60%),
              linear-gradient(160deg, #15112E 0%, #1A1639 60%, #221A4A 100%);
}
.hero-live {
  background: radial-gradient(900px 500px at 100% 100%, rgba(229,91,91,.22), transparent 60%),
              linear-gradient(160deg, #1A1639 0%, #221940 60%, #2A2356 100%);
}
.hero-slots {
  background: radial-gradient(900px 600px at 50% -10%, rgba(255,210,63,.30), transparent 60%),
              linear-gradient(160deg, #15112E 0%, #2A2356 100%);
}
.hero-promo {
  background: radial-gradient(900px 500px at 100% 0%, rgba(229,91,91,.20), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(255,210,63,.18), transparent 60%),
              linear-gradient(155deg, #15112E 0%, #2A2153 100%);
}

/* Floating decoration */
.deco-bg-stripe {
  position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Focus outline (a11y) */
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 8px; }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--brand-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.gap-lg { gap: 28px; }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
hr.divider { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* Heat strip / progress */
.bar-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 14px; padding: 8px 0; }
.bar-row .bar-label { font-weight: 600; }
.bar { height: 10px; background: var(--brand-50); border-radius: 999px; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--gold-500)); border-radius: 999px; }
.bar-row .bar-num { font-variant-numeric: tabular-nums; color: var(--ink-700); font-weight: 700; }

/* Pros/Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.proscons .pc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.proscons h4 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding: 6px 0; padding-left: 26px; position: relative; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }
.proscons .cons li::before { content: "−"; position: absolute; left: 0; color: var(--red-500); font-weight: 800; }

/* Hero split image holder */
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-visual img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-visual .float-card {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(15,12,40,.88); color: #fff;
  padding: 14px 18px; border-radius: var(--radius); backdrop-filter: blur(6px);
  font-size: .92rem;
}

/* Diagram (CSS only) */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch;
}
.flow .step-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px;
  box-shadow: var(--shadow-sm); position: relative;
}
.flow .step-box .ic { background: var(--brand-100); color: var(--brand-700); border-radius: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.flow .step-box h5 { margin: 0 0 4px; font-family: var(--ff-heading); }
.flow .step-box p { font-size: .9rem; color: var(--ink-500); margin: 0; }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* Big quote */
blockquote.quote {
  border-left: 4px solid var(--gold-500); padding: 12px 18px; background: #FFF8DA;
  font-style: italic; color: #6A4C00; border-radius: 8px; margin: 18px 0;
}

/* Page intro grid */
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: stretch; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* Comparison ribbon */
.ribbon-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 700px) { .ribbon-row { grid-template-columns: 1fr; } }
.ribbon {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff; border-radius: var(--radius-lg); padding: 22px;
}
.ribbon h4 { color: #fff; }
.ribbon p { color: rgba(255,255,255,.85); margin: 0; }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { background: var(--brand-50); color: var(--brand-700); padding: 4px 10px; border-radius: 6px; font-size: .82rem; font-weight: 600; }

/* Author card */
.author-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  background: linear-gradient(135deg, #F5F3FB 0%, #FFF 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  align-items: center;
}
.author-photo {
  width: 220px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-50);
}
.author-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 720px) {
  .author-card { grid-template-columns: 1fr; gap: 18px; }
  .author-photo { width: 160px; height: 200px; margin: 0 auto; }
}

/* Auth forms (login/register) */
.auth-shell {
  max-width: 460px; margin: 40px auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.auth-shell h1 { margin-top: 0; font-family: var(--ff-heading); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  font-size: .92rem; color: var(--ink-700);
}
.form-group input,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; background: #FAF9FE;
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--brand-500); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-help { font-size: .85rem; color: var(--ink-500); margin-top: 4px; }
.form-actions { margin-top: 18px; }
.form-actions .btn { width: 100%; }
.auth-divider {
  text-align: center; margin: 18px 0;
  color: var(--ink-500); font-size: .9rem;
}

/* Hero variants for new pages */
.hero-about { padding: 68px 0 56px; background: linear-gradient(135deg, #2B2456 0%, #5C4AA0 100%); color: #fff; position: relative; overflow: hidden; }
.hero-about h1 { color: #fff; }
.hero-about .lead { color: rgba(255,255,255,.85); }
.hero-about .crumbs { color: rgba(255,255,255,.7); }
.hero-about .crumbs a { color: rgba(255,255,255,.7); }
.hero-about .crumbs span { color: #fff; }

/* Legal pages */
.legal-doc {
  max-width: 880px; margin: 40px auto;
  font-size: 1rem; line-height: 1.7;
}
.legal-doc h2 { font-family: var(--ff-heading); margin-top: 32px; }
.legal-doc h3 { font-family: var(--ff-heading); margin-top: 24px; color: var(--brand-700); }
.legal-doc ol { padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
