@charset "UTF-8";

/* ── 1. RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color .18s ease; }
button { cursor: pointer; font: inherit; border: none; background: none; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* <details>/<summary> — kill every browser's native disclosure
   marker. Component-level FAQ styles already use `display:flex` on
   <summary> which neutralises the marker in Firefox/Chromium, but
   older Chromium builds + Safari still render a tiny dot/triangle
   unless each of these three resets is present. Fixing it framework-
   wide means any future FAQ / "click to expand" component ships
   clean, no per-variant repetition needed. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ''; }

/* ── 2. CSS TOKENS (framework-level, override with brand vars) ── */
:root {
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9931px;

  --speed-fast:  .15s;
  --speed:       .22s;
  --speed-slow:  .35s;
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --z-header:   100;
  --z-modal:    200;
  --z-toast:    300;
}

/* ── 3. LAYOUT ─────────────────────────────────────────────────
   ONE source of truth for inner-content width. Components MUST use
   .xg-container for any "centered text/cards/grid" wrapper rather
   than inventing their own max-width. Section backgrounds/colors
   live on the OUTER section — content lives inside the container.
   Mobile padding shrinks automatically below 609px so cards don't
   touch the screen edge. */
.xg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 600px) {
  .xg-container { padding: 0; }
}

/* Banner placeholder. In the builder preview no real image is injected
   into <img data-banner-image>, so its empty src renders as the
   broken-image icon. Hiding it lets the card fall back to its
   accent-gradient background. In production the generator fills src
   via _inject_banner_image() and the rule no longer matches. */
img[data-banner-image]:not([src]),
img[data-banner-image][src=""] {
  display: none !important;
}

/* Inline SVG icon baseline. Replaces the per-tag style="display:inline-block;
   vertical-align:-0.147em;flex-shrink:0" that the icon generator used to emit
   on every <svg>. Keeps icons aligned with their adjacent text and prevents
   shrinking inside flex containers. */
.xg-icon-inline {
  display: inline-block;
  vertical-align: -0.151em;
  flex-shrink: 0;
}

/* Sticky-root state classes. Replaces inline `style="position:sticky;..."` that
   the generator used to inject onto every <header data-sticky-root>. The
   class is toggled per-site by the generator based on the sticky_settings
   preference for the chosen header variant. */
.xg-sticky-root { position: sticky; top: 0; z-index: 100; }
.xg-static-root { position: relative; }

/* Section vertical paddings. Use top/bottom-only (NOT shorthand `padding: 64px 0`)
   so when an author accidentally combines xg-section with xg-container on the
   same element, the horizontal padding from xg-container survives. Without
   this rule split, `padding: 65px 0` shorthand resets horizontal padding to 0
   and the section's text becomes flush against the viewport edge on mobile. */
.xg-section        { padding-top: 65px; padding-bottom: 63px; }
.xg-section-sm     {  padding-bottom: 40px; }
.xg-section-xs     { padding-top: 24px; padding-bottom: 23px; }
@media (max-width: 600px) {
  .xg-section    { padding-top: 40px; padding-bottom: 39px; }
  .xg-section-sm {  padding-bottom: 27px; }
  .xg-section-xs { padding-top: 18px; padding-bottom: 18px; }
}

/* ── 4. GRID SYSTEM ──────────────────────────────────────────── */
.xg-grid   { display: grid; gap: 20px; }
.xg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.xg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.xg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.xg-grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(157px, 1fr)); }
.xg-grid-auto    { grid-template-columns: repeat(auto-fill, minmax(242px, 1fr)); }
.xg-grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(311px, 1fr)); }

.xg-flex         { display: flex; }
.xg-flex-col     { flex-direction: column; }
.xg-items-center { align-items: center; }
.xg-justify-between { justify-content: space-between; }
.xg-justify-center  { justify-content: center; }
.xg-gap-1 { gap: 8px; }
.xg-gap-2 { gap: 16px; }
.xg-gap-3 { gap: 24px; }
.xg-gap-4 { gap: 39px; }
.xg-wrap  { flex-wrap: wrap; }

/* ── 5. TYPOGRAPHY — Single source of truth ─────────────────── */
/*
   Unified type scale used across the entire framework.
   Element selectors (h1..h6) get the same defaults so unclassed
   semantic markup also inherits the canonical sizes.
   Component CSS should NEVER override font-size / font-weight /
   letter-spacing on heading classes — use these classes everywhere.
*/

.xg-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

h1, .xg-h1 {
  font-size: clamp(31px, 4.6vw, 47px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--c-text);
  margin: 0;
}

h2, .xg-h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--c-text);
  margin: 0;
}

h3, .xg-h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--c-text);
  margin: 0;
}

h4, .xg-h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--c-text);
  margin: 0;
}

h5, .xg-h5 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  margin: 0;
}

h6, .xg-h6 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text);
  margin: 0;
}

/* Attention-grabbing modifier for CTA / promo headlines (h2 by markup,
   visually larger so call-to-action stays loud). Apply with: class="xg-h-mega" */
