/* ==========================================================================
   Mega888 Portal — styles.css
   Archetype B (Premium Multi-Vertical Casino & Sportsbook Portal Style)
   Theme: Custom "Azure Ledger" — deep navy base / electric azure accent / white surface
   Button shape: Micro-radius (10px), applied to every button-like element
   ========================================================================== */

/* ---- Theme tokens (Azure Ledger — custom fifth per DESIGN.md Theme Palette System) ---- */
:root {
  --color-base: #0B1E3F;               /* deep navy — header, hero, dark bands */
  --color-accent: #2C7BFF;             /* signature glow / CTA — the ONE accent */
  --color-accent-secondary: #6FB1FF;   /* lighter azure, gradient stops only */
  --color-surface-light: #FFFFFF;      /* white surface / high-contrast text */
  --color-warning: #E5484D;            /* compliance red/amber family, theme-independent */

  --surface-base:      var(--color-base);
  --surface-page:       #F4F8FD;                                                   /* light-section page background */
  --surface-card:       color-mix(in srgb, var(--color-base) 6%, white);          /* light cards on white sections */
  --surface-card-dark:  color-mix(in srgb, var(--color-base) 68%, black 12%);     /* cards on dark sections */
  --surface-glass:      color-mix(in srgb, var(--color-base) 74%, transparent);   /* header / cookie-bar glass chrome */
  --text-primary:       var(--color-surface-light);
  --text-ink:           #0E1B33;                                                   /* body text on light sections */
  --text-muted:         color-mix(in srgb, var(--color-surface-light) 68%, transparent);
  --text-muted-ink:     color-mix(in srgb, var(--text-ink) 62%, transparent);
  --border-subtle:      color-mix(in srgb, var(--color-surface-light) 14%, transparent);
  --border-subtle-ink:  color-mix(in srgb, var(--text-ink) 12%, transparent);
  --focus-ring:         var(--color-accent);
  --glow-accent:        color-mix(in srgb, var(--color-accent) 55%, transparent);

  --accent-telegram: #229ED9;
  --accent-whatsapp: #25D366;

  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-h1:   clamp(2.25rem, 6vw, 4.25rem);
  --fs-h2:   clamp(1.6rem, 3.4vw, 2.6rem);
  --fs-h3:   clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;

  --space-3xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 47px;

  --radius-btn: 10px;
  --radius-card: 18px;
  --radius-card-lg: 26px;

  --shadow-elevate: 0 2px 5px rgba(8, 16, 34, 0.14), 0 14px 32px rgba(8, 16, 34, 0.16);
  --shadow-elevate-lg: 0 6px 12px rgba(8, 16, 34, 0.18), 0 28px 56px rgba(8, 16, 34, 0.22);
  --shadow-glow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent), 0 10px 28px color-mix(in srgb, var(--color-accent) 38%, transparent);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container-max: 1240px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Grain texture — one reusable feTurbulence data-URI, opacity 0.05, overlay blend */
.grain-surface { position: relative; isolation: isolate; }
.grain-surface::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain-surface > * { position: relative; z-index: 2; }

.container { width: min(var(--container-max), 100% - 2 * var(--space-lg)); margin-inline: auto; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface-base), 0 0 0 4px var(--focus-ring);
  border-radius: var(--radius-btn);
}

/* ---- Buttons (micro-radius shape, applied to every button-like element) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.85em 1.4em;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 46px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--color-accent) 48%, transparent); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: color-mix(in srgb, var(--color-surface-light) 10%, transparent);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: color-mix(in srgb, var(--color-surface-light) 18%, transparent); }
.btn--secondary {
  background: color-mix(in srgb, var(--color-surface-light) 8%, transparent);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.6em 1em;
  text-align: left;
  min-width: 0;
  width: 100%;
}
.btn--secondary:hover, .btn--secondary:focus-visible { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn--telegram { background: linear-gradient(135deg, #2AABEE, var(--accent-telegram)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-telegram) 40%, transparent); }
.btn--telegram:hover, .btn--telegram:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-telegram) 50%, transparent); }
.btn--telegram:active { transform: translateY(0) scale(0.98); }
.btn--whatsapp { background: linear-gradient(135deg, #2FE070, var(--accent-whatsapp)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-whatsapp) 40%, transparent); }
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-whatsapp) 50%, transparent); }
.btn--whatsapp:active { transform: translateY(0) scale(0.98); }
.btn__title { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.btn__subtitle { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Icon chip — shared by hero-play-btn / hero-contact-btn (circular glass badge around the SVG) ---- */
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 2.15em; height: 2.15em;
  border-radius: 50%;
  background: color-mix(in srgb, white 22%, transparent);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.btn__icon svg { width: 52%; height: 52%; }
