:root {
  /* Theme: Comando PMPR (Deep Command Navy/Obsidian + Ceremonial Gold) */
  --bg-deep: #060b16;
  --bg-mid: #0e192f;
  --bg-glow: rgba(24, 58, 118, 0.48);
  --envelope-base: #101f3d;
  --envelope-dark: #091328;
  --envelope-flap: #172b52;
  --gold: #dcb762;
  --gold-light: #f6e2ab;
  --gold-dark: #94712a;
  --wax-highlight: #fae6b0;
  --wax-gold: #c89b3c;
  --wax-shadow: #634511;
  --paper: #fcf8ef;
  --paper-warm: #f5eddc;
  --paper-edge: #e2d4b7;
  --ink: #171d26;
  --ink-muted: #525d6b;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="obsidian"] {
  --bg-deep: #09090c;
  --bg-mid: #17161c;
  --bg-glow: rgba(204, 165, 86, 0.22);
  --envelope-base: #1b1a20;
  --envelope-dark: #100f14;
  --envelope-flap: #26242c;
  --gold: #e0be74;
  --gold-light: #faecc2;
  --gold-dark: #9c7932;
}

body[data-theme="emerald"] {
  --bg-deep: #061813;
  --bg-mid: #0d2c23;
  --bg-glow: rgba(24, 92, 71, 0.5);
  --envelope-base: #11362b;
  --envelope-dark: #09221a;
  --envelope-flap: #164436;
}

body[data-theme="burgundy"] {
  --bg-deep: #1a070d;
  --bg-mid: #32101c;
  --bg-glow: rgba(114, 30, 58, 0.45);
  --envelope-base: #3f1423;
  --envelope-dark: #250a13;
  --envelope-flap: #501a2d;
  --gold: #e2b494;
  --gold-light: #f9dec9;
  --gold-dark: #9b6b4c;
}

/* ================= LIGHT / FEMININE LUXURY THEMES ================= */
body[data-theme="rose"] {
  --bg-deep: #f9eff0;
  --bg-mid: #f1dfe2;
  --bg-glow: rgba(218, 152, 165, 0.36);
  --envelope-base: #d8b2ba;
  --envelope-dark: #c1949e;
  --envelope-flap: #e5c6cd;
  --gold: #c99a62;
  --gold-light: #f4dec1;
  --gold-dark: #96643a;
  --wax-highlight: #fff0d9;
  --wax-gold: #cfa064;
  --wax-shadow: #7a5230;
  --paper: #fffdfb;
  --paper-warm: #fbf3f1;
  --paper-edge: #ead7d4;
  --ink: #381f27;
  --ink-muted: #78545f;
}

body[data-theme="champagne"] {
  --bg-deep: #f7f3ea;
  --bg-mid: #ede4d4;
  --bg-glow: rgba(220, 183, 98, 0.28);
  --envelope-base: #d8c6a6;
  --envelope-dark: #bfa983;
  --envelope-flap: #e5d7be;
  --gold: #c79d4b;
  --gold-light: #f5e1b0;
  --gold-dark: #8c6925;
  --wax-highlight: #fae6b0;
  --wax-gold: #c89b3c;
  --wax-shadow: #6b4b14;
  --paper: #fffdf9;
  --paper-warm: #f8f2e5;
  --paper-edge: #e4d7be;
  --ink: #262018;
  --ink-muted: #6c5e4b;
}

/* Light Theme Typography & Surface Adaptations */
body[data-theme="rose"],
body[data-theme="champagne"] {
  color: var(--ink);
}

body[data-theme="rose"] .scroll-progress-track,
body[data-theme="champagne"] .scroll-progress-track {
  background: rgba(56, 31, 39, 0.08);
}

body[data-theme="rose"] .chapter-dot,
body[data-theme="champagne"] .chapter-dot {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(150, 100, 58, 0.45);
}

body[data-theme="rose"] .chapter-dot.active,
body[data-theme="champagne"] .chapter-dot.active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

body[data-theme="rose"] .eyebrow,
body[data-theme="champagne"] .eyebrow,
body[data-theme="rose"] .stage-sub,
body[data-theme="champagne"] .stage-sub,
body[data-theme="rose"] .chapter-tag.light-tag,
body[data-theme="champagne"] .chapter-tag.light-tag {
  color: var(--gold-dark);
}

body[data-theme="rose"] .stage-title,
body[data-theme="champagne"] .stage-title,
body[data-theme="rose"] .gallery-title,
body[data-theme="champagne"] .gallery-title,
body[data-theme="rose"] .schedule-title,
body[data-theme="champagne"] .schedule-title {
  color: var(--ink);
}

body[data-theme="rose"] .gallery-subtitle,
body[data-theme="champagne"] .gallery-subtitle,
body[data-theme="rose"] .schedule-subtitle,
body[data-theme="champagne"] .schedule-subtitle,
body[data-theme="rose"] .footer-sub,
body[data-theme="champagne"] .footer-sub {
  color: var(--ink-muted);
}

body[data-theme="rose"] .scroll-cue,
body[data-theme="champagne"] .scroll-cue,
body[data-theme="rose"] .btn-skip,
body[data-theme="champagne"] .btn-skip {
  color: var(--ink-muted);
}

