/* ==========================================================================
   Undangan Pernikahan Syella & Rizki - Main Stylesheet
   Mobile & iPad First, Elegant Warm Cream Aesthetics
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Scroll lock during gate overlay & initial zoom */
html.scroll-locked,
body.scroll-locked {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
}

body {
  font-family: var(--font-sans);
  background-color: #EFE6D8;
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: clip;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Background texture & ambient glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(138, 154, 123, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(196, 154, 147, 0.08) 0%, transparent 45%),
    var(--color-bg);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Main App Container
   Limits width to 540px on iPad and Desktop for stunning mobile proportions
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: var(--container-max-w);
  min-height: 100svh;
  background-color: var(--color-bg);
  box-shadow: 0 0 50px rgba(59, 47, 42, 0.08);
  position: relative;
  overflow-x: clip;
  /* clip allows sticky positioning without horizontal scroll */
  padding-bottom: 0;
}

@media (max-width: 540px) {
  body {
    background-color: var(--color-bg);
  }

  .app-container {
    box-shadow: none;
  }
}

/* ==========================================================================
   Rose Botanical Screen Frame (Frame Bunga Rose di Pinggir Layar)
   ========================================================================== */
.screen-floral-frame-under {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-w);
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  z-index: 8;
  /* Khusus sudut kanan bawah: DI BAWAH Section 2 (z-index: 20) */
  overflow: hidden;
}

.screen-floral-frame-under.flower-top {
  z-index: 140 !important;
  /* Saat di footer: mekar di paling atas */
}

.screen-floral-frame {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-w);
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  z-index: 140;
  /* DI PALING ATAS (di atas footer card dan semua layer) */
  overflow: hidden;
}

.floral-corner {
  position: absolute;
  width: clamp(110px, 26vw, 155px);
  height: clamp(110px, 26vw, 155px);
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(59, 47, 42, 0.16));
  opacity: 0.96;
}

.floral-corner img,
.floral-corner svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.floral-corner-tl {
  top: 0;
  left: 0;
}

.floral-corner-tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.floral-corner-bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.floral-corner-br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
  will-change: opacity, transform;
}

.floral-border-line-left,
.floral-border-line-right {
  position: absolute;
  top: clamp(115px, 26vw, 160px);
  bottom: clamp(115px, 26vw, 160px);
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(121, 35, 36, 0.45) 15%, rgba(184, 87, 90, 0.65) 50%, rgba(121, 35, 36, 0.45) 85%, transparent);
  pointer-events: none;
}

.floral-border-line-left {
  left: 8px;
}

.floral-border-line-right {
  right: 8px;
}



/* ==========================================================================
   Gate Overlay (Layar Masuk Nama Tamu)
   ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    linear-gradient(180deg, rgba(32, 22, 17, 0.72) 0%, rgba(38, 26, 20, 0.55) 40%, rgba(22, 15, 12, 0.82) 100%),
    url('../assets/img/bg-cafe.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  padding-top: max(var(--space-xl), env(safe-area-inset-top));
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  transition: opacity 0.25s ease, visibility 0.25s ease;
  will-change: opacity;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: 100%;
  max-width: 420px;
  background: rgba(251, 248, 242, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(121, 35, 36, 0.55);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  animation: cardFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-hero-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-sm);
  overflow: hidden;
  border: 2.5px solid #792324;
  box-shadow: 0 6px 16px rgba(59, 47, 42, 0.25);
}

.gate-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate-pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage-dark);
  background: var(--color-accent-sage-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.gate-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-xs);
}

.gate-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.gate-names-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.gate-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  position: relative;
  animation: rowAppear 0.3s ease;
}

.gate-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1rem;
  /* min 16px to prevent iOS safari auto-zoom */
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gate-input:focus {
  border-color: var(--color-accent-sage);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(138, 154, 123, 0.2);
}