.xg-h-mega {
  font-size: clamp(27px, 3.8vw, 41px);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.xg-lead { font-size: 17px; color: var(--c-text-muted); line-height: 1.7; }
.xg-lead-spaced { margin-top: 10px; margin-bottom: 24px; }
.xg-body  { font-size: 15px; color: var(--c-text-muted); line-height: 1.65; }
.xg-small { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }
.xg-tiny  { font-size: 11px; color: var(--c-text-muted); line-height: 1.45; }

.xg-gradient-text {
  background: linear-gradient(132deg, var(--c-accent) 0%, color-mix(in srgb, var(--c-accent) 60%, var(--c-btn)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xg-text-accent  { color: var(--c-accent); }
.xg-text-muted   { color: var(--c-text-muted); }
.xg-text-btn     { color: var(--c-btn); }
.xg-text-center  { text-align: center; }
.xg-text-right   { text-align: right; }

/* ── 6. BUTTONS ──────────────────────────────────────────────── */
.xg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .025em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.xg-btn:active { transform: scale(.97) !important; }

/* Sizes */
.xg-btn-xs  { padding: 6px 14px;  font-size: 12px; }
.xg-btn-sm  { padding: 9px 20px;  font-size: 13px; }
.xg-btn-lg  { padding: 16px 43px; font-size: 16px; }
.xg-btn-xl  { padding: 20px 57px; font-size: 18px; font-weight: 800; }

/* Shapes */
.xg-btn-pill   { border-radius: var(--radius-full); }
.xg-btn-sharp  { border-radius: 0; }
.xg-btn-round  { border-radius: var(--radius-lg); }

/* Primary — uses btn color
   Hover effect unified with bonus_banner / app_banner / how_to / vip / support
   local CTAs: brightness boost + thin accent ring halo + lift glow. */
.xg-btn-primary {
  background: var(--c-btn);
  color: var(--c-btn-text);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--c-btn) 70%, transparent);
  transition: box-shadow .25s ease, filter .18s ease, opacity .2s ease;
}
.xg-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--c-btn) 22%, transparent),
    0 12px 28px -8px color-mix(in srgb, var(--c-btn) 80%, transparent);
}

/* Accent — uses accent color */
.xg-btn-accent {
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 800;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--c-accent) 70%, transparent);
  transition: box-shadow .25s ease, filter .18s ease, opacity .2s ease;
}
.xg-btn-accent:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--c-accent) 22%, transparent),
    0 12px 27px -8px color-mix(in srgb, var(--c-accent) 80%, transparent);
}

/* Ghost — subtle border. Hover unified with bonus_banner pattern: ring halo. */
.xg-btn-ghost {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
  transition: box-shadow .25s ease, background .2s ease, filter .18s ease;
}
.xg-btn-ghost:hover {
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
  border-color: var(--c-accent);
  color: var(--c-accent);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent),
    0 12px 29px -8px color-mix(in srgb, var(--c-accent) 45%, transparent);
}

/* Outline — accent border */
.xg-btn-outline {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.xg-btn-outline:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c-accent) 35%, transparent);
}

/* Surface — subtle bg */
.xg-btn-surface {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}
.xg-btn-surface:hover {
  background: color-mix(in srgb, var(--c-surface) 70%, var(--c-accent));
  border-color: var(--c-accent);
}

/* Danger */
.xg-btn-danger {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 10px rgba(220,38,38,0.311);
}
.xg-btn-danger:hover { box-shadow: 0 0 18px rgba(220,38,38,0.435); }

/* Disabled */
.xg-btn:disabled, .xg-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Full width */
.xg-btn-block { width: 100%; }

/* Icon-only */
.xg-btn-icon { padding: 11px; border-radius: var(--radius); }
.xg-btn-icon.xg-btn-sm { padding: 7px; }

/* ── 7. CARDS ────────────────────────────────────────────────── */
.xg-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.xg-card:hover {
  border-color: color-mix(in srgb, var(--c-accent) 50%, transparent);
  box-shadow: 0 8px 31px color-mix(in srgb, var(--c-accent) 10%, transparent),
              0 2px 8px rgba(0,0,0,0.445);
  transform: translateY(-3px);
}

.xg-card-body   { padding: 24px; }
.xg-card-header { padding: 18px 24px; border-bottom: 1px solid var(--c-border); }
.xg-card-footer { padding: 16px 24px; border-top: 1px solid var(--c-border); }

/* Glow variant */
.xg-card-glow {
  box-shadow: 0 0 0 1px var(--c-border),
              0 4px 23px rgba(0,0,0,0.472);
}
.xg-card-glow:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-accent) 70%, transparent),
              0 0 39px color-mix(in srgb, var(--c-accent) 12%, transparent),
              0 8px 40px rgba(0,0,0,0.537);
  transform: translateY(-4px);
}

/* Premium variant */
.xg-card-premium {
  background: linear-gradient(148deg,
    color-mix(in srgb, var(--c-surface) 90%, var(--c-accent)),
    var(--c-surface));
  border-color: color-mix(in srgb, var(--c-accent) 30%, transparent);
}

/* Flat — no hover */
.xg-card-flat { transition: none; }
.xg-card-flat:hover { transform: none; box-shadow: none; }