body[data-theme="rose"] .scroll-mouse,
body[data-theme="champagne"] .scroll-mouse {
  border-color: var(--gold-dark);
}

body[data-theme="rose"] .scroll-wheel,
body[data-theme="champagne"] .scroll-wheel {
  background: var(--gold-dark);
}

body[data-theme="rose"] .envelope-back,
body[data-theme="champagne"] .envelope-back {
  box-shadow: 0 28px 60px rgba(72, 42, 48, 0.22), 0 8px 20px rgba(72, 42, 48, 0.14);
}

body[data-theme="rose"] .envelope-bottom-engraving,
body[data-theme="champagne"] .envelope-bottom-engraving {
  color: rgba(56, 31, 39, 0.72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

body[data-theme="rose"] .hero-vignette {
  background:
    radial-gradient(circle at center, rgba(46, 20, 28, 0.42) 0%, rgba(36, 16, 22, 0.78) 78%),
    linear-gradient(to bottom, var(--bg-deep) 0%, rgba(46, 20, 28, 0.25) 18%, rgba(46, 20, 28, 0.45) 76%, var(--bg-deep) 100%);
}

body[data-theme="champagne"] .hero-vignette {
  background:
    radial-gradient(circle at center, rgba(34, 26, 16, 0.42) 0%, rgba(26, 20, 12, 0.78) 78%),
    linear-gradient(to bottom, var(--bg-deep) 0%, rgba(34, 26, 16, 0.25) 18%, rgba(34, 26, 16, 0.45) 76%, var(--bg-deep) 100%);
}

body[data-theme="rose"] .letter-sheet,
body[data-theme="champagne"] .letter-sheet,
body[data-theme="rose"] .rsvp-card-frame,
body[data-theme="champagne"] .rsvp-card-frame {
  box-shadow: 0 24px 64px rgba(72, 44, 48, 0.14);
}

body[data-theme="rose"] .gallery-card,
body[data-theme="champagne"] .gallery-card {
  background: var(--paper);
  border-color: var(--paper-edge);
  box-shadow: 0 20px 48px rgba(72, 44, 48, 0.14);
}

body[data-theme="rose"] .dark-card,
body[data-theme="champagne"] .dark-card {
  background: rgba(255, 253, 251, 0.92);
  border: 1px solid var(--paper-edge);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(72, 44, 48, 0.11);
}

body[data-theme="rose"] .dark-card h4,
body[data-theme="champagne"] .dark-card h4,
body[data-theme="rose"] .dresscode-card strong,
body[data-theme="champagne"] .dresscode-card strong {
  color: var(--ink);
}

body[data-theme="rose"] .venue-eyebrow,
body[data-theme="champagne"] .venue-eyebrow,
body[data-theme="rose"] .event-date,
body[data-theme="champagne"] .event-date,
body[data-theme="rose"] .dress-label,
body[data-theme="champagne"] .dress-label,
body[data-theme="rose"] .footer-unit,
body[data-theme="champagne"] .footer-unit {
  color: var(--gold-dark);
}

body[data-theme="rose"] .event-location,
body[data-theme="champagne"] .event-location,
body[data-theme="rose"] .step-desc,
body[data-theme="champagne"] .step-desc {
  color: var(--ink-muted);
}

body[data-theme="rose"] .event-icon-svg,
body[data-theme="champagne"] .event-icon-svg,
body[data-theme="rose"] .dresscode-card,
body[data-theme="champagne"] .dresscode-card {
  color: var(--gold-dark);
}

body[data-theme="rose"] .step-time-pill,
body[data-theme="champagne"] .step-time-pill {
  background: rgba(201, 154, 98, 0.16);
  border-color: rgba(150, 100, 58, 0.35);
  color: var(--gold-dark);
}

body[data-theme="rose"] .event-action-btn,
body[data-theme="champagne"] .event-action-btn {
  background: #ffffff;
  color: var(--ink);
  border-color: #d6c3bc;
}

body[data-theme="rose"] .timeline-spine,
body[data-theme="champagne"] .timeline-spine {
  background: rgba(150, 100, 58, 0.22);
}

body[data-theme="rose"] .timeline-node,
body[data-theme="champagne"] .timeline-node {
  background: var(--paper);
  color: var(--gold-dark);
  border-color: var(--gold);
}

body[data-theme="rose"] .pill-btn.active,
body[data-theme="champagne"] .pill-btn.active,
body[data-theme="rose"] .child-pill-btn.active,
body[data-theme="champagne"] .child-pill-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

body[data-theme="rose"] .vip-pass {
  background: linear-gradient(150deg, #4b2330 0%, #2d121c 62%, #3f1c27 100%);
  border-color: rgba(236, 196, 152, 0.65);
}

body[data-theme="champagne"] .vip-pass {
  background: linear-gradient(150deg, #2e261c 0%, #19140e 62%, #261f16 100%);
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.55s ease;
}

/* ================= Ambient Stage ================= */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.58;
}

.glow-1 {
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--bg-glow), transparent 68%);
  top: -18%;
  left: -12%;
}

.glow-2 {
  width: 52vw;
  height: 52vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(220, 183, 98, 0.16), transparent 70%);
  bottom: -14%;
  right: -10%;
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

/* ================= Gold Scroll Thread ================= */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 75;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold));
  box-shadow: 0 0 12px rgba(246, 226, 171, 0.65);
  transition: width 0.04s linear;
}

