:root {
  /* Brand hue channels — change these to re-skin the whole UI */
  --primary-rgb: 111, 134, 255;
  --accent-rgb: 120, 146, 255;
  --warm-rgb: 255, 180, 84;
  --warm: #ffb454;
  --violet-rgb: 96, 112, 240;
  --violet: #6070f0;
  --bg: #010101;
  --bg-deep: #050505;
  --bg-soft: rgba(10, 10, 12, 0.9);
  --surface: rgba(14, 14, 18, 0.92);
  --surface-strong: rgba(18, 18, 24, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #9ca3b4;
  --primary: #6f86ff;
  --primary-strong: #556eff;
  --accent: #7892ff;
  --success: #22d39a;
  --warning: #ffb547;
  --up-rgb: 34, 211, 154;
  --up: #22d39a;
  --down-rgb: 255, 77, 106;
  --down: #ff4d6a;
  /* Semantic gain/loss tokens — used across the tracker (JS + CSS) so light
     mode and future theming stay consistent. */
  --gain: #32d6a2;
  --gain-rgb: 50, 214, 162;
  --loss: #ff6b81;
  --loss-rgb: 255, 107, 129;
  --danger: #ff6b81;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: min(1160px, calc(100% - 32px));
  --header-height: 92px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-image:
    radial-gradient(ellipse 90% 56% at 50% -12%, rgba(var(--primary-rgb), 0.16), transparent 62%),
    radial-gradient(circle at 14% 6%, rgba(var(--primary-rgb), 0.10), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(var(--accent-rgb), 0.09), transparent 30%),
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(var(--violet-rgb), 0.07), transparent 60%),
    linear-gradient(180deg, #06070d 0%, #050509 28%, #020206 64%, #010103 100%);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

main {
  padding-top: 22px;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* ── Accessible focus ring (keyboard only) ──────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline-offset: 4px;
}
.form-row input:focus-visible,
.form-row select:focus-visible {
  outline-offset: 1px;
}

/* ── Custom scrollbar ───────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.4) transparent;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.5), rgba(var(--accent-rgb), 0.45));
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.8), rgba(var(--accent-rgb), 0.7));
  background-clip: content-box;
}

section[id] {
  scroll-margin-top: 124px;
}

/* ── Aurora ribbon behind the hero ──────────────────────── */
.aurora {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 130vw;
  height: 80vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(at 20% 20%, rgba(var(--primary-rgb), 0.16) 0px, transparent 55%),
    radial-gradient(at 80% 30%, rgba(var(--accent-rgb), 0.14) 0px, transparent 55%),
    radial-gradient(at 50% 70%, rgba(var(--violet-rgb), 0.10) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(var(--primary-rgb), 0.06) 0px, transparent 40%);
  filter: blur(120px);
  will-change: transform;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 0%, transparent 75%);
}

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22) 0%, transparent 80%);
  top: -12%;
  left: -15%;
}

.orb-two {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 80%);
  right: -10%;
  top: 15%;
}

.orb-three {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.14) 0%, transparent 80%);
  left: 20%;
  top: 45%;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 18%, #000 0%, rgba(0,0,0,0.4) 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 18%, #000 0%, rgba(0,0,0,0.4) 45%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* ── Film-grain texture overlay ─────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  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='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .noise-overlay { opacity: 0.035; mix-blend-mode: multiply; }

body.landing-page {
  background: linear-gradient(180deg, #020308 0%, #03040a 38%, #010103 100%);
}

.landing-page .aurora {
  inset: 0;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  transform: none;
  opacity: 1;
  filter: none;
  will-change: auto;
  background:
    linear-gradient(90deg, rgba(1, 2, 8, 0.96) 0%, rgba(1, 2, 8, 0.82) 42%, rgba(1, 2, 8, 0.42) 100%),
    linear-gradient(180deg, rgba(1, 2, 8, 0.10) 0%, #020308 82%),
    url("assets/gallery/photo-2.jpg") center 18% / cover no-repeat;
  mask-image: none;
  -webkit-mask-image: none;
}

.landing-page .background-orb {
  display: none;
}

.landing-page .grid-overlay {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 46%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 46%, transparent 78%);
}

.landing-page .noise-overlay {
  opacity: 0.03;
}

/* ── Scroll progress bar ────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
  transition: width 0.1s linear;
}

/* ── Sticky mobile CTA ──────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--violet));
  box-shadow: 0 10px 26px rgba(85, 110, 255, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.mobile-cta svg { width: 18px; height: 18px; }
.mobile-cta.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 720px) {
  .mobile-cta { display: inline-flex; }
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(1, 1, 1, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-compact .nav {
  min-height: 56px;
  padding: 6px 0;
}

.site-header.is-compact .nav-actions .button {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.site-header.is-compact .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav {
  transition: min-height 0.3s ease, padding 0.3s ease;
}

.nav-actions .button {
  transition: padding 0.3s ease, font-size 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-compact {
  background: rgba(1, 1, 1, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .site-header.is-compact {
  background: rgba(247, 249, 254, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: white;
  box-shadow: 0 6px 16px rgba(85, 110, 255, 0.18);
}

.nav-links,
.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links a,
.footer-links a {
  position: relative;
}

.nav-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary:hover { box-shadow: 0 12px 28px rgba(85, 110, 255, 0.24); }
.button.secondary:hover,
.button.ghost:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.button:active { transform: translateY(0); }

.button.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-strong), var(--violet));
  color: white;
  box-shadow: 0 8px 20px rgba(85, 110, 255, 0.18);
}

/* Shine sweep on hover */
.button.primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .button.primary:hover::after {
    animation: btn-shine 0.85s ease;
  }
  @keyframes btn-shine {
    to { left: 140%; }
  }
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

/* ── Ticker Bar ─────────────────────────────────────────── */
.ticker-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 19;
  height: 40px;
  background:
    linear-gradient(105deg, transparent 30%, rgba(var(--primary-rgb),0.045) 50%, transparent 70%) no-repeat,
    rgba(2,2,6,0.97);
  background-size: 350% 100%, 100% 100%;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.22);
  box-shadow: 0 1px 0 0 rgba(var(--primary-rgb),0.12), 0 4px 24px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  animation: none;
  transition: top 0.3s ease;
}

.site-header.is-compact + .ticker-bar {
  top: 57px;
}

@keyframes ticker-shine {
  0%   { background-position: -350% 0, 0 0; }
  100% { background-position: 350% 0, 0 0; }
}

@keyframes ticker-border-pulse {
  0%, 100% { box-shadow: 0 1px 0 0 rgba(var(--primary-rgb),0.12), 0 4px 24px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 1px 0 0 rgba(var(--primary-rgb),0.38), 0 4px 28px rgba(0,0,0,0.45); }
}

.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-bar::before {
  left: 0;
  background: linear-gradient(90deg, rgba(2,2,6,1) 30%, transparent);
}

.ticker-bar::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(2,2,6,1) 30%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  will-change: transform;
}

/* Pausa el scroll al hacer hover sobre la barra */
.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 28px;
  border-radius: 7px;
  cursor: default;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ticker-item:hover {
  background: rgba(var(--primary-rgb),0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(var(--primary-rgb),0.12);
}

.ticker-item:hover .ticker-label {
  color: var(--primary);
  transition: color 0.18s;
}

/* Logo entry */
.ticker-logo--flag,
.ticker-logo--brand,
.ticker-logo--crypto {
  animation: logo-pop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes logo-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.ticker-flag {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

/* flag images */
.ticker-logo--flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 1px 3px rgba(0,0,0,0.4);
}

/* brand logos */
.ticker-logo--brand {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

/* crypto logos */
.ticker-logo--crypto {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.15));
}

/* commodity badges */
.ticker-commodity {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 14px;
}
.ticker-commodity--gold {
  background: rgba(184,147,0,0.12);
  color: #d4a017;
  border: 1px solid rgba(184,147,0,0.28);
  text-shadow: 0 0 6px rgba(212,160,23,0.4);
}
.ticker-commodity--oil {
  font-size: 13px;
  background: none;
}

.ticker-label {
  color: #8593b4;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
  transition: color 0.18s;
}

.ticker-price {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Change badge */
.ticker-change {
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.01em;
  transition: box-shadow 0.3s ease;
}

.ticker-up {
  color: var(--up);
  background: rgba(var(--up-rgb),0.11);
}

.ticker-down {
  color: var(--down);
  background: rgba(var(--down-rgb),0.11);
}

.ticker-flat {
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

@keyframes badge-pulse-up {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--up-rgb),0); }
  50%       { box-shadow: 0 0 7px 0 rgba(var(--up-rgb),0.3); }
}

@keyframes badge-pulse-down {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--down-rgb),0); }
  50%       { box-shadow: 0 0 7px 0 rgba(var(--down-rgb),0.3); }
}

/* Vertical separator */
.ticker-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb),0.22), transparent);
  flex-shrink: 0;
  margin: 0 6px;
}

