:root {
  /* Codex Design System Palette */
  --codex-primary: #D000FF;       /* Deep Magenta/Purple - Primary Accent */
  --codex-secondary: #00CFFF;     /* Bright Cyan/Blue - Secondary Accent */
  --codex-primary-dark: #B200CC;  /* Darker magenta for hover */
  --codex-text-primary: #F5F5F5;  /* Off-White - Primary Text */
  --codex-text-secondary: #B0B0B0; /* Light Grey - Secondary Text */
  --codex-bg-base: #0A0F1A;       /* Dark Navy - Background Base */
  --codex-bg-surface: #101828;    /* Slightly lighter for cards */
  --codex-bg-elevated: #1A2238;   /* Elevated surfaces */
  
  /* Legacy brand colors (for backward compatibility) */
  --brand-plum: #5b1e74;
  --brand-violet: #7b3fa9;
  --brand-lilac: #b77ae0;
  --brand-cyan: #42c4f4;
  --brand-glow: #8ce7ff;
  
  /* Mapped to Codex palette */
  --bg-deep: var(--codex-bg-base);
  --bg-surface: var(--codex-bg-surface);
  --bg-soft: var(--codex-bg-elevated);
  --text-main: var(--codex-text-primary);
  --text-secondary: var(--codex-text-secondary);
  --text-muted: #808080;
  
  /* Gradients - Codex style */
  --gradient-brand: linear-gradient(135deg, var(--codex-primary) 0%, var(--codex-secondary) 100%);
  --gradient-dark: linear-gradient(180deg, var(--codex-bg-base) 0%, var(--codex-bg-surface) 100%);
  --gradient-accent: linear-gradient(135deg, #D000FF 0%, #00CFFF 100%);
  
  /* Shadows - Codex style */
  --shadow-glow: 0 0 20px rgba(208, 0, 255, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-cyan: 0 0 15px rgba(0, 207, 255, 0.4);
  --shadow-card-lift: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-border-glass: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow-primary: 0 0 24px rgba(208, 0, 255, 0.45);
  --shadow-glow-premium: 0 0 20px rgba(0, 207, 255, 0.35);
  --shadow-glow-combined: 0 0 28px rgba(208, 0, 255, 0.18), 0 0 48px rgba(0, 207, 255, 0.12);
  
  /* Typography - Editorial Tech */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;

  /* Premium effects - inxvita */
  --glow-primary: 0 0 24px rgba(208, 0, 255, 0.45);
  --glow-secondary: 0 0 20px rgba(0, 207, 255, 0.35);
  --glow-combined: 0 0 40px rgba(208, 0, 255, 0.2), 0 0 80px rgba(0, 207, 255, 0.1);
  --gradient-iridescent: linear-gradient(135deg, #D000FF 0%, #7B3FA9 40%, #00CFFF 100%);
  --gradient-text: linear-gradient(90deg, #D000FF 0%, #00CFFF 100%);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(10, 15, 26, 0.45);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-magic: 40px;

  /* Spacing */
  --touch-target: 44px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body), 'Open Sans', sans-serif;
  color: var(--codex-text-primary);
  background: var(--codex-bg-base);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

a { color: var(--codex-secondary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--codex-primary); }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; }

/* Headings - Codex style */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading), 'Roboto', sans-serif;
  margin: 0;
  letter-spacing: -0.04em;
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--codex-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
}

p { margin-top: 0; color: var(--codex-text-secondary); }

/* Form elements - improved UX and accessibility */
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-height: var(--touch-target);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(66, 196, 244, 0.2);
}

/* Validation states */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--error-main);
  background: rgba(220, 38, 38, 0.05);
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: var(--success-main);
  background: rgba(45, 155, 92, 0.05);
}

input.is-valid:focus,
select.is-valid:focus,
textarea.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(45, 155, 92, 0.2);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Error messages */
.input-error-text {
  display: block;
  margin-top: 0.45rem;
  color: #FCA5A5;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.input-error-text::before {
  content: '⚠️';
  font-size: 0.875rem;
}

/* Success messages */
.input-success-text {
  display: block;
  margin-top: 0.45rem;
  color: #86EFAC;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.input-success-text::before {
  content: '✅';
  font-size: 0.875rem;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 122, 224, 0.92) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(20, 12, 31, 0.96), rgba(43, 22, 61, 0.92));
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(20, 12, 31, 0.92);
  background: linear-gradient(180deg, rgba(123, 63, 169, 0.96), rgba(66, 196, 244, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(183, 122, 224, 0.98), rgba(140, 231, 255, 0.94));
}

*::-webkit-scrollbar-corner {
  background: rgba(20, 12, 31, 0.96);
}

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* Buttons - Codex Design System */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 5px;
  padding: 10px 20px;
  min-height: var(--touch-target);
  background: var(--codex-primary);
  color: var(--codex-text-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.button:hover {
  background: var(--codex-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.button:active {
  transform: translateY(0);
}

.button.ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--codex-secondary);
  color: var(--codex-secondary);
}

.button.ghost:hover {
  background: rgba(0, 207, 255, 0.1);
  border-color: var(--codex-primary);
  color: var(--codex-primary);
}

.button.subtle {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}

.button.secondary {
  background: var(--codex-secondary);
  box-shadow: var(--shadow-cyan);
}

.button.danger {
  background: #DC2626;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.button.success {
  background: #2D9B5C;
  box-shadow: 0 4px 20px rgba(45, 155, 92, 0.3);
}

.button.sm {
  padding: 0.5rem 1rem;
  min-height: 36px;
  font-size: var(--text-xs);
}

.button.lg {
  padding: 1rem 1.75rem;
  min-height: 52px;
  font-size: var(--text-base);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.button.is-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.button.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--codex-secondary);
  margin-bottom: 0.75rem;
  display: block;
}
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards - Codex Design System */
.card {
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(0, 207, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(16, 24, 40, 0.92), rgba(10, 15, 26, 0.74));
  box-shadow: var(--shadow-border-glass), var(--shadow-card-lift);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-border-glass), var(--shadow-card-lift), var(--shadow-glow-combined);
  border-color: rgba(255, 255, 255, 0.14);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card--light {
  background:
    radial-gradient(circle at top right, rgba(208, 0, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(26, 34, 56, 0.94), rgba(16, 24, 40, 0.86));
  border: var(--border-glass);
}

.card--light:hover {
  border-color: var(--codex-secondary);
}

.hero-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(208, 0, 255, 0.2), rgba(0, 207, 255, 0.1));
  border: 1px solid var(--codex-primary);
  box-shadow: var(--shadow-glow);
}
.section { padding: 4.5rem 0; }
.section--tight { padding: 2rem 0; }
.muted { color: var(--text-muted); }

/* Typography helpers */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.brand-mark { font-weight: 800; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: lowercase; }
.brand-mark--large { font-size: 2rem; }
.brand-lockup { display: inline-flex; align-items: center; min-width: 0; flex-shrink: 0; }
.brand-lockup--header { width: clamp(142px, 15vw, 188px); }
.brand-lockup--footer { width: clamp(160px, 18vw, 220px); margin-bottom: 1rem; }
.brand-lockup--sidebar { width: 154px; margin-bottom: 2rem; }
.brand-lockup--auth { justify-content: center; margin: 0 auto 1.25rem; width: min(240px, 68vw); }
.brand-logo { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.28)); }
.brand-logo--header { max-height: 48px; }
.brand-logo--footer { max-height: 70px; }
.brand-logo--sidebar { max-height: 58px; }
.brand-logo--auth { max-height: 76px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(208, 0, 255, 0.3);
  background: rgba(208, 0, 255, 0.1);
  color: var(--codex-primary);
}

.badge.is-success { 
  background: rgba(45, 155, 92, 0.15); 
  color: #4DD68F; 
  border-color: rgba(45, 155, 92, 0.3);
}

.badge.is-warning { 
  background: rgba(255, 196, 92, 0.15); 
  color: #FFD68A; 
  border-color: rgba(255, 196, 92, 0.3);
}

.badge.is-danger { 
  background: rgba(220, 38, 38, 0.15); 
  color: #FF6868; 
  border-color: rgba(220, 38, 38, 0.3);
}

.badge.is-muted { 
  background: rgba(176, 176, 176, 0.1); 
  color: var(--codex-text-secondary); 
  border-color: rgba(176, 176, 176, 0.3);
}

.badge.is-info { 
  background: rgba(0, 207, 255, 0.15); 
  color: var(--codex-secondary); 
  border-color: rgba(0, 207, 255, 0.3);
}
.flash { width: min(1120px, calc(100% - 2rem)); margin: 1rem auto 0; border-radius: 18px; padding: 1rem 1.1rem; border: 1px solid; transition: opacity 0.3s ease; position: relative; padding-right: 2.5rem; }
.flash-success { background: rgba(77, 210, 140, 0.12); border-color: rgba(77, 210, 140, 0.35); }
.flash-error { background: rgba(255, 110, 110, 0.12); border-color: rgba(255, 110, 110, 0.35); }

.flash-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.flash-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); background: rgba(20, 12, 31, 0.78); border-bottom: 1px solid rgba(255,255,255,0.05); box-shadow: 0 18px 36px rgba(7, 8, 16, 0.2); }
.header-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; min-height: 88px; padding: 0.9rem 0; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.85rem 1rem; font-size: 0.95rem; }
.site-nav > a:not(.button) { color: rgba(255,255,255,0.86); transition: color 0.26s cubic-bezier(0.16, 1, 0.3, 1); }
.site-nav > a:not(.button):hover { color: #ffffff; }
.site-footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; gap: 1.25rem; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-grid a { display: block; margin-bottom: 0.5rem; color: rgba(255,255,255,0.75); }

.auth-shell { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top, rgba(183,122,224,0.2), transparent 30%), var(--bg-deep); }
.auth-layout { width: min(1180px, calc(100% - 2rem)); padding: 2rem 0; }
.auth-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.auth-panel--expanded { grid-template-columns: 1.05fr 1.2fr; }
.auth-showcase { min-height: 520px; padding: 2.4rem; border-radius: 32px; background: var(--gradient-dark); position: relative; overflow: hidden; }
.auth-showcase::after { content: ''; position: absolute; inset: auto -20% -25% auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(140,231,255,0.3), transparent 68%); }
.auth-showcase--register { display: grid; align-content: start; gap: 1.25rem; }
.auth-showcase-points { display: grid; gap: 0.95rem; margin-top: auto; }
.auth-showcase-point { padding: 1rem 1.1rem; border-radius: 22px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.06); }
.auth-showcase-point strong { display: block; margin-bottom: 0.3rem; }
.auth-form { padding: 2rem; border-radius: 32px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft); }
.auth-form-footer { display: grid; gap: 0.65rem; }
.auth-form-footer .muted { margin: 0; }
.form-grid { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.input-error-text { display: block; margin-top: 0.45rem; color: #ffb2b2; font-size: 0.85rem; }
.is-invalid { border-color: rgba(255, 104, 104, 0.72) !important; box-shadow: 0 0 0 1px rgba(255, 104, 104, 0.22); }

.plan-selector {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-choice {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.plan-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 122, 224, 0.45);
  box-shadow: 0 18px 28px rgba(8, 9, 19, 0.22);
}

.plan-choice.is-selected {
  border-color: rgba(66, 196, 244, 0.78);
  background: linear-gradient(180deg, rgba(91,30,116,0.42), rgba(66,196,244,0.16));
  box-shadow: 0 0 0 1px rgba(66, 196, 244, 0.18), 0 18px 32px rgba(66, 196, 244, 0.12);
}

.plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-choice__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.plan-choice__top strong {
  display: block;
  font-size: 1.08rem;
}

.plan-choice__top small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.86rem;
  line-height: 1.45;
}

.plan-choice__price {
  font-family: var(--font-display), 'Roboto', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.plan-choice__compare {
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  font-size: 0.92rem;
}

.plan-choice__features {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   DASHBOARD SHELL — Premium Glassmorphism
═══════════════════════════════════════════════ */
.dashboard-shell {
  background: var(--codex-bg-base);
  color: var(--codex-text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
}

.dashboard-layout {
  min-height: 100vh;
}

/* ── Sidebar ── */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(13, 18, 31, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 272px;
  height: 100vh;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 0, 255, 0.2) transparent;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 0.5rem;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--codex-text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ── Nav ── */
.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem 0.75rem;
  flex: 1;
}

.nav-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  padding: 1.1rem 0.75rem 0.4rem;
  pointer-events: none;
}
.nav-section-label:first-child {
  padding-top: 0.5rem;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--codex-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dashboard-nav a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--codex-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
}

.dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dashboard-nav a.is-active {
  background: rgba(208, 0, 255, 0.1);
  color: #fff;
  font-weight: 600;
}
.dashboard-nav a.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--codex-primary);
  border-radius: 0 3px 3px 0;
}
.dashboard-nav a.is-active i {
  color: var(--codex-primary);
  filter: drop-shadow(0 0 6px rgba(208, 0, 255, 0.4));
}