.gate-btn-remove {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.gate-btn-remove:hover {
  color: var(--color-error);
  background: rgba(184, 80, 66, 0.08);
}

.gate-btn-add {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  background: transparent;
  border: 1.5px dashed var(--color-accent-sage);
  color: var(--color-accent-sage-dark);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.2rem;
  margin-bottom: var(--space-xl);
  cursor: pointer;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.gate-btn-add:hover {
  background: var(--color-accent-sage-light);
  border-color: var(--color-accent-sage-dark);
}

.btn-open-invitation {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--color-accent-sage);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(138, 154, 123, 0.4);
  transition: all var(--transition-fast);
}

.btn-open-invitation:hover {
  background-color: var(--color-accent-sage-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(138, 154, 123, 0.5);
}

.btn-open-invitation:disabled {
  background-color: #D3C9BD;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   Section Containers & Layout
   ========================================================================== */
section {
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
  color: var(--color-accent-gold);
  opacity: 0.8;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  background: var(--color-border);
  flex: 1;
  margin: 0 var(--space-md);
}

.section-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage-dark);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Cover Section with Scroll-Driven Zoom Track
/* ==========================================================================
   Cover Section with Scroll-Driven Morphing Zoom Track
   ========================================================================== */
.cover-scroll-track {
  position: relative;
  width: 100%;
  height: 175vh;
  /* Lintasan morphing zoom in + seamless entrance Section 2 */
}

.cover-section {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  z-index: 2;
}

/* Fullscreen Romantic Vignette Overlay */
.cover-full-overlay {
  position: absolute;
  inset: -4px;
  background: linear-gradient(180deg, rgba(22, 16, 13, 0.65) 0%, rgba(22, 16, 13, 0.2) 40%, rgba(22, 16, 13, 0.78) 100%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* The Centered Arch Hero Photo (Hanya ini yang tampil di awal) */
.cover-hero-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 275px;
  height: 350px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cover-hero-frame {
  --ring-alpha: 0.85;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 135px 135px 24px 24px;
  overflow: hidden;
  /* Tanpa border asli: foto harus menutupi 100% frame sampai tepi (tidak ada strip krem) */
  border: 0;
  box-shadow: 0 20px 50px rgba(59, 47, 42, 0.28);
  background: transparent;
  transform-origin: center center;
  will-change: transform, border-radius, box-shadow;
}

/* Cincin merah frame digambar DI ATAS foto (visual identik dengan border sebelumnya) */
.cover-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3.5px solid rgba(121, 35, 36, var(--ring-alpha));
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.cover-hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.97) contrast(1.02);
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform;
}


/* ==========================================================================
   3D Classic French Arch Window (Membuka Murni 4 Detik - Tanpa Shadow & Cahaya)
   ========================================================================== */
.cover-window-shutters {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity, visibility;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cover-window-shutters.window-opened-instant {
  display: none !important;
}

.cover-window-shutters.window-opened {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

/* Base Daun Jendela */
.window-shutter {
  position: absolute;
  top: 0;
  width: 50.3%;
  height: 100%;
  z-index: 4;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-sizing: border-box;
}

/* Daun Jendela Kiri */
.shutter-left {
  left: 0;
  border-radius: 135px 0 0 24px;
  transform-origin: left center;
  transform: perspective(1200px) rotateY(0deg);
}

/* Daun Jendela Kanan */
.shutter-right {
  right: 0;
  border-radius: 0 135px 24px 0;
  transform-origin: right center;
  transform: perspective(1200px) rotateY(0deg);
}

/* Permukaan Daun Jendela Ivory & Lis Emas (Zero Shadow) */
.shutter-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #FFFFFF 0%, #FAF6EE 50%, #F3EBDD 100%);
  border: 2.5px solid rgba(121, 35, 36, 0.9);
  box-sizing: border-box;
  overflow: hidden;
}

.shutter-left .shutter-surface {
  border-radius: 135px 0 0 24px;
  border-right: 1.5px solid rgba(121, 35, 36, 0.75);
}

.shutter-right .shutter-surface {
  border-radius: 0 135px 24px 0;
  border-left: 1.5px solid rgba(121, 35, 36, 0.75);
}

/* 3D Swing Open Scroll-Driven (Digerakkan 100% oleh Scroll Pengguna) */
.shutter-left,
.shutter-right {
  transition: none;
  /* Dikendalikan langsung secara presisi 60fps oleh JS scroll */
}

/* ==========================================================================
   Petunjuk Scroll to Open (Elegan di Bawah Kubah Jendela)
   ========================================================================== */
.cover-scroll-hint {
  position: absolute;
  top: calc(50% + 212px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 6;
  pointer-events: none;
  opacity: 1;
  will-change: opacity, transform;
  transition: opacity 0.15s ease-out;
}

.scroll-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.42rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(121, 35, 36, 0.45);
  box-shadow: 0 4px 16px rgba(59, 47, 42, 0.10);
}

.scroll-hint-icon {
  font-size: 0.65rem;
  color: var(--color-accent-gold);
  opacity: 0.85;
}

.scroll-hint-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.scroll-hint-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
  animation: scrollHintBounce 1.8s infinite ease-in-out;
}

@keyframes scrollHintBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* Kisi Kaca French Arch (Mullions & Inlay - Zero Shadow) */
.shutter-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 8px 6px;
  box-sizing: border-box;
}

.grid-pane {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(121, 35, 36, 0.5);
  box-sizing: border-box;
  position: relative;
}

.shutter-left .pane-top {
  height: 120px;
  border-radius: 120px 0 0 4px;
}

.shutter-right .pane-top {
  height: 120px;
  border-radius: 0 120px 4px 0;
}

.pane-mid {
  height: 75px;
  border-radius: 4px;
}

.shutter-left .pane-bot {
  flex: 1;
  border-radius: 4px 0 0 16px;
}

.shutter-right .pane-bot {
  flex: 1;
  border-radius: 0 4px 16px 0;
}

.grid-mullion {
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(121, 35, 36, 0.5), rgba(121, 35, 36, 0.95), rgba(121, 35, 36, 0.5));
  border-radius: 1px;
  margin: 5px 0;
}