@keyframes sep-fade {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.ticker-skeleton .ticker-price {
  color: transparent;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: ticker-shimmer 1.4s ease-in-out infinite;
}

@keyframes ticker-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── End Ticker Bar ─────────────────────────────────────── */

.hero {
  padding: 86px 0 54px;
}

.hero-layout,
.register-layout,
.footer-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.055);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.7);
  flex-shrink: 0;
}

h1, h2, h3,
.brand,
.contact-title {
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.section-heading p,
.register-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 34px;
}

/* Quiet secondary CTA so the primary clearly leads */
.hero-actions .button.secondary {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.hero-actions .button.secondary:hover {
  color: var(--text);
  border-color: transparent;
  box-shadow: none;
}

.hero-metrics,
.stat-grid,
.feature-grid,
.pricing-grid,
.payment-grid,
.stack-cards {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card,
.feature-card,
.pricing-card,
.stack-card,
.payment-card,
.register-card,
.panel-window,
.integration-note {
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-card,
.stack-card,
.payment-card,
.integration-note {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.metric-card {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background-image: linear-gradient(135deg,
    rgba(var(--primary-rgb), 0.12) 0%,
    transparent 60%
  );
  background-repeat: no-repeat;
  background-size: 60% 60%;
  background-position: top left;
}

.metric-card strong,
.feature-card h3,
.payment-card h3,
.stack-card strong {
  display: block;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 1.65rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.metric-card span,
.feature-card p,
.stack-card span,
.payment-card p,
.account-body span,
.price-label,
.plan-list,
.integration-note,
.account-header {
  color: var(--muted);
}

.panel-window {
  border-radius: var(--radius-xl);
  padding: 20px;
  border-color: rgba(var(--primary-rgb), 0.18);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--primary-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg,
    rgba(14, 14, 22, 0.75) 0%,
    rgba(8, 8, 14, 0.88) 100%
  ) !important;
}

.panel-topbar {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.panel-topbar span:nth-child(1) { background: rgba(255, 94, 90, 0.7); }
.panel-topbar span:nth-child(2) { background: rgba(255, 189, 46, 0.6); }
.panel-topbar span:nth-child(3) { background: rgba(50, 214, 130, 0.55); }

.dashboard-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
}

.dashboard-sidebar,
.dashboard-content {
  display: grid;
  gap: 14px;
}

.sidebar-card,
.preview-card,
.mini-chart {
  background: linear-gradient(180deg, rgba(19, 19, 24, 0.94), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.sidebar-card {
  padding: 14px;
  color: var(--muted);
}

.sidebar-card.active {
  color: var(--text);
  border-color: rgba(var(--primary-rgb), 0.32);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}

.mini-chart {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,
    rgba(19, 20, 32, 0.95) 0%,
    rgba(10, 10, 18, 0.98) 100%
  ) !important;
}

/* ── Hero live chart ───────────────────────────────────── */
.mini-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.mini-chart-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-chart-delta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
}
.hero-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 96px;
  margin: 8px 0 12px;
  overflow: visible;
}
.hc-stop-top    { stop-color: var(--accent); stop-opacity: 0.28; }
.hc-stop-bottom { stop-color: var(--accent); stop-opacity: 0; }
.hc-stop-a { stop-color: var(--accent); }
.hc-stop-b { stop-color: var(--primary); }
.hc-area { fill: url(#hcArea); opacity: 1; }
.hc-line {
  fill: none;
  stroke: url(#hcLine);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(var(--accent-rgb), 0.4));
}
.hc-dot {
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
  opacity: 1;
}

/* Draw-on-load animation for the hero chart (JS adds hc-init/hc-play) */
@media (prefers-reduced-motion: no-preference) {
  .hero-chart.hc-init .hc-area,
  .hero-chart.hc-init .hc-dot { opacity: 0; }
  .hero-chart.hc-play .hc-area { transition: opacity 0.9s ease 0.55s; opacity: 1; }
  .hero-chart.hc-play .hc-dot  { transition: opacity 0.4s ease 1.4s; opacity: 1; }
}

.hero-alloc {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 30px;
}
.hero-alloc-bar {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}
.hero-alloc-bar i {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--w);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.9), rgba(var(--accent-rgb), 0.65));
}

/* Animated chart lines inside the panel */
.mini-chart::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(var(--primary-rgb), 0.03) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 39px,
      rgba(var(--primary-rgb), 0.06) 39px, rgba(var(--primary-rgb), 0.06) 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 29px,
      rgba(var(--primary-rgb), 0.04) 29px, rgba(var(--primary-rgb), 0.04) 30px
    );
  pointer-events: none;
  border-radius: inherit;
}

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

.preview-card {
  padding: 18px;
}

.preview-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.preview-card strong {
  font-size: 1.1rem;
}

.preview-card.accent {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.08));
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.faq-section .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  margin-bottom: 0;
  max-width: none;
}

.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.9), rgba(9, 9, 12, 0.95));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(var(--primary-rgb), 0.32);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-chevron::before { left: 1px; transform: translateY(-50%) rotate(45deg); }
.faq-chevron::after  { right: 1px; transform: translateY(-50%) rotate(-45deg); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 20px;
}
.faq-answer > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .faq-item[open] .faq-answer {
    animation: faq-open 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

[data-theme="light"] .faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 253, 0.98));
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Alternate section breathing — even sections get extra top/bottom air */
.section:nth-of-type(even) {
  padding: 100px 0;
}

/* Sections with full-width visual content get less padding */
.gallery-section,
.features-section {
  padding: 60px 0;
}

/* Subtle gradient divider at the top of inner sections */
.section:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 70%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.18) 30%,
    rgba(var(--accent-rgb), 0.14) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading-inline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  max-width: none;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px;
  background-image: linear-gradient(90deg,
    rgba(var(--primary-rgb), 0.55) 0%,
    rgba(var(--accent-rgb), 0.35) 40%,
    transparent 75%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top center;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--accent-rgb), 0.1));
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  color: #d8e0ff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card:hover .feature-icon {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.25);
}

.credibility-section,
.workflow-section,
.audience-section,
.disclaimer-section {
  position: relative;
}

.credibility-grid,
.workflow-steps,
.audience-grid {
  display: grid;
  gap: 18px;
}

.credibility-grid {
  grid-template-columns: repeat(3, 1fr);
}

.workflow-steps,
.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credibility-card,
.workflow-step,
.audience-card,
.disclaimer-panel {
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.credibility-card,
.workflow-step,
.audience-card {
  padding: 26px;
}

.credibility-card {
  min-height: 220px;
  background-image:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), transparent 60%),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.44), rgba(var(--accent-rgb), 0.2), transparent 78%);
  background-repeat: no-repeat;
  background-size: auto, 100% 1px;
  background-position: center, top center;
}

.credibility-kicker,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #d8e0ff;
  background: rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.24);
}

.credibility-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.workflow-shell {
  display: grid;
  gap: 4px;
}

.workflow-step h3,
.audience-card h3,
.credibility-card h3 {
  margin-top: 0;
}

.workflow-step p,
.audience-card p,
.credibility-card p,
.disclaimer-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.audience-card {
  border-color: rgba(var(--primary-rgb), 0.14);
}

.disclaimer-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-color: rgba(var(--warm-rgb), 0.24);
  background:
    linear-gradient(135deg, rgba(var(--warm-rgb), 0.10), transparent 40%),
    linear-gradient(180deg, rgba(14, 14, 18, 0.96), rgba(8, 8, 10, 0.98));
}

.disclaimer-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}

.disclaimer-panel .eyebrow {
  color: var(--warm);
  background: rgba(var(--warm-rgb), 0.10);
  border-color: rgba(var(--warm-rgb), 0.24);
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.billing-toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
}

.billing-toggle input:checked + .toggle-slider::after {
  transform: translateX(25px);
}

.billing-toggle input:checked + .toggle-slider {
  background: rgba(var(--primary-rgb), 0.28);
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.pricing-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card.featured {
  transform: translateY(-8px);
  padding-top: 40px;
  border-color: rgba(var(--primary-rgb), 0.5);
  background: linear-gradient(180deg, rgba(20, 22, 34, 0.98), rgba(9, 9, 13, 0.98));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--primary-rgb), 0.28);
}

