/* ==========================================================================
   SUNDA JOURNEY 3D — INFINITY SEAMLESS JOURNEY
   Sundanese Luxury Design System · Mobile-first · Light / Dark
   --------------------------------------------------------------------------
   01. Design Tokens        08. Love Story Timeline   15. Gift
   02. Base & Lenis         09. Ritual Explorer       16. Closing & Footer
   03. Typography           10. Events & Map          17. Music Dock
   04. 3D World Layers      11. Flip Cards (CSS 3D)   18. Lightbox & Toast
   05. Glass & Buttons      12. Live Streaming        19. Utilities & Motion
   06. Navbar & Journey Map 13. Gallery Masonry       20. Breakpoints
   07. Hero & Couple        14. RSVP & Wishes
   ========================================================================== */

/* 01. DESIGN TOKENS ======================================================== */
:root {
  --ivory: #FDFBF7;
  --pearl: #F7F3EA;
  --gold: #D4AF37;
  --gold-light: #EBD08A;
  --gold-deep: #A8862A;
  --bottle: #1F4D3A;
  --leaf: #3E7C4F;
  --obsidian: #121212;
  --amber: #F2B84B;
  --emerald: #0F5C46;

  --bg: var(--ivory);
  --text: #2B2418;
  --text-muted: #6B604C;
  --heading: #1F3D2F;
  --accent: var(--gold);
  --accent-strong: var(--gold-deep);
  --accent-contrast: #1d1606;
  --secondary: var(--bottle);
  --glass-bg: rgba(253, 251, 247, 0.58);
  --glass-bg-strong: rgba(253, 251, 247, 0.86);
  --glass-border: rgba(212, 175, 55, 0.38);
  --glass-shadow: 0 24px 60px -24px rgba(60, 45, 10, 0.35);
  --glass-blur: 16px;
  --veil: radial-gradient(120% 90% at 50% 45%, rgba(253, 251, 247, 0) 40%, rgba(253, 251, 247, 0.55) 100%);
  --gold-gradient: linear-gradient(135deg, #F3DD9A 0%, #D4AF37 45%, #B8901F 100%);
  --text-shadow: 0 1px 12px rgba(253, 251, 247, 0.85);
  --hero-halo: rgba(253, 251, 247, 0.62);
  --name-gradient: linear-gradient(180deg, #C9A23A 0%, #9C7417 55%, #7A5A0E 100%);
  --name-edge: rgba(255, 250, 235, 0.9);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 64px;
  --section-pad: clamp(88px, 14vh, 140px);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: var(--obsidian);
  --text: #EFE6D2;
  --text-muted: #B5A98F;
  --heading: #F5DFA6;
  --accent: var(--amber);
  --accent-strong: #FFCF70;
  --accent-contrast: #1a1203;
  --secondary: #2FA27B;
  --glass-bg: rgba(18, 18, 18, 0.52);
  --glass-bg-strong: rgba(22, 22, 22, 0.9);
  --glass-border: rgba(242, 184, 75, 0.28);
  --glass-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.7);
  --veil: radial-gradient(120% 90% at 50% 45%, rgba(18, 18, 18, 0) 35%, rgba(10, 10, 10, 0.65) 100%);
  --gold-gradient: linear-gradient(135deg, #FFE3A0 0%, #F2B84B 45%, #C98A1A 100%);
  --text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
  --hero-halo: rgba(10, 10, 10, 0.55);
  --name-gradient: linear-gradient(180deg, #FFE7A8 0%, #F2B84B 55%, #D1922A 100%);
  --name-edge: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Bootstrap bridge */
:root, [data-bs-theme] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--glass-border);
  --bs-link-color-rgb: 168, 134, 42;
  --bs-focus-ring-color: rgba(212, 175, 55, 0.35);
}

/* 02. BASE & LENIS ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Bootstrap Reboot memasang scroll-behavior:smooth → bentrok dengan Lenis & pengukuran ScrollTrigger */
html, :root { scroll-behavior: auto !important; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-contrast); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 8px 14px; background: var(--glass-bg-strong); border-radius: 999px; }

.theme-transition, .theme-transition *, .theme-transition *::before, .theme-transition *::after {
  transition: background-color 0.7s var(--ease-lux), color 0.7s var(--ease-lux), border-color 0.7s var(--ease-lux), box-shadow 0.7s var(--ease-lux) !important;
}

/* 03. TYPOGRAPHY =========================================================== */
h1, h2, h3, h4, .h5 { font-family: var(--font-head); color: var(--heading); }
.script { font-family: var(--font-script); font-weight: 400; }
.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: var(--text-shadow);
}
.section-lead { max-width: 640px; margin: 0.75rem auto 0; color: var(--text-muted); text-shadow: var(--text-shadow); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.arabic { font-family: var(--font-arabic); font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 2; color: var(--heading); margin-bottom: 0.75rem; }
.orn { display: block; color: var(--accent); }
.orn-divider { width: 200px; height: 26px; margin: 0.9rem auto 0.2rem; }
.text-muted-2 { color: var(--text-muted); }

/* 04. 3D WORLD LAYERS ====================================================== */
#world, .world-fallback, .world-veil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh; /* = large viewport di mobile → tidak resize saat URL bar bergerak */
  pointer-events: none;
}
#world { z-index: 0; display: block; }
.world-veil { z-index: 1; background: var(--veil); }
.world-fallback {
  z-index: -1;
  display: none;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(212, 175, 55, 0.25), transparent 70%),
    linear-gradient(180deg, #f6ecd8 0%, #e9dcc0 45%, #a9bb8c 100%);
}
[data-theme="dark"] .world-fallback {
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(242, 184, 75, 0.2), transparent 70%),
    linear-gradient(180deg, #090b10 0%, #1a140f 60%, #0d1a14 100%);
}
.no-webgl #world { display: none; }
.no-webgl .world-fallback { display: block; z-index: 0; }