/* ── 8. BADGES ───────────────────────────────────────────────── */
.xg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.xg-badge-accent {
  background: color-mix(in srgb, var(--c-accent) 15%, transparent);
  color: var(--c-accent);
  border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.xg-badge-live {
  background: #dc2626;
  color: #fff;
  animation: xg-pulse-badge 1.974s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(220,38,38,0.464);
}
.xg-badge-hot {
  background: linear-gradient(134deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.413);
}
.xg-badge-new {
  background: linear-gradient(139deg, #16a34a, #15803d);
  color: #fff;
}
.xg-badge-vip {
  background: linear-gradient(131deg, #92400e, #b45309);
  color: #fef3c7;
  border: 1px solid #d97706;
}
.xg-badge-surface {
  background: var(--c-surface);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.xg-badge-top {
  background: linear-gradient(136deg, var(--c-btn), color-mix(in srgb, var(--c-btn) 70%, var(--c-accent)));
  color: var(--c-btn-text);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c-btn) 35%, transparent);
}

/* Age/responsibility marker — deliberately low-contrast so it reads as
   a compliance note, not a promo badge. Every footer uses this exact
   class, so "18+" always looks identical across site variants. */
.xg-badge-age {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .75;
  white-space: nowrap;
}

/* Live dot */
.xg-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: xg-pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── 9. TAGS / PILLS ─────────────────────────────────────────── */
.xg-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.xg-tag:hover, .xg-tag.active {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.xg-tag.active {
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}

/* ── 10. HEADER ──────────────────────────────────────────────── */
.xg-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-primary);
  border-bottom: 1px solid var(--c-border);
}

/* When toggled non-sticky by builder */
.xg-header[style*="position:relative"] {
  position: relative !important;
}

.xg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}
.xg-header-inner a[class*="-btn"],
.xg-header-inner a[class*="_btn"],
.xg-header-inner a.xg-btn {
  font-size: 0.814rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
}

/* Promo strip above header */
.xg-header-strip {
  background: var(--c-accent);
  color: var(--c-bg);
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 24px;
}

.xg-header-strip a {
  color: inherit;
  opacity: .85;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: opacity .15s, text-decoration-color .15s;
}
.xg-header-strip a:hover { opacity: 1; text-decoration-color: currentColor; }

/* Logo */
.xg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .15s;
}
a.xg-logo:hover { opacity: .7; }
div.xg-logo { user-select: none; }

.xg-logo-icon {
  width: 33px;
  height: 35px;
  background: var(--c-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  padding-bottom: 1px;
  color: var(--c-bg);
  flex-shrink: 0;
}

.xg-logo-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--c-text);
  line-height: 1;
  white-space: nowrap;
}

.xg-logo-png {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav */
.xg-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.xg-nav-link {
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.xg-nav > .xg-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--speed) var(--ease),
              background var(--speed) var(--ease);
}

.xg-nav > .xg-nav-link:hover {
  color: var(--c-text);
  background: color-mix(in srgb, var(--c-text) 6%, transparent);
}

.xg-nav > .xg-nav-link.active {
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
}

/* ── Nav Hover Styles ── */

/* 1. Animated underline — line grows from center */
.xg-nav-hover-1 .xg-nav > .xg-nav-link::after { content:''; position:absolute; bottom:2px; left:50%; width:0; height:2px; background:var(--c-accent); border-radius:2px; transition:width .25s ease, left .25s ease; }
.xg-nav-hover-1 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-text); }
.xg-nav-hover-1 .xg-nav > .xg-nav-link:hover::after { width:60%; left:20%; }

/* 2. Pill highlight — soft accent pill */
.xg-nav-hover-2 .xg-nav > .xg-nav-link { border-radius:20px; }
.xg-nav-hover-2 .xg-nav > .xg-nav-link:hover { background:color-mix(in srgb, var(--c-accent) 12%, transparent); color:var(--c-accent); }

/* 3. Clean accent text — just color shift */
.xg-nav-hover-3 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-accent); }

/* 4. Soft bg — subtle background tint */
.xg-nav-hover-4 .xg-nav > .xg-nav-link { border-radius:6px; }
.xg-nav-hover-4 .xg-nav > .xg-nav-link:hover { background:color-mix(in srgb, var(--c-text) 8%, transparent); color:var(--c-text); }

/* 5. Glow — soft text glow on hover */
.xg-nav-hover-5 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-accent); text-shadow:0 0 10px color-mix(in srgb, var(--c-accent) 40%, transparent); }

/* 6. Full underline — line slides from left */
.xg-nav-hover-6 .xg-nav > .xg-nav-link::after { content:''; position:absolute; bottom:2px; left:0; width:0; height:2px; background:var(--c-accent); transition:width .2s ease; }
.xg-nav-hover-6 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-text); }
.xg-nav-hover-6 .xg-nav > .xg-nav-link:hover::after { width:100%; }

/* 7. Thin underline — subtle 1px line appears */
.xg-nav-hover-7 .xg-nav > .xg-nav-link::after { content:''; position:absolute; bottom:4px; left:16px; right:16px; height:1px; background:var(--c-accent); opacity:0; transition:opacity .2s; }
.xg-nav-hover-7 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-accent); }
.xg-nav-hover-7 .xg-nav > .xg-nav-link:hover::after { opacity:1; }