/* ================= Discreet Chapter Dots (Desktop) ================= */
.chapter-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 226, 171, 0.45);
  background: rgba(6, 11, 22, 0.45);
  cursor: pointer;
  transition: transform 0.25s var(--ease-luxury), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.chapter-dot:hover {
  transform: scale(1.35);
  border-color: var(--gold-light);
}

.chapter-dot.active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(246, 226, 171, 0.7);
}

/* ================= ACT 1: 3D CEREMONIAL ENVELOPE ================= */
.envelope-stage {
  position: relative;
  height: 275vh;
  z-index: 2;
}

.envelope-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 24px;
  overflow: hidden;
}

.stage-intro {
  text-align: center;
  margin-bottom: 18px;
  will-change: opacity, transform;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.stage-sub {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--gold);
}

.envelope-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  perspective: 1600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0 24px;
}

.envelope-spotlight {
  position: absolute;
  width: 125%;
  height: 155%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 226, 171, 0.16) 0%, transparent 62%);
  pointer-events: none;
  filter: blur(22px);
}

.envelope-wrapper {
  position: relative;
  width: min(90vw, 460px);
  height: min(60vw, 300px);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--envelope-base), var(--envelope-dark));
  border-radius: 14px;
  border: 1px solid rgba(220, 183, 98, 0.42);
  box-shadow:
    0 36px 76px rgba(0, 0, 0, 0.62),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(246, 226, 171, 0.3);
  overflow: hidden;
  z-index: 1;
  transform: translateZ(-2px);
}

.envelope-liner {
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  opacity: 0.52;
  background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2L34 18L18 34L2 18Z' fill='none' stroke='%23ebd08c' stroke-width='0.9'/%3E%3Ccircle cx='18' cy='18' r='2' fill='%23f6e2ab' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

/* Rising Cotton Card Inside Pocket */
.letter-peek {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7%;
  height: 89%;
  background: linear-gradient(165deg, #fffdf8 0%, var(--paper) 55%, var(--paper-warm) 100%);
  color: var(--ink);
  border-radius: 10px;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  transform: translateZ(0px);
  will-change: transform, opacity;
}

.letter-peek-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(176, 138, 69, 0.5);
  outline: 1px solid rgba(176, 138, 69, 0.2);
  outline-offset: -5px;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.peek-crest-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 5px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.16));
}

.peek-eyebrow {
  margin: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  font-weight: 700;
}

.peek-name {
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.peek-course {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.peek-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px auto 5px;
  color: var(--gold-dark);
  font-size: 0.62rem;
}

.peek-divider span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.peek-divider i {
  font-style: normal;
}

.peek-hint {
  margin: 0;
  font-size: 0.66rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Front Pocket Folds (Always Physically In Front of Card!) */
.envelope-pocket-left,
.envelope-pocket-right,
.envelope-pocket-bottom,
.envelope-foil-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
  transform: translateZ(2px);
}

/* Minimalist Matte Satin Velvet Cardstock (Zero Busy Squares or Dots!) */
.envelope-pocket-left,
.envelope-pocket-right,
.envelope-pocket-bottom,
.flap-front {
  background-blend-mode: normal;
}

.envelope-pocket-left {
  background:
    radial-gradient(circle at 18% 30%, rgba(246, 226, 171, 0.05), transparent 58%),
    linear-gradient(128deg, var(--envelope-flap) 0%, var(--envelope-base) 56%, var(--envelope-dark) 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
}

.envelope-pocket-right {
  background:
    radial-gradient(circle at 82% 30%, rgba(246, 226, 171, 0.04), transparent 58%),
    linear-gradient(232deg, var(--envelope-base) 0%, var(--envelope-dark) 100%);
  clip-path: polygon(100% 0, 48% 52%, 100% 100%);
}

.envelope-pocket-bottom {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(246, 226, 171, 0.06), transparent 64%),
    linear-gradient(to top, var(--envelope-dark) 0%, var(--envelope-base) 74%, var(--envelope-flap) 100%);
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
  border-bottom: 1px solid rgba(246, 226, 171, 0.52);
  filter: drop-shadow(0 -8px 16px rgba(0, 0, 0, 0.44));
}

.envelope-foil-lines {
  transform: translateZ(2.6px);
}

.envelope-foil-lines svg {
  width: 100%;
  height: 100%;
  display: block;
}

.envelope-bottom-engraving {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 226, 171, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Dual-Sided Top Flap */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: translateZ(3px);
  z-index: 4;
  will-change: transform;
}

.flap-front,
.flap-back {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.flap-front {
  background:
    linear-gradient(118deg, transparent 24%, rgba(246, 226, 171, 0.07) 47%, rgba(255, 248, 225, 0.12) 50%, transparent 60%),
    linear-gradient(180deg, var(--envelope-flap) 0%, var(--envelope-base) 82%, var(--envelope-dark) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.flap-gold-trim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.flap-back {
  transform: rotateY(180deg);
  background-color: var(--envelope-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2L34 18L18 34L2 18Z' fill='none' stroke='%23ebd08c' stroke-width='0.95' opacity='0.52'/%3E%3Ccircle cx='18' cy='18' r='2' fill='%23f6e2ab' opacity='0.42'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

/* Ceremonial Gold & Obsidian Medallion Seal with Large 7ª CIPM Crest */
.wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(5px);
  width: 128px;
  height: 128px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  will-change: transform, opacity;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65));
  transition: filter 0.25s ease;
}

.wax-seal:hover {
  filter: drop-shadow(0 16px 32px rgba(246, 226, 171, 0.45));
}

.wax-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wax-crest-mini {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.wax-flare {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 226, 171, 0.75), transparent 68%);
  opacity: 0;
  pointer-events: none;
}

/* Scroll Cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  will-change: opacity;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(246, 226, 171, 0.55);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold-light);
  animation: wheelDrop 1.7s infinite var(--ease-luxury);
}

@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 0; }
}

.btn-skip {
  background: transparent;
  border: none;
  color: rgba(252, 248, 239, 0.65);
  font-size: 0.74rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 2px 8px;
  transition: color 0.2s;
}

.btn-skip:hover {
  color: var(--gold-light);
}

/* ================= ACT 2: CINEMATIC PARALLAX HERO ================= */
.hero-stage {
  position: relative;
  height: 155vh;
  z-index: 3;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.22);
  will-change: transform, filter;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 11, 22, 0.42) 0%, rgba(6, 11, 22, 0.86) 80%),
    linear-gradient(to bottom, var(--bg-deep) 0%, rgba(6, 11, 22, 0.25) 22%, rgba(6, 11, 22, 0.45) 72%, var(--bg-deep) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 24px 20px;
  text-align: center;
  will-change: transform, opacity;
}