/* ── Sidebar footer ── */
.dashboard-sidebar-footer {
  margin-top: auto;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.5rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--codex-primary), var(--codex-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--codex-text-secondary);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.35rem;
  border-radius: 10px;
  color: var(--codex-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-logout-btn:hover {
  background: rgba(255, 80, 80, 0.08);
  color: #ff6b6b;
}

.sidebar-feedback-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(208, 0, 255, 0.2);
  background: rgba(208, 0, 255, 0.06);
  color: var(--codex-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-feedback-btn:hover {
  background: rgba(208, 0, 255, 0.12);
  border-color: rgba(208, 0, 255, 0.35);
  color: #e040fb;
}
.sidebar-feedback-btn i {
  font-size: 0.9rem;
}

/* ── Feedback Modal ── */
.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.feedback-modal {
  width: 100%;
  max-width: 480px;
  background: var(--codex-bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.feedback-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.feedback-modal__header h3 {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--codex-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-modal__header h3 i {
  color: var(--codex-primary);
}

.feedback-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--codex-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--codex-text-primary);
}

.feedback-modal__body {
  padding: 1.5rem;
}

.feedback-modal__intro {
  font-size: 0.88rem;
  color: var(--codex-text-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.feedback-modal__field {
  margin-bottom: 1rem;
}

.feedback-modal__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--codex-text-secondary);
  margin-bottom: 0.4rem;
}

.feedback-modal__field select,
.feedback-modal__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--codex-text-primary);
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.feedback-modal__field select:focus,
.feedback-modal__field textarea:focus {
  outline: none;
  border-color: var(--codex-secondary);
  box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.15);
}

.feedback-modal__field textarea {
  resize: vertical;
  min-height: 100px;
}

.feedback-modal__counter {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--codex-text-secondary);
  margin-top: 0.25rem;
}

.feedback-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.feedback-modal__footer .button {
  min-width: 130px;
  justify-content: center;
}

.feedback-btn__spinner {
  display: none;
}

.feedback-btn__label i {
  margin-right: 0.25rem;
}

@media (max-width: 640px) {
  .feedback-modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
    max-height: 90vh;
    overflow-y: auto;
  }
  .feedback-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* ── Main area ── */
.dashboard-main {
  margin-left: 272px;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* ── Topbar ── */
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(208, 0, 255, 0.3);
}

.topbar-titles .eyebrow {
  margin-bottom: 0.2rem;
}

.dashboard-topbar h1 {
  font-family: var(--font-heading), 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.2;
}

.dashboard-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.dashboard-topbar-copy {
  margin: 0.35rem 0 0;
  max-width: 58ch;
  font-size: 0.9rem;
}

.dashboard-content { /* wrapper for page content */ }
.stack { display: grid; gap: 1rem; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th, .list-table td { padding: 0.9rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; vertical-align: top; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.2rem; border-radius: 24px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); }
.wizard-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.wizard-nav a { padding: 0.75rem 1rem; border-radius: 999px; border: 1px solid var(--border-soft); color: rgba(255,255,255,0.74); }
.wizard-nav a.active { background: var(--gradient-brand); color: white; border-color: transparent; }
.repeater { display: grid; gap: 1rem; }
.repeater-item { padding: 1rem; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.event-home { gap: 1.25rem; }
.event-home-hero { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); padding: 1.6rem; background: radial-gradient(circle at top right, rgba(140,231,255,0.14), transparent 28%), rgba(255,255,255,0.04); overflow: hidden; }
.event-home-hero .card { background: rgba(11, 10, 24, 0.52); box-shadow: none; }
.event-home-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-width: 0; }
.event-home-badges { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.event-home-title { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.92; text-wrap: balance; }
.event-home-lead { max-width: 58ch; font-size: 1.02rem; color: rgba(255,255,255,0.78); }
.event-home-meta { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.event-home-meta-item { padding: 0.95rem 1rem; border-radius: 22px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); }
.event-home-meta-item span { display: block; margin-bottom: 0.25rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.58); }
.event-home-meta-item strong { font-weight: 700; }
.event-home-progress { display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.event-progress-track { width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.08); }
.event-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gradient-brand); box-shadow: var(--shadow-glow); }
.event-progress-percent { font-family: var(--font-display), 'Roboto', sans-serif; font-size: 2.2rem; line-height: 1; letter-spacing: -0.04em; }
.event-next-step { padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.08); }
.event-home-media { min-height: 260px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.08); background-size: cover; background-position: center; grid-column: 1 / -1; }
.event-home-metrics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.event-metric { padding: 1.15rem 1.2rem; }
.event-metric h3 { font-size: 2rem; }
.event-home-focus { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-home-pending-list { display: grid; gap: 0.5rem; }
.event-home-pending-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.event-home-pending-item:last-child { padding-bottom: 0; border-bottom: 0; }
.event-home-success { display: flex; gap: 0.85rem; align-items: flex-start; }
.quick-link-card { display: flex; flex-direction: column; gap: 0.75rem; min-height: 220px; }
.quick-link-card .button { margin-top: auto; align-self: flex-start; }

/* Quick access cards - horizontal compact design */
.event-home-quick-access {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quick-access-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.quick-access-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(208, 0, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(208, 0, 255, 0.15);
}

.quick-access-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(208, 0, 255, 0.15), rgba(0, 207, 255, 0.15));
  color: var(--codex-secondary);
  flex-shrink: 0;
}

.quick-access-content {
  flex: 1;
  min-width: 0;
}

.quick-access-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--codex-text-primary);
}

.quick-access-content p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-access-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.quick-access-card:hover .quick-access-arrow {
  background: rgba(208, 0, 255, 0.2);
  color: var(--codex-primary);
  transform: translateX(4px);
}