/* Gagang Emas Antik Mewah (Zero Shadow) */
.shutter-knob {
  position: absolute;
  top: 52%;
  width: 8px;
  height: 24px;
  z-index: 10;
}

.knob-left {
  right: 5px;
}

.knob-right {
  left: 5px;
}

.knob-handle {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #B8575A 0%, #792324 45%, #5E1A1B 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
}

/* ==========================================================================
   Bagian yang di-screenshot (Hilang di awal, muncul anggun saat gambar full)
   ========================================================================== */
.cover-top-block {
  position: absolute;
  top: calc(max(4.5rem, env(safe-area-inset-top)) + clamp(1.5rem, 5vh, 3.5rem));
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  will-change: opacity, transform;
}

.cover-top-block .cover-badge {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #352923;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(121, 35, 36, 0.55);
  padding: 0.42rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.cover-top-block .cover-badge-icon {
  color: var(--color-accent-gold);
  font-size: 0.65rem;
  opacity: 0.9;
}

.cover-top-block .cover-couple-names {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 7.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #FFFDF9;
  margin: 0.15rem 0 0.35rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.cover-top-block .cover-couple-names span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.85em;
  color: #B8575A;
  margin: 0 0.15rem;
  display: inline-block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.cover-top-block .cover-date-pill {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F8F3EA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cover-top-block .cover-date-pill::before,
.cover-top-block .cover-date-pill::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 87, 90, 0.8), transparent);
  flex-shrink: 0;
}

/* ==========================================================================
   VIP Recipient Card: Vintage Love Letter Envelope (Opsi 2)
   ========================================================================== */
.cover-recipient-box {
  position: absolute;
  bottom: calc(max(4.5rem, env(safe-area-inset-bottom)) + clamp(2.5rem, 7vh, 5rem));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90%;
  max-width: 326px;
  margin: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  /* Kertas amplop surat bertekstur hangat vintage */
  background: linear-gradient(165deg, #FCFAF6 0%, #F6EFE8 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(121, 35, 36, 0.45);
  border-radius: 18px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.38),
    0 4px 12px rgba(121, 35, 36, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    inset 0 0 0 4px rgba(121, 35, 36, 0.06);
  text-align: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  overflow: visible; /* Memungkinkan perangko nongol manis di tepi amplop */
}

/* Lipatan Tutup Amplop Atas (Envelope Triangular Crease / Flap) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 18px;
  background: linear-gradient(180deg, rgba(235, 222, 214, 0.85) 0%, rgba(246, 239, 232, 0.2) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1.2px solid rgba(121, 35, 36, 0.25);
  pointer-events: none;
  opacity: 0.85;
}

/* Grup Perangko & Cap Pos (Pojok Kanan Atas) */
.envelope-stamp-group {
  position: absolute;
  top: -12px;
  right: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}

/* Perangko Mini Bunga Mawar Bergerigi (Authentic Postage Stamp) */
.envelope-stamp {
  position: relative;
  width: 42px;
  height: 50px;
  background: #FFFDF9;
  padding: 4px;
  border-radius: 3px;
  outline: 2px dashed rgba(121, 35, 36, 0.45);
  outline-offset: -2px;
  box-shadow:
    0 4px 12px rgba(44, 38, 34, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.15);
  transform: rotate(5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.envelope-stamp-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(121, 35, 36, 0.25);
  border-radius: 2px;
  background: #FAF5EE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.envelope-stamp-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: contrast(1.05) saturate(1.1);
  display: block;
  transform: scale(1.15);
}

.envelope-stamp-label {
  font-family: var(--font-sans);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #792324;
  margin-top: 1px;
}

/* Stempel Cap Pos Bulat Samar (Postal Rubber Postmark) */
.envelope-postmark {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 60px;
  height: 60px;
  color: rgba(121, 35, 36, 0.42);
  transform: rotate(-14deg);
  pointer-events: none;
  mix-blend-mode: multiply;
}

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

/* Header Amplop: Badge Surat Undangan */
.envelope-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}

.recipient-card-badge.envelope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #792324;
  background: rgba(244, 234, 230, 0.9);
  border: 1px solid rgba(121, 35, 36, 0.3);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(121, 35, 36, 0.08);
}