main { position: relative; z-index: 2; }
.journey-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--section-pad) 0;
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.journey-section > .container { width: 100%; }
.depth-stage { perspective: 1200px; perspective-origin: 50% 40%; }
.depth-layer { will-change: transform; transform-origin: 50% 50%; }

/* 05. GLASS & BUTTONS ====================================================== */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}
.glass::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) - 6px);
  opacity: 0.45;
  pointer-events: none;
}

.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.btn-gold {
  --bs-btn-color: var(--accent-contrast);
  --bs-btn-hover-color: var(--accent-contrast);
  --bs-btn-active-color: var(--accent-contrast);
  background: var(--gold-gradient);
  border: 0;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux);
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s var(--ease-lux) infinite;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, 0.85); }
.btn-outline-gold {
  --bs-btn-color: var(--accent-strong);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: var(--accent-contrast);
  --bs-btn-active-bg: var(--accent-strong);
  --bs-btn-active-color: var(--accent-contrast);
  background: color-mix(in srgb, var(--glass-bg-strong) 50%, transparent);
}
.btn-icon {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: 50%;
  color: var(--heading);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 1.15rem;
}
.btn-icon:hover { color: var(--accent-contrast); background: var(--accent); }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* 06. NAVBAR & JOURNEY MAP ================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  visibility: hidden;
  opacity: 0;
}
.nav-glass {
  min-height: var(--nav-h);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.navbar-brand { color: var(--heading); }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--heading);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.monogram i { font-style: italic; color: var(--accent); margin: 0 1px; font-size: 0.8em; }
.monogram-lg { width: 96px; height: 96px; font-size: 1.9rem; }
.navbar .nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 0.6rem 0.9rem;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-lux), left 0.4s var(--ease-lux);
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 24px; left: calc(50% - 12px); }
.navbar .nav-link.active { color: var(--accent-strong); }
.offcanvas-glass { --bs-offcanvas-bg: var(--glass-bg-strong); --bs-offcanvas-width: min(320px, 86vw); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.offcanvas-glass .offcanvas-title { font-family: var(--font-display); font-size: 1.6rem; }
.offcanvas-glass .nav-link { font-size: 1rem; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--glass-border); }
.btn-icon .icon-light { display: none; }
[data-theme="dark"] .btn-icon .icon-light { display: inline; }
[data-theme="dark"] .btn-icon .icon-dark { display: none; }

.scroll-progress { height: 2px; background: transparent; }
.scroll-progress span { display: block; height: 100%; background: var(--gold-gradient); transform-origin: 0 50%; transform: scaleX(0); }

