/* =============================================================
   MAGICAL SPIN — Purple Gold Theme
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================= */

/* NOTE: Legal modal additions are appended at end of file */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 60%;
}

button, input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ============================================================
   CSS VARIABLES — :root
   ============================================================ */
:root {
  /* Colors */
  --color-bg:          #0D0B1A;
  --color-surface:     #1A1730;
  --color-surface-2:   #221F42;
  --color-primary:     #FFD700;
  --color-primary-dim: #B89A00;
  --color-accent:      #7B2FBE;
  --color-accent-dim:  #5A2190;
  --color-text:        #E8E4F2;
  --color-muted:       #9E98B8;
  --color-border:      rgba(123, 47, 190, 0.25);
  --color-overlay:     rgba(13, 11, 26, 0.82);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --grad-accent:    linear-gradient(135deg, #7B2FBE 0%, #4A1580 100%);
  --grad-hero:      linear-gradient(160deg, #1A1048 0%, #0D0B1A 55%, #1A0D2E 100%);
  --grad-cta:       linear-gradient(135deg, #7B2FBE 0%, #4A00C8 50%, #2D0080 100%);
  --grad-gold:      linear-gradient(135deg, #FFD700 0%, #FFAA00 50%, #FF8C00 100%);
  --grad-surface:   linear-gradient(180deg, #1A1730 0%, #120F28 100%);

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  40px;
  --spacing-2xl: 64px;

  /* Layout */
  --container-max:  1140px;
  --header-h:       68px;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-pill:    999px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold:    0 0 24px rgba(255, 215, 0, 0.25);
  --shadow-purple:  0 0 32px rgba(123, 47, 190, 0.35);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover { opacity: 0.85; }

.logo__icon {
  font-size: 1.4rem;
  display: inline-block;
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav__link {
  display: block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}

.nav__link--active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Nav dropdown group */
.nav__group {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

.nav__group:hover .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__dropdown a:hover {
  color: var(--color-primary);
  background: rgba(255,215,0,0.07);
}

/* Header auth */
.header__auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Menu toggle (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle span { width: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:hover::after {
  background: rgba(255,255,255,0.07);
}

.btn:active {
  transform: translateY(0);
}

/* Primary */
.btn--primary {
  background: var(--grad-primary);
  color: #1A0D00;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(255,215,0,0.45);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background: rgba(255,215,0,0.08);
}

/* CTA */
.js-outlink {
  background: var(--grad-gold);
  color: #1A0D00;
  padding: 14px 36px;
  font-size: 1.0625rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 32px rgba(255,200,0,0.4);
  font-weight: 700;
}

.js-outlink:hover {
  box-shadow: 0 8px 40px rgba(255,200,0,0.55);
  transform: translateY(-2px);
}

/* Small */
.btn--small {
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* Purple accent btn */
.btn--accent {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.btn--accent:hover {
  box-shadow: 0 6px 30px rgba(123,47,190,0.55);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(123,47,190,0.25) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(255,215,0,0.12) 0%, transparent 60%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,215,0,0.025) 0px,
      rgba(255,215,0,0.025) 1px,
      transparent 1px,
      transparent 40px
    );
}

/* Decorative orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(123,47,190,0.3) 0%, transparent 70%);
  animation: pulse-orb 6s ease-in-out infinite;
}

.hero__orb--2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(255,215,0,0.18) 0%, transparent 70%);
  animation: pulse-orb 8s ease-in-out infinite reverse;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 14px;
  text-shadow: 0 0 40px rgba(255,215,0,0.35);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Bonus block inside hero */
.hero__bonus {
  background: rgba(26,23,48,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4), var(--shadow-gold);
  margin-bottom: 28px;
  min-width: 300px;
}

.hero__bonus-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero__bonus-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255,215,0,0.5);
}

.hero__bonus-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ============================================================
   CATEGORIES BAR
   ============================================================ */
.categories-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

.categories-bar__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cat-tile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
}

.cat-tile:hover,
.cat-tile.is-active {
  background: var(--color-primary);
  color: #1A0D00;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main {
  padding: 40px 20px 60px;
}

/* ============================================================
   CONTENT SECTION
   ============================================================ */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 22px;
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  margin-top: 28px;
}

.content-section p {
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-section .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.65;
}

.content-section ol,
.content-section ul {
  margin-bottom: 14px;
  padding-left: 0;
}

.content-section ul li {
  position: relative;
  padding-left: 20px;
  color: var(--color-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.65rem;
  top: 6px;
}

.content-section ol {
  counter-reset: ol-counter;
}

.content-section ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 28px;
  color: var(--color-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-section ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 3px;
}

.content-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.content-section a:hover {
  opacity: 0.78;
}

/* ============================================================
   BONUS CARDS
   ============================================================ */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-purple);
  border-color: rgba(123,47,190,0.4);
}

.bonus-card:hover::before {
  opacity: 1;
}

.bonus-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.bonus-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.bonus-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 6px;
}

.bonus-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(123,47,190,0.18);
  color: #C084FC;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.bonus-table,
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.9rem;
}

.bonus-table th,
.styled-table th {
  background: rgba(123,47,190,0.22);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 13px 18px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bonus-table td,
.styled-table td {
  padding: 12px 18px;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(123,47,190,0.12);
  vertical-align: middle;
}

.bonus-table tr:last-child td,
.styled-table tr:last-child td {
  border-bottom: none;
}

.bonus-table tr:hover td,
.styled-table tr:hover td {
  background: rgba(255,215,0,0.04);
  color: var(--color-text);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list dt {
  border-left: 3px solid var(--color-primary);
  background: rgba(255,215,0,0.06);
  padding: 12px 18px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.faq-list dd {
  color: var(--color-muted);
  padding: 10px 18px 10px 21px;
  border-left: 3px solid transparent;
  line-height: 1.7;
}

/* Accordion FAQ */
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq__item.is-open {
  border-color: rgba(255,215,0,0.35);
}

.faq__question {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 22px 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-purple);
  border-color: rgba(123,47,190,0.4);
}

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   TWO COLUMNS
   ============================================================ */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.two-cols--center {
  align-items: center;
}

.two-cols__text {}

.two-cols__media {
  position: relative;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--color-surface);
  padding: 28px 24px;
  text-align: center;
}

.stat-item__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  background: var(--grad-cta);
  text-align: center;
  padding: 52px 32px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-purple);
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,215,0,0.12) 0%, transparent 60%);
}