.btn:hover .btn__icon { transform: scale(1.08) rotate(-8deg); background: color-mix(in srgb, white 32%, transparent); }
.btn:active .btn__icon { transform: scale(0.95); }
.btn__label { line-height: 1.15; }

/* Shine sweep on the hero conversion buttons — a soft diagonal highlight that travels
   across on hover, reinforcing these as the primary tappable actions. */
.hero-play-btn, .hero-contact-btn {
  position: relative;
  overflow: hidden;
}
.hero-play-btn::after, .hero-contact-btn::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, color-mix(in srgb, white 40%, transparent), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out);
  pointer-events: none;
}

/* Slow breathing glow on Play Now — it's the single top-priority CTA, so it gets the
   one idle animation on the page; everything else stays still until interacted with. */
@keyframes hero-play-breathe {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 55%, transparent), 0 10px 34px color-mix(in srgb, var(--color-accent) 60%, transparent); }
}
.hero-play-btn { animation: hero-play-breathe 2.6s var(--ease-in-out) infinite; }
.hero-play-btn:hover, .hero-play-btn:focus-visible { animation-play-state: paused; }
.hero-play-btn:hover::after, .hero-contact-btn:hover::after { left: 130%; }
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-glass);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
}
.brand-mark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark__logo { height: 32px; width: auto; }

.lang-switch { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.75rem; }
.lang-switch svg { width: 16px; height: 16px; }

.auth-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--text-primary);
}
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.vertical-tabs {
  display: flex; gap: var(--space-md);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 var(--space-lg) var(--space-sm);
}
.vertical-tabs::-webkit-scrollbar { display: none; }
.vertical-tab {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap; scroll-snap-align: start;
  font-size: 0.85rem; font-weight: 600;
}
.vertical-tab svg { width: 18px; height: 18px; color: currentColor; }
.vertical-tab--active { color: #fff; border-bottom-color: var(--color-accent); background: color-mix(in srgb, var(--color-surface-light) 8%, transparent); border-radius: var(--radius-btn) var(--radius-btn) 0 0; }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 0 var(--space-lg) var(--space-lg);
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid var(--border-subtle);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__link { padding: var(--space-sm) 0; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--border-subtle); }
.mobile-nav__link:last-of-type { border-bottom: none; }
.mobile-nav__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.mobile-nav__actions .btn { flex: 1; }

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .vertical-tabs { display: none; }
  .auth-actions { display: none; }
  .site-header__bar { justify-content: flex-start; }
}

/* ==========================================================================
   Promotions banner slider
   ========================================================================== */
.banner-slider { position: relative; overflow: hidden; background: var(--color-base); }
.banner-slider__track { position: relative; aspect-ratio: 7 / 1; }
.banner-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-in-out);
}
.banner-slide.is-active { opacity: 1; }
.banner-dots { position: absolute; bottom: var(--space-md); left: 50%; transform: translateX(-50%); display: flex; gap: var(--space-xs); z-index: 3; }
.banner-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.banner-dots button.is-active { background: var(--color-accent-secondary); box-shadow: 0 0 8px color-mix(in srgb, var(--color-accent) 70%, transparent); }

.banner-mobile { display: none; width: 100%; height: auto; }

@media (max-width: 720px) {
  .banner-slider__track { display: none; }
  .banner-dots { display: none; }
  .banner-mobile { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-zone {
  position: relative;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent 60%),
              linear-gradient(180deg, var(--color-base) 0%, color-mix(in srgb, var(--color-base) 92%, black 15%) 100%);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}
.hero-inner { position: relative; display: grid; gap: var(--space-2xl); align-items: center; justify-items: center; text-align: center; }

.hero-heading {
  font-family: var(--font-heading); color: #fff;
  font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800;
  min-height: 2.2em;
  margin-bottom: var(--space-md);
}
.hero-heading .word { display: inline-block; }
.js .hero-heading .word { opacity: 0; transform: translateY(16px); }
.js .hero-heading.is-revealed .word { opacity: 1; transform: translateY(0); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }

.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin: 0 auto var(--space-md); max-width: 460px; }
.hero-play-link {
  display: inline-flex; border-radius: var(--radius-btn);
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--color-accent) 45%, transparent));
  transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}