.hero-crest-halo {
  width: clamp(106px, 22vw, 152px);
  height: clamp(106px, 22vw, 152px);
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 226, 171, 0.22) 0%, transparent 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.hero-crest-img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
}

.hero-corp {
  margin: 0 0 14px;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-honor-bar {
  width: min(72vw, 320px);
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0);
  will-change: transform;
}

#hero-honor-bar-bottom {
  margin: 18px auto 0;
}

.hero-institution {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fffdf6 0%, var(--gold-light) 45%, var(--gold) 70%, #fffdf6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foilDrift 8s linear infinite;
}

@keyframes foilDrift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-graduate-title {
  margin: 12px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 600;
  color: var(--paper);
}

.hero-course {
  margin: 0;
  font-size: clamp(0.86rem, 2vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 226, 171, 0.85);
}

.hero-scroll-next {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 226, 171, 0.72);
}

.hero-scroll-next i {
  font-style: normal;
  font-size: 1rem;
  animation: bounceGentle 1.8s infinite;
}

@keyframes bounceGentle {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ================= ACT 3: CEREMONIAL LETTER & SCROLL-SCRUBBED TEXT ================= */
.letter-stage {
  position: relative;
  z-index: 4;
  padding: 56px 18px 80px;
  max-width: 880px;
  margin: 0 auto;
}

.letter-sheet {
  position: relative;
  background: linear-gradient(170deg, #fffdf9 0%, var(--paper) 45%, var(--paper-warm) 100%);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 76px) clamp(22px, 6vw, 68px);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.56);
  border: 1px solid var(--paper-edge);
  overflow: hidden;
  will-change: transform;
}

.letter-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
}

.sheet-inner-border {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(176, 138, 69, 0.34);
  border-radius: 16px;
  pointer-events: none;
}

.corner-ornament {
  position: absolute;
  width: 36px;
  height: 36px;
  color: var(--gold-dark);
  opacity: 0.65;
  pointer-events: none;
}

.corner-tl { top: 20px; left: 20px; }
.corner-tr { top: 20px; right: 20px; transform: scaleX(-1); }
.corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.corner-br { bottom: 20px; right: 20px; transform: scale(-1); }

.letter-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 34px;
}

.crest-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(220, 183, 98, 0.16);
  border: 1px solid rgba(148, 113, 42, 0.38);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.letter-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.24;
  color: var(--ink);
}

/* Scroll-Scrubbed Text Illumination */
.scrub-text-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 22px;
  max-width: 640px;
  margin: 0 auto 30px;
}

.scrub-vertical-line {
  position: relative;
  width: 3px;
  background: rgba(148, 113, 42, 0.16);
  border-radius: 99px;
  overflow: hidden;
}

.scrub-vertical-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-dark), var(--gold));
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}

.scrub-paragraph {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.7vw, 1.55rem);
  line-height: 1.72;
  color: var(--ink);
}

.scrub-phrase {
  opacity: 0.18;
  transition: opacity 0.25s ease;
}

.letter-signature {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 10px 0 38px;
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--gold-dark);
}

.section-label {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.countdown-section {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  border-top: 1px solid rgba(176, 138, 69, 0.28);
}

.countdown-editorial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 34px);
}