/* "Más popular" ribbon on the featured plan */
.popular-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #2a1c00;
  background: linear-gradient(135deg, #ffd884, var(--warm));
  box-shadow: 0 8px 22px rgba(var(--warm-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  z-index: 3;
}

/* Annual-savings badge next to the billing toggle */
.billing-save {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--warm);
  background: rgba(var(--warm-rgb), 0.13);
  border: 1px solid rgba(var(--warm-rgb), 0.32);
}

/* Struck-through monthly price shown in annual mode */
.price-old {
  margin-left: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(var(--warm-rgb), 0.7);
  vertical-align: middle;
}

.plan-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  color: #c7d2ff;
  font-size: 0.84rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.plan-list {
  list-style: none;
  margin: 10px 0 12px;
  padding-left: 0;
  display: grid;
  gap: 9px;
  color: var(--text);
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%236f86ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.plan-list li.plan-na {
  color: var(--muted);
  opacity: 0.7;
}
.plan-list li.plan-na::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239ca3b4' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.select-plan {
  margin-top: auto;
}

/* MXN reference under the price label */
.price-mxn {
  display: block;
  margin-top: -4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Note under the pricing grid */
.pricing-foot {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Detailed plan comparison ---- */
.compare-block {
  margin-top: 56px;
}

.compare-head {
  text-align: center;
  margin-bottom: 22px;
}

.compare-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.compare-head p {
  margin-top: 6px;
  color: var(--muted);
}

.compare-scroll {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(14, 15, 22, 0.96);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.compare-table thead th:first-child,
.compare-table tbody th[scope="row"] {
  text-align: left;
}

.compare-table tbody th[scope="row"] {
  font-weight: 500;
  color: var(--text);
}

.compare-table .col-featured {
  background: rgba(var(--primary-rgb), 0.07);
}

.compare-table thead th.col-featured {
  color: #c7d2ff;
  box-shadow: inset 0 -2px 0 rgba(var(--primary-rgb), 0.55);
}

.compare-group td {
  text-align: left;
  padding: 11px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* check / dash cells */
.compare-table td.yes,
.compare-table td.no {
  position: relative;
}
.compare-table td.yes::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f86ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.compare-table td.no::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3b4' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.compare-table tfoot td {
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare-table tfoot .button {
  width: 100%;
}

/* payment badges + trust row */
.payment-card {
  position: relative;
}
.pay-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2a1c00;
  background: linear-gradient(135deg, #ffd884, var(--warm));
}
.pay-badge-alt {
  color: #c7d2ff;
  background: rgba(var(--primary-rgb), 0.16);
  border: 1px solid rgba(var(--primary-rgb), 0.32);
}

.payment-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 24px;
}
.trust-item {
  font-size: 0.86rem;
  color: var(--muted);
}

[data-theme="light"] .compare-scroll {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.015);
}
[data-theme="light"] .compare-table thead th {
  background: rgba(255, 255, 255, 0.96);
}
[data-theme="light"] .compare-table th,
[data-theme="light"] .compare-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .compare-group td {
  background: rgba(15, 23, 42, 0.04);
}

.register-section {
  padding-top: 72px;
}

.register-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  gap: 20px;
}

.button-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #1f1f1f;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: Inter, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.button-google:hover {
  background: #f3f3f3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.button-google:active {
  background: #e8e8e8;
}

.button-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: #000;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: Inter, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.button-apple:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.button-apple:active {
  background: #333;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-divider {
  display: none;
  align-items: center;
  gap: 12px;
  color: #4e5a74;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #d5ddf5;
  font-weight: 600;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12.5L14.5 7.5' stroke='%238fa3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(255, 255, 255, 0.03);
  padding-right: 40px;
}

.form-row select:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.form-row input:focus,
.form-row select:focus {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  background-color: rgba(255, 255, 255, 0.06);
}

.form-row select:focus {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12.5L14.5 7.5' stroke='%236f86ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.submit-button {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.96rem;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--down);
}

.account-preview {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.12);
}