/* 8. Accent pill bg — filled rounded */
.xg-nav-hover-8 .xg-nav > .xg-nav-link { border-radius:6px; }
.xg-nav-hover-8 .xg-nav > .xg-nav-link:hover { background:color-mix(in srgb, var(--c-accent) 15%, transparent); color:var(--c-accent); }

/* 9. Dot — small accent dot below */
.xg-nav-hover-9 .xg-nav > .xg-nav-link::after { content:''; position:absolute; bottom:2px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--c-accent); opacity:0; transition:opacity .2s; }
.xg-nav-hover-9 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-text); }
.xg-nav-hover-9 .xg-nav > .xg-nav-link:hover::after { opacity:1; }

/* 10. Border bottom — clean 2px bottom line */
.xg-nav-hover-10 .xg-nav > .xg-nav-link::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--c-accent); transform:scaleX(0); transition:transform .2s ease; }
.xg-nav-hover-10 .xg-nav > .xg-nav-link:hover { background:none; color:var(--c-text); }
.xg-nav-hover-10 .xg-nav > .xg-nav-link:hover::after { transform:scaleX(1); }

/* Lang Switcher */
.xg-lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.xg-lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  transition: opacity 0.151s;
  padding: 0;
}
.xg-lang-current:hover { opacity: 0.75; }
.xg-lang-current .xg-lang-flag {
  width: 32px;
  height: 33px;
}
.xg-lang-flag {
  width: 22px;
  height: 21px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.xg-lang-code { text-transform: uppercase; letter-spacing: 0.041em; }
.xg-lang-arrow { font-size: 0.491rem; opacity: 0.5; transition: transform 0.198s; }
.xg-lang-switch:hover .xg-lang-arrow { transform: rotate(178deg); }
.xg-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 4px;
  min-width: 163px;
  background: var(--c-primary);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.152s;
  z-index: 200;
}
.xg-lang-switch:hover .xg-lang-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.xg-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.824rem;
  font-weight: 500;
  transition: background 0.153s, color 0.15s;
}
.xg-lang-option:hover { background: color-mix(in srgb, var(--c-text) 7%, transparent); color: var(--c-text); }
.xg-lang-option.active { color: var(--c-accent); }

/* Legacy */
.xg-nav-underline .xg-nav-link { border-radius: 0; border-bottom: 2px solid transparent; padding-bottom: 6px; }
.xg-nav-underline .xg-nav-link:hover { background: none; border-bottom-color: var(--c-border); }
.xg-nav-underline .xg-nav-link.active { background: none; border-bottom-color: var(--c-accent); }

/* CTA group */
.xg-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile menu button */
.xg-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--speed) var(--ease);
}
.xg-menu-btn:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.xg-menu-btn span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.xg-menu-btn.open span:nth-child(1) { transform: rotate(44deg) translate(5px, 5px); }
.xg-menu-btn.open span:nth-child(2) { opacity: 0; }
.xg-menu-btn.open span:nth-child(3) { transform: rotate(-46deg) translate(5px, -5px); }

/* Mobile drawer */
.xg-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--c-primary);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 8px 25px rgba(0,0,0,0.238);
}
.xg-mobile-nav.open { display: flex; }

/* Mobile header policy (framework override).
   Some generated header variants keep desktop action groups visible on
   mobile by default. Locale-specific CSS loaded after this file may
   override that behavior; PT hides `.h18_cta-desktop` on mobile and
   keeps login/register actions inside the drawer menu only.

   Selector permissiveness:
   - `[class*="cta-desktop"]` substring match covers BOTH hyphen- and
     underscore-separated prefixes (`.st41-cta-desktop` AND `.h18_cta-desktop`).
   - No `.xg-header` ancestor scope: 3 header variants (h11/h14/h21)
     don't use the `xg-header` class. The class names below are
     specific enough that we don't need parent scoping. */
@media (max-width: 768px) {
  body [class*="cta-desktop"],
  body [class*="actions-desktop"],
  body [class*="btns-desktop"],
  body [class*="cta-wrap"],
  body [class*="login-actions"],
  body [class*="strip-actions"] {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
  }
  body [class*="cta-desktop"] .xg-btn,
  body [class*="actions-desktop"] .xg-btn,
  body [class*="btns-desktop"] .xg-btn,
  body [class*="cta-wrap"] .xg-btn,
  body [class*="cta-desktop"] button,
  body [class*="actions-desktop"] button,
  body [class*="btns-desktop"] button,
  body [class*="cta-wrap"] button,
  body [class*="cta-desktop"] a,
  body [class*="actions-desktop"] a,
  body [class*="btns-desktop"] a,
  body [class*="cta-wrap"] a {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  /* Lang switcher stays compact on mobile too */
  .xg-lang-switch, .xg-lang-current {
    font-size: 12px !important;
  }
}
.xg-mobile-nav .xg-container { padding-top: 0; padding-bottom: 0; }
.xg-mobile-nav .xg-nav { display: flex; flex-direction: column; gap: 2px; }
.xg-mobile-nav .xg-nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.958rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--c-text) 75%, transparent);
  text-decoration: none;
  transition: background 0.154s, color 0.146s;
}
.xg-mobile-nav .xg-nav-link:hover {
  background: color-mix(in srgb, var(--c-text) 7%, transparent);
  color: var(--c-text);
}