.journey-map {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1020;
  display: none;
  visibility: hidden;
  opacity: 0;
}
.journey-map ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.journey-map ol::before { content: ''; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--glass-border); }
.journey-map button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.jm-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); transition: transform 0.4s var(--ease-lux), background 0.4s; position: relative; }
.jm-label {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--text); background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s var(--ease-lux);
}
.journey-map button:hover .jm-label, .journey-map button:focus-visible .jm-label, .journey-map li.is-active .jm-label { opacity: 1; transform: none; }
.journey-map li.is-active .jm-dot { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 12px var(--accent); }
.journey-map li:not(.is-active) .jm-label { opacity: 0; }
.journey-map button:hover .jm-label { opacity: 1 !important; }

/* 07. HERO & COUPLE ======================================================== */
.section-hero { padding: calc(var(--nav-h) * 0.6) 0 40px; }
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -4% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--hero-halo) 0%, var(--hero-halo) 45%, transparent 100%);
  pointer-events: none;
}
.hero-portrait { position: relative; width: clamp(108px, 28vw, 168px); aspect-ratio: 1; margin: 0.3rem auto 1rem; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; border: 3px solid var(--bg); box-shadow: var(--glass-shadow); }
.portrait-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--accent);
  animation: spin 40s linear infinite;
}
.portrait-ring::before, .portrait-ring::after {
  content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.portrait-ring::before { top: -5px; left: calc(50% - 5px); }
.portrait-ring::after { bottom: -5px; left: calc(50% - 5px); }
.hero-pre { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin: 0; color: var(--text-muted); }
.hero-names {
  font-size: clamp(3.4rem, 15vw, 6.6rem);
  line-height: 1;
  margin: 0.2rem 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 0.3em;
  text-shadow: var(--text-shadow);
}
.hero-names .script {
  background: var(--name-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 var(--name-edge)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.18));
  padding: 0 0.08em;
}
.hero-names .amp { font-family: var(--font-display); font-style: italic; font-size: 0.5em; color: var(--heading); }
.hero-date { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--heading); text-shadow: var(--text-shadow); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; max-width: 420px; margin: 0 auto 1.4rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; padding: 6px 0; position: relative; }
.cd-unit + .cd-unit::before { content: ''; position: absolute; left: -3px; top: 20%; bottom: 20%; width: 1px; background: var(--glass-border); }
.cd-num { font-family: var(--font-head); font-size: clamp(1.5rem, 6.4vw, 2.2rem); font-weight: 500; line-height: 1; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.cd-num.tick { animation: tick 0.6s var(--ease-lux); }
.cd-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 4px; }
.countdown.is-done .cd-num { color: var(--accent-strong); }
@keyframes tick { from { transform: translateY(-40%) rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }

.hero-invite { padding-bottom: 0.5rem; }
.invite-to { font-size: 0.82rem; margin: 0; color: var(--text-muted); }
.guest-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--heading); margin: 0.1rem 0; }
.invite-note { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1rem; }
#openInvitation { padding: 0.85rem 2rem; font-size: 1rem; }

.hero-after { visibility: hidden; opacity: 0; transform: translateY(10px); margin-top: 1rem; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--text-muted); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mouse { width: 24px; height: 38px; border: 1.5px solid var(--accent); border-radius: 14px; position: relative; }
.mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease-lux) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.couple-card { padding: 1.4rem 1.4rem 1.8rem; text-align: center; }
.arch-frame {
  width: min(240px, 72%);
  aspect-ratio: 3 / 3.9;
  margin: 0 auto 1.2rem;
  border-radius: 200px 200px 22px 22px;
  overflow: hidden;
  border: 1px solid var(--accent);
  padding: 6px;
  background: var(--glass-bg-strong);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 200px 200px 16px 16px; filter: saturate(0.92) sepia(0.08); transition: transform 1.2s var(--ease-lux); }
.couple-card:hover .arch-frame img { transform: scale(1.05); }
.couple-role { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.68rem; color: var(--accent-strong); font-weight: 600; margin: 0; }
.couple-nick { font-size: 3.6rem; line-height: 1.1; margin: 0; color: var(--heading); }
.couple-full { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--heading); }
.couple-parents { font-size: 0.88rem; color: var(--text-muted); }
.couple-parents strong { color: var(--text); font-weight: 600; }
.couple-bio { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.amp-medallion {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-script); font-size: 2.6rem; color: var(--accent-contrast);
  background: var(--gold-gradient);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent), 0 14px 30px -10px rgba(0, 0, 0, 0.4);
}