.account-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.account-body div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.account-body strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.payment-shell {
  border-radius: var(--radius-xl);
  padding: 30px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(4, 4, 5, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.payment-grid {
  grid-template-columns: repeat(3, 1fr);
}

.payment-card {
  display: grid;
  gap: 14px;
}

.integration-note {
  margin-top: 20px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.integration-note code,
.payment-code {
  color: #dce5ff;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.site-footer {
  padding: 20px 0 48px;
}

.footer-layout {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  justify-content: end;
  gap: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--text);
}

/* En táctil los enlaces del pie medían 16-19px de alto. El área se agranda sólo
   para punteros gruesos: en escritorio el pie conserva su interlineado. */
@media (pointer: coarse) {
  .footer-links a,
  .footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.payment-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
  padding: 24px;
  z-index: 30;
}

.payment-modal.hidden {
  display: none;
}

.payment-modal-card {
  width: min(720px, 100%);
  background: rgba(8, 8, 10, 0.98);
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.payment-code {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  overflow: auto;
  margin: 16px 0 22px;
  max-height: 320px;
}

.payment-code pre {
  margin: 0;
  white-space: pre-wrap;
}

.auth-page {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #050711 0%, #020309 54%, #010103 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-page::before {
  background:
    linear-gradient(90deg, rgba(2, 3, 9, 0.94) 0%, rgba(2, 3, 9, 0.74) 46%, rgba(2, 3, 9, 0.44) 100%),
    linear-gradient(180deg, rgba(3, 5, 14, 0.18) 0%, #010103 94%),
    url("assets/gallery/photo-3.jpg") center center / cover no-repeat;
  filter: saturate(0.78) contrast(1.06);
}

.auth-page::after {
  background:
    radial-gradient(720px 420px at 70% 32%, rgba(var(--primary-rgb), 0.18), transparent 62%),
    radial-gradient(560px 320px at 34% 65%, rgba(var(--accent-rgb), 0.08), transparent 68%),
    radial-gradient(ellipse 96% 86% at 50% 48%, transparent 46%, rgba(0, 0, 0, 0.58) 100%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.auth-page .background-orb {
  display: none;
}

.auth-page .grid-overlay {
  opacity: 0.34;
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.34) 56%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.34) 56%, transparent 100%);
}

.auth-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  position: relative;
  z-index: 2;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.auth-intro,
.auth-card {
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.auth-intro {
  padding: 36px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.auth-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.demo-credentials {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-credentials strong {
  color: var(--text);
}

.demo-credentials span {
  color: var(--muted);
}

.demo-credentials code {
  color: #dce5ff;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.auth-links {
  display: grid;
  gap: 12px;
}

/* Forgot password label row */
.login-pw-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forgot-pw-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--primary, #6f86ff);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.forgot-pw-btn:hover { opacity: 0.75; }

/* Demo credentials inline — only visible on mobile where auth-intro is hidden/scrolled away */
.demo-credentials-inline {
  display: none;
}

@media (max-width: 1024px) {
  .demo-credentials-inline {
    display: grid;
  }
}

@media (max-width: 1240px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-layout,
  .register-layout,
  .footer-layout,
  .feature-grid,
  .pricing-grid,
  .payment-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  /* On single-column (tablet/phone) the login form should come first so
     returning users don't scroll past the marketing panel to sign in. */
  .auth-card {
    order: -1;
  }

  .section-heading-inline {
    flex-direction: column;
    align-items: start;
  }

  .hero-metrics,
  .account-body,
  .stat-grid,
  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: translateY(0);
  }

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

  /* Nav switches to hamburger below 1024px so the tablet range (721–1024)
     no longer overflows the header actions. */
  .nav {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  /* Higher specificity than the base `.nav-hamburger { display:none }`
     (defined later in the file) so it actually shows on small screens. */
  .nav .nav-hamburger {
    display: flex;
  }

  .nav-actions .nav-sep,
  .nav-actions .button.ghost,
  .nav-actions .button.secondary {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .faq-section .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-section .section-heading {
    position: static;
  }

  .section:nth-of-type(even) {
    padding: 72px 0;
  }

  section[id] {
    scroll-margin-top: 80px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .button {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .hero-actions .button {
    text-align: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .payment-shell,
  .panel-window,
  .pricing-card,
  .register-card {
    padding: 22px;
  }

  .price {
    font-size: 2.4rem;
  }

  .auth-intro,
  .auth-card {
    padding: 24px;
  }

  .integration-note {
    flex-direction: column;
    gap: 8px;
  }

  .integration-note code {
    font-size: 0.78rem;
    word-break: break-all;
  }
}

/* Prevent the header from overflowing on phones: hide the theme toggle
   (mobile follows the system color scheme automatically) and let the brand
   shrink so the CTA and hamburger always stay on-screen. Log in + Abrir
   cuenta also live in the hamburger drawer. */
@media (max-width: 560px) {
  .nav-actions .theme-toggle,
  .nav-actions .nav-sep {
    display: none;
  }

  .nav .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .nav .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions .button.primary {
    padding: 9px 13px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    font-size: 0.85rem;
    gap: 6px;
  }

  .hero {
    padding-top: 36px;
  }

  .section {
    padding: 32px 0 48px;
  }

  .feature-card {
    padding: 18px;
  }

  .payment-shell {
    padding: 16px;
  }

  .pricing-card {
    padding: 18px;
  }

  .register-card {
    padding: 18px;
  }

  .account-body {
    grid-template-columns: 1fr;
  }

  .auth-intro,
  .auth-card {
    padding: 18px;
  }

  .payment-modal-card {
    padding: 20px;
  }
}

/* ── Theme Toggle ─────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.tt-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.tt-pill {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.tt-thumb {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  box-shadow: 0 2px 8px rgba(85, 110, 255, 0.45);
  top: 2px;
  left: 2px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tt-moon { color: var(--accent); }
.tt-sun  { color: var(--muted); }

.nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Hamburger button ────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.09);
}
.nav-hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open .bar:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ───────────────────────────────── */
.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(1, 1, 1, 0.98);
}
.mobile-nav.hidden { display: none; }
.mobile-nav-inner {
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
}
.mobile-nav-link {
  display: block;
  padding: 15px 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--text); }
.mobile-nav-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.mobile-nav-actions .button {
  flex: 1;
  justify-content: center;
}

/* ── Contact / Social Section ────────────────────────── */
.contact-section {
  padding: 96px 0 80px;
  border-top: 1px solid var(--border);
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.contact-heading {
  text-align: center;
  max-width: 640px;
}

.contact-title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--violet), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-title-white {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text);
  background-clip: unset;
  color: var(--text);
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-card-wrap {
  width: 100%;
  max-width: 680px;
}

.contact-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.10),
    var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.18),
    var(--shadow);
}

.social-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.si-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  color: white;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.si-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover .si-circle::before { opacity: 1; }

.social-icon:hover .si-circle {
  transform: translateY(-10px) scale(1.1);
}

.social-icon:hover svg {
  animation: si-shake 0.5s ease;
}

.si-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover .si-label {
  color: var(--text);
  transform: translateY(4px);
}

.si-youtube:hover .si-circle {
  background: #ff0000;
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.55);
}

.si-discord:hover .si-circle {
  background: #5865f2;
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.55);
}

.si-github:hover .si-circle {
  background: #333;
  box-shadow: 0 0 22px rgba(51, 51, 51, 0.7);
}

.si-linkedin:hover .si-circle {
  background: #0077b5;
  box-shadow: 0 0 22px rgba(0, 119, 181, 0.55);
}

@keyframes si-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20%       { transform: translateX(-4px) rotate(-5deg); }
  40%       { transform: translateX(4px)  rotate(5deg); }
  60%       { transform: translateX(-4px) rotate(-5deg); }
  80%       { transform: translateX(4px)  rotate(5deg); }
}

@media (max-width: 600px) {
  .contact-card { padding: 36px 24px; }
  .social-icons-row { gap: 20px; }
  .si-circle { width: 64px; height: 64px; }
  .si-circle svg { width: 26px; height: 26px; }
}

/* ── Light theme overrides for contact section ── */
[data-theme="light"] .contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,250,255,0.98));
  border-color: rgba(var(--primary-rgb),0.15);
  box-shadow:
    0 0 40px rgba(var(--primary-rgb),0.16),
    0 0 70px rgba(var(--accent-rgb),0.08),
    0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .contact-card:hover {
  box-shadow:
    0 0 55px rgba(var(--primary-rgb),0.24),
    0 0 90px rgba(var(--accent-rgb),0.12),
    0 12px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .si-circle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #1a1a2e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

[data-theme="light"] .si-github:hover .si-circle {
  background: #24292f;
  color: white;
  box-shadow: 0 0 22px rgba(36,41,47,0.4);
}

/* ── Light Theme ─────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f3f5fb;
  --bg-deep: #eaecf5;
  --bg-soft: rgba(243, 245, 251, 0.9);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --border: rgba(0, 0, 0, 0.08);
  --text: #0d1021;
  --muted: #5c6480;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.09);
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 90% 56% at 50% -12%, rgba(var(--primary-rgb), 0.12), transparent 60%),
    radial-gradient(circle at 14% 6%, rgba(var(--primary-rgb), 0.08), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(var(--accent-rgb), 0.06), transparent 28%),
    linear-gradient(180deg, #f4f6fc 0%, #eef1f9 34%, #f0f2fa 100%);
}

[data-theme="light"] body.landing-page {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2fb 44%, #f6f8fc 100%);
}

[data-theme="light"] .landing-page .aurora {
  opacity: 1;
  filter: saturate(0.72) contrast(0.95);
  background:
    linear-gradient(90deg, rgba(247, 249, 255, 0.97) 0%, rgba(247, 249, 255, 0.88) 48%, rgba(247, 249, 255, 0.64) 100%),
    linear-gradient(180deg, rgba(247, 249, 255, 0.08) 0%, #f7f9ff 86%),
    url("assets/gallery/photo-2.jpg") center 18% / cover no-repeat;
}

[data-theme="light"] .aurora { opacity: 0.3; }

[data-theme="light"] .orb-one {
  background: rgba(var(--primary-rgb), 0.1);
  opacity: 0.35;
}

[data-theme="light"] .orb-two {
  background: rgba(var(--accent-rgb), 0.08);
  opacity: 0.28;
}

[data-theme="light"] .orb-three {
  background: rgba(var(--violet-rgb), 0.08);
  opacity: 0.22;
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .site-header {
  background: rgba(247, 249, 254, 0.93);
  border-bottom-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .ticker-bar {
  background:
    linear-gradient(105deg, transparent 30%, rgba(99,102,241,0.04) 50%, transparent 70%) no-repeat,
    rgba(232,236,248,0.97);
  background-size: 350% 100%, 100% 100%;
  border-bottom-color: rgba(99,102,241,0.18);
  box-shadow: 0 1px 0 0 rgba(99,102,241,0.1), 0 4px 18px rgba(0,0,0,0.07);
}

[data-theme="light"] .ticker-bar::before {
  background: linear-gradient(90deg, rgb(232,236,248) 30%, transparent);
}

[data-theme="light"] .ticker-bar::after {
  background: linear-gradient(-90deg, rgb(232,236,248) 30%, transparent);
}

[data-theme="light"] .ticker-sep {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.18), transparent);
}

[data-theme="light"] .ticker-item:hover {
  background: rgba(99,102,241,0.07);
  box-shadow: 0 2px 10px rgba(99,102,241,0.1);
}

[data-theme="light"] .ticker-label {
  color: #5a6380;
}

[data-theme="light"] .ticker-logo--flag {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="light"] .ticker-commodity--gold {
  background: rgba(184,147,0,0.08);
  border-color: rgba(184,147,0,0.22);
}

[data-theme="light"] .metric-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .stack-card,
[data-theme="light"] .payment-card,
[data-theme="light"] .credibility-card,
[data-theme="light"] .workflow-step,
[data-theme="light"] .audience-card,
[data-theme="light"] .disclaimer-panel,
[data-theme="light"] .register-card,
[data-theme="light"] .panel-window,
[data-theme="light"] .integration-note {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.98));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .credibility-kicker,
[data-theme="light"] .step-number {
  color: var(--primary-strong);
  background: rgba(var(--primary-rgb), 0.10);
  border-color: rgba(var(--primary-rgb), 0.18);
}

[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(180deg, rgba(232, 236, 255, 0.98), rgba(220, 227, 255, 0.98));
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--primary-rgb), 0.3),
    0 0 48px rgba(var(--primary-rgb), 0.16);
}

[data-theme="light"] .billing-save {
  color: #9a6400;
  background: rgba(var(--warm-rgb), 0.18);
  border-color: rgba(var(--warm-rgb), 0.45);
}

[data-theme="light"] .price-old {
  text-decoration-color: rgba(154, 100, 0, 0.6);
}

[data-theme="light"] .sidebar-card,
[data-theme="light"] .preview-card,
[data-theme="light"] .mini-chart {
  background: linear-gradient(180deg, rgba(242, 245, 253, 0.94), rgba(235, 239, 252, 0.98));
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-icon {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--accent-rgb), 0.08));
  border-color: rgba(var(--primary-rgb), 0.18);
  color: var(--primary);
}

[data-theme="light"] .hero-alloc-bar {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .billing-toggle .toggle-slider {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .billing-toggle input:checked + .toggle-slider {
  background: rgba(var(--primary-rgb), 0.22);
}

[data-theme="light"] .plan-tag {
  color: #3b4cb8;
  background: rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-row input,
[data-theme="light"] .form-row select {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
  color: var(--text);
}

[data-theme="light"] .form-row label {
  color: #2d3550;
}

[data-theme="light"] .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12.5L14.5 7.5' stroke='%236f86ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: rgba(0, 0, 0, 0.025);
  background-repeat: no-repeat;
  background-position: right 12px center;
}

[data-theme="light"] .form-row select:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-row input:focus,
[data-theme="light"] .form-row select:focus {
  border-color: rgba(var(--primary-rgb), 0.45);
  background-color: rgba(var(--primary-rgb), 0.04);
}

/* ── Password strength widget ── */
.pw-input-wrap {
  position: relative;
}

.pw-input-wrap input {
  padding-right: 42px;
}

.pw-toggle {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.pw-toggle:hover { color: rgba(255,255,255,0.75); }

[data-theme="light"] .pw-toggle { color: rgba(0,0,0,0.3); }
[data-theme="light"] .pw-toggle:hover { color: rgba(0,0,0,0.65); }

.pw-toggle svg.hidden { display: none; }

.pw-strength-bars {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

[data-theme="light"] .pw-bar {
  background: rgba(0,0,0,0.1);
}

.pw-bar.active-1 { background: #ef4444; }
.pw-bar.active-2 { background: #f97316; }
.pw-bar.active-3 { background: #eab308; }
.pw-bar.active-4 { background: #84cc16; }
.pw-bar.active-5 { background: #22c55e; }

.pw-strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 6px 0 4px;
}

[data-theme="light"] .pw-strength-label {
  color: rgba(0,0,0,0.45);
}

#pwStrengthText {
  font-weight: 600;
  transition: color 0.3s;
}

.pw-requirements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-requirements li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

[data-theme="light"] .pw-requirements li {
  color: rgba(0,0,0,0.35);
}

.pw-requirements li.met {
  color: #22c55e;
}

.pw-req-icon::before {
  content: '✕';
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

[data-theme="light"] .pw-req-icon::before {
  color: rgba(0,0,0,0.25);
}

.pw-requirements li.met .pw-req-icon::before {
  content: '✓';
  color: #22c55e;
}

[data-theme="light"] .account-preview {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .account-body div {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .payment-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.98));
}

[data-theme="light"] .integration-note code,
[data-theme="light"] .payment-code,
[data-theme="light"] .demo-credentials code {
  color: #3b4cb8;
}

[data-theme="light"] .payment-code {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .site-footer .footer-layout {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .payment-modal {
  background: rgba(15, 17, 30, 0.5);
}

[data-theme="light"] .payment-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(var(--primary-rgb), 0.2);
}

[data-theme="light"] .demo-credentials {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .auth-intro,
[data-theme="light"] .auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.98));
}

[data-theme="light"] .button.secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .button.ghost {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-sep {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .tt-pill {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.2);
}

[data-theme="light"] .tt-thumb {
  transform: translateX(16px);
}

[data-theme="light"] .tt-moon { color: var(--muted); }
[data-theme="light"] .tt-sun  { color: var(--primary); }

[data-theme="light"] .preview-card.accent {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS — scroll reveals + hero entrance + panel float
═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {

  /* ── Shared keyframes ──────────────────────────────── */
  @keyframes anim-up {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes anim-from-right {
    from { opacity: 0; transform: translateX(52px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes anim-from-left {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes panel-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-9px) rotate(0.3deg); }
    66%       { transform: translateY(-5px) rotate(-0.2deg); }
  }
  @keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(30px, -20px) scale(1.08); }
    70%       { transform: translate(-14px, 18px) scale(0.96); }
  }

  /* ── Background orbs — slow drift ─────────────────── */
  .orb-one { animation: orb-drift 22s ease-in-out infinite; }
  .orb-two { animation: orb-drift 28s ease-in-out 6s infinite reverse; }
  .orb-three { animation: orb-drift 34s ease-in-out 3s infinite; }


  /* ── Hero — page-load entrance cascade ─────────────── */
  .hero-copy .eyebrow {
    animation: anim-from-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  }
  .hero-copy h1 {
    animation: anim-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
  }
  .hero-copy .hero-text {
    animation: anim-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
  }
  .hero-actions {
    animation: anim-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
  }
  .hero-metrics {
    animation: anim-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
  }
  .hero-panel {
    animation: anim-from-right 1s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
  }

  /* Panel window floats independently inside hero-panel */
  .panel-window {
    animation: panel-float 8s ease-in-out 1.25s infinite;
  }

  /* ── Hero live chart — draw-on-load ────────────────── */
  @keyframes hc-draw  { to { stroke-dashoffset: 0; } }
  @keyframes hc-fade  { to { opacity: 1; } }
  @keyframes hc-grow  { from { height: 0; } to { height: var(--w); } }

  .hc-line {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: hc-draw 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  }
  .hc-area {
    opacity: 0;
    animation: hc-fade 1s ease 1.6s forwards;
  }
  .hc-dot {
    opacity: 0;
    animation: hc-fade 0.4s ease 2.4s forwards;
  }
  @keyframes hc-pulse {
    0%, 100% { r: 3.5; }
    50%      { r: 5; }
  }
  .hero-chart.hc-play ~ .hero-alloc .hero-alloc-bar i {
    animation: hc-grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-chart.hc-play ~ .hero-alloc .hero-alloc-bar:nth-child(1) i { animation-delay: 0.5s; }
  .hero-chart.hc-play ~ .hero-alloc .hero-alloc-bar:nth-child(2) i { animation-delay: 0.65s; }
  .hero-chart.hc-play ~ .hero-alloc .hero-alloc-bar:nth-child(3) i { animation-delay: 0.8s; }
  .hero-chart.hc-play ~ .hero-alloc .hero-alloc-bar:nth-child(4) i { animation-delay: 0.95s; }

  /* ── Scroll-reveal — base (hidden) states ──────────── */
  [data-animate] {
    opacity: 0;
    will-change: transform, opacity;
  }
  [data-animate="up"]    { transform: translateY(44px); }
  [data-animate="left"]  { transform: translateX(-48px); }
  [data-animate="right"] { transform: translateX(48px); }
  [data-animate="scale"] { transform: translateY(24px) scale(0.94); }
  [data-animate="fade"]  { /* opacity only */ }

  /* ── Scroll-reveal — active (visible) state ─────────── */
  [data-animate].in-view {
    opacity: 1;
    transform: none;
    transition:
      opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ── Stagger delays (applied when in-view) ──────────── */
  [data-delay="1"].in-view { transition-delay: 0.06s; }
  [data-delay="2"].in-view { transition-delay: 0.15s; }
  [data-delay="3"].in-view { transition-delay: 0.24s; }
  [data-delay="4"].in-view { transition-delay: 0.33s; }
  [data-delay="5"].in-view { transition-delay: 0.42s; }
  [data-delay="6"].in-view { transition-delay: 0.52s; }

  /* ── Feature cards — hover lift on scroll-in ────────── */
  .feature-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  }
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(var(--primary-rgb), 0.28), 0 0 32px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.3);
  }

  /* ── Metric cards — subtle hover lift ───────────────── */
  .metric-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32), 0 0 28px rgba(var(--primary-rgb), 0.14);
  }

  /* ── Pricing cards — hover lift ─────────────────────── */
  .pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .pricing-card:not(.featured):hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--primary-rgb), 0.28), 0 0 32px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.3);
  }
  .pricing-card.featured:hover {
    transform: translateY(-14px);
    box-shadow: 0 40px 72px rgba(85, 110, 255, 0.22), 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 0 48px rgba(var(--primary-rgb), 0.28);
  }

  /* ── Stack cards — staggered slide-in ───────────────── */
  .stack-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .stack-card:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), -3px 0 0 rgba(var(--primary-rgb), 0.55), 0 0 28px rgba(var(--primary-rgb), 0.16);
  }

  /* ── Payment cards — hover ───────────────────────────── */
  .payment-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  }
  .payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--primary-rgb), 0.28), 0 0 32px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.3);
  }
}

