/* ==========================================================================
   piperspincasino-global.com — shared stylesheet
   Mobile-first. Orange & green palette on a deep forest canvas:
   orange (#FF7A1A) for actions, green (#22C55E) for accents, mesh gradients,
   glass surfaces and pill controls. Type: Commissioner (display) + Inter (text),
   both with Latin Extended and Greek coverage for all locales.

   1. Tokens
   2. Base / reset
   3. Layout helpers
   4. Header, navigation & language switcher
   5. Buttons & small components
   6. Hero, author byline & bonus card
   7. Article layout & content
   8. FAQ, final CTA & author
   9. Footer
   10. Cookie banner & sticky CTA
   11. Legal pages
   12. Motion preferences
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand */
  --orange-300: #ffc078;
  --orange-400: #ffa043;
  --orange-500: #ff7a1a;
  --orange-600: #e85d04;
  --orange-700: #b84300;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #0f7a37;

  /* Surfaces */
  --c-bg: #07120d;
  --c-surface-1: #0c1a13;
  --c-surface-2: #102219;
  --c-surface-3: #152b20;
  --c-surface-4: #1b3528;
  --c-glass: rgba(255, 255, 255, 0.035);
  --c-glass-strong: rgba(255, 255, 255, 0.07);
  --c-border: rgba(255, 255, 255, 0.09);
  --c-border-strong: rgba(255, 255, 255, 0.18);
  --c-border-accent: rgba(255, 122, 26, 0.4);

  /* Text */
  --c-title: #fff7ee;
  --c-text: #e3ece6;
  --c-text-secondary: #a9bcb0;
  --c-text-muted: #7d9286;

  /* Roles */
  --c-cta-text: #1d0b00;
  --c-link: var(--orange-400);
  --c-link-hover: var(--green-400);
  --c-focus: var(--green-400);

  /* Gradients */
  --g-brand: linear-gradient(100deg, var(--orange-300) 0%, var(--orange-500) 40%, var(--green-400) 100%);
  --g-cta: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 55%, var(--orange-600) 100%);
  --g-cta-hover: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-400) 55%, var(--orange-500) 100%);
  --g-green: linear-gradient(135deg, var(--green-400) 0%, var(--green-600) 100%);
  --g-border: linear-gradient(140deg, rgba(255, 160, 67, 0.85), rgba(255, 122, 26, 0.45) 45%, rgba(34, 197, 94, 0.75));
  --g-bar: linear-gradient(90deg, var(--orange-500), var(--orange-400) 45%, var(--green-500));

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Commissioner", "Inter", system-ui, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Effects */
  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-m: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-l: 0 24px 64px rgba(0, 0, 0, 0.45);
  --glow-orange: 0 10px 30px rgba(255, 122, 26, 0.35);
  --glow-green: 0 10px 30px rgba(34, 197, 94, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

@media (min-width: 1180px) {
  :root { --header-h: 76px; }
}

/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(255, 122, 26, 0.13), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(34, 197, 94, 0.1), transparent 60%);
  background-repeat: no-repeat;
  color: var(--c-text);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.55vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--c-link-hover); }

strong { color: var(--c-title); font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--orange-500); color: #fff; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--g-cta);
  color: var(--c-cta-text);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(32px, 5vw, 56px); }
.section--tight { padding-block: 8px clamp(24px, 4vw, 40px); }

/* 4. Header, navigation & language switcher
   ========================================================================== */
.topbar {
  position: relative;
  background: var(--c-surface-1);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--g-bar);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px 7px;
}

.topbar a { color: var(--orange-300); }

.age-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 32px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: var(--g-green);
  color: #03220f;
  font-size: 0.72rem;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--c-border);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 18, 13, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover { color: var(--c-title); }
.logo img { width: 34px; height: 34px; }

/* Mobile navigation panel (burger) */
.nav {
  position: fixed;
  inset: var(--nav-top, var(--header-h)) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(255, 122, 26, 0.16), transparent 70%),
    radial-gradient(600px 300px at 0 100%, rgba(34, 197, 94, 0.14), transparent 70%),
    var(--c-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-glass);
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--orange-400);
  border-right: 2px solid var(--orange-400);
  transform: rotate(45deg);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--c-border-accent);
  background: var(--c-glass-strong);
  color: var(--orange-300);
}