/* 08. LOVE STORY TIMELINE ================================================== */
.timeline { list-style: none; padding: 0 0 0 42px; margin: 0; position: relative; }
.timeline-line { position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); }
.timeline-fill { position: absolute; inset: 0; background: var(--gold-gradient); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 10px var(--accent); }
.tl-item { position: relative; margin-bottom: 2.2rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -42px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-bg-strong); border: 1px solid var(--accent); color: var(--accent-strong);
  transition: transform 0.5s var(--ease-lux), background 0.5s, color 0.5s, box-shadow 0.5s;
  z-index: 1;
}
.tl-item.is-active .tl-dot { background: var(--accent); color: var(--accent-contrast); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-card { overflow: hidden; }
.tl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; filter: saturate(0.92) sepia(0.06); }
.tl-body { padding: 1.2rem 1.4rem 1.4rem; }
.tl-date { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; }
.tl-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 0.2rem 0 0.5rem; }
.tl-body p { margin: 0; color: var(--text-muted); }

/* 09. RITUAL EXPLORER ====================================================== */
.ritual-explorer { overflow: hidden; }
.ritual-nav-col { border-bottom: 1px solid var(--glass-border); }
.ritual-nav { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px; gap: 6px; scrollbar-width: none; }
.ritual-nav::-webkit-scrollbar { display: none; }
.ritual-nav .nav-link {
  flex: 0 0 auto; scroll-snap-align: center;
  display: flex; align-items: center; gap: 10px;
  text-align: left; white-space: nowrap;
  color: var(--text); font-weight: 600; font-size: 0.85rem;
  border-radius: 999px; padding: 0.6rem 1rem;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-lux);
}
.ritual-nav .nav-link:hover { border-color: var(--glass-border); }
.ritual-nav .nav-link.active { background: var(--gold-gradient); color: var(--accent-contrast); box-shadow: 0 10px 24px -12px rgba(212, 175, 55, 0.9); }
.rit-num { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; opacity: 0.8; }
.ritual-content { padding: 1rem; }
.ritual-media { position: relative; margin: 0 0 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.ritual-art {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; font-size: 4.2rem; color: var(--accent);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(145deg, color-mix(in srgb, var(--secondary) 14%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  border: 1px solid var(--glass-border);
}
.ritual-media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: #fff; background: rgba(0, 0, 0, 0.35); padding: 2px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ritual-body h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 0; }
.ritual-sub { color: var(--accent-strong); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.meaning-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0.8rem 0 0; }
.meaning-chips li { font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--secondary); background: color-mix(in srgb, var(--secondary) 8%, transparent); }
.meaning-chips li::before { content: '✿ '; color: var(--accent); }
.ritual-pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 1rem 1rem; }
.ritual-count { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); }
.ritual-count b { color: var(--heading); font-size: 1.4rem; }

/* 10. EVENTS & MAP ========================================================= */
.event-card { padding: 2rem 1.5rem; text-align: center; overflow: hidden; }
.orn-corner { position: absolute; width: 48px; height: 48px; color: var(--accent); opacity: 0.8; }
.orn-corner.tl { top: 12px; left: 12px; }
.orn-corner.br { bottom: 12px; right: 12px; transform: rotate(180deg); }
.event-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-gradient); color: var(--accent-contrast); font-size: 1.5rem; margin-bottom: 0.8rem; }
.event-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.event-card p { margin-bottom: 0.4rem; }
.event-card p > i { color: var(--accent-strong); margin-right: 8px; }
.event-venue { margin-top: 0.8rem !important; color: var(--text-muted); }
.event-venue strong { color: var(--heading); font-family: var(--font-display); font-size: 1.25rem; }
.dresscode { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0.8rem 0 1.2rem; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--glass-border); }
.dresscode span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--text-muted); }
.dresscode i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--glass-border); }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.map-card { padding: 10px; }
.map-tabs { display: flex; gap: 6px; padding: 4px 4px 10px; }
.map-tabs button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.35s; }
.map-tabs button.active { background: var(--glass-bg-strong); color: var(--heading); box-shadow: inset 0 0 0 1px var(--accent); }
.map-frame { border-radius: var(--radius-sm); overflow: hidden; background: var(--glass-bg-strong); }
.map-frame.ratio-21x9 { --bs-aspect-ratio: 75%; }
.map-frame iframe { border: 0; filter: saturate(0.85); opacity: 0; transition: opacity 0.6s; }
.map-frame.is-loaded iframe { opacity: 1; }
[data-theme="dark"] .map-frame iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
.map-placeholder { display: grid; place-content: center; text-align: center; color: var(--text-muted); gap: 6px; font-size: 0.9rem; }
.map-placeholder i { font-size: 2rem; color: var(--accent); }
.map-frame.is-loaded .map-placeholder { display: none; }