.checkout-page { gap: 1.25rem; }
.checkout-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  padding: 1.6rem;
}
.checkout-hero .card { background: rgba(11, 10, 24, 0.52); box-shadow: none; }
.checkout-price {
  font-family: var(--font-display), 'Roboto', sans-serif;
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 1;
  color: #fff;
}
.checkout-hero__copy,
.checkout-hero__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.checkout-method-card {
  display: grid;
  gap: 0.9rem;
}
.checkout-bank-details {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.rsvp-hero-panel {
  padding: 1.5rem;
}
.rsvp-hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}
.rsvp-hero-copy,
.rsvp-side-card {
  display: grid;
  gap: 1rem;
}
.rsvp-group-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.rsvp-guest-list {
  display: grid;
  gap: 0.9rem;
}
.rsvp-guest-card {
  display: grid;
  gap: 0.85rem;
}
.rsvp-guest-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
.rsvp-inline-check {
  display: grid;
  align-content: end;
}
.rsvp-inline-check__label {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
}
.save-the-date-card {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  padding: 0;
}
.save-the-date-card__media {
  min-height: 420px;
  background:
    radial-gradient(circle at top, rgba(183, 122, 224, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(91, 30, 116, 0.4), rgba(13, 9, 21, 0.78));
  background-size: cover;
  background-position: center;
}
.save-the-date-card__content {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.save-the-date-card__lead {
  font-size: 1.08rem;
  max-width: 40ch;
}

.marketing-hero { padding: 5rem 0 3rem; }
.marketing-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.4rem; align-items: center; }
.marketing-hero--immersive {
  padding: 5.5rem 0 3rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(183, 122, 224, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(66, 196, 244, 0.12), transparent 24%);
}
.marketing-hero-grid--story { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); }
.hero-card--story {
  display: grid;
  gap: 1.5rem;
  min-height: 100%;
  padding: 2.2rem;
}
.marketing-proof-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-proof-card,
.marketing-value-card,
.marketing-feature-card {
  background: rgba(255,255,255,0.04);
}
.marketing-proof-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
}
.marketing-proof-card strong {
  display: block;
  margin-bottom: 0.35rem;
}
.marketing-showcase-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
}
.marketing-showcase-media img {
  min-height: 360px;
  object-fit: cover;
}
.marketing-showcase-plan {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.marketing-showcase-plan strong {
  font-size: 1.05rem;
}
.marketing-showcase-plan span:last-of-type {
  font-family: var(--font-display), 'Roboto', sans-serif;
  font-size: 1.9rem;
}
.marketing-showcase-plan small {
  color: rgba(255,255,255,0.64);
}
.marketing-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-value-card,
.marketing-feature-card,
.marketing-template-card {
  display: grid;
  gap: 0.75rem;
}
.marketing-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.marketing-section-head h2 {
  max-width: 18ch;
}
.marketing-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-plan-grid .plan-choice {
  cursor: default;
  min-height: 100%;
}
.marketing-plan-features {
  display: grid;
  gap: 0.55rem;
}
.marketing-plan-feature {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.marketing-plan-feature .badge {
  flex-shrink: 0;
}
.marketing-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.marketing-pricing-hero {
  padding-inline: clamp(1.5rem, 4vw, 2.4rem);
}
.display { font-size: clamp(3rem, 7vw, 5.4rem); line-height: 0.92; }
.lead { font-size: 1.08rem; max-width: 56ch; }
.template-card img { border-radius: 22px; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.template-card-media,
.xv-lightbox-link,
.gallery-shot,
.gallery-pending-thumb {
  display: block;
}
.template-card-media img,
.xv-lightbox-link img,
.gallery-shot img,
.gallery-pending-thumb img {
  transition: transform 220ms ease, filter 220ms ease;
}
.template-card-media:hover img,
.xv-lightbox-link:hover img,
.gallery-shot:hover img,
.gallery-pending-thumb:hover img {
  transform: scale(1.015);
  filter: brightness(1.03);
}

.dashboard-shell .select2-container {
  width: 100% !important;
}
.auth-shell .select2-container,
.site-shell .select2-container {
  width: 100% !important;
}
.invitation-shell .select2-container {
  width: 100% !important;
}
.dashboard-shell .select2-container--default .select2-selection--single,
.dashboard-shell .select2-container--default .select2-selection--multiple,
.dashboard-shell .select2-dropdown,
.auth-shell .select2-container--default .select2-selection--single,
.auth-shell .select2-container--default .select2-selection--multiple,
.auth-shell .select2-dropdown,
.invitation-shell .select2-container--default .select2-selection--single,
.invitation-shell .select2-container--default .select2-selection--multiple,
.invitation-shell .select2-dropdown,
.site-shell .select2-container--default .select2-selection--single,
.site-shell .select2-container--default .select2-selection--multiple,
.site-shell .select2-dropdown {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  box-shadow: 0 18px 34px rgba(7, 8, 16, 0.24);
}
.dashboard-shell .select2-container--default .select2-selection--single {
  min-height: 64px;
  padding: 0.75rem 1rem;
}
.auth-shell .select2-container--default .select2-selection--single,
.invitation-shell .select2-container--default .select2-selection--single,
.site-shell .select2-container--default .select2-selection--single {
  min-height: 58px;
  padding: 0.55rem 1rem;
}
.dashboard-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.5;
  color: var(--text-main);
}
.auth-shell .select2-container--default .select2-selection--single .select2-selection__rendered,
.invitation-shell .select2-container--default .select2-selection--single .select2-selection__rendered,
.site-shell .select2-container--default .select2-selection--single .select2-selection__rendered,
.dashboard-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.5;
  color: var(--text-main);
}
.dashboard-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.9rem;
}
.auth-shell .select2-container--default .select2-selection--single .select2-selection__arrow,
.invitation-shell .select2-container--default .select2-selection--single .select2-selection__arrow,
.site-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.9rem;
}
.dashboard-shell .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255,255,255,0.52);
}
.auth-shell .select2-container--default .select2-selection--single .select2-selection__placeholder,
.invitation-shell .select2-container--default .select2-selection--single .select2-selection__placeholder,
.site-shell .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255,255,255,0.52);
}
.dashboard-shell .select2-dropdown {
  overflow: hidden;
}
.auth-shell .select2-dropdown,
.invitation-shell .select2-dropdown,
.site-shell .select2-dropdown,
.dashboard-shell .select2-dropdown {
  overflow: hidden;
}
.dashboard-shell .select2-search--dropdown,
.auth-shell .select2-search--dropdown,
.invitation-shell .select2-search--dropdown,
.site-shell .select2-search--dropdown {
  padding: 0.85rem;
  background: rgba(18, 10, 27, 0.98);
}
.dashboard-shell .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(183, 122, 224, 0.3);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}
.auth-shell .select2-search--dropdown .select2-search__field,
.invitation-shell .select2-search--dropdown .select2-search__field,
.site-shell .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(183, 122, 224, 0.3);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}
.dashboard-shell .select2-results__options {
  padding: 0.4rem;
  background: rgba(18, 10, 27, 0.98);
}
.auth-shell .select2-results__options,
.invitation-shell .select2-results__options,
.site-shell .select2-results__options {
  padding: 0.4rem;
  background: rgba(18, 10, 27, 0.98);
}
.dashboard-shell .select2-results__option {
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  color: rgba(255,255,255,0.84);
}
.auth-shell .select2-results__option,
.invitation-shell .select2-results__option,
.site-shell .select2-results__option {
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  color: rgba(255,255,255,0.84);
}
.dashboard-shell .select2-container--default .select2-results__option--selected {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.auth-shell .select2-container--default .select2-results__option--selected,
.invitation-shell .select2-container--default .select2-results__option--selected,
.site-shell .select2-container--default .select2-results__option--selected {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.dashboard-shell .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(135deg, rgba(123, 63, 169, 0.88), rgba(66, 196, 244, 0.88));
  color: #ffffff;
}
.auth-shell .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.invitation-shell .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.site-shell .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(135deg, rgba(123, 63, 169, 0.88), rgba(66, 196, 244, 0.88));
  color: #ffffff;
}
.dashboard-shell .select2-container--default.select2-container--focus .select2-selection--single,
.dashboard-shell .select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(140, 231, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(140, 231, 255, 0.18), 0 16px 32px rgba(66, 196, 244, 0.12);
}
.auth-shell .select2-container--default.select2-container--focus .select2-selection--single,
.auth-shell .select2-container--default.select2-container--open .select2-selection--single,
.invitation-shell .select2-container--default.select2-container--focus .select2-selection--single,
.invitation-shell .select2-container--default.select2-container--open .select2-selection--single,
.site-shell .select2-container--default.select2-container--focus .select2-selection--single,
.site-shell .select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(140, 231, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(140, 231, 255, 0.18), 0 16px 32px rgba(66, 196, 244, 0.12);
}

.invitation-shell { background: #0d0915; color: white; }
.invitation-page { position: relative; overflow: hidden; }
.watermark { position: fixed; right: 1rem; bottom: 1rem; padding: 0.7rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(10px); z-index: 20; }
.scroll-top-button {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(183, 122, 224, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 12, 31, 0.94), rgba(43, 22, 61, 0.92));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(6, 8, 18, 0.28);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-button:hover {
  border-color: rgba(140, 231, 255, 0.34);
  box-shadow: 0 18px 40px rgba(66, 196, 244, 0.16);
}
.scroll-top-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(140, 231, 255, 0.22), 0 18px 40px rgba(66, 196, 244, 0.16);
}
.scroll-top-button__icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.scroll-top-button__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.scroll-top-button__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.invite-container { width: min(1100px, calc(100% - 1.5rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.invite-panel { border-radius: 34px; padding: 1.4rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.invite-hero { display: grid; grid-template-columns: 1fr 0.9fr; gap: 1rem; align-items: stretch; min-height: 460px; }
.invite-hero-copy { padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(20,12,31,0.25), rgba(20,12,31,0.92)); border-radius: 28px; }
.invite-hero-media { border-radius: 28px; min-height: 460px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.invite-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(20,12,31,0.5)); }
.invite-title { font-size: clamp(3rem, 7vw, 5.3rem); }
.invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.invite-grid .card, .invite-panel.card { background: rgba(255,255,255,0.03); }
.invite-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.invite-gallery img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }
.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pass-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.pass-card img { width: 140px; background: white; padding: 0.75rem; border-radius: 18px; }
.template-princesa-clasica .invite-hero { background: linear-gradient(135deg, rgba(91,30,116,0.5), rgba(66,196,244,0.12)); padding: 1rem; border-radius: 34px; }
.template-editorial-glam .invite-hero { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(183,122,224,0.1)); padding: 1rem; border-radius: 34px; }
.template-noche-luxe .invite-hero { background: radial-gradient(circle at top right, rgba(140,231,255,0.18), transparent 25%), rgba(255,255,255,0.03); padding: 1rem; border-radius: 34px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .field-row, .footer-grid, .marketing-hero-grid, .auth-panel, .invite-hero, .invite-grid, .invite-gallery, .pass-grid, .stats-strip, .event-home-focus, .event-home-hero, .plan-selector, .marketing-proof-grid, .marketing-value-grid, .marketing-plan-grid, .checkout-hero, .rsvp-hero-grid, .save-the-date-card, .event-home-quick-access { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: 1fr; justify-items: start; gap: 0.85rem; min-height: auto; }
  .site-nav { width: 100%; justify-content: flex-start; }
  .dashboard-topbar { flex-direction: column; align-items: flex-start; }
  .rsvp-group-summary,
  .marketing-section-head,
  .marketing-cta-card { flex-direction: column; align-items: flex-start; }
  .marketing-showcase-media img { min-height: 280px; }
  .invite-hero-media { min-height: 320px; }
  .quick-link-card { min-height: auto; }
  .brand-lockup--header { width: 154px; }
  .brand-lockup--footer { width: 176px; }
  .brand-lockup--sidebar { width: 148px; }
  .brand-lockup--auth { width: min(220px, 72vw); }
  .brand-logo--header { max-height: 42px; }
  .brand-logo--footer, .brand-logo--auth, .brand-logo--sidebar { max-height: 56px; }
}

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 1.25rem)); }
  .header-inner { padding: 0.8rem 0 1rem; }
  .site-nav { gap: 0.7rem 0.85rem; font-size: 0.92rem; }
  .site-nav .button { padding: 0.78rem 1rem; }
  .marketing-hero { padding: 4rem 0 2.5rem; }
  .hero-card--story,
  .marketing-showcase-card,
  .auth-showcase,
  .auth-form { padding: 1.35rem; }
  .plan-choice { padding: 1rem; }
  .plan-choice__price { font-size: 1.75rem; }
  .scroll-top-button {
    left: max(0.75rem, env(safe-area-inset-left));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0.7rem 0.85rem;
  }
  .scroll-top-button__label {
    display: none;
  }
}

body.marketing-shell {
  background: var(--codex-bg-base);
  color: var(--codex-text-primary);
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
}

body.marketing-shell::before {
  content: none;
}

.marketing-shell main,
.marketing-shell .site-header,
.marketing-shell .site-footer {
  position: relative;
  z-index: 1;
}

.marketing-shell h1,
.marketing-shell h2,
.marketing-shell h3,
.marketing-shell h4 {
  font-family: var(--font-heading), 'Space Grotesk', sans-serif;
  color: var(--codex-text-primary);
}

.marketing-shell p,
.marketing-shell li {
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
  color: var(--codex-text-primary);
}

.marketing-shell .container {
  width: min(1240px, calc(100% - 2rem));
}

.marketing-shell .button {
  background: var(--codex-primary);
  box-shadow: var(--glow-primary);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.marketing-shell .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(208, 0, 255, 0.6);
  background: var(--codex-primary-dark);
}

.marketing-shell .button:active {
  transform: translateY(0) scale(0.985);
}

.marketing-shell .button.ghost {
  background: transparent;
  border: 1px solid rgba(208, 0, 255, 0.4);
  color: var(--codex-primary);
  box-shadow: none;
}

.marketing-shell .button.ghost:hover {
  background: rgba(208, 0, 255, 0.1);
  border-color: var(--codex-primary);
  color: var(--codex-text-primary);
}

.marketing-shell .badge {
  border-color: rgba(208, 0, 255, 0.3);
}

.marketing-shell .badge.is-success {
  background: rgba(208, 0, 255, 0.15);
  color: #D000FF;
  border: 1px solid rgba(208, 0, 255, 0.3);
}

.marketing-shell .flash {
  margin-top: 1.25rem;
  border-radius: 24px;
  background: rgba(24, 18, 28, 0.94);
  border-color: var(--marketing-line);
}

.marketing-shell .skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.marketing-shell .skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(20, 15, 23, 0.94);
  color: #fff;
}

.marketing-shell .site-header {
  position: sticky;
  top: 1rem;
  width: min(1260px, calc(100% - 1.4rem));
  margin: 0 auto;
  z-index: 100;
  border: 1px solid rgba(208, 0, 255, 0.15);
  border-radius: 28px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 50px rgba(8, 6, 10, 0.22);
  transition: all 0.3s ease;
}