.countdown-item {
  text-align: center;
  min-width: 56px;
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  display: block;
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.cd-sep {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

/* ================= ACT 4: PARALLAX PHOTO GALLERY ================= */
.gallery-stage {
  position: relative;
  z-index: 4;
  padding: 64px 20px 88px;
}

.gallery-container {
  max-width: 1040px;
  margin: 0 auto;
}

.gallery-header,
.schedule-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.chapter-tag {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.chapter-tag.light-tag {
  color: var(--gold-light);
}

.chapter-tag span {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
}

.gallery-title,
.schedule-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  font-weight: 600;
  color: var(--paper);
}

.gallery-subtitle,
.schedule-subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(252, 248, 239, 0.72);
}

.parallax-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-mid);
  border: 1px solid rgba(220, 183, 98, 0.28);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  will-change: transform, opacity;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:nth-child(even) {
  margin-top: 48px;
}

.gallery-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.65);
}

.gallery-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card:nth-child(1) .gallery-img-frame,
.gallery-card:nth-child(4) .gallery-img-frame {
  aspect-ratio: 4 / 3.3;
}

.gallery-img {
  position: relative;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 11, 22, 0.92) 0%, rgba(6, 11, 22, 0.18) 48%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px 20px;
}

.gallery-caption {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--paper);
}

.gallery-sub {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.gallery-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 11, 22, 0.65);
  border: 1px solid rgba(246, 226, 171, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

/* ================= ACT 5: SCROLL-DRAWING TIMELINE ================= */
.schedule-stage {
  position: relative;
  z-index: 4;
  padding: 40px 20px 84px;
}

.schedule-container {
  max-width: 920px;
  margin: 0 auto;
}

.venue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.venue-banner-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.event-date-badge-lg {
  min-width: 68px;
  padding: 12px 14px;
  border-radius: 14px;
  flex-shrink: 0;
}

.event-date-badge-lg .badge-day {
  font-size: 1.7rem;
}

.venue-eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.venue-details h4 {
  margin: 0 0 4px;
}

.venue-details .event-location {
  margin: 0;
}

.venue-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.timeline-wrapper {
  position: relative;
  padding: 12px 0;
}

.timeline-items-container {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(220, 183, 98, 0.18);
}

.timeline-spine-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-dark), var(--gold-light), var(--gold));
  box-shadow: 0 0 14px rgba(246, 226, 171, 0.55);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 50px;
  opacity: 0;
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.timeline-item.reveal-left {
  align-self: flex-start;
  transform: translateX(-36px);
}

.timeline-item.reveal-right {
  align-self: flex-end;
  padding-right: 0;
  padding-left: 50px;
  transform: translateX(36px);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-node {
  position: absolute;
  top: 22px;
  right: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid rgba(220, 183, 98, 0.5);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s, color 0.4s;
}

.timeline-item.reveal-right .timeline-node {
  right: auto;
  left: -26px;
}

.timeline-item.is-lit .timeline-node {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-color: var(--gold-light);
  color: #13100a;
  box-shadow: 0 0 24px rgba(246, 226, 171, 0.6);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.step-time-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(220, 183, 98, 0.16);
  border: 1px solid rgba(220, 183, 98, 0.42);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.step-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(252, 248, 239, 0.76);
}

.dresscode-standalone {
  margin: 42px auto 0;
  max-width: 620px;
  justify-content: center;
}

.dark-card {
  background: linear-gradient(155deg, rgba(16, 31, 61, 0.78), rgba(9, 19, 40, 0.92));
  border: 1px solid rgba(220, 183, 98, 0.32);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.event-icon-svg {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(220, 183, 98, 0.14);
  border: 1px solid rgba(220, 183, 98, 0.34);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #141008;
}

.badge-day {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.badge-month {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.dark-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--paper);
}

.event-date {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-light);
}

.event-location {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(252, 248, 239, 0.74);
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 183, 98, 0.2);
}

.event-action-link,
.event-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.event-action-link {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #161108;
  border: none;
}

.event-action-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.event-action-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  border: 1px solid rgba(220, 183, 98, 0.42);
}

.event-action-btn:hover {
  background: rgba(220, 183, 98, 0.16);
}

.dresscode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-light);
}

.dresscode-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dress-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.dresscode-card strong {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--paper);
}

/* ================= ACT 6: OFFICIAL RSVP CARD ================= */
.rsvp-stage {
  position: relative;
  z-index: 4;
  padding: 36px 18px 80px;
}

.rsvp-shell {
  max-width: 780px;
  margin: 0 auto;
  will-change: transform, opacity;
}

.rsvp-card-frame {
  background: linear-gradient(170deg, #fffdf9 0%, var(--paper) 50%, var(--paper-warm) 100%);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 52px);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.56),
    inset 0 0 0 8px rgba(252, 248, 239, 0.85),
    inset 0 0 0 9px rgba(176, 138, 69, 0.25);
}

.rsvp-header {
  text-align: center;
  margin-bottom: 28px;
}

.rsvp-crest-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.16));
}

.rsvp-header h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
}

.rsvp-subtitle {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.confirmed-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #edf5f0;
  border: 1px solid #c5dfd0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #19593b;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23965d;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.5; }
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsvp-form[hidden],
.rsvp-header[hidden],
.rsvp-sales-closed-box[hidden],
.rsvp-checkout[hidden],
.rsvp-price-summary[hidden],
.rsvp-success[hidden],
.checkout-demo-banner[hidden],
.btn-mp-card[hidden],
.btn-demo-approve[hidden],
#checkout-pix-img[hidden],
#checkout-pix-canvas[hidden] {
  display: none !important;
}