.cta-block__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  position: relative;
}

.cta-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-block p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  margin-bottom: 28px;
  position: relative;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   NUMBERED & STYLED LISTS
   ============================================================ */
.numbered-list {
  counter-reset: num-list;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.numbered-list li {
  counter-increment: num-list;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--color-muted);
  line-height: 1.7;
}

.numbered-list li::before {
  content: counter(num-list, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 32px;
}

.styled-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.styled-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-muted);
  line-height: 1.7;
}

.styled-list li::before {
  content: '◈';
  color: var(--color-accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 52px 0 0;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer__brand {}

.footer__brand .logo {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: inline-flex;
}

.footer__brand p {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 26ch;
}

.footer__links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links-col ul a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer__links-col ul a:hover {
  color: var(--color-primary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* Footer bottom */
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom-links {
  display: flex;
  gap: 18px;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-muted);
  opacity: 0.7;
}

/* Language switcher */
.footer__lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.footer__lang-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__lang-link:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.footer__lang-link.active {
  color: var(--color-primary);
  border-color: rgba(255,215,0,0.3);
  background: rgba(255,215,0,0.07);
}

/* Disclaimer */
.footer__disclaimer {
  font-size: 0.78rem;
  color: var(--color-muted);
  opacity: 0.55;
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}

/* Badges */
.footer__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 4px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.25);
  color: var(--color-primary);
}

.badge--purple {
  background: rgba(123,47,190,0.15);
  border-color: rgba(123,47,190,0.3);
  color: #C084FC;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 36px 20px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover { opacity: 0.75; }

.breadcrumb__sep {
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-purple);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal.is-open .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal__close:hover {
  color: var(--color-primary);
  background: rgba(255,255,255,0.06);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.modal__body {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--grad-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-purple);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(123,47,190,0.55);
}

/* ============================================================
   PLACEHOLDER IMAGE
   ============================================================ */
.placeholder-img {
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-muted);
  opacity: 0.5;
}

/* ============================================================
   WHEEL BUTTON (special)
   ============================================================ */
.wheel-btn {
  background: var(--grad-gold);
  color: #1A0D00;
  font-weight: 700;
  animation: glow-gold 2.5s ease-in-out infinite;
}

@keyframes glow-gold {
  0%, 100% { box-shadow: 0 0 16px rgba(255,215,0,0.35); }
  50%       { box-shadow: 0 0 36px rgba(255,200,0,0.65); }
}

/* ============================================================
   RESPONSIVE — 1080px
   ============================================================ */
@media (max-width: 1080px) {
  .nav,
  .header__auth,
  .wheel-btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Nav open state */
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .header.nav-open .header__auth {
    display: flex;
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: 20px;
  }

  .nav__link {
    font-size: 0.9375rem;
    padding: 11px 14px;
  }

  .nav__group:hover .nav__dropdown {
    display: none;
  }

  .nav__dropdown {
    position: static;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    display: block !important;
  }

  /* burger animation open */
  .header.nav-open .menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
  }

  .header.nav-open .menu-toggle span {
    opacity: 0;
    transform: scaleX(0);
  }

  .header.nav-open .menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .two-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .bonus-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --header-h: 58px;
  }

  .hero {
    min-height: 260px;
    padding: 44px 16px;
  }

  .hero__bonus {
    min-width: auto;
    width: 100%;
    padding: 18px 20px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .main {
    padding: 28px 16px 48px;
  }

  .content-section {
    margin-bottom: 36px;
  }

  .cta-block {
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }

  .js-outlink {
    width: 100%;
    padding: 14px 24px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 20px 12px;
  }

  .stat-item__value {
    font-size: 1.55rem;
  }

  .page-header {
    padding: 28px 16px;
  }

  .modal__content {
    padding: 28px 22px;
  }

  .back-to-top {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .footer {
    padding-top: 36px;
  }

  .footer__bottom-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .two-cols {
    gap: 20px;
  }

  .card, .bonus-card {
    padding: 20px 18px;
  }

  .categories-bar__inner {
    padding: 0 14px;
  }
}

/* ============================================================
   LEGAL MODALS (Terms & Privacy)
   ============================================================ */

/* Wide legal modal variant */
.modal--legal .modal__content {
  max-width: 760px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}

/* Sticky header inside legal modal */
.modal__legal-head {
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.modal__legal-head .modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal__legal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.modal__legal-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(123,47,190,0.18);
  color: #C084FC;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal__legal-badge--gold {
  background: rgba(255,215,0,0.12);
  color: var(--color-primary);
}

.modal__legal-updated {
  font-size: 0.75rem;
  color: var(--color-muted);
  opacity: 0.7;
}

/* Scrollable body */
.modal__legal-body {
  overflow-y: auto;
  flex: 1;
  padding: 28px 36px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,47,190,0.4) transparent;
}