.marketing-shell .site-header.is-scrolled {
  background: rgba(10, 15, 26, 0.95);
  border-color: rgba(208, 0, 255, 0.25);
  box-shadow: var(--glow-combined);
  backdrop-filter: blur(24px);
}

.marketing-shell .site-header-shell {
  padding: 0.75rem 1.5rem 0.95rem;
}

.marketing-shell .site-header-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0 0.75rem;
  color: #B0B0B0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, #D000FF10 0%, #00CFFF10 100%);
}

.marketing-shell .site-header-ribbon a {
  color: var(--codex-secondary);
  font-weight: 600;
}

.marketing-shell .header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.95rem;
}

.marketing-shell .site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.marketing-shell .site-nav > a:not(.button) {
  color: #B0B0B0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.marketing-shell .site-nav > a:not(.button):hover {
  color: #F5F5F5;
}

.marketing-shell .site-nav .button.ghost {
  border: 1px solid rgba(208, 0, 255, 0.4);
  color: #D000FF;
  background: transparent;
}

.marketing-shell .site-nav .button.ghost:hover {
  background: rgba(208, 0, 255, 0.1);
  border-color: #D000FF;
}

.marketing-shell .site-nav .button:not(.ghost) {
  background: #D000FF;
  color: #F5F5F5;
  border: none;
}

.marketing-shell .site-nav .button:not(.ghost):hover {
  background: #B200CC;
  box-shadow: var(--glow-primary);
}

.marketing-shell .site-nav > a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--codex-secondary);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.marketing-shell .site-nav > a:not(.button):hover::after {
  transform: scaleX(1);
}

.site-nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-nav-toggle span + span {
  margin-top: 4px;
}

.marketing-shell.has-site-nav-open .site-nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.marketing-shell.has-site-nav-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.marketing-shell.has-site-nav-open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.marketing-page {
  padding-top: 8.5rem;
  font-family: var(--font-ui);
}

.marketing-page h1,
.marketing-page h2,
.marketing-page h3 {
  font-family: var(--font-display);
}

/* Text gradient utility */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.marketing-stage {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
  background: var(--codex-bg-base);
}

/* Efecto de orbes de color en el fondo */
.marketing-stage::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(208, 0, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.marketing-stage::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -50px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.marketing-stage__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 1024px) {
  .marketing-stage__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.marketing-hero-frame {
  border-radius: var(--radius-2xl);
  background: var(--bg-glass);
  border: var(--border-glass);
  box-shadow: var(--glow-combined), 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.marketing-preview-card {
  border-radius: var(--radius-xl);
  border: var(--border-glass);
  background: var(--bg-glass);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marketing-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-secondary);
}

.marketing-floating-panel {
  background: rgba(26, 34, 56, 0.95);
  border: var(--border-glass);
  border-left: 3px solid #D000FF;
  border-radius: var(--radius-xl);
  box-shadow: var(--glow-primary), 0 20px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  animation: float 4s ease-in-out infinite;
  padding: 1.5rem;
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(208, 0, 255, 0.4); }
  50%       { box-shadow: 0 0 40px rgba(208, 0, 255, 0.8); }
}

.button--hero-primary:hover {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.marketing-stage__grid--pricing,
.marketing-stage__grid--demo {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
}

.marketing-stage__copy,
.marketing-stage__visual,
.marketing-pricing-summary,
.marketing-demo-sidecard,
.marketing-intro-panel,
.marketing-faq-highlight,
.marketing-seo-card {
  border: 1px solid var(--marketing-line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(36, 29, 41, 0.86), rgba(20, 15, 23, 0.94));
  box-shadow: 0 26px 50px rgba(10, 8, 10, 0.2);
}

.marketing-stage__copy {
  padding: clamp(1.7rem, 4vw, 3rem);
}

.marketing-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(245, 239, 232, 0.74);
  font-size: 0.92rem;
}

.marketing-display {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.marketing-display--compact {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6.2vw, 4.8rem);
}

.marketing-lead {
  max-width: 62ch;
  margin-top: 1.15rem;
  font-size: 1.03rem;
  line-height: 1.8;
}

.marketing-stage__actions {
  margin-top: 1.5rem;
}

.marketing-stage__notes {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.marketing-stage__notes span {
  position: relative;
  padding-left: 1rem;
  color: rgba(245, 239, 232, 0.68);
}

.marketing-stage__notes span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--marketing-accent), #f0d5bf);
}

.marketing-stage__visual {
  position: relative;
  padding: 1rem;
  min-height: 100%;
  overflow: hidden;
}

.marketing-hero-frame {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--bg-glass);
  border: var(--border-glass);
  box-shadow: var(--glow-combined), 0 40px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.marketing-hero-frame__media img,
.marketing-preview-card img,
.marketing-design-card__media img,
.marketing-demo-gallery__card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.marketing-hero-frame__copy h2,
.marketing-design-card__copy h2,
.marketing-demo-gallery__card h2,
.marketing-faq-card h2,
.marketing-seo-card h2,
.marketing-pricing-summary__card h2,
.marketing-demo-sidecard h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.06;
}

.marketing-preview-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.marketing-preview-card {
  padding: 0.65rem;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: var(--border-glass);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marketing-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-secondary);
}

.marketing-preview-card strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--codex-text-primary);
}

.marketing-floating-panel {
  position: absolute;
  right: 1.2rem;
  bottom: 1.25rem;
  display: grid;
  gap: 0.35rem;
  min-width: 210px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-xl);
  background: rgba(26, 34, 56, 0.95);
  border: var(--border-glass);
  border-left: 3px solid #D000FF;
  box-shadow: var(--glow-primary), 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(208, 0, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(208, 0, 255, 0.8); }
}

.button--hero-primary:hover {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.marketing-floating-panel strong {
  color: var(--codex-text-primary);
  font-size: 1.05rem;
}

.marketing-floating-panel__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.marketing-storyband {
  padding: 4rem 0;
  border-top: 1px solid rgba(208, 0, 255, 0.1);
  border-bottom: 1px solid rgba(0, 207, 255, 0.1);
  background: linear-gradient(180deg, transparent, rgba(208, 0, 255, 0.03) 50%, transparent);
  position: relative;
}

.marketing-storyband::after {
  content: '✦';
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: rgba(208, 0, 255, 0.4);
  margin-top: 1rem;
}

.marketing-storyband__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.marketing-storyband__item {
  padding: 2rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.marketing-storyband__item:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(208, 0, 255, 0.25);
  transform: translateY(-3px);
}

.marketing-storyband__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--codex-text-primary);
  margin-bottom: 0.75rem;
}

.marketing-storyband__item strong i {
  color: var(--codex-secondary);
  margin-right: 0.5rem;
}

.marketing-storyband__item p {
  font-size: 0.95rem;
  color: var(--codex-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.marketing-section-block {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.marketing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.25rem;
  align-items: start;
}

.marketing-intro-panel,
.marketing-faq-highlight,
.marketing-seo-card {
  padding: 2rem;
}

.marketing-journey-list {
  display: grid;
  gap: 1rem;
}

.marketing-journey-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.marketing-journey-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-iridescent);
}

.marketing-journey-card:hover {
  border-color: rgba(208, 0, 255, 0.2);
  box-shadow: var(--glow-primary);
}

.marketing-journey-card__step {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 3rem;
}

.marketing-journey-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--codex-text-primary);
  margin-bottom: 0.5rem;
}

.marketing-journey-card h3 i {
  color: var(--codex-secondary);
  margin-right: 0.5rem;
}

.marketing-journey-card p {
  font-size: 0.9rem;
  color: var(--codex-text-secondary);
  margin: 0;
}

.marketing-bento-card .eyebrow {
  color: var(--codex-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-bento-card .eyebrow i {
  margin-right: 0.4rem;
}

.marketing-bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--codex-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.marketing-bento-card p {
  font-size: 0.9rem;
  color: var(--codex-text-secondary);
  margin: 0;
  line-height: 1.65;
}

.marketing-plan-spotlight h3,
.marketing-pricing-card h3,
.marketing-demo-flow__item h3 {
  font-size: 1.6rem;
  line-height: 1.08;
}

.marketing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.marketing-section-head--wide {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.marketing-section-head__aside {
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.8;
}

.marketing-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .marketing-bento { grid-template-columns: 1fr; }
}

.marketing-bento-card {
  padding: 2rem 2.25rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.marketing-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-iridescent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.marketing-bento-card:hover {
  border-color: rgba(208, 0, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--glow-primary);
}

.marketing-bento-card:hover::after {
  opacity: 0.04;
}

.marketing-bento-card--hero {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(208, 0, 255, 0.08), rgba(0, 207, 255, 0.05));
  border-color: rgba(208, 0, 255, 0.2);
}

@media (max-width: 768px) {
  .marketing-bento-card--hero { grid-column: span 1; }
}

.marketing-bento-card--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .marketing-bento-card--wide { grid-column: span 1; }
}

.marketing-plan-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.marketing-plan-spotlight {
  background: linear-gradient(135deg,
    rgba(208, 0, 255, 0.12) 0%,
    rgba(10, 15, 26, 0.95) 50%,
    rgba(0, 207, 255, 0.08) 100%
  );
  border: 1px solid rgba(208, 0, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-combined), 0 40px 80px rgba(0, 0, 0, 0.4);
}

.marketing-plan-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 340deg, rgba(208, 0, 255, 0.06) 360deg);
  animation: rotate-slow 8s linear infinite;
  pointer-events: none;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.marketing-plan-spotlight__price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

.marketing-plan-spotlight__list,
.marketing-pricing-card__features {
  display: grid;
  gap: 0.8rem;
}

.marketing-bullet-row {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.marketing-bullet-row span {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--marketing-accent), #f1d6bf);
}

.marketing-bullet-row p {
  margin: 0;
}

.marketing-plan-rail {
  display: grid;
  gap: 0.8rem;
}

.marketing-plan-rail__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.marketing-plan-rail__item:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(0, 207, 255, 0.2);
}

.marketing-plan-rail__item strong {
  color: var(--codex-text-primary);
  font-family: var(--font-display);
}

.marketing-plan-rail__item span {
  color: var(--codex-secondary);
  font-weight: 600;
}

.marketing-cta-panel {
  background: linear-gradient(135deg, rgba(208, 0, 255, 0.1), rgba(0, 207, 255, 0.06));
  border: 1px solid rgba(208, 0, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: 4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.marketing-cta-panel::before {
  content: '✦  ✦  ✦';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.5rem;
  color: rgba(208, 0, 255, 0.3);
}

@media (max-width: 768px) {
  .marketing-cta-panel {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
}

.marketing-pricing-summary {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.marketing-pricing-summary__card,
.marketing-demo-sidecard {
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.marketing-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 0.95fr));
  gap: 1rem;
}

.marketing-pricing-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.45rem;
  border-radius: 30px;
  border: 1px solid var(--marketing-line);
  background: rgba(255,255,255,0.03);
}

.marketing-pricing-card.is-featured {
  background: linear-gradient(145deg, rgba(171, 93, 69, 0.16), rgba(28, 22, 32, 0.92));
  border-color: rgba(200, 139, 103, 0.2);
}

.marketing-pricing-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.marketing-pricing-card__price {
  font-size: clamp(2.6rem, 4.8vw, 3.6rem);
  line-height: 0.94;
  font-family: 'Fraunces', serif;
  color: #fff;
}

.marketing-pricing-card__lead {
  min-height: 74px;
}

.marketing-pricing-card .button {
  margin-top: auto;
}

.marketing-payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 1rem;
}