/* Light theme hover adjustments */
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .pricing-card:not(.featured):hover,
[data-theme="light"] .payment-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(var(--primary-rgb), 0.3), 0 0 28px rgba(var(--primary-rgb), 0.14);
}
[data-theme="light"] .pricing-card.featured:hover {
  box-shadow: 0 32px 64px rgba(85, 110, 255, 0.12), 0 0 0 1px rgba(var(--primary-rgb), 0.42), 0 0 40px rgba(var(--primary-rgb), 0.2);
}
[data-theme="light"] .stack-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), -3px 0 0 rgba(var(--primary-rgb), 0.5), 0 0 24px rgba(var(--primary-rgb), 0.13);
}

/* ── Cursor-tracking glow border ─────────────────────────── */
.feature-card,
.stack-card,
.payment-card {
  position: relative;
  --card-radius: var(--radius-lg);
}
.pricing-card {
  position: relative;
  --card-radius: var(--radius-xl);
}

.feature-card::before,
.feature-card::after,
.pricing-card::before,
.pricing-card::after,
.stack-card::before,
.stack-card::after,
.payment-card::before,
.payment-card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}

.feature-card::before,
.pricing-card::before,
.stack-card::before,
.payment-card::before {
  background-image: radial-gradient(
    180px 180px at
    calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(calc(225 + (var(--xp, 0.5) * 25)) 90% 68% / 0.35),
    transparent 100%
  );
}

.feature-card::after,
.pricing-card::after,
.stack-card::after,
.payment-card::after {
  background-image: radial-gradient(
    120px 120px at
    calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(0 100% 100% / 0.18),
    transparent 100%
  );
}

[data-theme="light"] .feature-card::before,
[data-theme="light"] .pricing-card::before,
[data-theme="light"] .stack-card::before,
[data-theme="light"] .payment-card::before {
  opacity: 0.6;
}