.recipient-card-badge.envelope-badge svg {
  color: #792324;
}

.cover-recipient-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8A6E61;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

.cover-recipient-names {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 600;
  color: #2E231E;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

/* Garis Jahitan / Border Strip Bawah Amplop */
.envelope-stitch-line {
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(121, 35, 36, 0.35) 0, rgba(121, 35, 36, 0.35) 4px, transparent 4px, transparent 8px);
  pointer-events: none;
  opacity: 0.75;
}

/* ==========================================================================
   Intro & Couple Profile - Soft Arched Transition from Cover Photo
   ========================================================================== */
/* Satu lembaran utuh untuk semua section konten (tanpa sambungan/patahan antar section) */
#main-content {
  position: relative;
  z-index: 20;
  /* Di atas bunga kanan bawah (z-index: 8) */
  margin-top: -56px;
  border-radius: 36px 36px 0 0;
  background-color: var(--color-bg);
  box-shadow:
    0 -18px 45px -10px rgba(22, 16, 13, 0.22),
    0 -1px 0 rgba(121, 35, 36, 0.45);
}

.couple-section {
  position: relative;
  padding-top: calc(var(--space-2xl) + 16px);
}

.couple-section::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3.5px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, rgba(121, 35, 36, 0.55), transparent);
}

.intro-text {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 440px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}


/* ==========================================================================
   Editorial Couple Section (Bliss & Bone / Luxury Editorial Inspired)
   ========================================================================== */
.couple-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.couple-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.couple-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.couple-card-bride .couple-info {
  margin-bottom: var(--space-xs);
}

.couple-card-groom .couple-info {
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* Role: Menyatu dengan design token website (uppercase tracking halus) */
.couple-role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-sage-dark);
  margin-bottom: var(--space-2xs);
}

.couple-card-bride .couple-role {
  color: var(--color-accent-rose);
}

/* Name: Tipografi serif Fraunces elegan sesuai section-title web */
.couple-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

/* Bio: Keterangan keluarga dengan font serif miring sesuai intro-text web */
.couple-bio {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* ==========================================================================
   Staggered Couple Collage (Mobile First - Staggered Kiri & Kanan Rapet)
   ========================================================================== */
.couple-collage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 310px;
  margin: var(--space-md) auto;
  padding: 0 4px;
}

/* Portrait: Fine-art passe-partout matting frame (Opsi B: Capsule / Stadium Oval Ramping) */
.couple-avatar {
  flex: 0 0 calc(50% - 6px);
  max-width: 144px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.7;
  padding: 6px;
  background: #FCF9F3;
  border: 1px solid rgba(121, 35, 36, 0.35);
  border-radius: 999px;
  box-shadow:
    0 14px 34px -8px rgba(44, 38, 34, 0.14),
    0 2px 8px rgba(44, 38, 34, 0.05);
  position: relative;
  margin: 0;
  z-index: 2;
}

/* Mempelai Wanita: Kiri (Kapsul Oval Sejajar) */
.couple-avatar-bride {
  border-radius: 999px;
  margin: 0;
}

/* Mempelai Pria: Kanan (Kapsul Oval Sejajar) */
.couple-avatar-groom {
  border-radius: 999px;
  margin: 0;
}

.couple-avatar img,
.couple-avatar-bride img,
.couple-avatar-groom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Ambient Botanical Floral Backdrop (Samar di Belakang Frame, Bukan di Bingkai)
   ========================================================================== */
.couple-backdrop-floral {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
  mix-blend-mode: multiply;
  transition: opacity var(--transition-normal);
}

.couple-backdrop-floral img {
  display: block;
  width: 100%;
  height: auto;
}