.marketing-payment-panel__copy,
.marketing-payment-panel__details {
  padding: 1.5rem;
  border: 1px solid var(--marketing-line);
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
}

.marketing-payment-panel__details {
  display: grid;
  gap: 0.9rem;
}

.marketing-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marketing-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.marketing-detail-row span {
  color: rgba(245, 239, 232, 0.6);
}

.marketing-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.75rem;
  padding: 1.4rem;
  border-radius: 32px;
  border: 1px solid var(--marketing-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.marketing-chip-cloud span,
.marketing-detail-cluster span {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(245, 239, 232, 0.78);
}

.marketing-design-list {
  display: grid;
  gap: 1.2rem;
}

.marketing-design-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 34px;
  border: 1px solid var(--marketing-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.marketing-design-card.is-reversed {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.marketing-design-card.is-reversed .marketing-design-card__media {
  order: 2;
}

.marketing-design-card__media,
.marketing-demo-gallery__card a {
  display: block;
}

.marketing-design-card__copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: 1rem;
}

.marketing-design-card__mood {
  color: var(--marketing-soft);
  font-weight: 700;
}

.marketing-detail-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.marketing-demo-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-demo-flow__item {
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid var(--marketing-line);
  background: rgba(255,255,255,0.03);
}

.marketing-demo-flow__item span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: var(--marketing-soft);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marketing-demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-demo-gallery__card {
  display: grid;
  gap: 0.8rem;
}

.marketing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.marketing-faq-card {
  padding: 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--marketing-line);
  background: rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════════════
   FOOTER: Rediseño premium
═══════════════════════════════════════════════ */
.marketing-shell .site-footer {
  position: relative;
  margin-top: 5rem;
  padding: 4.5rem 0 2rem;
  background:
    radial-gradient(circle at top left, rgba(208, 0, 255, 0.08), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(0, 207, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 26, 0.2) 0%, rgba(10, 15, 26, 0.9) 100%);
  border-top: 1px solid rgba(208, 0, 255, 0.12);
  overflow: clip;
}

.marketing-shell .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 58%);
  pointer-events: none;
}

.marketing-shell .site-footer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.75rem;
  border-radius: 32px;
  background: rgba(8, 12, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.marketing-shell .site-footer-brand {
  min-width: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(208, 0, 255, 0.12), rgba(255, 255, 255, 0.02) 45%, rgba(0, 207, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-shell .site-footer-brand .brand-logo--footer {
  height: 46px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.marketing-shell .site-footer-brand p {
  max-width: 30ch;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.94rem;
  line-height: 1.72;
  margin: 0;
}

.marketing-shell .site-footer-columns {
  min-width: 0;
  padding: 0.6rem 0;
}

.marketing-shell .site-footer-columns .eyebrow {
  color: rgba(0, 207, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: block;
}

.marketing-shell .site-footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.marketing-shell .site-footer-columns a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.marketing-shell .site-footer-columns a:hover {
  color: #fff;
  transform: translateX(4px);
}

.marketing-shell .site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}

.marketing-shell .site-footer-copyright {
  margin: 0;
  color: rgba(245, 245, 245, 0.58);
  font-size: 0.85rem;
}

.marketing-shell .site-footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketing-shell .site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.marketing-shell .site-footer-social a:hover {
  background: rgba(208, 0, 255, 0.15);
  border-color: rgba(208, 0, 255, 0.32);
  color: #fff;
  transform: translateY(-2px);
}

.marketing-shell .scroll-top-button {
  border-color: rgba(200, 139, 103, 0.2);
  background: linear-gradient(135deg, rgba(20, 15, 23, 0.96), rgba(38, 29, 34, 0.94));
  box-shadow: 0 18px 34px rgba(10, 8, 10, 0.28);
}

.marketing-shell .scroll-top-button:hover {
  border-color: rgba(200, 139, 103, 0.34);
  box-shadow: 0 20px 38px rgba(171, 93, 69, 0.18);
}

.marketing-shell .scroll-top-button__icon {
  background: linear-gradient(135deg, var(--marketing-accent-strong), var(--marketing-accent));
  box-shadow: 0 12px 24px rgba(171, 93, 69, 0.24);
}

/* Reveal animations - inxvita */
.marketing-shell [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.marketing-shell [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.marketing-shell .reveal-delay-1 { transition-delay: 0.1s; }
.marketing-shell .reveal-delay-2 { transition-delay: 0.2s; }
.marketing-shell .reveal-delay-3 { transition-delay: 0.3s; }

/* Resumen del evento pre-llenado en el registro */
.register-prefill-summary {
  background: linear-gradient(135deg, rgba(208, 0, 255, 0.08), rgba(0, 207, 255, 0.05));
  border: 1px solid rgba(208, 0, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.register-prefill-summary__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.register-prefill-summary__row i {
  font-size: 1.5rem;
  color: var(--codex-primary);
}

.register-prefill-summary__row strong {
  display: block;
  color: var(--codex-text-primary);
  font-size: 1.1rem;
}

.register-prefill-summary__row small {
  color: var(--codex-text-secondary);
  font-size: 0.8rem;
}

.register-prefill-summary__link {
  font-size: 0.8rem;
  color: var(--codex-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  text-decoration: none;
}

.register-prefill-summary__link:hover {
  color: var(--codex-primary);
}

.register-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--codex-text-secondary);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 1180px) {
  .marketing-shell .marketing-stage__grid,
  .marketing-shell .marketing-pricing-grid,
  .marketing-shell .marketing-demo-flow,
  .marketing-shell .marketing-storyband__grid,
  .marketing-shell .marketing-demo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-shell .marketing-bento,
  .marketing-shell .marketing-plan-shell,
  .marketing-shell .marketing-payment-panel,
  .marketing-shell .marketing-split,
  .marketing-shell .marketing-design-card,
  .marketing-shell .marketing-design-card.is-reversed {
    grid-template-columns: 1fr;
  }

  .marketing-shell .marketing-bento-card--hero,
  .marketing-shell .marketing-bento-card--wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .marketing-shell .site-header {
    top: 0.75rem;
    width: min(100%, calc(100% - 1rem));
  }

  .marketing-shell .site-header-ribbon {
    display: none;
  }

  .marketing-shell .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-top: 0;
  }

  .marketing-shell .site-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .marketing-shell .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    gap: 0.7rem;
    padding-top: 0.9rem;
  }

  .marketing-shell.has-site-nav-open .site-nav {
    display: grid;
  }

  /* Footer responsive */
  .marketing-shell .site-footer-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .marketing-shell .site-footer-brand {
    max-width: none;
  }
}

  .marketing-shell .site-nav a {
    width: 100%;
  }

  .marketing-shell .site-nav > a:not(.button) {
    padding: 0.4rem 0;
  }

  .marketing-shell .marketing-page {
    padding-top: 7.2rem;
  }

  .marketing-shell .marketing-display {
    max-width: 100%;
  }

  .marketing-shell .marketing-preview-stack,
  .marketing-shell .marketing-faq-grid,
  .marketing-shell .site-footer-shell,
  .marketing-shell .site-footer-columns,
  .marketing-shell .marketing-cta-panel,
  .marketing-shell .marketing-storyband__grid {
    grid-template-columns: 1fr;
  }

  .marketing-shell .marketing-floating-panel {
    position: static;
    margin-top: 0.95rem;
  }

  .marketing-shell .marketing-plan-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .marketing-shell .container {
    width: min(100%, calc(100% - 1rem));
  }

  .marketing-shell .marketing-stage__copy,
  .marketing-shell .marketing-intro-panel,
  .marketing-shell .marketing-faq-highlight,
  .marketing-shell .marketing-seo-card,
  .marketing-shell .marketing-pricing-summary,
  .marketing-shell .marketing-demo-sidecard,
  .marketing-shell .marketing-hero-frame,
  .marketing-shell .marketing-payment-panel__copy,
  .marketing-shell .marketing-payment-panel__details,
  .marketing-shell .marketing-pricing-card,
  .marketing-shell .marketing-faq-card {
    padding: 1.2rem;
    border-radius: 28px;
  }

  .marketing-shell .marketing-stage__grid,
  .marketing-shell .marketing-pricing-grid,
  .marketing-shell .marketing-demo-flow,
  .marketing-shell .marketing-demo-gallery {
    grid-template-columns: 1fr;
  }

  .marketing-shell .marketing-preview-stack {
    gap: 0.75rem;
  }

  .marketing-shell .marketing-preview-card {
    padding: 0.55rem;
  }

  .marketing-shell .marketing-detail-row,
  .marketing-shell .marketing-plan-rail__item,
  .marketing-shell .marketing-section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-shell .marketing-detail-row {
    display: grid;
  }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Mobile first breakpoints */
@media (max-width: 639px) {
  /* Stack grids on mobile */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* Reduce padding on cards */
  .card {
    padding: 1.25rem;
  }
  
  /* Smaller headings on mobile */
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  
  /* Full width buttons */
  .button {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .button {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .sm\:grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-plum);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .button {
    border: 2px solid white;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .button {
    background: none;
    color: black;
    border: 1px solid black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ═══════════════════════════════
   Marketing: Centered Hero & Magic Card
═══════════════════════════════ */
.marketing-stage--centered {
  text-align: center;
  padding: 6rem 0 8rem;
  background: radial-gradient(circle at 50% -20%, rgba(208, 0, 255, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 40%, rgba(0, 207, 255, 0.08) 0%, transparent 40%);
}

.marketing-hero-content {
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.marketing-hero-content .marketing-lead {
  font-size: 1.25rem;
  color: var(--codex-text-secondary);
  line-height: 1.6;
}

/* Magic Card: The Star */
.magic-demo-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(208, 0, 255, 0.3);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 
              0 0 40px rgba(208, 0, 255, 0.1);
  position: relative;
  z-index: 10;
}

.magic-demo-card__header {
  margin-bottom: 2rem;
}

.magic-demo-card__header h3 {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--codex-text-primary);
  margin-top: 0.75rem;
}

.magic-demo-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00CFFF;
  background: rgba(0, 207, 255, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.magic-demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.magic-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--codex-text-secondary);
  margin-bottom: 0.6rem;
}

.magic-field input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.magic-field input:focus {
  outline: none;
  border-color: var(--codex-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(208, 0, 255, 0.2);
}

.magic-input-wrapper {
  position: relative;
}

.magic-input-wrapper i {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--codex-text-secondary);
  pointer-events: none;
}

/* Magic Styles Selector */
.magic-styles {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none;
}
.magic-styles::-webkit-scrollbar { display: none; }

.magic-style-option {
  flex: 0 0 100px;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--codex-bg-surface);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magic-style-option:hover {
  transform: translateY(-4px);
}

.magic-style-option.is-selected,
.magic-style-option:has(input:checked) {
  border-color: var(--codex-primary);
  box-shadow: var(--glow-primary);
}

.magic-style-option input { display: none; }

.magic-style-option img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.magic-style-option span {
  display: block;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem 0.25rem;
  color: var(--codex-text-secondary);
  font-weight: 500;
}

.button--magic-submit {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  border-radius: 18px;
  background: var(--gradient-iridescent);
  color: #fff;
  border: none;
  justify-content: center;
}

.marketing-hero-social {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 0.9rem;
  color: var(--codex-text-secondary);
}

.marketing-hero-social i {
  color: var(--codex-secondary);
  margin-right: 0.5rem;
}

/* Simplified Features */
.marketing-features-simple {
  background: var(--codex-bg-base);
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-simple-card {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 207, 255, 0.1);
  color: var(--codex-secondary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.feature-simple-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-simple-card p {
  color: var(--codex-text-secondary);
  line-height: 1.6;
}

/* Flatpickr Codex Dark Theme Override */
.flatpickr-calendar {
  background: #101828 !important;
  border: 1px solid rgba(208, 0, 255, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  border-radius: 20px !important;
  color: #F5F5F5 !important;
}
.flatpickr-day.selected {
  background: #D000FF !important;
  border-color: #D000FF !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekday {
  color: #F5F5F5 !important;
  fill: #F5F5F5 !important;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .magic-demo-card { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════
   HOME REDESIGN v3 — Premium hero + particles
═══════════════════════════════════════════════ */

/* ── FLOATING PARTICLES ── */
.inx-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.inx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.inx-orb--1 {
  width: 400px;
  height: 400px;
  top: -5%;
  right: -5%;
  background: rgba(208, 0, 255, 0.12);
  animation: orb-drift-1 18s ease-in-out infinite;
}

.inx-orb--2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -8%;
  background: rgba(0, 207, 255, 0.1);
  animation: orb-drift-2 22s ease-in-out infinite;
}

.inx-orb--3 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 15%;
  background: rgba(208, 0, 255, 0.08);
  animation: orb-drift-3 15s ease-in-out infinite;
}

.inx-orb--4 {
  width: 250px;
  height: 250px;
  bottom: 30%;
  left: 20%;
  background: rgba(0, 207, 255, 0.06);
  animation: orb-drift-1 20s ease-in-out infinite reverse;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 25px); }
}

@media (prefers-reduced-motion: reduce) {
  .inx-orb { animation: none !important; }
  .inx-magic-card__pill,
  .inx-magic-card__pill::after,
  .inx-hero__preview-badge,
  .inx-hero__preview-badge i,
  .inx-magic-submit__shine {
    animation: none !important;
  }
}

/* ── PREMIUM HEADER ── */
.inx-header {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1260px, calc(100% - 1.5rem));
  z-index: 200;
  border-radius: 16px;
  background: rgba(10, 15, 26, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.inx-header.is-scrolled {
  background: rgba(10, 15, 26, 0.92);
  border-color: rgba(208, 0, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(208, 0, 255, 0.08);
}

.inx-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
}

.inx-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.inx-header__brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.inx-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

.inx-header__link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  color: var(--codex-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inx-header__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.inx-header__link i {
  font-size: 0.8rem;
  color: var(--codex-secondary);
}

.inx-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.inx-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.inx-header__btn--ghost {
  color: var(--codex-text-secondary);
}

.inx-header__btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.inx-header__btn--primary {
  background: var(--codex-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(208, 0, 255, 0.3);
}

.inx-header__btn--primary:hover {
  background: var(--codex-primary-dark);
  box-shadow: 0 6px 20px rgba(208, 0, 255, 0.5);
  transform: translateY(-1px);
}

.inx-header__btn i {
  font-size: 0.78rem;
}

.inx-header__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.inx-header__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.inx-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inx-header__mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--codex-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inx-header__mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.inx-header__mobile-nav a i {
  width: 20px;
  text-align: center;
  color: var(--codex-secondary);
}

.inx-header__mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.25rem 0;
}

.inx-header.is-open .inx-header__mobile-nav {
  display: flex;
}

/* ── HERO ── */
.inx-hero {
  position: relative;
  padding: 7rem 0 3rem;
  z-index: 1;
}

.inx-hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 3rem;
}

.inx-hero__copy {
  padding-top: 1.5rem;
}

.inx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--codex-text-primary);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.inx-hero__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--codex-text-secondary);
  max-width: 40ch;
  margin-bottom: 1.5rem;
}

.inx-hero__proof {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--codex-text-secondary);
  margin-bottom: 2rem;
}

.inx-hero__proof span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inx-hero__proof i {
  color: var(--codex-secondary);
  font-size: 0.75rem;
}

.inx-hero__img-wrapper {
  position: relative;
  max-width: 320px;
  margin: 2rem auto 0;
}

.inx-hero__img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(208, 0, 255, 0.08);
  border: 1px solid rgba(208, 0, 255, 0.15);
  display: block;
}

/* ── MAGIC CARD (PROTAGONISTA) ── */
.inx-hero__magic {
  position: relative;
}

.inx-magic-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.inx-magic-card__glow {
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: var(--gradient-iridescent);
  opacity: 0.5;
  filter: blur(1px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.inx-magic-card__inner {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 28px;
  padding: 2.5rem;
}

.inx-magic-card__header {
  margin-bottom: 2rem;
}

.inx-magic-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(208, 0, 255, 0.1);
  border: 1px solid rgba(208, 0, 255, 0.2);
  color: var(--codex-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.inx-magic-card__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--codex-text-primary);
  line-height: 1.15;
}

.inx-magic-card__header p {
  font-size: 0.9rem;
  color: var(--codex-text-secondary);
  margin-top: 0.5rem;
}

.inx-magic-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inx-magic-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Magic submit button — premium */
.inx-magic-submit {
  position: relative;
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: none;
  border-radius: 16px;
  background: var(--gradient-iridescent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(208, 0, 255, 0.35);
}

.inx-magic-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(208, 0, 255, 0.5);
}

.inx-magic-submit:active {
  transform: translateY(0);
}

.inx-magic-submit__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.inx-magic-submit__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ── TRUST BAR ── */
.inx-trust {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid rgba(208, 0, 255, 0.08);
  border-bottom: 1px solid rgba(0, 207, 255, 0.06);
}

.inx-trust__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.inx-trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.inx-trust__item:hover {
  border-color: rgba(208, 0, 255, 0.2);
  transform: translateY(-2px);
}

.inx-trust__item i {
  font-size: 1.35rem;
  color: var(--codex-secondary);
  flex-shrink: 0;
}

.inx-trust__item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--codex-text-primary);
}

.inx-trust__item span {
  display: block;
  font-size: 0.72rem;
  color: var(--codex-text-secondary);
  margin-top: 0.1rem;
}

/* ── SHOWCASE: Horizontal scroll carousel ── */
.inx-showcase {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.inx-showcase__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.inx-showcase__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--codex-text-primary);
  margin-top: 0.5rem;
}

.inx-showcase__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.inx-showcase__scroll::-webkit-scrollbar { display: none; }

.inx-showcase__track {
  display: flex;
  gap: 1.5rem;
  padding: 0 max(1rem, calc((100vw - 1260px) / 2 + 1rem));
  width: max-content;
}

.inx-showcase__card {
  flex: 0 0 260px;
  border-radius: 20px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  cursor: pointer;
}

.inx-showcase__card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 24px 50px rgba(208, 0, 255, 0.2), 0 0 30px rgba(0, 207, 255, 0.1);
  border-color: rgba(208, 0, 255, 0.3);
}

.inx-showcase__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.inx-showcase__card-info {
  padding: 0.85rem 1rem;
}

.inx-showcase__card-info strong {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--codex-text-primary);
}