/* Pre-Checkout Payment Method Selector */
.payment-method-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pay-method-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid #dfd3ba;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pay-method-pill strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.pay-method-pill span {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.pay-method-pill.active {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, rgba(220, 183, 98, 0.2), rgba(220, 183, 98, 0.08));
  box-shadow: 0 4px 14px rgba(148, 113, 42, 0.14);
}

@media (max-width: 520px) {
  .payment-method-pills {
    grid-template-columns: 1fr;
  }
}

/* Ticket Price Summary Box inside RSVP Form */
.rsvp-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(220, 183, 98, 0.16), rgba(220, 183, 98, 0.06));
  border: 1px solid rgba(148, 113, 42, 0.36);
}

.price-tag-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.price-summary-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.price-summary-total {
  text-align: right;
  flex-shrink: 0;
}

.price-summary-total span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.price-summary-total strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin-top: 2px;
}

/* In-Page Mercado Pago Checkout */
.rsvp-checkout {
  text-align: center;
  animation: passReveal 0.55s var(--ease-luxury) both;
}

.checkout-head {
  margin-bottom: 18px;
}

.checkout-mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #e8f5ff;
  border: 1px solid #b5dbfa;
  color: #0b5ea8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.checkout-head h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
}

.checkout-summary-line {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.checkout-summary-line strong {
  color: var(--ink);
}

.checkout-demo-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7e0;
  border: 1px solid #ecc96e;
  color: #7c5209;
  font-size: 0.8rem;
  line-height: 1.45;
}

.checkout-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.checkout-tab {
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid #d5cab4;
  background: #ffffff;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-luxury);
}

.checkout-tab.active {
  background: var(--bg-deep);
  color: var(--gold-light);
  border-color: var(--bg-deep);
  box-shadow: 0 8px 18px rgba(6, 11, 22, 0.22);
}

#mp-card-brick-container {
  text-align: left;
  margin-top: 6px;
}

.checkout-pix-card {
  background: #ffffff;
  border: 1px solid var(--paper-edge);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.checkout-pix-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.checkout-pix-sub {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.checkout-qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(148, 113, 42, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.checkout-qr-box img,
.checkout-qr-box canvas {
  width: 190px;
  height: 190px;
  display: block;
}

.checkout-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.checkout-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #d5cab4;
  background: #faf7f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--ink);
}

.btn-copy-pix {
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #161108;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.checkout-waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b6d41;
}

.checkout-alt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-mp-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: #009ee3;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 158, 227, 0.25);
}

.btn-demo-approve {
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid #1b8347;
  background: #eaf7ef;
  color: #146334;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* VIP Pass QR Code Grid */
.vip-pass-body-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 16px;
}

.vip-pass-body-grid .vip-pass-guest {
  padding: 0;
  flex: 1;
}

.vip-pass-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.vip-pass-qr-wrap canvas {
  width: 144px;
  height: 144px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.vip-pass-qr-wrap span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #070e1d;
}

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

.btn-vip-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  background: #1b8347;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn-vip-wa:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid #d5cab4;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(220, 183, 98, 0.24);
}

.companion-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pill-btn,
.child-pill-btn {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid #d5cab4;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-luxury);
}

.pill-btn.active,
.child-pill-btn.active {
  background: var(--bg-deep);
  color: var(--gold-light);
  border-color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.children-inputs-wrap {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f2e4;
  border: 1px solid #dfd1b4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.children-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.child-row-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e3d6bc;
}

.child-row-card input,
.child-row-card select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid #d5cab4;
  font-size: 0.85rem;
}

.btn-remove-child {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e6b8b8;
  background: #fff5f5;
  color: #a62626;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-add-child {
  align-self: flex-start;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px dashed var(--gold-dark);
  background: #ffffff;
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.consent-declaration-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f9f3e5;
  border: 1px solid #dccba7;
  font-size: 0.81rem;
  line-height: 1.48;
  color: var(--ink);
  cursor: pointer;
}

.consent-declaration-box input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
}

.rsvp-sales-closed-box {
  padding: 24px 20px;
  border-radius: 16px;
  background: #f9f3e5;
  border: 1.5px solid #d5bf8f;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rsvp-closed-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #991b1b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-sales-closed-box h4 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink);
}

.rsvp-sales-closed-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 440px;
}