/* Aksen botanical lembut di belakang sudut kiri foto mempelai wanita */
.couple-backdrop-floral-left {
  width: 125px;
  bottom: -10px;
  left: -14px;
  transform: rotate(10deg);
}

/* Aksen botanical lembut di belakang sudut kanan foto mempelai pria */
.couple-backdrop-floral-right {
  width: 125px;
  top: -10px;
  right: -14px;
  transform: rotate(-170deg);
}

/* ==========================================================================
   Event Details (Akad & Resepsi)
   ========================================================================== */
/* ==========================================================================
   Event Details (Unified Akad & Resepsi + Google Maps Embed)
   ========================================================================== */
.event-section {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  margin: var(--space-xl) var(--space-lg);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  box-shadow: 0 12px 32px rgba(44, 42, 41, 0.06);
  text-align: center;
}

/* Garis emas tipis di dalam container */
.event-section::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(121, 35, 36, 0.4);
  border-radius: 21px;
  pointer-events: none;
}

.event-unified-card {
  background: transparent;
  padding: var(--space-md) 0 0;
  margin-bottom: 0;
  text-align: center;
  position: relative;
}

/* Tanggal hero: angka besar bergaya editorial */
.event-date-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.event-weekday,
.event-month-year {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark, #5E1A1B);
}

.event-weekday::before,
.event-weekday::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-accent-gold);
  vertical-align: middle;
  margin: 0 0.9em;
  opacity: 0.7;
}

.event-day-num {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 28vw, 8rem);
  font-weight: 500;
  line-height: 1;
  margin: 0.05em 0 0.1em;
  background: linear-gradient(180deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark, #5E1A1B) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-accent-gold-dark, #5E1A1B);
}

/* Dua sesi berdampingan dipisah garis tipis */
.event-sessions-container {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.event-sessions-container::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: var(--color-border);
}

.event-session-box:first-child {
  grid-column: 1;
  grid-row: 1;
}

.event-session-box:last-child {
  grid-column: 3;
  grid-row: 1;
}

.event-session-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.event-session-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-sage-dark);
}

.event-session-label.label-resepsi {
  color: var(--color-accent-rose);
}

.event-session-box .event-time {
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: 0;
  white-space: nowrap;
}

.event-session-box .event-time small {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-sans, inherit);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text-secondary);
}

.event-venue-container {
  margin-bottom: var(--space-lg);
}

.event-venue-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xs);
}

.event-map-wrapper {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(44, 42, 41, 0.06);
  margin-bottom: var(--space-lg);
  background: #ece9e2;
  position: relative;
}

.event-map-wrapper iframe {
  width: 100%;
  height: calc(100% + 70px);
  margin-top: -70px;
  /* menyembunyikan overlay "Buka di Maps" bawaan embed */
  display: block;
  border: 0;
}

.event-action-bar {
  display: flex;
  justify-content: center;
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.event-type-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-sage-dark);
  background: var(--color-accent-sage-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.event-time {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.event-venue-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.event-venue-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto var(--space-md);
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-maps:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-sage-dark);
  color: var(--color-accent-sage-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin: var(--space-xl) 0 var(--space-lg);
}

.countdown-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-2xs);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
  display: block;
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2xs);
  display: block;
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.btn-calendar:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-sage);
}

/* ==========================================================================
   Photo Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

/* ==========================================================================
   RSVP Form
   ========================================================================== */
.rsvp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.radio-card input:checked+.radio-card-label {
  background: var(--color-accent-sage-light);
  border-color: var(--color-accent-sage);
  color: var(--color-accent-sage-dark);
  font-weight: 600;
}

.guest-count-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-2xs);
}

.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  /* iOS zoom prevention */
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  outline: none;
  min-height: 100px;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.form-textarea:focus {
  border-color: var(--color-accent-sage);
  background: #FFF;
}

.char-counter {
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.btn-submit-rsvp {
  width: 100%;
  background-color: var(--color-accent-sage);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.95rem;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(138, 154, 123, 0.4);
  transition: all var(--transition-fast);
}

.btn-submit-rsvp:hover {
  background-color: var(--color-accent-sage-dark);
}

/* ==========================================================================
   Wishes Feed
   ========================================================================== */
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.wish-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xs);
}

.wish-sender {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.wish-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wish-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

/* ==========================================================================
   Amplop Digital (Kondisional)
   ========================================================================== */
.envelope-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
}

.envelope-intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.2rem;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-sage);
}