.inx-showcase__cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ── FINAL CTA ── */
.inx-final-cta {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

.inx-final-cta__card {
  position: relative;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: 32px;
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(208, 0, 255, 0.2);
  overflow: hidden;
}

.inx-final-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(208, 0, 255, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 207, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.inx-final-cta__card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--codex-text-primary);
  margin-bottom: 0.75rem;
}

.inx-final-cta__card > p {
  position: relative;
  font-size: 1.05rem;
  color: var(--codex-text-secondary);
  margin-bottom: 2.25rem;
}

.inx-final-cta__actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══ HOME RESPONSIVE v3 ═══ */

@media (max-width: 1024px) {
  .inx-header__nav,
  .inx-header__actions { display: none; }
  .inx-header__toggle { display: inline-flex; }

  .inx-hero {
    padding-top: 5.5rem;
  }

  .inx-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .inx-hero__copy {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }

  .inx-hero__lead {
    max-width: 48ch;
  }

  .inx-hero__proof {
    justify-content: center;
    flex-wrap: wrap;
  }

  .inx-hero__img-wrapper {
    display: none;
  }

  .inx-magic-card__inner {
    padding: 2rem;
  }

  .inx-trust__strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .inx-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 14px;
  }

  .inx-hero {
    padding-top: 5rem;
  }

  .inx-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .inx-hero__proof {
    gap: 0.5rem;
  }

  .inx-hero__proof span {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .inx-magic-card__inner {
    padding: 1.5rem;
  }

  .inx-magic-form__row {
    grid-template-columns: 1fr;
  }

  .inx-magic-card__header h2 {
    font-size: 1.4rem;
  }

  .inx-trust__strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .inx-trust__item {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .inx-trust__item i {
    font-size: 1.1rem;
  }

  .inx-showcase__card {
    flex: 0 0 200px;
  }

  .inx-final-cta__card {
    padding: 3rem 1.5rem;
  }

  .inx-final-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .inx-trust__strip {
    grid-template-columns: 1fr;
  }

  .inx-showcase__card {
    flex: 0 0 170px;
  }

  .inx-magic-submit {
    font-size: 0.95rem;
    padding: 1rem;
  }
}


/* ═══════════════════════════════
   Onboarding / Nuevo Wizard
═══════════════════════════════ */
.onboarding-shell {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.onboarding-step.is-active { opacity: 1; }
.onboarding-step.is-done   { opacity: 0.8; }

.onboarding-step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--codex-text-secondary);
  background: var(--codex-bg-surface);
  transition: all 0.3s;
}
.onboarding-step.is-active .onboarding-step__num {
  border-color: var(--codex-primary);
  color: var(--codex-primary);
  box-shadow: 0 0 12px rgba(208,0,255,0.3);
}
.onboarding-step.is-done .onboarding-step__num {
  background: var(--codex-primary);
  border-color: var(--codex-primary);
  color: #fff;
}

.onboarding-step__label {
  font-size: 0.72rem;
  color: var(--codex-text-secondary);
  white-space: nowrap;
}
.onboarding-step.is-active .onboarding-step__label {
  color: var(--codex-text-primary);
  font-weight: 600;
}

.onboarding-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.5rem;
  margin-bottom: 1.25rem;
}

.onboarding-preview-link {
  font-size: 0.8rem;
  color: var(--codex-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  text-decoration: none;
}
.onboarding-preview-link:hover { color: var(--codex-text-primary); }

.onboarding-section {
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
}

.onboarding-section__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--codex-text-primary);
  margin-bottom: 0.5rem;
}

.onboarding-section__sub {
  color: var(--codex-text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.onboarding-form {
  display: grid;
  gap: 1.5rem;
}

.onboarding-field {
  display: grid;
  gap: 0.5rem;
}

.onboarding-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--codex-text-secondary);
}

.onboarding-field input[type="text"],
.onboarding-field input[type="date"],
.onboarding-field input[type="time"],
.onboarding-field input[type="email"],
.onboarding-field input[type="url"],
.onboarding-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--codex-text-primary);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.onboarding-field input:focus,
.onboarding-field select:focus {
  outline: none;
  border-color: var(--codex-primary);
  box-shadow: 0 0 0 3px rgba(208, 0, 255, 0.15);
}