.rsvp-sales-closed-box small {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(125deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #17130c;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(148, 113, 42, 0.34);
  transition: transform 0.25s var(--ease-luxury), box-shadow 0.25s;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(148, 113, 42, 0.45);
}

.btn-primary-gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fdecec;
  color: #a62626;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-success {
  margin: 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf7ef;
  color: #1c6b3d;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ================= VIP DIGITAL HONOR PASS (POST-RSVP) ================= */
.rsvp-success {
  text-align: center;
  animation: passReveal 0.7s var(--ease-luxury) both;
}

@keyframes passReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vip-pass {
  position: relative;
  text-align: left;
  background: linear-gradient(150deg, #0d1a33 0%, #070e1d 60%, #0b162c 100%);
  color: var(--paper);
  border-radius: 20px;
  border: 1.5px solid rgba(220, 183, 98, 0.6);
  box-shadow:
    0 24px 56px rgba(6, 11, 22, 0.42),
    inset 0 1px 0 rgba(246, 226, 171, 0.32);
  overflow: hidden;
  margin-bottom: 22px;
}

.vip-pass-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 22%, rgba(246, 226, 171, 0.06) 46%, rgba(255, 250, 232, 0.11) 50%, transparent 60%);
}

.vip-pass-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(220, 183, 98, 0.18);
}

.vip-pass-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-pass-crest {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.vip-pass-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.vip-pass-unit {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.vip-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(35, 165, 98, 0.16);
  border: 1px solid rgba(68, 214, 136, 0.45);
  color: #8df0b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vip-status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44d688;
  box-shadow: 0 0 8px #44d688;
}

.vip-status-badge.is-courtesy {
  background: rgba(220, 183, 98, 0.2);
  border-color: rgba(246, 226, 171, 0.72);
  color: #f6e2ab;
}

.vip-status-badge.is-courtesy i {
  background: #f6e2ab;
  box-shadow: 0 0 8px #dcb762;
}

.vip-pass-guest {
  position: relative;
  z-index: 2;
  padding: 22px 24px 18px;
}

.vip-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 226, 171, 0.68);
  margin-bottom: 5px;
}

.vip-guest-name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(120deg, #fffdf5 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vip-guest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(252, 248, 239, 0.82);
}

.vip-guest-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(220, 183, 98, 0.14);
  border: 1px solid rgba(220, 183, 98, 0.32);
  color: var(--gold-light);
}

.vip-dot {
  color: var(--gold);
}

.vip-children-pill {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(220, 183, 98, 0.12);
  border: 1px solid rgba(220, 183, 98, 0.34);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

/* Ticket Perforation Divider with Circular Notches */
.vip-pass-divider {
  position: relative;
  display: flex;
  align-items: center;
  height: 22px;
}

.divider-dashes {
  flex: 1;
  border-top: 1.5px dashed rgba(220, 183, 98, 0.34);
  margin: 0 18px;
}

.notch {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid rgba(220, 183, 98, 0.45);
}

.notch-left { left: -12px; }
.notch-right { right: -12px; }

.vip-pass-details {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  padding: 16px 24px 24px;
}

.vip-detail-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--paper);
}

.vip-detail-full {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(220, 183, 98, 0.16);
}

.vip-detail-full strong {
  color: var(--gold-light);
  font-size: 0.85rem;
}

.vip-thank-note {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.vip-share-feedback {
  margin: -6px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eaf7ef;
  border: 1px solid #bce2cb;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.vip-actions-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-vip-primary,
.btn-vip-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-luxury), box-shadow 0.2s, background 0.2s;
}

.btn-vip-primary {
  background: linear-gradient(125deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #17130c;
  border: none;
  box-shadow: 0 10px 22px rgba(148, 113, 42, 0.3);
}

.btn-vip-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(148, 113, 42, 0.42);
}

.btn-vip-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #d2c3a4;
}

.btn-vip-secondary:hover {
  border-color: var(--gold-dark);
  background: #faf5e8;
  transform: translateY(-1px);
}

.btn-link-subtle {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

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

.script-accent {
  display: block;
  font-family: var(--font-script);
  font-size: 2.15rem;
  color: var(--gold-dark);
}

.btn-outline-dark {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost-dark {
  background: transparent;
  border: 1px solid #c9bba0;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  cursor: pointer;
}

/* ================= ACT 7: DIGNIFIED FOOTER ================= */
.site-footer {
  position: relative;
  z-index: 4;
  padding: 20px 20px 64px;
  text-align: center;
}

.footer-crest-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 12px;
  opacity: 0.92;
  user-select: none;
  -webkit-user-select: none;
}

.footer-unit {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.footer-sub {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 248, 239, 0.55);
}

/* ================= Reveal Blocks ================= */
.reveal-block {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-luxury), transform 0.85s var(--ease-luxury);
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Lightbox ================= */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(220, 183, 98, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.lightbox-figure figcaption {
  text-align: center;
}

.lightbox-figure figcaption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--paper);
}

.lightbox-figure figcaption span {
  font-size: 0.82rem;
  color: var(--gold-light);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(246, 226, 171, 0.35);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 20px; right: 20px; font-size: 1rem; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ================= Confetti ================= */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
}