.nav__cta { width: 100%; }

.nav__langs-title {
  margin: 0 0 10px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-pills a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
}

.lang-pills a[aria-current="page"] {
  border-color: transparent;
  background: var(--g-green);
  color: #03220f;
}

.lang-code {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 22px;
  border-radius: var(--r-xs);
  background: rgba(255, 122, 26, 0.16);
  color: var(--orange-300);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-pills a[aria-current="page"] .lang-code { background: rgba(3, 34, 15, 0.18); color: #03220f; }

/* Burger button */
.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-m);
  background: var(--c-glass);
  color: var(--c-title);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.nav-toggle__bar { position: relative; }

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] { border-color: var(--c-border-accent); color: var(--orange-400); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); }

/* Language dropdown (works without JS thanks to <details>) */
.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-m);
  background: var(--c-glass);
  color: var(--c-title);
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover,
.lang[open] summary { border-color: var(--c-border-accent); }
.lang summary .icon--globe { color: var(--green-400); }
.lang summary .icon--chevron { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.lang[open] summary .icon--chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-l);
  background: var(--c-surface-2);
  box-shadow: var(--shadow-l);
  list-style: none;
  animation: pop 0.18s var(--ease);
}

.lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-s);
  color: var(--c-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.lang__menu a:hover { background: var(--c-glass-strong); color: var(--c-title); }

.lang__menu a[aria-current="page"] {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-300);
}

.lang__menu a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.header-inner .header-cta { display: none; }

@media (min-width: 640px) {
  .header-inner .header-cta { display: inline-flex; }
}