[data-theme="light"] .feature-card::after,
[data-theme="light"] .pricing-card::after,
[data-theme="light"] .stack-card::after,
[data-theme="light"] .payment-card::after {
  opacity: 0.35;
}

/* ── OTP / 2FA Overlay ──────────────────────────────────────────────────────── */
.otp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: otp-fade-in 0.22s ease;
}

.otp-overlay.hidden { display: none; }
#loginBetaRow.hidden { display: none; }

@keyframes otp-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.otp-card {
  background: rgba(14, 14, 20, 0.97);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

.otp-shield-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0.04));
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.otp-shield-icon svg {
  filter: drop-shadow(0 4px 10px rgba(var(--primary-rgb), 0.35));
}

.otp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.otp-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.otp-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp-box {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: "Inter", monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  caret-color: var(--primary);
}

.otp-box:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.otp-box--complete {
  border-color: rgba(var(--primary-rgb), 0.55);
  background: rgba(var(--primary-rgb), 0.1);
}

.otp-box--error {
  border-color: #ff8ca4;
  background: rgba(255, 140, 164, 0.08);
  animation: otp-shake 0.35s ease;
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

.otp-error-msg {
  color: #ff8ca4;
  font-size: 0.83rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.otp-error-msg.hidden { display: none; }

.otp-status-msg {
  color: var(--success, #4ade80);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}

.otp-status-msg.hidden { display: none; }

.otp-help {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 16px 0 0;
  line-height: 1.5;
}

.otp-fallback {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.otp-fallback-link {
  background: none;
  border: none;
  color: #6f86ff;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.otp-fallback-link:hover { text-decoration: underline; }
.otp-fallback-link:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.otp-fallback-link.hidden { display: none; }

.otp-fallback-msg {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

.otp-fallback-msg--error { color: #ff8ca4; }
.otp-fallback-msg.hidden { display: none; }

/* ── 2FA Setup Modal (shared: login + main) ───────────────────────────────── */
.totp-setup-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: otp-fade-in 0.22s ease;
}

.totp-setup-modal.hidden { display: none; }

/* Loading spinner / content toggle inside the setup modal */
#mainTotpLoading.hidden,
#mainTotpContent.hidden,
#totpSetupLoading.hidden,
#totpSetupContent.hidden { display: none; }

.totp-setup-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px 28px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glow ring accent at the top of the card */
.totp-setup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.45), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.totp-setup-card h2 {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: none;
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.25;
}

.totp-setup-card .totp-sub {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 24px;
  max-width: 320px;
  line-height: 1.5;
}

.totp-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.totp-qr-wrap img {
  width: 188px;
  height: 188px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border);
}

.totp-steps {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 20px;
  display: grid;
  gap: 11px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 14px;
}

.totp-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.4;
}

.totp-steps li strong { color: var(--text); font-weight: 700; }

.totp-steps li .step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.7));
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.35);
}

.totp-manual-key-label {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.totp-manual-key-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 22px;
}

.totp-manual-key {
  flex: 1;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px dashed rgba(var(--primary-rgb), 0.35);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-align: center;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.totp-manual-copy {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 0.82rem;
  white-space: nowrap;
  min-height: 44px;
}

.totp-setup-retry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.totp-setup-otp-grid {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 8px;
}

.totp-setup-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.totp-setup-msg {
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
  margin: 6px 0 0;
}

.totp-loading-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(var(--primary-rgb),0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto 12px;
}

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

/* ── Toast Notifications ────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bp-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: #e8eaf6;
  background: rgba(14, 16, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  max-width: 360px;
  min-width: 220px;
  animation: toast-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bp-toast.toast-hiding {
  opacity: 0;
  transform: translateX(16px);
}

.bp-toast.toast-success { border-left: 3px solid #32d6a2; }
.bp-toast.toast-error   { border-left: 3px solid #ff8ca4; }
.bp-toast.toast-info    { border-left: 3px solid #6f86ff; }

.bp-toast-icon { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.bp-toast-text { flex: 1; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

[data-theme="light"] .bp-toast {
  background: rgba(255, 255, 255, 0.97);
  color: #1a1e36;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ── Skeleton loading ───────────────────────────────────────────────────────── */
.is-skeleton {
  color: transparent !important;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.08) 25%,
    rgba(var(--primary-rgb), 0.18) 50%,
    rgba(var(--primary-rgb), 0.08) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  min-width: 80px;
  display: inline-block;
  pointer-events: none;
  user-select: none;
}

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

[data-theme="light"] .is-skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 75%
  );
  background-size: 200% 100%;
}

/* ── Inline field validation ────────────────────────────────────────────────── */
.form-row.has-error input,
.form-row.has-error select {
  border-color: rgba(255, 140, 164, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(255, 140, 164, 0.1) !important;
}

.form-row.has-error label {
  color: #ff8ca4 !important;
}

.field-error-msg {
  font-size: 0.82rem;
  color: #ff8ca4;
  margin: 0;
  animation: field-error-in 0.2s ease;
}

@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .form-row.has-error input,
[data-theme="light"] .form-row.has-error select {
  border-color: rgba(210, 50, 80, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(210, 50, 80, 0.07) !important;
}

[data-theme="light"] .form-row.has-error label {
  color: #c42d52 !important;
}

[data-theme="light"] .field-error-msg {
  color: #c42d52;
}

/* ── Social button loading state ────────────────────────────────────────────── */
.button-google.is-loading,
.button-apple.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Primary/submit button loading spinner ──────────────────────────────────── */
.button.primary.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.button.primary.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   MEDIA GALLERY (Pexels) — Premium redesign
══════════════════════════════════════════════════════════ */

.gallery-section {
  overflow: hidden;
  padding-top: 32px;
  padding-bottom: 108px;
  position: relative;
}

/* Ambient radial glow behind the mosaic */
.gallery-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: min(1100px, 100%);
  height: 600px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 72% 40%, rgba(var(--accent-rgb), 0.045) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.gallery-heading {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.gallery-heading p { display: none; }

/* ── Mosaic grid ─────────────────────────────────────── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 300px 200px 170px;
  gap: 12px;
  margin-top: 56px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
}

/* Grid placement — asymmetric for visual drama */
.gallery-item:nth-child(1), .gs1 { grid-column: 1 / 8;  grid-row: 1 / 2; }
.gallery-item:nth-child(2), .gs2 { grid-column: 8 / 13; grid-row: 1 / 3; }
.gallery-item:nth-child(3), .gs3 { grid-column: 1 / 5;  grid-row: 2 / 3; }
.gallery-item:nth-child(4), .gs4 { grid-column: 5 / 8;  grid-row: 2 / 3; }
.gallery-item:nth-child(5), .gs5 { grid-column: 1 / 7;  grid-row: 3 / 4; }
.gallery-item:nth-child(6), .gs6 { grid-column: 7 / 13; grid-row: 3 / 4; }

/* ── Skeleton tiles ──────────────────────────────────── */
.gallery-skeleton {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.04) 25%,
    rgba(var(--primary-rgb), 0.1) 50%,
    rgba(var(--primary-rgb), 0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* ── Media tiles ─────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #050610;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.96) translateY(22px);
  transition:
    opacity    0.8s  cubic-bezier(0.16, 1, 0.3, 1),
    transform  0.8s  cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s  ease;
}

.gallery-item.gallery-visible {
  opacity: 1;
  transform: none;
}

.gallery-item:hover {
  box-shadow:
    inset 0 0 0 1px rgba(var(--primary-rgb), 0.32),
    0 0 48px rgba(var(--primary-rgb), 0.09);
}

/* Overlay: bottom vignette + subtle brand tint */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.22) 0%, transparent 38%),
    linear-gradient(to top,
      rgba(4, 4, 22, 0.90) 0%,
      rgba(4, 4, 22, 0.55) 22%,
      rgba(4, 4, 22, 0.12) 45%,
      transparent 65%
    );
  transition: opacity 0.45s ease;
}

.gallery-item:hover::before { opacity: 0.6; }