.onboarding-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.onboarding-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--codex-text-primary);
  cursor: pointer;
}

.onboarding-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.onboarding-radio-group {
  display: grid;
  gap: 0.75rem;
}

.onboarding-radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.onboarding-radio-label:hover {
  border-color: rgba(208, 0, 255, 0.2);
  background: rgba(255,255,255,0.05);
}

.onboarding-radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.onboarding-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Módulos opcionales */
.onboarding-modules {
  margin-top: 3rem;
}

.onboarding-modules__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--codex-text-secondary);
  margin-bottom: 1.25rem;
}

.onboarding-modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.onboarding-module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.onboarding-module-card:hover {
  border-color: rgba(208,0,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.onboarding-module-card.is-done {
  border-color: rgba(0,207,255,0.3);
  background: rgba(0,207,255,0.05);
}

.onboarding-module-card i {
  font-size: 1.5rem;
  color: var(--codex-secondary);
}

.onboarding-module-card span {
  font-size: 0.82rem;
  color: var(--codex-text-primary);
  line-height: 1.3;
}

.onboarding-module-card__badge {
  font-size: 0.68rem;
  color: var(--codex-text-secondary);
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

.onboarding-module-card.is-done .onboarding-module-card__badge {
  color: var(--codex-secondary);
  border-color: rgba(0,207,255,0.3);
}

@media (max-width: 640px) {
  .onboarding-shell { padding: 0 1rem 3rem; }
  .onboarding-section { padding: 1.5rem; }
  .onboarding-field-row { grid-template-columns: 1fr; }
  .onboarding-modules__grid { grid-template-columns: repeat(2, 1fr); }
  .onboarding-actions { flex-direction: column; }
  .onboarding-actions .button { width: 100%; justify-content: center; }
}

/* -------------------------------
   AUTH & ADMIN REDESIGN
------------------------------- */

/* Auth Screens */
.auth-shell {
  background: var(--codex-bg-base);
  background-image: radial-gradient(circle at 20% 20%, rgba(208, 0, 255, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(0, 207, 255, 0.05) 0%, transparent 40%);
  font-family: var(--font-body), 'Plus Jakarta Sans', sans-serif;
}

.auth-panel {
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  animation: authFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-panel h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* ═══════════════════════════════════════════════
   DASHBOARD RESPONSIVE — Mobile-first sidebar
═══════════════════════════════════════════════ */

/* Tablet: ≤1024px — sidebar collapses behind hamburger */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: none;
  }
  .dashboard-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .sidebar-close {
    display: flex;
  }

  .hamburger-btn {
    display: flex;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 1.5rem;
  }
}

/* Phone: ≤640px — compact everything */
@media (max-width: 640px) {
  .dashboard-main {
    padding: 1rem 0.85rem;
  }

  .dashboard-topbar {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .dashboard-topbar h1 {
    font-size: 1.3rem;
  }

  .dashboard-actions .button {
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phone: ≤375px */
@media (max-width: 375px) {
  .dashboard-main {
    padding: 0.75rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   UTILITY CLASSES — Forms, Links, Text
   (Para reducir estilos inline en vistas)
═══════════════════════════════════════════════ */

/* Form labels */
.field-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--codex-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Full width inputs */
.input-full {
  width: 100%;
}

/* Inline form row */
.form-row--inline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

/* Checkbox inline */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Links */
.link-muted {
  color: var(--codex-text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.link-muted:hover {
  color: var(--codex-text-primary);
}

.link--semibold {
  font-weight: 600;
  font-size: 0.85rem;
}

.link-primary {
  color: var(--codex-primary);
  text-decoration: none;
  transition: opacity 150ms ease;
}

.link-primary:hover {
  opacity: 0.8;
}

.link--bold {
  font-weight: 700;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.9rem;
}

.mt-lg {
  margin-top: 2rem;
}

/* Text colors */
.text-success {
  color: #4DD68F !important;
}

.text-warning {
  color: #FFC45C !important;
}

.text-danger {
  color: #FF6868 !important;
}

.text-secondary {
  color: var(--codex-secondary) !important;
}

.text-xs {
  font-size: 0.7rem;
}

/* Table cells */
.table-cell-main {
  padding: 1.25rem 1rem !important;
}

.table-cell-main strong {
  color: var(--codex-text-primary);
  font-size: 1rem;
}

.table-cell-secondary {
  font-size: 0.8rem;
}

.table-cell-guests {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-cell-actions {
  text-align: right;
}

/* Progress bar */
.progress-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--codex-primary);
  transition: width 0.3s ease;
}

/* Button small */
.button-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* Utility colors */
.text-gold {
  color: #FFC45C !important;
}

.text-lime {
  color: #4DD68F !important;
}

.text-rose {
  color: #FF6868 !important;
}

/* Guestbook specific */
.guestbook-moderation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.guestbook-message-card {
  background: rgba(255,255,255,0.06);
}

.guestbook-message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.guestbook-message-body {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.guestbook-message-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Empty state */
.empty-state-center {
  text-align: center;
  padding: 3rem 0;
}

.empty-state-icon {
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
}

/* Checkout specific */
.checkout-bank-details {
  display: grid;
  gap: 0.5rem;
}

/* Form actions variants */
.form-actions-between {
  justify-content: space-between;
}

.form-actions-center {
  justify-content: center;
}

/* Stack variants */
.stack-sm {
  gap: 0.5rem;
}

.stack-md {
  gap: 0.85rem;
}

.stack-lg {
  gap: 1.5rem;
}

/* Marketing section head */
.marketing-section-head {
  margin-bottom: 1rem;
}

/* Badge variants */
.badge-warning {
  background: rgba(255, 196, 92, 0.18);
  color: #FFD68A;
}

.badge-success {
  background: rgba(77, 214, 143, 0.18);
  color: #4DD68F;
}

.badge-danger {
  background: rgba(255, 104, 104, 0.18);
  color: #FF6868;
}

/* Additional utilities */
.text-white {
  color: #fff !important;
}

.text-muted {
  color: rgba(255,255,255,0.6) !important;
}

.m-0 {
  margin: 0 !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

.text-xs {
  font-size: 0.75rem !important;
}

/* Spacing utilities */
.mt-sm {
  margin-top: 0.5rem !important;
}

.mt-md {
  margin-top: 1rem !important;
}

.mt-lg {
  margin-top: 2rem !important;
}

.mb-sm {
  margin-bottom: 0.5rem !important;
}

.mb-md {
  margin-bottom: 1rem !important;
}

.mb-lg {
  margin-bottom: 1.5rem !important;
}

/* Stack spacing variants */
.stack-xs {
  gap: 0.25rem !important;
}

.stack-sm {
  gap: 0.5rem !important;
}

.stack-md {
  gap: 0.85rem !important;
}

.stack-lg {
  gap: 1.5rem !important;
}

/* Button variants */
.button-xs {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.button-warning {
  background: rgba(255, 196, 92, 0.2);
  color: #FFD68A;
  border: 1px solid rgba(255, 196, 92, 0.3);
}

.button-warning:hover {
  background: rgba(255, 196, 92, 0.3);
}

.button-danger-ghost {
  background: transparent;
  color: #FF6868;
  border: 1px solid rgba(255, 104, 104, 0.3);
}

.button-danger-ghost:hover {
  background: rgba(255, 104, 104, 0.1);
}

/* Progress bar vertical */
.progress-bar-vertical {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--codex-primary);
  transition: width 0.3s ease;
}

/* Icon utilities */
.icon-sm {
  font-size: 0.7rem !important;
}

.icon-md {
  font-size: 1rem !important;
}

.icon-lg {
  font-size: 1.5rem !important;
}

.icon-xl {
  font-size: 2rem !important;
}

.icon-muted {
  opacity: 0.5 !important;
}

.icon-inline {
  display: inline-block;
  vertical-align: middle;
}

/* Card variants */
.card--flat {
  background: transparent;
  border: none;
  box-shadow: none;
}

.card--elevated {
  background: var(--codex-bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Divider */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1rem 0;
}

/* Helper for dynamic widths */
.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

/* Visibility */
.visible {
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
}

/* Button utilities */
.button--full {
  width: 100%;
}

.button--uppercase {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button--display {
  padding: 1.1rem;
  margin-top: 1rem;
}

/* Auth panel login specific */
.auth-login-panel {
  max-width: 480px;
  margin: 2rem auto;
  padding: 3rem;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-form-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.auth-form-header .eyebrow {
  margin-bottom: 0.5rem;
}

/* ==================================================
   MARKETING HOME OVERRIDES - Instant preview focus
================================================== */
body.marketing-shell {
  overflow-x: clip;
}

.marketing-shell #main-content {
  overflow-x: clip;
}

.marketing-shell .site-footer {
  position: relative;
  margin-top: 5rem;
  padding: 4.5rem 0 2rem;
  background:
    radial-gradient(circle at top left, rgba(208, 0, 255, 0.08), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(0, 207, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 26, 0.2) 0%, rgba(10, 15, 26, 0.9) 100%);
  border-top: 1px solid rgba(208, 0, 255, 0.12);
  overflow: clip;
}

.marketing-shell .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 58%);
  pointer-events: none;
}

.marketing-shell .site-footer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.75rem;
  border-radius: 32px;
  background: rgba(8, 12, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.marketing-shell .site-footer-brand {
  min-width: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(208, 0, 255, 0.12), rgba(255, 255, 255, 0.02) 45%, rgba(0, 207, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-shell .site-footer-brand .brand-logo--footer {
  height: 46px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.marketing-shell .site-footer-brand p {
  max-width: 30ch;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.94rem;
  line-height: 1.72;
  margin: 0;
}

.marketing-shell .site-footer-columns {
  min-width: 0;
  padding: 0.6rem 0;
}

.marketing-shell .site-footer-columns .eyebrow {
  color: rgba(0, 207, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: block;
}

.marketing-shell .site-footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.marketing-shell .site-footer-columns a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.marketing-shell .site-footer-columns a:hover {
  color: #fff;
  transform: translateX(4px);
}

.marketing-shell .site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}

.marketing-shell .site-footer-copyright {
  margin: 0;
  color: rgba(245, 245, 245, 0.58);
  font-size: 0.85rem;
}

.marketing-shell .site-footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketing-shell .site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.marketing-shell .site-footer-social a:hover {
  background: rgba(208, 0, 255, 0.15);
  border-color: rgba(208, 0, 255, 0.32);
  color: #fff;
  transform: translateY(-2px);
}

.inx-hero {
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 0.6rem;
  min-height: calc(100svh - 1rem);
  display: flex;
  align-items: center;
}

.inx-hero__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 0.85rem;
  align-items: stretch;
  padding: 1.1rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(208, 0, 255, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(0, 207, 255, 0.12), transparent 28%),
    rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: clip;
}

.inx-hero__shell::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 35px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.inx-hero__content,
.inx-hero__visual {
  position: relative;
  z-index: 1;
}

.inx-hero__content {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.5rem 1rem;
}

.inx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--codex-text-primary);
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.inx-hero__lead {
  max-width: 44ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.76);
}

.inx-magic-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.inx-magic-card__glow {
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: var(--gradient-iridescent);
  opacity: 0.48;
  filter: blur(1px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

.inx-magic-card__inner {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 1.2rem;
}

.inx-magic-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(208, 0, 255, 0.12);
  border: 1px solid rgba(208, 0, 255, 0.24);
  color: #f6c6ff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  position: relative;
  overflow: hidden;
  animation: inx-badge-float 4s ease-in-out infinite;
}

/* Shimmer sutil sobre el pill */
.inx-magic-card__pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(208, 0, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: inx-badge-shimmer 5s ease-in-out infinite;
}

@keyframes inx-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes inx-badge-shimmer {
  0%, 70%, 100% { left: -100%; }
  85% { left: 120%; }
}

.inx-magic-form {
  display: grid;
  gap: 0;
}

.inx-hero__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.magic-field {
  min-width: 0;
}

.magic-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.84);
  margin-bottom: 0.45rem;
}

.magic-field input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.magic-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(208, 0, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(208, 0, 255, 0.12);
}

.inx-hero__field-hint {
  display: inline-flex;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.48);
}

.inx-magic-submit {
  position: relative;
  min-width: 200px;
  width: auto;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 16px;
  background: var(--gradient-iridescent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 36px rgba(208, 0, 255, 0.28);
  /* Alinear verticalmente con el input (compensar el label) */
  margin-top: 1.3rem;
}

.inx-magic-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(208, 0, 255, 0.38);
}

.inx-magic-submit__text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.inx-magic-submit__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3s ease-in-out infinite;
}

.inx-hero__microproof,
.inx-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inx-hero__microproof span,
.inx-hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.inx-hero__microproof span {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.72);
}

.inx-hero__proof span {
  font-size: 0.76rem;
  color: rgba(245, 245, 245, 0.72);
}

.inx-hero__microproof i,
.inx-hero__proof i {
  color: var(--codex-secondary);
  flex-shrink: 0;
}

.inx-hero__visual {
  min-width: 0;
}

.inx-magic-card--hero .inx-magic-card__inner {
  display: grid;
  gap: 0.6rem;
  height: 100%;
}

.inx-hero__preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.inx-hero__preview-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--codex-text-primary);
  margin: 0.15rem 0 0.2rem;
}

.inx-hero__preview-head p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.62);
}

.inx-hero__preview-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 207, 255, 0.82);
}

.inx-hero__preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.76);
  font-size: 0.78rem;
  font-weight: 600;
  animation: inx-badge-glow 3s ease-in-out infinite;
}