/* 11. FLIP CARDS (CSS 3D) ================================================== */
.flip-card { all: unset; cursor: pointer; display: block; width: 100%; perspective: 1000px; min-height: 250px; -webkit-tap-highlight-color: transparent; }
.flip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 250px; transform-style: preserve-3d; transition: transform 0.9s var(--ease-lux); }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 1.2rem 1rem; text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: var(--glass-shadow);
}
.flip-front { background: var(--glass-bg-strong); }
.flip-front::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--glass-border); border-radius: calc(var(--radius) - 8px); }
.flip-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--bottle), #0d2a1f); color: #f6ecd2; }
[data-theme="dark"] .flip-back { background: linear-gradient(160deg, #1d1a12, #2a210f); }
.rit-icon { width: 64px; height: 64px; color: var(--accent); transition: transform 0.6s var(--ease-lux); }
.flip-card:hover .rit-icon { transform: translateY(-4px) scale(1.06); }
.flip-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; color: var(--heading); }
.flip-back .flip-title { color: var(--gold-light); }
.flip-hint { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.flip-text { font-size: 0.82rem; line-height: 1.55; }

/* 12. LIVE STREAMING ======================================================= */
.wood-frame {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #6b4325, #3b2416 55%, #5a361d);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 220, 150, 0.25);
}
.wood-frame::before { content: ''; position: absolute; inset: 7px; border: 2px solid var(--gold); border-radius: 12px; pointer-events: none; opacity: 0.85; }
.live-player { border-radius: 8px; overflow: hidden; background: #000; }
.live-player iframe { border: 0; }
.live-facade { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.live-facade img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.85); transition: transform 1.2s var(--ease-lux); }
.live-facade:hover img { transform: scale(1.04); }
.play-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: var(--accent-contrast); background: var(--gold-gradient); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.25); animation: pulse 2.4s infinite; }
.live-status { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; }
.live-status.is-live i { background: #ef4444; animation: blink 1s infinite; }
.live-status.is-ended i { background: #9ca3af; }
.live-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.live-panel { padding: 1.5rem; }
.schedule { list-style: none; padding: 0; margin: 0 0 1rem; }
.schedule li { display: flex; gap: 14px; padding: 0.55rem 0; border-bottom: 1px dashed var(--glass-border); font-size: 0.9rem; }
.schedule time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); min-width: 52px; }
.live-countdown { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); } 50% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); } }
@keyframes blink { 50% { opacity: 0.2; } }

/* 13. GALLERY MASONRY ====================================================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.6rem; }
.gallery-filters button {
  all: unset; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease-lux);
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--gold-gradient); color: var(--accent-contrast); border-color: transparent; }
.gallery-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 2; column-gap: 10px; }
.gallery-item { break-inside: avoid; margin: 0 0 10px; border-radius: var(--radius-sm); overflow: hidden; position: relative; box-shadow: var(--glass-shadow); }
.gallery-item[hidden] { display: none; }
.gallery-item button { all: unset; cursor: zoom-in; display: block; position: relative; }
.gallery-item img { display: block; width: 100%; transition: transform 1s var(--ease-lux), filter 0.6s; filter: saturate(0.92) sepia(0.06); }
.gallery-item button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45)); opacity: 0; transition: opacity 0.5s; }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-item:hover button::after { opacity: 1; }
.gallery-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.is-video button { cursor: pointer; }
.vid-badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.75rem; font-weight: 600; }
.vid-badge i { color: var(--gold-light); font-size: 1rem; }

/* 14. RSVP & WISHES ======================================================== */
.rsvp-form, .wishes-wall { padding: 1.5rem; height: 100%; }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--heading); }
.form-control, .form-select {
  background-color: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22); background-color: var(--glass-bg-strong); color: var(--text); }
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.attend-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.attend-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0.7rem 0.4rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
  font-size: 0.8rem; font-weight: 600; text-align: center;
  transition: all 0.3s var(--ease-lux);
}
.attend-option i { font-size: 1.3rem; color: var(--accent-strong); }
.btn-check:checked + .attend-option { background: var(--gold-gradient); color: var(--accent-contrast); border-color: transparent; transform: translateY(-2px); }
.btn-check:checked + .attend-option i { color: var(--accent-contrast); }
.btn-check:focus-visible + .attend-option { outline: 2px solid var(--accent); outline-offset: 2px; }