/* ==========================================================================
   Floating Vertical Navigation Dock (Tall Rounded Rectangle / Pill Dock)
   ========================================================================== */
.floating-nav-dock {
  position: fixed;
  bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  right: max(var(--space-lg), calc((100vw - var(--container-max-w)) / 2 + var(--space-lg)));
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 5px;
  background: rgba(254, 251, 246, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(121, 35, 36, 0.45);
  border-radius: 24px;
  box-shadow:
    0 10px 28px rgba(46, 35, 30, 0.16),
    0 2px 8px rgba(121, 35, 36, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transform-origin: bottom center;
  will-change: opacity, transform;
}

body.scroll-locked .floating-nav-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.92) !important;
}

.floating-nav-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #5C4A42);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.floating-nav-btn:hover {
  transform: scale(1.12);
  background: rgba(121, 35, 36, 0.18);
  color: var(--color-accent-gold-dark, #5E1A1B);
}

.floating-nav-btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.floating-nav-btn.active {
  background: var(--color-accent-sage-light, #EBF0E6);
  color: var(--color-accent-sage-dark, #3D4E35);
  box-shadow: 0 2px 6px rgba(74, 91, 64, 0.18);
}

.floating-nav-divider {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 35, 36, 0.45), transparent);
  margin: 2px 0;
  flex-shrink: 0;
}

/* Audio button inside dock - Nyala saat aktif tanpa muter */
.floating-audio-btn {
  background: rgba(121, 35, 36, 0.12);
  color: var(--color-text-primary);
}

.floating-audio-btn:hover {
  transform: scale(1.12);
  background: rgba(121, 35, 36, 0.24);
}

.floating-audio-btn.playing {
  color: var(--color-accent-sage-dark);
  background: var(--color-accent-sage-light);
  box-shadow: 0 0 10px rgba(138, 154, 123, 0.45);
}

/* Elegant Floating Tooltips */
.nav-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(46, 35, 30, 0.92);
  color: #FFFDF9;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(121, 35, 36, 0.35);
}

.nav-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(46, 35, 30, 0.92);
}

.floating-nav-btn:hover .nav-tooltip,
.floating-nav-btn:focus-visible .nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.floating-nav-btn.hide-tooltip .nav-tooltip {
  opacity: 0 !important;
  transform: translateY(-50%) translateX(6px) !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   Footer Section - Elegant Warm Closing Ceremony Card
   ========================================================================== */
.footer-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  background: linear-gradient(180deg, var(--color-bg) 0%, #EBE0CF 100%);
  border-top: 1px solid var(--color-border);
  position: relative;
  box-sizing: border-box;
}

.footer-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 2.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(251, 248, 242, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(121, 35, 36, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 40px rgba(59, 47, 42, 0.08);
  position: relative;
  z-index: 120;
  /* Di atas navbar (z-index: 100) sehingga navbar tertutup DI CONTAINERNYA (.footer-card), bukan di bg */
  box-sizing: border-box;
}

.footer-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(121, 35, 36, 0.25);
  border-radius: calc(var(--radius-xl) - 6px);
  pointer-events: none;
}

.footer-card:hover {
  transform: none;
}

.footer-crest {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 35, 36, 0.12);
  border: 1px solid rgba(121, 35, 36, 0.35);
  border-radius: var(--radius-full);
  color: var(--color-accent-gold);
  box-shadow: 0 4px 12px rgba(121, 35, 36, 0.15);
}

.footer-quote-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent-gold);
  opacity: 0.6;
  margin-bottom: -0.65rem;
  font-style: italic;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 380px;
  margin: 0 auto var(--space-md);
}

.footer-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-md) auto;
  color: var(--color-accent-gold);
  max-width: 180px;
}

.footer-divider-ornament span:not(.ornament-diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 35, 36, 0.5), transparent);
}

.footer-divider-ornament .ornament-diamond {
  font-size: 0.75rem;
  opacity: 0.8;
}

.footer-closing-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 500;
  color: #2E231E;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0;
}

.footer-names span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.85em;
  color: var(--color-accent-gold);
  margin: 0 0.15rem;
}

.footer-copy {
  margin-top: 3.5rem;
  padding-top: var(--space-md);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 24px));
  border-top: 1px solid rgba(121, 35, 36, 0.22);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  letter-spacing: 0.04em;
}

.footer-credit {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowAppear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 9, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardFadeUp 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: #FBF8F2;
  font-size: var(--text-sm);
  font-family: var(--font-serif);
  margin-top: var(--space-sm);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}