/* ── 11. HERO ────────────────────────────────────────────────── */
.xg-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(136deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
}

.xg-hero-inner {
  position: relative;
  z-index: 1;
  /* Vertical-only padding — using shorthand `padding: 49px 0` would also
     wipe out the horizontal padding (28px / 16px) that .xg-container
     provides on the SAME element, leaving hero text flush against the
     viewport edge on mobile. Set top/bottom explicitly so horizontal
     padding inherited from .xg-container stays intact. */
  padding-top: 49px;
  padding-bottom: 48px;
}

/* Decorative bg mesh */
.xg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, color-mix(in srgb, var(--c-accent) 8%, transparent), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, color-mix(in srgb, var(--c-btn) 6%, transparent), transparent);
  pointer-events: none;
}

.xg-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.xg-hero-center { text-align: center; max-width: 777px; margin: 0 auto; }

/* ── 12. DIVIDERS ────────────────────────────────────────────── */
.xg-divider     { height: 1px; background: var(--c-border); }
.xg-divider-v   { width: 1px; height: auto; align-self: stretch; background: var(--c-border); flex-shrink: 0; }

.xg-divider-accent {
  height: 2px;
  background: linear-gradient(88deg, transparent, var(--c-accent), transparent);
}

.xg-section-break {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.xg-section-break::before,
.xg-section-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border));
}
.xg-section-break::after {
  background: linear-gradient(263deg, transparent, var(--c-border));
}

/* ── 13. SCROLL STRIP (game cards, etc.) ─────────────────────── */
.xg-scroll-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
}

.xg-scroll-strip::-webkit-scrollbar { height: 3px; }
.xg-scroll-strip::-webkit-scrollbar-track { background: var(--c-surface); border-radius: 2px; }
.xg-scroll-strip::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.xg-scroll-strip > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── 14. GAME CARD ───────────────────────────────────────────── */
.xg-game-card {
  width: 157px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  cursor: pointer;
}

.xg-game-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c-accent) 15%, transparent);
}

.xg-game-thumb {
  height: 99px;
  background: linear-gradient(136deg, var(--c-primary), var(--c-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 39px;
  position: relative;
  overflow: hidden;
}

.xg-game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.595);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  backdrop-filter: blur(2px);
}

.xg-game-card:hover .xg-game-thumb-overlay { opacity: 1; }

.xg-play-btn {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--c-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-btn-text);
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.448);
  transition: transform var(--speed-fast) var(--ease-spring);
}
.xg-play-btn:hover { transform: scale(1.1); }

.xg-game-info { padding: 10px 12px 12px; }

.xg-game-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xg-game-provider {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 3px;
}

/* ── 15. PROGRESS BAR ────────────────────────────────────────── */
.xg-progress {
  height: 5px;
  background: color-mix(in srgb, var(--c-border) 80%, transparent);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.xg-progress-fill {
  height: 100%;
  background: linear-gradient(91deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 70%, var(--c-btn)));
  border-radius: var(--radius-full);
  transition: width .8s var(--ease);
}

.xg-progress-thin { height: 3px; }
.xg-progress-thick { height: 8px; }

/* ── 16. STATS ───────────────────────────────────────────────── */
.xg-stat-value {
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--c-accent);
  line-height: 1;
}

.xg-stat-label {
  font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
}

/* ── 17. COUNTDOWN ───────────────────────────────────────────── */
.xg-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xg-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 67px;
  backdrop-filter: blur(8px);
}

.xg-countdown-num {
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--c-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.xg-countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-text-muted);
  margin-top: 5px;
}

.xg-countdown-sep {
  font-size: 29px;
  font-weight: 900;
  color: var(--c-text-muted);
  margin-top: -10px;
  opacity: .5;
}

/* ── 18. RATING ──────────────────────────────────────────────── */
.xg-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; }
.xg-score {
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--c-accent);
  line-height: 1;
}
.xg-score-sm { font-size: 24px; }

/* ── 19. PAYMENT PILLS ───────────────────────────────────────── */
.xg-payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xg-payment-pill {
  padding: 5px 14px;
  background: color-mix(in srgb, var(--c-surface) 80%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.xg-payment-pill:hover { border-color: var(--c-accent); color: var(--c-text); }

/* Payment icon (SVG / PNG) rendered in the footer. Without an explicit
   size, SVGs shipped without intrinsic width/height attributes expand
   to fill the parent — turning a single BTC logo into a full-screen
   takeover. Fixed height + auto width keeps every icon visually
   consistent regardless of their natural dimensions, and the
   surrounding `.xg-payment-pills` flex container handles wrapping.

   White pill background because our colored brand SVGs (Visa blue, MC
   red/yellow, Bitcoin orange, PayPal navy+cyan, etc.) are designed for
   light surfaces — dropping them on a dark casino footer kills the
   contrast. A near-white pill with subtle 92 % opacity lets the dark
   footer tone show through just enough to sit comfortably, without
   washing out the icon's own colours. */
.xg-pay-logo {
  height: 22px;
  width: auto;
  max-width: 57px;
  display: inline-block;
  object-fit: contain;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.899);
  border: 1px solid rgba(0, 0, 0, 0.046);
  border-radius: 6px;
  box-sizing: content-box;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.xg-pay-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.269);
}