.hero-play-link img { height: 52px; width: auto; }
.hero-play-link:hover, .hero-play-link:focus-visible { transform: translateY(-2px); filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--color-accent) 60%, transparent)); }
.hero-play-link:active { transform: translateY(0) scale(0.97); }
.hero-play-btn { display: none; }

.hero-contact-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: var(--space-sm); margin: 0 auto var(--space-md); max-width: 460px; }
.hero-contact-link {
  display: inline-flex; flex: 1 1 0; min-width: 0;
  filter: drop-shadow(0 6px 16px rgba(8, 16, 34, 0.35));
  transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}
.hero-contact-link img { display: block; width: 100%; height: auto; max-width: 150px; margin-inline: auto; }
.hero-contact-link:hover, .hero-contact-link:focus-visible { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(8, 16, 34, 0.45)); }
.hero-contact-link:active { transform: translateY(0) scale(0.97); }
.hero-contact-btn { display: none; }

.hero-app-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-inline: auto; max-width: 460px; }
.hero-app-row > * { min-width: 0; }

/* Scale the hero CTA stack up a tier on desktop — the 460px mobile-first sizing reads
   small once it's centered in a full-width desktop viewport. */
@media (min-width: 900px) {
  .hero-zone .hero-app-row { max-width: 1200px; }

  /* Play Now + Telegram + WhatsApp share one row on desktop — the two row divs drop
     their own box (display: contents) so their buttons become direct flex children
     of the shared wrapper instead of stacking as two separate rows. */
  .hero-primary-actions {
    display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;
    gap: var(--space-md);
    max-width: 1200px; margin: 0 auto var(--space-md);
  }
  .hero-primary-actions .hero-cta-row,
  .hero-primary-actions .hero-contact-row {
    display: contents;
  }

  /* Desktop gets real CSS-built buttons instead of the upscaled mobile button images.
     Font-size (and therefore padding/icon size, both set in em) scales fluidly between
     900px and 1200px viewport width so Play Now + Telegram + WhatsApp always fit on one
     row without wrapping — a fixed large size here overflowed the row below ~1400px. */
  .hero-play-link, .hero-contact-link { display: none; }
  .hero-play-btn {
    display: inline-flex; flex: 0 1 auto; gap: var(--space-md);
    padding: 0.8em 2.6em;
    font-size: clamp(1.15rem, 1.15rem + 0.7 * (100vw - 900px) / 300, 1.85rem);
  }
  .hero-play-btn .btn__icon { width: 1.7em; height: 1.7em; }
  .hero-contact-btn {
    display: inline-flex; flex: 0 1 auto; gap: var(--space-sm);
    padding: 1.1em 2.2em;
    font-size: clamp(1rem, 1rem + 0.45 * (100vw - 900px) / 300, 1.45rem);
  }
  .hero-contact-btn .btn__icon { width: 1.6em; height: 1.6em; }

  .hero-zone .hero-app-row { gap: var(--space-lg); }
  .hero-zone .hero-app-row .btn--secondary { padding: 2em 2.6em; }
  .hero-zone .hero-app-row .btn__title { font-size: 1.5rem; }
  .hero-zone .hero-app-row .btn__subtitle { font-size: 1.3rem; }
  .hero-zone .hero-app-row .btn__title svg { width: 36px; height: 36px; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.section { padding-block: var(--space-3xl); }
.section--tinted { background: color-mix(in srgb, var(--color-base) 4%, white); color: var(--text-ink); }
.section--dark { background: var(--color-base); color: var(--text-primary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.section-eyebrow { display: block; color: var(--color-accent); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-xs); }
.section-title { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.01em; }
.section--dark .section-title, .section--dark .section-eyebrow { color: var(--text-primary); }

/* Scroll reveal — hidden state only under .js, never blocks no-JS rendering */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }

/* ==========================================================================
   Assurance band (trust / licence) — two-row grid, deliberately muted/flat
   ========================================================================== */
.assurance-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-2xl);
  padding-block: var(--space-lg);
}
.assurance-row + .assurance-row { border-top: 1px solid var(--border-subtle); }
.seal-badge { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); }
.seal-badge__ring { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.seal-badge__ring svg { width: 100%; height: 100%; color: color-mix(in srgb, var(--text-primary) 70%, transparent); }
.seal-badge__ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--color-accent) 60%, transparent); }
.seal-badge__text { font-size: 0.78rem; line-height: 1.3; }
.seal-badge__text strong { display: block; color: var(--text-primary); font-size: 0.85rem; }
.assurance-verify { color: var(--color-accent-secondary); font-size: 0.75rem; text-decoration: underline; }