/* CSS text labels on key tiles */
.gallery-item::after {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 3;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.gallery-visible::after { opacity: 1; transform: none; }

.gallery-item:nth-child(1)::after {
  content: 'Portafolios Globales';
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-item:nth-child(2)::after {
  content: 'Mercados en Tiempo Real';
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  bottom: 20px;
}

.gallery-item:nth-child(5)::after {
  content: 'Análisis y Estrategia';
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-item:nth-child(6)::after {
  content: 'Riesgo y Retorno';
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Media elements — refined treatment ─────────────── */
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.48) brightness(0.68) contrast(1.12) saturate(0.58);
  transition:
    filter    0.65s ease,
    transform 0.7s  cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img,
.gallery-item:hover video {
  filter: grayscale(0.08) brightness(0.82) contrast(1.06) saturate(0.9);
  transform: scale(1.055);
}

/* ── Gallery KPI strip ──────────────────────────────── */
.gallery-kpi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 52px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  position: relative;
  z-index: 1;
}

.gallery-kpi-item {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  text-align: center;
}

.gallery-kpi-item + .gallery-kpi-item {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #ffffff 30%, rgba(var(--primary-rgb), 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-kpi-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Gallery responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 260px 190px 160px;
    padding: 0 16px;
    gap: 10px;
  }
  .gallery-item:nth-child(1), .gs1 { grid-column: 1 / 7; grid-row: 1 / 2; }
  .gallery-item:nth-child(2), .gs2 { grid-column: 1 / 4; grid-row: 2 / 3; }
  .gallery-item:nth-child(3), .gs3 { grid-column: 4 / 7; grid-row: 2 / 3; }
  .gallery-item:nth-child(4), .gs4 { grid-column: 1 / 3; grid-row: 3 / 4; }
  .gallery-item:nth-child(5), .gs5 { grid-column: 3 / 5; grid-row: 3 / 4; }
  .gallery-item:nth-child(6), .gs6 { grid-column: 5 / 7; grid-row: 3 / 4; }
  .gallery-kpi { gap: 0; }
}

@media (max-width: 640px) {
  .gallery-section { padding-bottom: 72px; }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 140px;
    gap: 8px;
    padding: 0 12px;
  }
  .gallery-item:nth-child(1), .gs1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-item:nth-child(2), .gs2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-item:nth-child(3), .gs3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-item:nth-child(4), .gs4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery-item:nth-child(5), .gs5 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .gallery-item:nth-child(6), .gs6 { display: none; }
  .gallery-kpi { flex-wrap: wrap; gap: 24px; }
  .gallery-kpi-item { border-left: none !important; min-width: calc(50% - 16px); }
}

/* Light-theme adjustments */
[data-theme="light"] .gallery-item {
  background: #e8eaf5;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gallery-item::before {
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.18) 0%, transparent 38%),
    linear-gradient(to top,
      rgba(20, 20, 50, 0.72) 0%,
      rgba(20, 20, 50, 0.35) 25%,
      transparent 55%
    );
}

[data-theme="light"] .gallery-item img,
[data-theme="light"] .gallery-item video {
  filter: grayscale(0.35) brightness(0.82) contrast(1.08) saturate(0.65);
}

[data-theme="light"] .gallery-item:hover img,
[data-theme="light"] .gallery-item:hover video {
  filter: grayscale(0.05) brightness(0.96) contrast(1.03) saturate(0.95);
}

[data-theme="light"] .gallery-section::before {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.055) 0%, transparent 60%),
    radial-gradient(ellipse at 72% 40%, rgba(var(--accent-rgb), 0.035) 0%, transparent 55%);
}

[data-theme="light"] .gallery-kpi-value {
  background: linear-gradient(135deg, #0d1021 30%, var(--primary-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gallery-kpi-item + .gallery-kpi-item {
  border-left-color: rgba(0, 0, 0, 0.1);
}

/* ── Light Theme: Mobile nav ─────────────────────────────── */
[data-theme="light"] .mobile-nav {
  background: rgba(247, 249, 254, 0.98);
  border-top-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .mobile-nav-link {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-hamburger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.09);
}

[data-theme="light"] .nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Light Theme: Stack cards sidebar text ─────────────────── */
[data-theme="light"] .stack-card strong {
  color: var(--text);
}

/* ── Light Theme: Section dividers ─────────────────────────── */
[data-theme="light"] .section:not(:first-child)::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.14) 30%,
    rgba(var(--accent-rgb), 0.1) 60%,
    transparent 100%
  );
}

/* ── Light Theme: Eyebrow badge ────────────────────────────── */
[data-theme="light"] .eyebrow {
  color: var(--primary-strong);
  background: rgba(var(--primary-rgb), 0.07);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* ── Light Theme: Plan tag ─────────────────────────────────── */
[data-theme="light"] .plan-tag {
  background: rgba(var(--primary-rgb), 0.1);
  color: #3b4cb8;
}

/* ── Light Theme: Price & list ─────────────────────────────── */
[data-theme="light"] .plan-list {
  color: var(--muted);
}

/* ── Light Theme: Payment modal card inner text ────────────── */
[data-theme="light"] .payment-modal-card h2 {
  color: var(--text);
}

/* ── Light Theme: Footer border ────────────────────────────── */
[data-theme="light"] .footer-layout {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ── Light Theme: Nav separator ───────────────────────────── */
[data-theme="light"] .mobile-nav-actions .button.secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* ── Premium Login Redesign ─────────────────────────────────────────────── */
.auth-page .orb-three {
  width: 420px;
  height: 420px;
  background: rgba(50, 214, 162, 0.08);
  bottom: -10%;
  left: 30%;
}

.auth-page .background-orb {
  animation: auth-orb-drift 16s ease-in-out infinite alternate;
}

.auth-page .orb-two { animation-delay: -5s; }
.auth-page .orb-three { animation-delay: -10s; }

@keyframes auth-orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  backdrop-filter: blur(8px);
}

/* Intro panel */
.auth-page .auth-shell {
  animation: auth-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-page .auth-intro {
  position: relative;
  overflow: hidden;
  gap: 22px;
  padding: 44px;
}

.auth-page .auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at -10% -10%, rgba(var(--primary-rgb), 0.16), transparent 60%),
    radial-gradient(480px 260px at 110% 110%, rgba(var(--accent-rgb), 0.1), transparent 60%);
  pointer-events: none;
}

.auth-page .auth-intro > * { position: relative; }

.auth-page .auth-intro h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  background: linear-gradient(120deg, var(--text) 55%, var(--primary) 85%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-features {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-feature-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Card: glass + gradient ring */
.auth-page .auth-card {
  position: relative;
  padding: 36px 32px;
  gap: 20px;
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.97), rgba(9, 9, 12, 0.99));
  backdrop-filter: blur(18px);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.auth-page .auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.55), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.04) 68%, rgba(var(--accent-rgb), 0.4));
}

.auth-page .auth-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.7), rgba(var(--accent-rgb), 0.6), transparent);
}

.auth-page .button-google {
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page .button-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.auth-page .auth-divider { display: flex; }

.auth-page .form-row input {
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-page .form-row label {
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.auth-page .submit-button {
  padding: 15px 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary) 55%, var(--accent) 130%);
  box-shadow: 0 12px 32px rgba(85, 110, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-page .submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 16px 40px rgba(85, 110, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-page .submit-button:active { transform: translateY(0); }

.auth-page .auth-links {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-page .auth-links .button {
  text-align: center;
  justify-content: center;
  font-size: 0.88rem;
  padding: 12px 14px;
}

/* Light theme refinements */
[data-theme="light"] .auth-page .auth-intro,
[data-theme="light"].auth-page .auth-intro,
[data-theme="light"] .auth-intro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.98));
}

[data-theme="light"] .auth-page .auth-card,
[data-theme="light"] .auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.97));
}

[data-theme="light"] .auth-card::before {
  background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.45), rgba(0, 0, 0, 0.05) 32%, rgba(0, 0, 0, 0.04) 68%, rgba(var(--accent-rgb), 0.35));
}

[data-theme="light"] .auth-feature-icon {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: none;
}