/* ── 20. INPUT ───────────────────────────────────────────────── */
.xg-input {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.xg-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent);
}

.xg-input::placeholder { color: var(--c-text-muted); }

/* Input + button inline */
.xg-input-group {
  display: flex;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease);
}
.xg-input-group:focus-within { border-color: var(--c-accent); }
.xg-input-group .xg-input {
  border: none;
  box-shadow: none;
  border-radius: 0;
  flex: 1;
}
.xg-input-group .xg-btn { border-radius: 0; border: none; }

/* ── 21. TABLE ───────────────────────────────────────────────── */
.xg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.xg-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}

.xg-table td {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
  color: var(--c-text);
}

.xg-table tr:hover td { background: color-mix(in srgb, var(--c-surface) 50%, transparent); }
.xg-table tr:last-child td { border-bottom: none; }

/* ── 22. TABS ────────────────────────────────────────────────── */
.xg-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 4px;
}

.xg-tab {
  flex: 1;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  text-align: center;
  border: 1px solid transparent;
}

.xg-tab:hover { color: var(--c-text); background: color-mix(in srgb, var(--c-text) 6%, transparent); }

.xg-tab.active {
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 700;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--c-accent) 40%, transparent);
}

/* Simple underline tabs */
.xg-tabs-underline {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
  padding: 0;
  background: none;
  border-radius: 0;
}

.xg-tabs-underline .xg-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  margin-bottom: -1px;
}

.xg-tabs-underline .xg-tab.active {
  background: none;
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  box-shadow: none;
}

/* ── 23. SLIDER ──────────────────────────────────────────────── */
.xg-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.xg-slider-track {
  display: flex;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.xg-slide {
  min-width: 100%;
}

.xg-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 0 12px;
}

.xg-slider-btn {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: background var(--speed) var(--ease), transform var(--speed-fast) var(--ease);
  backdrop-filter: blur(8px);
  font-size: 18px;
}
.xg-slider-btn:hover { background: var(--c-accent); color: var(--c-bg); transform: scale(1.05); }
.xg-slider-btn:disabled { opacity: .3; cursor: not-allowed; }

.xg-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.xg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition: background var(--speed) var(--ease),
              width var(--speed) var(--ease);
  border: none;
}
.xg-dot.active { width: 25px; border-radius: 4px; background: var(--c-accent); }

/* ── 24. FOOTER ──────────────────────────────────────────────── */
.xg-footer {
  background: var(--c-primary);
  border-top: 1px solid var(--c-border);
  padding: 48px 0 29px;
}

.xg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--c-border);
}

.xg-footer-brand p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 275px;
}

.xg-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.xg-footer-links { display: flex; flex-direction: column; gap: 10px; }
.xg-footer-link {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color var(--speed) var(--ease);
}
.xg-footer-link:hover { color: var(--c-accent); }

.pt-footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  padding: 18px 0 6px;
  text-decoration: none;
}

.pt-footer-brand img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 180px;
  object-fit: contain;
}

.pt-footer-brand:hover {
  opacity: .82;
}

.xg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.xg-footer-legal {
  font-size: 12px;
  color: color-mix(in srgb, var(--c-text-muted) 60%, transparent);
  line-height: 1.7;
  max-width: 843px;
}

/* ── 25. UTILITY HELPERS ─────────────────────────────────────── */
.xg-hidden       { display: none !important; }
.xg-sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.xg-mt-1 { margin-top: 8px; }
.xg-mt-2 { margin-top: 16px; }
.xg-mt-3 { margin-top: 28px; }
.xg-mt-4 { margin-top: 48px; }
.xg-mb-1 { margin-bottom: 8px; }
.xg-mb-2 { margin-bottom: 16px; }
.xg-mb-3 { margin-bottom: 28px; }

/* ── 26. SCROLL-TRIGGERED ANIMATIONS ────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

[data-animate].xg-visible {
  opacity: 1;
  transform: none;
}

[data-animate="fade"] { transform: none; }
[data-animate="left"]  { transform: translateX(-24px); }
[data-animate="right"] { transform: translateX(24px); }
[data-animate="scale"] { transform: scale(.92); }

/* Delay helpers */
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }

/* ── 27. KEYFRAME ANIMATIONS ─────────────────────────────────── */
@keyframes xg-pulse-badge {
  0%, 100% { box-shadow: 0 0 8px rgba(220,38,38,0.543); }
  50%       { box-shadow: 0 0 20px rgba(220,38,38,0.828); }
}

@keyframes xg-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

@keyframes xg-glow {
  0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--c-accent) 25%, transparent); }
  50%       { box-shadow: 0 0 31px color-mix(in srgb, var(--c-accent) 55%, transparent); }
}

@keyframes xg-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes xg-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes xg-spin {
  to { transform: rotate(362deg); }
}