.inx-hero__preview-badge i {
  color: var(--codex-secondary);
  animation: inx-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes inx-badge-glow {
  0%, 100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
  50% { border-color: rgba(0, 207, 255, 0.22); box-shadow: 0 0 12px rgba(0, 207, 255, 0.08); }
}

@keyframes inx-badge-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.inx-hero__device {
  position: relative;
  padding: 0.2rem 0;
}

.inx-hero__device-frame {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.inx-hero__device-frame::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 26%;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(8, 12, 22, 0.8);
  z-index: 1;
}

.inx-hero__device-frame img,
.inx-hero__device-placeholder {
  width: 100%;
  aspect-ratio: 9 / 11;
  border-radius: 18px;
}

.inx-hero__device-frame img {
  display: block;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inx-hero__device-placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(208, 0, 255, 0.18), transparent 45%),
    rgba(15, 20, 32, 0.88);
  color: rgba(245, 245, 245, 0.72);
}

.inx-hero__device-placeholder strong {
  color: #fff;
  font-size: 1rem;
}

.inx-hero__preview-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.inx-hero__preview-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inx-hero__preview-note i {
  margin-top: 0.1rem;
  color: var(--codex-secondary);
}

.inx-hero__preview-note strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--codex-text-primary);
  font-size: 0.8rem;
}

.inx-hero__preview-note span {
  display: block;
  color: rgba(245, 245, 245, 0.62);
  font-size: 0.74rem;
  line-height: 1.5;
}

.inx-trust {
  position: relative;
  z-index: 1;
  padding: 1.1rem 0 0;
}

.inx-trust__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.inx-trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.inx-trust__item:hover {
  border-color: rgba(208, 0, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.inx-trust__item i {
  font-size: 1.2rem;
  color: var(--codex-secondary);
  flex-shrink: 0;
}

.inx-trust__item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--codex-text-primary);
}

.inx-trust__item span {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.6);
}

.inx-showcase {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.2rem;
  overflow: clip;
}

.inx-showcase__header {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.inx-showcase__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--codex-text-primary);
  margin: 0.45rem 0 0.8rem;
  text-wrap: balance;
}

.inx-showcase__header p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.66);
}

.inx-showcase__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.inx-showcase__card {
  grid-column: span 2;
  border-radius: 24px;
  background: rgba(10, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
  min-width: 0;
}

.inx-showcase__card:hover {
  transform: translateY(-6px);
  border-color: rgba(208, 0, 255, 0.24);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.inx-showcase__card a {
  display: block;
}

.inx-showcase__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
}

.inx-showcase__card-info {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1.05rem 1.1rem;
}

.inx-showcase__card-info strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--codex-text-primary);
}

.inx-showcase__card-info span {
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.58);
}

.inx-showcase__editorial {
  grid-column: span 4;
  display: grid;
  align-content: center;
  gap: 0.95rem;
  min-width: 0;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(208, 0, 255, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.inx-showcase__editorial-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 207, 255, 0.82);
}

.inx-showcase__editorial h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--codex-text-primary);
  max-width: 14ch;
}

.inx-showcase__editorial p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(245, 245, 245, 0.68);
}

.inx-showcase__editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.3rem;
}

.inx-final-cta {
  position: relative;
  z-index: 1;
  padding: 0.8rem 0 5rem;
}

.inx-final-cta__card {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.6rem) 1.6rem;
  border-radius: 32px;
  background: rgba(10, 15, 26, 0.64);
  border: 1px solid rgba(208, 0, 255, 0.18);
  overflow: clip;
}

.inx-final-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(208, 0, 255, 0.16), transparent 45%),
    radial-gradient(circle at 78% 72%, rgba(0, 207, 255, 0.1), transparent 45%);
  pointer-events: none;
}

.inx-final-cta__card h2 {
  position: relative;
  max-width: 17ch;
  margin: 0 auto 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--codex-text-primary);
  text-wrap: balance;
}

.inx-final-cta__card > p {
  position: relative;
  max-width: 44ch;
  margin: 0 auto 1.8rem;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(245, 245, 245, 0.68);
}

.inx-final-cta__actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .inx-hero {
    min-height: 0;
    display: block;
  }

  .inx-hero__shell {
    grid-template-columns: 1fr;
  }

  .inx-hero__content {
    padding: 0.6rem;
  }

  .inx-hero__title,
  .inx-hero__lead {
    max-width: none;
  }

  .inx-trust__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inx-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inx-showcase__card,
  .inx-showcase__editorial {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .marketing-shell .site-footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-shell .site-footer-brand,
  .marketing-shell .site-footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .inx-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 14px;
  }

  .inx-hero {
    padding-top: 4.5rem;
    min-height: 0;
    display: block;
  }

  .inx-hero__shell {
    padding: 1rem;
    border-radius: 28px;
  }

  .inx-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    max-width: none;
  }

  .inx-hero__form {
    grid-template-columns: 1fr;
  }

  .inx-magic-submit {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .inx-hero__preview-head {
    flex-direction: column;
  }

  .inx-hero__preview-notes,
  .inx-trust__strip,
  .inx-showcase__grid,
  .marketing-shell .site-footer-shell {
    grid-template-columns: 1fr;
  }

  .inx-showcase__card,
  .inx-showcase__editorial {
    grid-column: span 1;
  }

  .inx-final-cta__actions,
  .inx-showcase__editorial-actions,
  .marketing-shell .site-footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .inx-final-cta__actions .button,
  .inx-showcase__editorial-actions .button {
    width: 100%;
  }

  .marketing-shell .site-footer {
    padding-top: 3.5rem;
  }

  .marketing-shell .site-footer-shell {
    padding: 1.2rem;
  }

  .marketing-shell .site-footer-brand {
    padding: 1.2rem;
  }

  .marketing-shell .site-footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .inx-hero__microproof span,
  .inx-hero__proof span {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   MODAL PREVIEW INTERACTIVO — marketing
═══════════════════════════════════════════════ */
.inx-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.inx-preview-modal.is-open {
  display: flex;
}

.inx-preview-modal__container {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: inxModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes inxModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Marco de dispositivo para el iframe */
.inx-preview-modal__device {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 30px;
  padding: 0.85rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.inx-preview-modal__device::before {
  content: '';
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 28%;
  height: 10px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(8, 12, 22, 0.8);
  z-index: 1;
}

.inx-preview-modal__iframe {
  width: 100%;
  flex: 1 1 auto;
  min-height: 300px;
  border: none;
  border-radius: 22px;
  background: var(--codex-bg-surface, #101828);
  display: block;
}

/* Loader mientras carga el iframe */
.inx-preview-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: rgba(10, 15, 26, 0.9);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.inx-preview-modal__loader.is-hidden {
  opacity: 0;
}

.inx-preview-modal__loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(208, 0, 255, 0.2);
  border-top-color: #D000FF;
  border-radius: 50%;
  animation: inxSpin 0.8s linear infinite;
}

@keyframes inxSpin {
  to { transform: rotate(360deg); }
}

/* Acciones del modal */
.inx-preview-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-shrink: 0;
}

.inx-preview-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.inx-preview-modal__btn--close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--codex-text-secondary, #B0B0B0);
}

.inx-preview-modal__btn--close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--codex-text-primary, #F5F5F5);
}

.inx-preview-modal__btn--fullscreen {
  background: linear-gradient(135deg, #D000FF 0%, #B200CC 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(208, 0, 255, 0.3);
}

.inx-preview-modal__btn--fullscreen:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 0, 255, 0.45);
  color: #fff;
}

/* Nombre del template en el modal */
.inx-preview-modal__title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--codex-text-primary, #F5F5F5);
  margin: 0;
  flex-shrink: 0;
}

/* Botón de preview interactivo en cards */
.inx-card-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(0, 207, 255, 0.08);
  border: 1px solid rgba(0, 207, 255, 0.25);
  color: var(--codex-secondary, #00CFFF);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.inx-card-preview-btn:hover {
  background: rgba(0, 207, 255, 0.15);
  border-color: rgba(0, 207, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.2);
  transform: translateY(-1px);
  color: var(--codex-secondary, #00CFFF);
}

.inx-card-preview-btn i {
  font-size: 0.85rem;
}

/* Iframe vivo en hero */
.inx-hero__device-frame iframe {
  width: 100%;
  aspect-ratio: 9 / 11;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--codex-bg-surface, #101828);
  display: block;
}

/* Responsive modal */
@media (max-width: 640px) {
  .inx-preview-modal {
    padding: 1rem;
  }

  .inx-preview-modal__container {
    max-width: 100%;
  }

  .inx-preview-modal__device {
    border-radius: 20px;
    padding: 0.5rem;
  }

  .inx-preview-modal__device::before {
    width: 24%;
    height: 6px;
    top: 0.4rem;
  }

  .inx-preview-modal__iframe {
    border-radius: 16px;
  }

  .inx-preview-modal__actions {
    flex-direction: column;
  }

  .inx-preview-modal__btn {
    justify-content: center;
  }
}