[data-theme="light"] .auth-page .form-row input,
[data-theme="light"] .form-row input {
  background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .auth-theme-toggle {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] body.auth-page {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2fb 54%, #f8faff 100%);
}

[data-theme="light"] body.auth-page::before {
  background:
    linear-gradient(90deg, rgba(247, 249, 255, 0.96) 0%, rgba(247, 249, 255, 0.84) 52%, rgba(247, 249, 255, 0.66) 100%),
    linear-gradient(180deg, rgba(247, 249, 255, 0.10) 0%, #f8faff 94%),
    url("assets/gallery/photo-3.jpg") center center / cover no-repeat;
  filter: saturate(0.58) contrast(0.98) brightness(1.08);
}

[data-theme="light"] body.auth-page::after {
  background:
    radial-gradient(720px 420px at 70% 32%, rgba(var(--primary-rgb), 0.15), transparent 62%),
    radial-gradient(560px 320px at 34% 65%, rgba(var(--accent-rgb), 0.08), transparent 68%),
    radial-gradient(ellipse 96% 86% at 50% 48%, transparent 50%, rgba(40, 56, 110, 0.12) 100%);
  mix-blend-mode: normal;
  opacity: 1;
}

[data-theme="light"] body.auth-page .grid-overlay {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

[data-theme="light"] .otp-overlay {
  background: rgba(20, 24, 45, 0.45);
}

[data-theme="light"] .otp-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 32px 80px rgba(20, 30, 80, 0.25);
}

[data-theme="light"] .otp-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .otp-box:focus {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: var(--primary);
}

[data-theme="light"] .otp-error-msg { color: #d6336c; }
[data-theme="light"] .otp-box--error { border-color: #d6336c; }

/* 2FA setup card — light theme */
[data-theme="light"] .totp-setup-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 32px 80px rgba(20, 30, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .totp-qr-wrap img {
  box-shadow: 0 10px 30px rgba(20, 30, 80, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .totp-steps {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.16);
}

/* Responsive */
@media (max-width: 1024px) {
  .auth-page .auth-intro { padding: 32px; }
}

@media (max-width: 720px) {
  .auth-theme-toggle { top: 14px; right: 14px; }
  .auth-page .auth-main { padding: 72px 14px 32px; }
  .auth-page .auth-intro { padding: 26px 22px; }
  .auth-page .auth-card { padding: 26px 20px; }
  .auth-page .auth-links { grid-template-columns: 1fr; }
  .auth-page::before { background-position: 60% center; }
  .auth-page .grid-overlay { opacity: 0.22; background-size: 76px 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .background-orb,
  .auth-page .auth-shell { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   PREMIUM PASS — visual polish layer
   ════════════════════════════════════════════════════════════ */

/* ── #11 Vignette: frames content, deepens the dark canvas ──── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 48%, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
  mix-blend-mode: multiply;
}
[data-theme="light"] .vignette {
  background: radial-gradient(ellipse 120% 120% at 50% 50%, transparent 60%, rgba(20, 30, 60, 0.09) 100%);
  mix-blend-mode: normal;
}

/* ── #9 Typography refinement ───────────────────────────────── */
h1, h2, h3 { font-optical-sizing: auto; }
h1, h2 { text-wrap: balance; }
.hero-text,
.section-heading p,
.register-copy p { text-wrap: pretty; }
.hero h1 { letter-spacing: -0.032em; }
.section-heading h2 { letter-spacing: -0.022em; }

/* ── #3 Tabular figures for financial numbers ───────────────── */
.price,
.price-old,
.price-mxn,
.gallery-kpi-value,
.mini-chart-delta,
.metric-card strong,
.preview-card strong,
.ticker-price,
.compare-table td,
.hero-metrics strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ── #1 Trust chips: line icons replace emojis ──────────────── */
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-item:hover {
  color: var(--text);
  border-color: rgba(var(--primary-rgb), 0.32);
  background: rgba(var(--primary-rgb), 0.07);
  transform: translateY(-1px);
}
[data-theme="light"] .trust-item { background: rgba(15, 23, 42, 0.015); }

/* ── #12 Input focus/hover glow ─────────────────────────────── */
.form-row input:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  background-color: rgba(255, 255, 255, 0.05);
}
.form-row input:focus,
.form-row select:focus {
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14),
              0 0 24px rgba(var(--primary-rgb), 0.18);
}

/* ── #8 Section divider — add a faint glow node at center ────── */
.section:not(:first-child)::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.5);
  pointer-events: none;
}

/* ── #5 Featured plan — rotating conic gradient border ──────── */
@property --spin-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.pricing-card.featured > :not(.card-spin) { position: relative; z-index: 1; }
.card-spin {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--spin-ang),
    transparent 0deg,
    rgba(var(--primary-rgb), 0.9) 70deg,
    rgba(var(--accent-rgb), 0.7) 130deg,
    transparent 210deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
}

/* ── #4 Hero "alive" micro-motion + #7 entrance choreography ── */
@media (prefers-reduced-motion: no-preference) {
  /* #5 spin */
  .card-spin { animation: cardSpin 6s linear infinite; }
  @keyframes cardSpin { to { --spin-ang: 360deg; } }

  /* #4 pulsing chart dot — keep the existing fade-in reveal, add glow pulse */
  .hc-dot { animation: hc-fade 0.4s ease 2.4s forwards, hcDotPulse 2.6s ease-in-out 2.9s infinite; }
  @keyframes hcDotPulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(var(--accent-rgb), 0)); }
    50%      { filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.95)); }
  }

  /* #4 delta badge soft glow */
  .mini-chart-delta { animation: deltaGlow 3.4s ease-in-out infinite; }
  @keyframes deltaGlow {
    0%, 100% { text-shadow: none; }
    50%      { text-shadow: 0 0 14px rgba(var(--up-rgb), 0.55); }
  }
}

.landing-page .hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

.landing-page .hero-copy {
  max-width: 660px;
}

.landing-page .hero h1 {
  font-size: clamp(2.45rem, 3.55rem, 3.55rem);
  max-width: 680px;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.landing-page .hero-text {
  max-width: 620px;
  color: rgba(245, 247, 251, 0.82);
}

.landing-page .hero-actions {
  margin: 22px 0 28px;
}

.landing-page .hero-actions .button.primary {
  padding-inline: 24px;
  box-shadow:
    0 14px 34px rgba(85, 110, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

.landing-page .hero-actions .button.primary:hover {
  box-shadow:
    0 18px 42px rgba(85, 110, 255, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.landing-page .hero-actions .button.secondary {
  color: rgba(245, 247, 251, 0.76);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.landing-page .hero-actions .button.secondary:hover {
  color: var(--text);
  border-color: rgba(var(--primary-rgb), 0.28);
}

.landing-page .panel-window {
  background: linear-gradient(180deg, rgba(14, 15, 24, 0.88) 0%, rgba(7, 8, 14, 0.94) 100%) !important;
  backdrop-filter: blur(12px);
}

[data-theme="light"] .landing-page .hero h1 {
  text-shadow: none;
}

[data-theme="light"] .landing-page .hero-text {
  color: #3f4863;
}

[data-theme="light"] .landing-page .hero-actions .button.secondary {
  color: #3f4863;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.10);
}

[data-theme="light"] .landing-page .panel-window {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.96)) !important;
  border-color: rgba(var(--primary-rgb), 0.22);
}

@media (max-width: 720px) {
  .landing-page .hero {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .landing-page .hero h1 {
    font-size: 2.55rem;
    line-height: 1.08;
  }

  .landing-page .hero-text {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .landing-page .aurora {
    background-position: 62% top;
  }

  .landing-page .grid-overlay {
    opacity: 0.32;
    background-size: 72px 72px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .landing-page .card-spin,
  .landing-page .mini-chart-delta {
    animation: none;
  }

  .landing-page .pricing-card.featured:hover .card-spin {
    animation: cardSpin 10s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page .ticker-track,
  .landing-page .gallery-skeleton,
  .landing-page .card-spin,
  .landing-page .hc-dot,
  .landing-page .mini-chart-delta {
    animation: none !important;
  }
}

@media (max-width: 1024px) {
  .credibility-grid,
  .workflow-steps,
  .audience-grid,
  .disclaimer-panel {
    grid-template-columns: 1fr;
  }

  .credibility-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .credibility-card,
  .workflow-step,
  .audience-card,
  .disclaimer-panel {
    padding: 22px;
  }
}

/* ── iOS zoom fix: inputs/selects must be ≥16px or Safari auto-zooms on focus ── */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: max(16px, 1em) !important;
  }
}

/* ── Códigos de respaldo 2FA (login) ──────────────────────────────────────── */
#otpBackupWrap.hidden,
#totpSetupBackupView.hidden { display: none; }

.otp-backup-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.otp-backup-input {
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 1px;
}
.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.backup-code-chip {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  user-select: all;
}
.backup-codes-actions { display: flex; gap: 8px; }
.backup-codes-actions .button { flex: 1; }
.backup-codes-ack {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted, #9aa);
  margin-top: 12px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .backup-codes-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion: kill-switch global ───────────────────────────────────────
   Complementa los bloques no-preference de arriba: congela cualquier animación
   continua restante (shimmers de skeleton, ticker, glows) y el smooth-scroll
   para usuarios con "reducir movimiento" activado. Las animaciones con
   `forwards` saltan a su estado final, así que nada queda oculto. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Sección "Producto real" (capturas del dashboard) ─────────────────────────
   Marcos de navegador para screenshots reales. La primera captura ocupa todo el
   ancho; las dos siguientes van en dos columnas (una en móvil). */
.product-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.product-shot { margin: 0; min-width: 0; }
.product-shot--wide { grid-column: 1 / -1; }
.browser-frame {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10, 11, 16, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.product-shot:hover .browser-frame {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.35);
}
.browser-frame-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.browser-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.browser-frame-bar span:first-child { background: rgba(255, 99, 99, 0.55); }
.browser-frame-bar span:nth-child(2) { background: rgba(255, 189, 89, 0.55); }
.browser-frame-bar span:nth-child(3) { background: rgba(66, 211, 146, 0.55); }
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.product-shot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
[data-theme="light"] .browser-frame {
  border-color: rgba(20, 28, 58, 0.14);
  background: #f5f7fd;
  box-shadow: 0 20px 55px rgba(24, 33, 68, 0.16);
}
[data-theme="light"] .browser-frame-bar {
  border-bottom-color: rgba(20, 28, 58, 0.1);
  background: rgba(20, 28, 58, 0.04);
}
@media (max-width: 860px) {
  .product-shots-grid { grid-template-columns: 1fr; gap: 22px; }
}