.wishes-wall { display: flex; flex-direction: column; }
.wishes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--secondary); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: blink 1.4s infinite; }
.wish-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 1rem; }
.wish-stats div { text-align: center; padding: 0.6rem 0.2rem; border-radius: 12px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); }
.wish-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--heading); }
.wish-stats span { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.wish-viewport {
  position: relative;
  height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent);
}
.wish-list { list-style: none; padding: 8px 4px; margin: 0; }
.wish-card { display: flex; gap: 12px; padding: 0.9rem; margin-bottom: 10px; border-radius: 16px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); }
.wish-card.is-new { box-shadow: 0 0 0 2px var(--accent), 0 0 24px -4px var(--accent); }
.wish-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--accent-contrast); background: var(--gold-gradient); }
.wish-body { min-width: 0; flex: 1; }
.wish-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wish-name { font-weight: 700; color: var(--heading); font-size: 0.92rem; }
.wish-badge { font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.att-hadir { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.att-ragu { background: rgba(234, 179, 8, 0.16); color: #a16207; }
.att-tidak { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
[data-theme="dark"] .att-hadir { color: #4ade80; }
[data-theme="dark"] .att-ragu { color: #facc15; }
[data-theme="dark"] .att-tidak { color: #f87171; }
.wish-msg { margin: 0.3rem 0 0.2rem; font-size: 0.88rem; overflow-wrap: anywhere; }
.wish-time { font-size: 0.7rem; color: var(--text-muted); }
.petal-burst { position: fixed; z-index: 3000; width: 12px; height: 16px; margin: -8px 0 0 -6px; border-radius: 60% 0 60% 0; background: radial-gradient(circle at 30% 30%, #fff, #f6e7c4); pointer-events: none; box-shadow: 0 0 6px rgba(255, 240, 200, 0.8); }

/* 15. GIFT ================================================================ */
.gift-panel { padding: 1.2rem; }
.gift-tabs { gap: 6px; padding: 4px; border-radius: 999px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); width: fit-content; max-width: 100%; margin: 0 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gift-tabs button { all: unset; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); transition: all 0.35s; }
.gift-tabs button.active { background: var(--gold-gradient); color: var(--accent-contrast); }
.gift-tabs button:focus-visible { outline: 2px solid var(--accent); }
.bank-card {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease-lux);
  transform-style: preserve-3d;
}
.bank-card:hover { transform: perspective(800px) rotateX(6deg) rotateY(-8deg) translateY(-4px); }
.bank-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.25), transparent 50%), repeating-radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.bank-bca { background: linear-gradient(135deg, #0b4ea2, #062b5c); }
.bank-mandiri { background: linear-gradient(135deg, #0a3d6b, #08223d 60%, #c99a16 160%); }
.bank-bri { background: linear-gradient(135deg, #0f5aa8, #083366); }
.bank-top { display: flex; justify-content: space-between; align-items: center; }
.bank-logo { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.04em; font-style: italic; }
.chip { width: 42px; height: 32px; border-radius: 6px; background: var(--gold-gradient); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.bank-number { font-family: 'Courier New', monospace; font-size: clamp(1.05rem, 4vw, 1.3rem); letter-spacing: 0.1em; margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.bank-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; }
.btn-copy { --bs-btn-padding-y: 0.3rem; --bs-btn-padding-x: 0.8rem; --bs-btn-font-size: 0.75rem; background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-copy:hover { background: #fff; color: #062b5c; }
.btn-copy.is-copied { background: #22c55e; border-color: #22c55e; color: #fff; }
.qris-card { display: inline-block; padding: 1.2rem; border-radius: 18px; background: #fff; color: #222; box-shadow: var(--glass-shadow); max-width: 280px; }
.qris-brand { font-weight: 800; letter-spacing: 0.3em; margin: 0 0 0.5rem; color: #c8102e; }
.qris-box { width: 200px; height: 200px; margin: 0 auto; }
.qris-box svg { width: 100%; height: 100%; }
.qris-name { font-weight: 700; margin: 0.5rem 0 0; font-size: 0.85rem; }
.qris-card small { color: #666; font-size: 0.7rem; }
.wallet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wallet-list li { display: flex; align-items: center; gap: 12px; padding: 0.8rem; border-radius: 16px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); }
.wallet-list li > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.wallet-list small { color: var(--text-muted); font-size: 0.75rem; }
.wallet-list .btn-copy { background: var(--accent); color: var(--accent-contrast); border: 0; }
.wallet-logo { width: 56px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; color: #fff; }
.wallet-logo.dana { background: #118eea; }
.wallet-logo.ovo { background: #4c2a86; }
.wallet-logo.gopay { background: #00aed6; }
.address-card { text-align: center; max-width: 560px; margin: 0 auto; padding: 1rem; }
.address-pin { font-size: 2.2rem; color: var(--accent); }
.address-card p { color: var(--text-muted); }

/* 16. CLOSING & FOOTER ===================================================== */
.section-closing { min-height: 130vh; align-items: flex-end; }
.closing-card { padding: 2.2rem 1.4rem; max-width: 780px; margin: 0 auto; }
.ayat { margin: 1.6rem auto; padding: 1.4rem 1rem; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.ayat-translation { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--text-muted); }
.ayat cite { font-style: normal; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.75rem; color: var(--accent-strong); }
.paripurna { font-family: var(--font-display); font-size: 1.15rem; color: var(--heading); }
.family-label { margin: 1.4rem 0 0.4rem; color: var(--text-muted); font-size: 0.85rem; }
.families p { margin: 0; font-size: 0.9rem; }
.families strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--heading); }
.closing-names { font-size: 3.4rem; margin: 1rem 0 0; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing-salam { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.site-footer { padding: 2.4rem 0 6rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--heading); background: var(--glass-bg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all 0.35s var(--ease-lux); }
.socials a:hover { background: var(--accent); color: var(--accent-contrast); transform: translateY(-3px); }
.credit { font-size: 0.75rem; color: var(--text-muted); margin: 0; text-shadow: var(--text-shadow); }
.credit i { color: #e25563; }

/* 17. MUSIC DOCK =========================================================== */
.music-dock {
  position: fixed;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 1040;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  max-width: min(320px, calc(100vw - 28px));
  visibility: hidden;
  opacity: 0;
}
.music-toggle { all: unset; cursor: pointer; position: relative; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; }
.music-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 18%, #1a1a1a 19% 22%, #2b2b2b 23% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.06), inset 0 0 0 9px #1a1a1a, inset 0 0 0 10px rgba(255, 255, 255, 0.08), inset 0 0 0 15px #1a1a1a, inset 0 0 0 16px rgba(255, 255, 255, 0.06);
  animation: spin 4s linear infinite;
  animation-play-state: paused;
}
.music-dock.is-playing .vinyl { animation-play-state: running; }
.music-toggle i { position: relative; z-index: 1; color: #fff; font-size: 1.1rem; text-shadow: 0 0 6px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.3s; }
.music-toggle .icon-play { position: absolute; }
.music-dock:not(.is-playing) .icon-play, .music-toggle:hover .icon-pause { opacity: 1; }
.music-dock:not(.is-playing) .icon-pause { opacity: 0 !important; }
.music-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.music-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-strong); font-weight: 700; }
.music-title { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; max-width: 170px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.music-title span { display: inline-block; padding-right: 2rem; }
.music-dock.is-playing .music-title span { animation: marquee 12s linear infinite; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 30%; background: var(--accent); border-radius: 2px; }
.music-dock.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s !important; }
.eq i:nth-child(3) { animation-delay: -0.6s !important; }
.eq i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(-100% + 170px)); } }

/* 18. LIGHTBOX, TOAST & PRELOADER ========================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 6, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.35s var(--ease-lux);
  padding: 60px 12px;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 76vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); background: #000; }
.lb-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; color: #f2e6c9; padding: 0.8rem 0.2rem 0; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.lb-counter { font-family: var(--font-body); font-style: normal; font-size: 0.8rem; opacity: 0.7; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.2rem; display: grid; place-items: center; transition: background 0.3s; }
.lb-btn:hover { background: var(--gold); color: #1d1606; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.toast-container { z-index: 2100; }
.toast-glass { background: var(--glass-bg-strong); color: var(--text); border-radius: 999px; box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-border) !important; }
.toast-glass .toast-body i { color: var(--accent-strong); }

#preloader {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 40%, var(--pearl), var(--bg));
}
[data-theme="dark"] #preloader { background: radial-gradient(80% 60% at 50% 40%, #1d1a14, #0c0c0c); }
.preloader-inner { text-align: center; }
.preloader-text { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--text-muted); margin: 0.6rem 0 1rem; }
.preloader-bar { width: 160px; height: 2px; margin: 0 auto; background: var(--glass-border); overflow: hidden; border-radius: 2px; }
.preloader-bar span { display: block; width: 40%; height: 100%; background: var(--gold-gradient); animation: loading 1.4s var(--ease-lux) infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* 19. UTILITIES & MOTION =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .depth-layer { will-change: auto; }
}
@media (max-height: 700px) and (max-width: 767.98px) {
  .invite-note, .hero-pre { display: none; }
  .hero-portrait { width: 96px; margin-bottom: 0.5rem; }
  .countdown { margin-bottom: 0.9rem; padding: 8px; }
}
/* Mobile: blur lebih ringan demi performa GPU */
@media (max-width: 767.98px) {
  :root { --glass-blur: 10px; --glass-bg: rgba(253, 251, 247, 0.7); }
  [data-theme="dark"] { --glass-bg: rgba(18, 18, 18, 0.66); }
  .event-actions .btn { flex: 1 1 calc(50% - 8px); }
}

/* 20. BREAKPOINTS ========================================================== */
@media (min-width: 576px) {
  .masonry { column-gap: 14px; }
  .gallery-item { margin-bottom: 14px; }
  .map-frame.ratio-21x9 { --bs-aspect-ratio: 56.25%; }
}
@media (min-width: 768px) {
  body { font-size: 1rem; }
  .masonry { columns: 3; }
  .couple-card { padding: 2rem 2rem 2.4rem; }
  .flip-card, .flip-inner { min-height: 280px; }
  .flip-text { font-size: 0.9rem; }
  .gift-panel { padding: 2rem; }
  .closing-card { padding: 3rem; }
  .ritual-content { padding: 1.6rem; }
}
@media (min-width: 992px) {
  :root { --nav-h: 72px; }
  .offcanvas-glass { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .journey-map { display: block; }
  .journey-section > .container { padding-right: 70px; padding-left: 70px; }
  .map-frame.ratio-21x9 { --bs-aspect-ratio: calc(9 / 21 * 100%); }
  .amp-medallion { width: 90px; height: 90px; font-size: 3.2rem; }

  /* Timeline zig-zag */
  .timeline { padding: 0; }
  .timeline-line { left: 50%; margin-left: -1px; }
  .tl-item { width: 50%; padding-right: 56px; margin-bottom: 0; }
  .tl-item:nth-child(odd) { margin-left: 50%; padding: 0 0 0 56px; }
  .tl-item + .tl-item { margin-top: -60px; }
  .tl-dot { left: auto; right: -21px; width: 42px; height: 42px; font-size: 1.1rem; }
  .tl-item:nth-child(odd) .tl-dot { left: -21px; right: auto; }

  /* Ritual explorer vertikal */
  .ritual-nav-col { border-bottom: 0; border-right: 1px solid var(--glass-border); }
  .ritual-nav { flex-direction: column; overflow: visible; padding: 1.4rem; gap: 8px; }
  .ritual-nav .nav-link { white-space: normal; border-radius: 16px; padding: 0.9rem 1rem; font-size: 0.92rem; }
  .ritual-content { display: block; }
  .ritual-content .tab-pane.active { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6rem; align-items: center; }
  .ritual-media { margin: 0; }
  .ritual-art { aspect-ratio: 4 / 5; }

  .wish-viewport { height: 470px; }
  .rsvp-form, .wishes-wall { padding: 2rem; }
  .music-title { max-width: 210px; }
  @keyframes marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(-100% + 210px)); } }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}
@media (min-width: 1200px) {
  .masonry { columns: 4; }
  .hero-inner { max-width: 720px; }
}