/* ================= Hidden Admin Modal ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(220, 183, 98, 0.4);
}

.modal-header-luxury {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: var(--paper);
  border-bottom: 1px solid rgba(220, 183, 98, 0.35);
}

.modal-eyebrow {
  margin: 0 0 3px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}

.modal-header-luxury h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--paper);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(220, 183, 98, 0.35);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--gold-light);
}

.modal-body {
  padding: 24px 26px 28px;
}

.host-hint {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.host-login-form {
  display: flex;
  gap: 10px;
}

.host-login-form input {
  flex: 1;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid #d5cab4;
  font-size: 1rem;
}

.host-login-form .btn-primary-gold {
  width: auto;
  white-space: nowrap;
}

.host-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid #d5cab4;
  background: #ffffff;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg-deep);
  color: var(--gold-light);
  border-color: var(--bg-deep);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  background: #f5efe2;
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  padding: 14px 16px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.share-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.share-row input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d5cab4;
  font-size: 0.78rem;
  background: #ffffff;
}

.btn-small-gold {
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: #1b1710;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.guests-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.guests-toolbar input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d5cab4;
  font-size: 0.9rem;
}

.guests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.guest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: #ffffff;
  border: 1px solid var(--paper-edge);
  border-radius: 13px;
}

.guest-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.guest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guest-info h5 { margin: 0 0 3px; font-size: 0.96rem; }
.guest-meta { margin: 0; font-size: 0.8rem; color: var(--ink-muted); }
.guest-note { margin: 4px 0 0; font-size: 0.8rem; font-style: italic; }

.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-whatsapp {
  padding: 7px 11px;
  border-radius: 8px;
  background: #1b8347;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
}

.btn-delete-guest {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #e2b8b8;
  background: #fff5f5;
  color: #a62626;
  font-size: 0.76rem;
  cursor: pointer;
}

/* Admin Photo Uploader & Grid */
.photo-upload-box {
  background: #f5efe2;
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-upload-box h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.checkbox-group {
  justify-content: flex-end;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 0;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

.admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-photo-card {
  background: #ffffff;
  border: 1px solid var(--paper-edge);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-photo-card img {
  width: 100%;
  height: 115px;
  object-fit: cover;
}

.admin-photo-meta {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-photo-meta strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customize-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.future-card {
  padding: 28px 22px;
  border-radius: 14px;
  background: #f5efe2;
  border: 1px dashed var(--gold-dark);
  text-align: center;
}

.future-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1710;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ================= 100% MOBILE RESPONSIVE ================= */
@media (max-width: 780px) {
  .chapter-dots {
    display: none;
  }

  .wax-seal {
    width: 106px;
    height: 106px;
  }

  .wax-crest-mini {
    width: 68px;
    height: 68px;
  }

  .envelope-bottom-engraving {
    bottom: 12px;
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }

  .sheet-inner-border {
    inset: 9px;
    border-radius: 14px;
  }

  .corner-ornament {
    width: 26px;
    height: 26px;
  }

  .corner-tl { top: 13px; left: 13px; }
  .corner-tr { top: 13px; right: 13px; }
  .corner-bl { bottom: 13px; left: 13px; }
  .corner-br { bottom: 13px; right: 13px; }

  .parallax-gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-card:nth-child(even) {
    margin-top: 0;
  }

  /* Left-spine mobile timeline */
  .venue-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .venue-banner-main {
    align-items: flex-start;
  }

  .timeline-spine {
    left: 22px;
    transform: none;
  }

  .timeline-item,
  .timeline-item.reveal-left,
  .timeline-item.reveal-right {
    width: 100%;
    align-self: stretch;
    padding-left: 60px;
    padding-right: 0;
    transform: translateY(28px);
  }

  .timeline-item.is-visible {
    transform: translateY(0);
  }

  .timeline-node,
  .timeline-item.reveal-right .timeline-node {
    left: 0;
    right: auto;
    width: 44px;
    height: 44px;
    font-size: 0.72rem;
  }

  .form-row,
  .stats-row,
  .admin-photos-grid,
  .vip-pass-details,
  .vip-actions-grid {
    grid-template-columns: 1fr;
  }

  .vip-pass-top,
  .vip-pass-body-grid,
  .rsvp-price-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-summary-total {
    text-align: left;
  }

  .vip-pass-qr-wrap {
    align-self: center;
  }

  .vip-pass-qr-wrap canvas {
    width: 164px;
    height: 164px;
  }

  .checkout-copy-row {
    flex-direction: column;
  }

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

  .child-row-card {
    grid-template-columns: 1fr;
  }

  .btn-primary-gold {
    font-size: 0.9rem;
    padding: 14px 16px;
    white-space: nowrap;
  }

  .countdown-editorial {
    gap: 10px;
  }

  .countdown-item {
    min-width: 48px;
  }

  .host-login-form,
  .guests-toolbar,
  .guest-item {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-actions {
    justify-content: flex-end;
  }

  .modal-header-luxury,
  .modal-body {
    padding: 18px;
  }
}

/* Paused / Unavailable Notice */
.unavailable-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(circle at center, var(--bg-mid), var(--bg-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.unavailable-overlay[hidden] {
  display: none !important;
}

.unavailable-card {
  max-width: 440px;
  padding: 40px 28px;
  border-radius: 22px;
  background: rgba(10, 19, 38, 0.88);
  border: 1px solid rgba(220, 183, 98, 0.42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.unavailable-crest {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 16px;
}

.unavailable-card h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
}

.unavailable-card p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(252, 248, 239, 0.74);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-wheel, .pulse-dot, .hero-institution, .hero-scroll-next i { animation: none; }
  .reveal-block, .timeline-item { opacity: 1; transform: none; transition: none; }
  .scrub-phrase { opacity: 1 !important; }
}