@media (min-width: 1180px) {
  .logo { margin-right: 0; }

  .nav {
    position: static;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list {
    display: flex;
    gap: 2px;
  }

  .nav-list a {
    padding: 8px 12px;
    border: 0;
    border-radius: var(--r-pill);
    background: none;
    color: var(--c-text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: var(--c-glass-strong);
    color: var(--c-title);
  }

  .nav .nav__cta,
  .nav .nav__langs,
  .header-inner .nav-toggle { display: none; }
}

/* 5. Buttons & small components
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--cta {
  background: var(--g-cta);
  color: var(--c-cta-text);
  box-shadow: var(--glow-orange), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--g-cta-hover);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.btn--cta:hover { color: var(--c-cta-text); box-shadow: 0 14px 36px rgba(255, 122, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--cta:hover::after { opacity: 1; }

.btn--ghost {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
  color: var(--green-300);
}

.btn--ghost:hover {
  border-color: var(--green-400);
  background: rgba(34, 197, 94, 0.16);
  color: var(--c-title);
}

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.check-list li { display: inline-flex; align-items: center; gap: 8px; }

.check-list .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: var(--green-400);
  stroke-width: 3;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.2), rgba(34, 197, 94, 0.2));
  border: 1px solid var(--c-border);
  color: var(--orange-300);
}

.icon-badge .icon { width: 24px; height: 24px; }

.small-print {
  margin: 14px 0 0;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.small-print a { color: var(--c-text-secondary); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: var(--c-link-hover); }

.callout {
  display: flex;
  gap: 14px;
  margin: 1.5em 0;
  padding: 18px 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--r-l);
  background: rgba(34, 197, 94, 0.07);
}

.callout .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--green-400); }
.callout p { margin: 0; }
.callout--warning { border-color: rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.07); }
.callout--warning .icon { color: var(--orange-400); }

/* 6. Hero, author byline & bonus card
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 56px) clamp(32px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.22), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: min(640px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.18), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
}

.byline__card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--c-surface-2), var(--c-surface-2)) padding-box,
    var(--g-border) border-box;
  box-shadow: var(--shadow-m);
}

.byline__avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--g-brand);
  color: #1d0b00;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.byline__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.byline__label {
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.byline__name {
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.byline__date {
  color: var(--c-text-secondary);
  font-size: 0.82rem;
}

.byline__date time { color: var(--green-300); font-weight: 600; }

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero__content h1 { margin-bottom: 0.5em; }
.hero__content > p { color: var(--c-text-secondary); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); }
}

.bonus-card {
  position: relative;
  padding: 1.5px;
  border-radius: var(--r-xl);
  background: var(--g-border);
  box-shadow: var(--shadow-l), var(--glow-orange);
  transition: transform 0.3s var(--ease);
}

.bonus-card:hover { transform: translateY(-4px); }

.bonus-card__inner {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border-radius: calc(var(--r-xl) - 1.5px);
  background:
    radial-gradient(420px 220px at 100% 0, rgba(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(380px 220px at 0 100%, rgba(34, 197, 94, 0.18), transparent 70%),
    var(--c-surface-1);
  text-align: center;
  overflow: hidden;
}

.bonus-card__label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--g-green);
  color: #03220f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bonus-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 6px;
  color: var(--c-text-secondary);
  font-weight: 700;
}

.bonus-card__brand img { width: 28px; height: 28px; }

.bonus-card__amount {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem);
  line-height: 1.1;
}

.bonus-card__amount .text-gradient {
  display: block;
  margin-top: 4px;
  font-size: 0.62em;
}

.bonus-card__sub { margin: 0 0 20px; color: var(--c-text-secondary); font-size: 0.92rem; }

.bonus-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 22px;
}

.bonus-facts div {
  padding: 12px 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-glass);
}

.bonus-facts dt {
  color: var(--c-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bonus-facts dd {
  margin: 4px 0 0;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
}

/* Quick stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-glass);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.stat:hover { border-color: var(--c-border-accent); transform: translateY(-2px); }

.stat__value {
  display: block;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat__label { display: block; color: var(--c-text-secondary); font-size: 0.86rem; }

/* 7. Article layout & content
   ========================================================================== */
.layout {
  display: grid;
  gap: 32px;
  padding-bottom: clamp(48px, 8vw, 96px);
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.sidebar { display: grid; gap: 16px; }

.toc {
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { color: var(--orange-400); transition: transform 0.2s var(--ease); }
.toc[open] summary .icon { transform: rotate(180deg); }

.toc ol {
  margin: 0;
  padding: 0 10px 14px;
  list-style: none;
  counter-reset: toc;
}

.toc li { counter-increment: toc; }

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--r-s);
  color: var(--c-text-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--orange-400);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.85;
}

.toc a:hover,
.toc a.is-active { background: var(--c-glass-strong); color: var(--c-title); }
.toc a.is-active::before { color: var(--green-400); }

.side-offer {
  padding: 20px;
  border: 1px solid transparent;
  border-radius: var(--r-l);
  background:
    radial-gradient(260px 160px at 100% 0, rgba(255, 122, 26, 0.2), transparent 70%) padding-box,
    linear-gradient(var(--c-surface-1), var(--c-surface-1)) padding-box,
    var(--g-border) border-box;
  text-align: center;
}

.side-offer p {
  margin: 0 0 14px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.side-offer small { display: block; margin-top: 10px; color: var(--c-text-muted); font-size: 0.72rem; }

@media (max-width: 1023px) {
  .side-offer { display: none; }
}

.content { min-width: 0; }

.content > section + section {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--c-border);
}

.content h2 {
  position: relative;
  padding-left: 18px;
}

.content h2::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--orange-500), var(--green-500));
}

.content h3 { margin-top: 1.8em; }

.content ul,
.content ol { margin: 0 0 1.2em; padding-left: 1.3em; }

.content li { margin-bottom: 0.45em; }
.content li::marker { color: var(--orange-400); }

.steps {
  counter-reset: step;
  padding-left: 0 !important;
  list-style: none;
}