.modal__legal-body::-webkit-scrollbar {
  width: 5px;
}

.modal__legal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal__legal-body::-webkit-scrollbar-thumb {
  background: rgba(123,47,190,0.4);
  border-radius: 4px;
}

/* TOC — table of contents */
.legal-toc {
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.legal-toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.legal-toc ol {
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-toc ol li {
  counter-increment: toc-counter;
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.legal-toc ol li::before {
  content: counter(toc-counter) ".";
  color: var(--color-primary);
  font-weight: 600;
  min-width: 18px;
}

.legal-toc ol li a {
  color: var(--color-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.legal-toc ol li a:hover {
  color: var(--color-primary);
}

/* Legal section blocks */
.legal-section {
  margin-bottom: 28px;
  scroll-margin-top: 12px;
}

.legal-section__num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(123,47,190,0.18);
}

.legal-section p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.78;
  margin-bottom: 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 8px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section ul li {
  position: relative;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.5rem;
  top: 7px;
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Highlight box inside legal */
.legal-highlight {
  background: rgba(123,47,190,0.1);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.legal-highlight strong {
  color: #C084FC;
}

/* Contact block inside legal */
.legal-contact {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.legal-contact a {
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.legal-contact a:hover {
  opacity: 0.75;
}

/* Footer sticky bar inside modal */
.modal__legal-footer {
  flex-shrink: 0;
  padding: 14px 36px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal__legal-footer p {
  font-size: 0.75rem;
  color: var(--color-muted);
  opacity: 0.65;
}

/* Responsive legal modal */
@media (max-width: 800px) {
  .modal--legal .modal__content {
    max-height: 94vh;
  }

  .modal__legal-head,
  .modal__legal-body,
  .modal__legal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 600px) {
  .modal--legal .modal__content {
    max-height: 98vh;
    border-radius: var(--radius-md);
  }

  .modal__legal-head {
    padding: 18px 18px 14px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .modal__legal-body {
    padding: 20px 18px 24px;
  }

  .modal__legal-footer {
    padding: 12px 18px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .legal-toc {
    display: none; /* hide TOC on small screens */
  }
}