.stat-ring { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); }
.stat-ring__dial {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-ring__figure { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; color: var(--text-primary); line-height: 1; }
.stat-ring__unit { font-size: 0.55rem; color: var(--text-muted); }
.stat-ring__label { font-size: 0.8rem; }

/* ==========================================================================
   Onboarding steps
   ========================================================================== */
.path-steps { display: flex; flex-wrap: wrap; gap: var(--space-xl); position: relative; }
.path-step { flex: 1 1 200px; position: relative; padding-top: var(--space-lg); }
.path-step::before {
  content: attr(data-step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
  margin-bottom: var(--space-md);
}
.path-connector { position: absolute; top: 40px; left: 60%; width: 80%; height: 2px; background: var(--border-subtle-ink); z-index: -1; }
.path-step:last-child .path-connector { display: none; }
/* Below ~720px the flex-wrap on .path-steps stacks items into a column, where a horizontal
   connector line no longer makes sense and was overflowing the viewport — hide it there. */
@media (max-width: 720px) { .path-connector { display: none; } }
.path-step__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.path-step__copy { color: var(--text-muted-ink); font-size: 0.85rem; }

/* ==========================================================================
   App download zone
   ========================================================================== */
.app-cta-section { position: relative; overflow: hidden; }
.app-cta-zone { position: relative; z-index: 2; display: grid; gap: var(--space-2xl); align-items: center; }
.app-cta-zone > * { min-width: 0; max-width: 46ch; }
/* Full section height (matches the dark background exactly, top to bottom), but the
   right edge lines up with .container's inner edge instead of the viewport edge — same
   calc .container itself uses to center, so the phone stays visually tied to the copy. */
.app-cta-bg {
  position: absolute; z-index: 0;
  top: 0; right: calc((100% - min(var(--container-max), 100% - 2 * var(--space-lg))) / 2);
  height: 100%; width: auto;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 720px) { .app-cta-bg { display: none; } }
.app-cta-zone__title { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 800; margin-bottom: var(--space-sm); }
.app-cta-zone__copy { color: var(--text-muted); max-width: 46ch; margin-bottom: var(--space-lg); }

/* Buttons + QR codes share one grid so each QR chip lines up directly under its own
   download button on every screen size, instead of drifting out of alignment. */
.app-download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.app-download-grid > * { min-width: 0; }
.qr-chip { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.qr-chip__code { width: 68px; height: 68px; background: #fff; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.qr-chip__code img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-chip__label { font-size: 0.75rem; color: var(--text-muted); }

/* ==========================================================================
   Mega888 ID guide (SEO article content + FAQ)
   ========================================================================== */
.guide-content { margin-inline: auto; }
.guide-content .section-head { margin-bottom: var(--space-lg); }
.guide-content h2 { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 800; margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.guide-content > h2:first-of-type { margin-top: var(--space-lg); }
.guide-content p { margin-top: var(--space-md); color: var(--text-ink); }
.guide-content p:first-of-type { margin-top: 0; }
.guide-content ul { margin-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-content li { position: relative; padding-left: var(--space-lg); color: var(--text-ink); }
.guide-content li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.guide-content a { text-decoration: underline; color: var(--color-accent); }
.guide-table-wrap { margin-top: var(--space-md); overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--border-subtle); }
.guide-table { width: 100%; border-collapse: collapse; background: var(--surface-card); font-size: 0.92rem; }
.guide-table th, .guide-table td { padding: var(--space-sm) var(--space-md); text-align: left; vertical-align: top; }
.guide-table th { font-family: var(--font-heading); font-weight: 700; color:black; background: color-mix(in srgb, var(--surface-card) 100%, black 6%); white-space: nowrap; }
.guide-table td { color: var(--text-ink); }
.guide-table tbody tr + tr { border-top: 1px solid var(--border-subtle); }
.guide-table td:first-child { color: black; white-space: nowrap; }

.guide-faq {  margin-inline: auto; margin-top: var(--space-2xl); }
.guide-faq__title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 800; margin-bottom: var(--space-lg); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { background: var(--surface-card); border-radius: var(--radius-card); padding: var(--space-md) var(--space-lg); }
.faq-item summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--color-accent); font-weight: 800; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin-top: var(--space-sm); color: var(--text-muted-ink); font-size: 0.9rem; }

/* ==========================================================================
   Footer — side-by-side split zoning
   ========================================================================== */
.site-footer { background: color-mix(in srgb, var(--color-base) 100%, black 12%); color: var(--text-primary); }
.footer-split { display: grid; gap: var(--space-2xl); padding-block: var(--space-2xl); }
@media (min-width: 860px) { .footer-split { grid-template-columns: 1.2fr 1px 1fr; } }
.footer-divider { display: none; background: var(--border-subtle); }
@media (min-width: 860px) { .footer-divider { display: block; } }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-lg); }
.footer-links h3 { font-family: var(--font-heading); font-size: 0.85rem; margin-bottom: var(--space-sm); }
.footer-links li { margin-bottom: var(--space-xs); }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); position: relative; padding-left: 12px; }
.footer-links a::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.footer-legal { font-size: 0.78rem; color: var(--text-muted); display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-legal .footer-payrail { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.footer-legal .footer-payrail svg { width: 26px; height: 26px; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: var(--space-md) 0; display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================================================
   iOS install modal
   ========================================================================== */
dialog.modal--ios {
  border: none; padding: 0; width: min(92vw, 420px);
  border-radius: var(--radius-card-lg);
  background: var(--surface-page); color: var(--text-ink);
  box-shadow: var(--shadow-elevate-lg);
}
dialog.modal--ios::backdrop { background: rgba(4,10,22,0.6); backdrop-filter: blur(4px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg); border-bottom: 1px solid var(--border-subtle-ink); }
.modal__head h2 { font-family: var(--font-heading); font-size: 1.1rem; }
.modal__close { width: 36px; height: 36px; border-radius: var(--radius-btn); background: color-mix(in srgb, var(--color-base) 8%, white); }
.modal__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.modal__step { display: flex; gap: var(--space-md); align-items: flex-start; }
.modal__step-num { width: 28px; height: 28px; border-radius: var(--radius-btn); background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.modal__step p { font-size: 0.85rem; }

/* ==========================================================================
   Mobile responsive
   ========================================================================== */

/* ---- Tablet / small laptop (≤900px) ---- */
@media (max-width: 900px) {
  /* Section padding scales down a tier — 96px top+bottom per section adds up to a lot
     of empty scroll distance once the page is this narrow. */
  .section { padding-block: var(--space-2xl); }
  .hero-zone { padding-bottom: var(--space-2xl); }
}

/* ---- Phone (≤480px) ---- */
@media (max-width: 480px) {
  .section { padding-block: var(--space-xl); }
  .hero-zone { padding-top: var(--space-lg); padding-bottom: var(--space-xl); }

  .hero-play-link img { height: 78px; }

  /* Shrink the QR chips so button + QR still fit comfortably in each narrow column */
  .app-download-grid { gap: var(--space-xs) var(--space-sm); }
  .qr-chip { gap: 6px; }
  .qr-chip__code { width: 52px; height: 52px; }
  .qr-chip__label { font-size: 0.7rem; }

  .assurance-row { gap: var(--space-lg); justify-content: space-between; }
  .footer-split { padding-block: var(--space-xl); }

  /* Compact the header so logo + hamburger never force page-level horizontal scroll at 320–375px */
  .site-header__bar { gap: var(--space-xs); }
  .brand-mark { gap: 6px; }
  .brand-mark__logo { height: 24px; }
}