.steps li {
  position: relative;
  counter-increment: step;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 4px 0 0 50px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--g-cta);
  color: var(--c-cta-text);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.3);
}

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 0 !important;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-glass);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--g-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.table-wrap {
  margin: 1.4em 0;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-600) transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.2), rgba(34, 197, 94, 0.16));
  color: var(--c-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody th { color: var(--c-title); font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.data-table tbody tr { transition: background-color 0.15s; }
.data-table tbody tr:hover { background: rgba(255, 122, 26, 0.06); }
.data-table tbody tr:last-child > * { border-bottom: 0; }

.data-table tr.is-total > * {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-300);
  font-weight: 700;
}

.data-table--kv tbody th { width: 38%; }
.data-table--wide { min-width: 680px; }

.data-table a { word-break: break-all; }

.cta-row {
  display: flex;
  justify-content: center;
  margin: 2em 0 0.5em;
}

@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
}

/* 8. FAQ, final CTA & author
   ========================================================================== */
.faq { display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
  transition: border-color 0.2s;
}

.faq__item[open] { border-color: var(--c-border-accent); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--orange-300); }

.faq__item summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange-400);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq__item[open] summary .icon { transform: rotate(180deg); background: rgba(34, 197, 94, 0.16); color: var(--green-400); }

.faq__answer { padding: 0 20px 18px; color: var(--c-text-secondary); }
.faq__answer p:last-child { margin-bottom: 0; }

.final-cta {
  position: relative;
  margin-top: 40px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(500px 260px at 0 0, rgba(255, 122, 26, 0.3), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(34, 197, 94, 0.25), transparent 70%),
    var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  text-align: center;
  overflow: hidden;
}

.final-cta__title {
  margin: 0 0 20px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-glass);
  text-align: center;
}

.author__avatar {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--g-brand);
  color: #1d0b00;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.author__label {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author__name {
  margin: 0;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

/* 9. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: clamp(40px, 6vw, 64px) 28px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-1);
  color: var(--c-text-secondary);
  font-size: 0.92rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 3px;
  background: var(--g-bar);
}

.has-sticky-cta .site-footer { padding-bottom: 104px; }

@media (min-width: 1024px) {
  .has-sticky-cta .site-footer { padding-bottom: 28px; }
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
}

.footer-about p { margin: 14px 0; }

.footer-title {
  margin: 0 0 14px;
  color: var(--c-title);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-title--spaced { margin-top: 24px; }

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links .link-btn {
  color: var(--c-text-secondary);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links .link-btn:hover { color: var(--orange-300); }

.rg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
}

.rg-badge .icon { width: 22px; height: 22px; color: var(--green-400); }

.footer-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}

.footer-bottom a { color: var(--c-text-secondary); }

/* 10. Cookie banner & sticky CTA
   ========================================================================== */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 150;
  max-width: 440px;
  padding: 20px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-l);
  background: rgba(12, 26, 19, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-l);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }

.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.cookie-banner__title .icon { color: var(--orange-400); }
.cookie-banner p { margin-bottom: 14px; }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 auto; }

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border-strong);
  background: rgba(7, 18, 13, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}

.sticky-cta.is-visible { transform: none; }
.sticky-cta img { width: 32px; height: 32px; }

.sticky-cta__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--c-title);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.sticky-cta__text small { display: block; color: var(--c-text-muted); font-size: 0.7rem; font-weight: 500; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* 11. Legal pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 64px);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 600px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.18), transparent);
  pointer-events: none;
}

.page-hero .container { position: relative; }
.page-hero__lead { max-width: 720px; color: var(--c-text-secondary); font-size: 1.08rem; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-300); }
.breadcrumb [aria-current="page"] { color: var(--green-300); }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-muted);
  font-size: 0.85rem;
}

.legal-layout {
  display: grid;
  gap: 32px;
  padding-block: clamp(32px, 5vw, 56px) clamp(48px, 8vw, 96px);
}

@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
  .legal-layout .toc { position: sticky; top: calc(var(--header-h) + 20px); }
}

.legal-layout .toc { padding-top: 6px; }

.toc__title {
  margin: 0;
  padding: 12px 18px 8px;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
}

.prose { min-width: 0; max-width: 820px; }
.prose > section + section { margin-top: 40px; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--orange-400); }
.prose .data-table { min-width: 560px; }

.prose address {
  padding: 16px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-glass);
  font-style: normal;
}

/* 12. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