@keyframes xg-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes xg-count {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

.xg-animate-glow   { animation: xg-glow   1.993s ease-in-out infinite; }
.xg-animate-float  { animation: xg-float  2.949s ease-in-out infinite; }
.xg-animate-spin   { animation: xg-spin   7.949s linear infinite; }
.xg-animate-marquee { animation: xg-marquee 19.612s linear infinite; }

/* Skeleton loader */
.xg-skeleton {
  background: linear-gradient(89deg,
    var(--c-surface) 25%,
    color-mix(in srgb, var(--c-surface) 60%, var(--c-border)) 50%,
    var(--c-surface) 75%);
  background-size: 200% 100%;
  animation: xg-shimmer 1.528s infinite;
  border-radius: var(--radius);
}

/* ── 28. SPECIAL EFFECTS ─────────────────────────────────────── */

/* Glass card */
.xg-glass {
  background: color-mix(in srgb, var(--c-surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Neon glow border */
.xg-neon {
  border-color: var(--c-accent) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--c-accent) 40%, transparent),
              0 0 41px color-mix(in srgb, var(--c-accent) 15%, transparent),
              inset 0 0 20px color-mix(in srgb, var(--c-accent) 5%, transparent);
}

/* Gradient border trick */
.xg-grad-border {
  position: relative;
  border: none !important;
}
.xg-grad-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(132deg, var(--c-accent), var(--c-btn));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── 29. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .xg-container { padding: 0; }
  .xg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .xg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .xg-hero-split { grid-template-columns: 1fr; gap: 37px; }
}

@media (max-width: 768px) {
  .xg-container { padding: 0; }
  .xg-section { padding-top: 51px; padding-bottom: 53px; }
  .xg-section-sm {  padding-bottom: 36px; }

  .xg-grid-2, .xg-grid-3, .xg-grid-4 { grid-template-columns: 1fr; }

  .xg-nav { display: none; }
  .xg-menu-btn { display: flex; }

  .xg-header-inner { height: 59px; }
  .xg-logo-text { font-size: 16px; }

  .xg-footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .xg-footer-bottom { flex-direction: column; align-items: flex-start; }

  .xg-hero-inner { padding-top: 54px; padding-bottom: 56px; }
  .xg-h1 { font-size: 33px; }
  .xg-h2 { font-size: 26px; }

  .xg-countdown-box { padding: 10px 12px; min-width: 54px; }
  .xg-countdown-num { font-size: 24px; }

  .xg-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .xg-btn { padding: 11px 22px; }
  .xg-btn-lg { padding: 14px 32px; font-size: 15px; }
  .xg-btn-xl { padding: 16px 35px; font-size: 16px; }
  .xg-stat-value { font-size: 29px; }
  .xg-score { font-size: 32px; }
}
/* Codex section padding override */
section {
  padding: 20px !important;
}

/* Codex h2 spacing override */
h2 {
  margin-bottom: 20px !important;
}

/* Codex inner section block padding override */
section :is(article, aside, blockquote, details, table, .it-table-wrap, .it-list, .it-content-cta,
  [class*="card"], [class*="cards"], [class*="grid"], [class*="panel"], [class*="table"], [class*="list"],
  [class*="scroll"], [class*="cta"], [class*="row"], [class*="wrap"], [class*="faq"],
  [class*="review"], [class*="rating"], [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"],
  [class*="verdict"], [class*="responsible"], [class*="legal"]) {
  padding: 20px !important;
}

/* Codex text spacing around content blocks */
:is(p, li, h3, h4):has(+ :is(ul, ol, table, blockquote, details, article, aside, .it-table-wrap, .it-list, .it-content-cta,
    [class*="table"], [class*="list"], [class*="card"], [class*="cards"], [class*="grid"], [class*="panel"],
    [class*="scroll"], [class*="cta"], [class*="row"], [class*="wrap"], [class*="faq"],
    [class*="review"], [class*="rating"], [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"])) {
  margin-bottom: 20px !important;
}

:is(div, article, aside):has(> :is(p, h3, h4):last-child):has(+ :is(ul, ol, table, blockquote, details, article, aside, .it-table-wrap, .it-list, .it-content-cta,
    [class*="table"], [class*="list"], [class*="card"], [class*="cards"], [class*="grid"], [class*="panel"],
    [class*="scroll"], [class*="cta"], [class*="row"], [class*="wrap"], [class*="faq"],
    [class*="review"], [class*="rating"], [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"]))
  > :is(p, h3, h4):last-child {
  margin-bottom: 20px !important;
}

:is(.it-table-wrap, .it-list, .it-content-cta,
  [class*="table"], [class*="list"], [class*="card"], [class*="cards"], [class*="grid"], [class*="panel"],
  [class*="scroll"], [class*="cta"], [class*="row"], [class*="wrap"], [class*="faq"],
  [class*="review"], [class*="rating"], [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"])
  + :is(p, h2, h3, h4, ul, ol) {
  margin-top: 20px !important;
}

/* Codex nested text spacing fallback */
.nu22-body:has(+ .nu22-aside) > :is(p, h3, h4, ul, ol):last-child,
:is([class*="body"], [class*="content"], [class*="copy"], [class*="text"]):has(+ :is(aside, blockquote, article, .it-table-wrap, .it-list, .it-content-cta,
    [class*="table"], [class*="list"], [class*="card"], [class*="cards"], [class*="grid"], [class*="panel"],
    [class*="scroll"], [class*="cta"], [class*="row"], [class*="wrap"], [class*="faq"],
    [class*="review"], [class*="rating"], [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"]))
  > :is(p, h3, h4, ul, ol):last-child {
  margin-bottom: 20px !important;
}

/* Codex reliable prose spacing */
section :is(p, ul, ol):not(:last-child) {
  margin-bottom: 20px !important;
}

section :is(table, blockquote, details, article, aside, div, ul, ol) + :is(p, ul, ol) {
  margin-top: 20px !important;
}

/* Codex intro prose spacing */
section :is(header, [class*="intro"], [class*="head"], [class*="body"], [class*="content"], [class*="copy"], [class*="text"])
  > :is(p, ul, ol):last-child {
  margin-bottom: 20px !important;
}

/* Codex mobile compact block padding */
@media (max-width: 500px) {
  section :is(article, aside, blockquote, details, table, thead, tbody, tfoot, tr, th, td,
    [class*="card"], [class*="panel"], [class*="table"], [class*="list"], [class*="grid"], [class*="wrap"],
    [class*="box"], [class*="item"], [class*="tile"], [class*="review"], [class*="rating"],
    [class*="myth"], [class*="mito"], [class*="bonus"], [class*="promo"], [class*="verdict"],
    [class*="responsible"], [class*="legal"], [class*="faq"], [class*="cta"]) {
    padding: 10px !important;
  }
}
/* Codex PT mobile section side reset */
@media (max-width: 500px) {
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Codex PT fs32 row padding reset */
.fs32-row {
  padding: 0 !important;
}
/* Codex fs32 row side padding reset */
.fs32-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex strong fs32 row side padding reset */
section .fs32-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex PT strong fs32 row padding reset */
section .fs32-row {
  padding: 0 !important;
}
/* Codex PT bullet list side padding reset */
section .pt-bullet-list,
ul.pt-bullet-list,
ol.pt-bullet-list {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex PT qz66 text side padding reset */
section .qz66-wrap.pt-index-text,
.qz66-wrap.pt-index-text.xg-visible {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex PT fs32 wrap side padding reset */
section .fs32-wrap,
.fs32-wrap.xg-visible {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex bk82 wrap side padding reset */
section .bk82-wrap,
.bk82-wrap.xg-visible {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex PT promo list padding reset */
section .pt-promo-list,
.pt-promo-list.xg-visible {
  padding: 0 !important;
}
/* Codex PT bonus section head padding reset */
section .pt-bonus-text.pt-bonus-section-head,
.pt-bonus-text.pt-bonus-section-head.xg-visible {
  padding: 0 !important;
}
/* Codex PT myth grid padding reset */
section .pt-myth-grid,
.pt-myth-grid.xg-visible {
  padding: 0 !important;
}
/* Codex PT steps grid padding reset */
section .pt-steps-grid,
.pt-steps-grid.xg-visible {
  padding: 0 !important;
}
/* Codex PT slots wrap padding reset */
section .qz66-wrap.pt-slots-wrap,
.qz66-wrap.pt-slots-wrap.xg-visible {
  padding: 0 !important;
}
/* Codex PT RTP wrap padding reset */
section .ul50-wrap.pt-rtp-wrap,
.ul50-wrap.pt-rtp-wrap.xg-visible {
  padding: 0 !important;
}
/* Codex PT do89 row padding reset */
section .do89-row,
.do89-row.xg-visible {
  padding: 0 !important;
}
/* Codex PT yt83 list padding reset */
section .yt83-list,
.yt83-list.xg-visible {
  padding: 0 !important;
}
/* Codex PT yt83 wrap padding reset */
section .yt83-wrap,
.yt83-wrap.xg-visible {
  padding: 0 !important;
}
/* Codex content list side padding reset */
main :is(ul, ol, .it-list) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Codex it odds grid padding reset */
.it-odds-grid {
  padding: 0 !important;
}
/* Codex it schedule cards padding reset */
.it-schedule-cards {
  padding: 0 !important;
}
/* Codex keep padding only on sections */
main section {
  padding: 20px !important;
}

main section :is(
  aside, details,
  .it-table-wrap, .it-list,
  [class*="grid"], [class*="wrap"], [class*="cards"], [class*="list"],
  [class*="block"], [class*="body"], [class*="head"], [class*="row"], [class*="card"]
) {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Codex verdict author text start */
.it-verdict-author {
  text-align: start !important;
  align-items: flex-start !important;
  justify-items: start !important;
}
/* Codex FAQ head spacing reset */
.it-faq-head {
  padding: 0 !important;
  margin-bottom: 0 !important;
}
/* Codex verdict head spacing reset */
.it-verdict-head {
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* Codex: normalize h3 vertical spacing */
h3 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Codex: normalize content list spacing */
:where(main, section, article, .it-content, .it-intro, .it-section, .it-content-block) :where(ul, ol) {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

:where(main, section, article, .it-content, .it-intro, .it-section, .it-content-block) p + :where(ul, ol),
:where(main, section, article, .it-content, .it-intro, .it-section, .it-content-block) :where(ul, ol) + p {
  margin-top: 16px !important;
}
