/* ==========================================================================
   Undangan Ulang Tahun ke-1 Tema Taman Peri — Watercolor Storybook
   Palet: Warm Ivory Cream, Dusty Blush Rose, Antique Wax Gold, Soft Sage
   ========================================================================== */

:root {
  --bg-outer: #f5eae6;
  --bg-canvas: #fffbf8;
  --bg-nav: #faf0ec;
  --bg-card: #fffdf9;
  --rose-soft: #f3dce0;
  --rose-envelope: #d9a7ae;
  --rose-envelope-mid: #cfa0a7;
  --rose-envelope-deep: #be8c94;
  --rose-bar: #dba7ae;
  --rose-accent: #9a5d67;
  --rose-ink: #834b54;
  --rose-muted: #b68a91;
  --gold-wax: #e8cfa6;
  --gold-wax-deep: #c5a16e;
  --sage: #8da17b;
  --border-soft: rgba(182, 138, 145, 0.28);
  --shadow-soft: 0 18px 50px rgba(131, 75, 84, 0.14);
  --shadow-card: 0 10px 26px rgba(154, 93, 103, 0.13);

  --font-script: "Alex Brush", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 46px;
}

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

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--rose-ink);
  background: radial-gradient(circle at 20% 15%, #fff5f2 0%, var(--bg-outer) 55%, #ecdad5 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Bingkai Desktop
   ========================================================================== */
.desktop-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.backdrop-floral {
  position: absolute;
  width: 340px;
  opacity: 0.42;
  filter: blur(0.3px);
}

.backdrop-floral-tl {
  top: -40px;
  left: -40px;
  transform: rotate(90deg);
}

.backdrop-floral-br {
  bottom: -40px;
  right: -40px;
  transform: rotate(-90deg);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.invitation-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  height: min(880px, calc(100vh - 32px));
  background:
    radial-gradient(circle at 82% 16%, rgba(247, 217, 223, 0.36) 0%, transparent 45%),
    radial-gradient(circle at 18% 72%, rgba(244, 223, 210, 0.32) 0%, transparent 48%),
    var(--bg-canvas);
  border-radius: 30px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(217, 167, 174, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#fairyDustCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

/* ==========================================================================
   Navigasi Atas
   ========================================================================== */
.top-nav {
  position: relative;
  z-index: 30;
  height: var(--nav-height);
  flex-shrink: 0;
  background: rgba(250, 240, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 167, 174, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-item {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rose-muted);
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-item:hover {
  color: var(--rose-ink);
}

.nav-item.is-active {
  color: var(--rose-ink);
  font-weight: 600;
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--rose-accent);
  border-radius: 2px;
}

.music-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose-accent);
  background: rgba(217, 167, 174, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.music-btn:hover {
  background: rgba(217, 167, 174, 0.3);
  transform: scale(1.06);
}

.music-btn svg {
  width: 15px;
  height: 15px;
}

.music-btn .icon-music-on {
  display: none;
}

.music-btn.is-playing {
  background: var(--rose-envelope);
  color: #fff;
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.music-btn.is-playing .icon-music-off {
  display: none;
}

.music-btn.is-playing .icon-music-on {
  display: block;
}

/* ==========================================================================
   Viewport & Transisi Halaman
   ========================================================================== */
.page-viewport {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 167, 174, 0.45) transparent;
}

.page-viewport::-webkit-scrollbar {
  width: 5px;
}

.page-viewport::-webkit-scrollbar-thumb {
  background: rgba(217, 167, 174, 0.45);
  border-radius: 99px;
}

.inv-page {
  display: none;
  min-height: 100%;
  animation: pageFadeIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inv-page.is-active {
  display: block;
}

#page-landing.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose-accent);
  line-height: 1.05;
}

/* ==========================================================================
   HALAMAN 1: SAMPUL AMPLOP
   ========================================================================== */
.landing-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 34px;
  text-align: center;
  position: relative;
}

.guest-pill {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--rose-accent);
  background: rgba(243, 220, 224, 0.45);
  border: 1px solid rgba(217, 167, 174, 0.45);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 10px;
}

.landing-heading {
  font-size: clamp(46px, 11vw, 56px);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(217, 167, 174, 0.25);
}

.envelope-scene {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 265px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 26px;
}

.landing-mushrooms {
  position: absolute;
  left: -8px;
  bottom: 6px;
  width: 138px;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(131, 75, 84, 0.12));
  pointer-events: none;
}

.landing-fairy {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 166px;
  z-index: 6;
  filter: drop-shadow(0 8px 14px rgba(131, 75, 84, 0.16));
  pointer-events: none;
}

.landing-butterfly {
  position: absolute;
  top: 4px;
  left: 62px;
  width: 44px;
  z-index: 7;
  opacity: 0.9;
  pointer-events: none;
}

/* Amplop Blush Watercolor */
.sealed-envelope {
  position: relative;
  z-index: 4;
  width: 238px;
  height: 162px;
  perspective: 900px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sealed-envelope:hover {
  transform: translateY(-4px) scale(1.02);
}

.env-body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #dfafb6 0%, #cfa0a7 55%, #c29199 100%);
  border-radius: 4px;
  box-shadow:
    0 16px 32px rgba(131, 75, 84, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  overflow: visible;
}

.env-inner-letter {
  position: absolute;
  inset: 10px 14px 12px;
  background: linear-gradient(180deg, #fffdf9 0%, #faeee9 100%);
  border-radius: 3px;
  border: 1px solid rgba(217, 167, 174, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.env-letter-script {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--rose-accent);
  line-height: 1;
}

.env-letter-sub {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-muted);
  margin-top: 3px;
}

.env-flap-left,
.env-flap-right,
.env-flap-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.env-flap-left {
  background: linear-gradient(135deg, #d7a6ad 0%, #ca989f 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
  z-index: 2;
}

.env-flap-right {
  background: linear-gradient(225deg, #d3a1a8 0%, #c6949b 100%);
  clip-path: polygon(100% 0, 48% 52%, 100% 100%);
  z-index: 2;
}

.env-flap-bottom {
  background: linear-gradient(0deg, #c9969e 0%, #d8a9b0 100%);
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  z-index: 3;
  filter: drop-shadow(0 -2px 3px rgba(110, 62, 70, 0.14));
}

.env-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: linear-gradient(180deg, #e2b6bc 0%, #d1a0a7 100%);
  clip-path: polygon(0 0, 50% 98%, 100% 0);
  transform-origin: top center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(110, 62, 70, 0.18));
}

/* Segel Lilin Emas */
.wax-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7ebd3 0%, #e4c698 48%, #c9a16d 100%);
  box-shadow:
    0 4px 10px rgba(102, 65, 42, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    inset 0 -2px 4px rgba(141, 102, 58, 0.45);
  z-index: 6;
  display: grid;
  place-items: center;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.wax-seal-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(154, 110, 60, 0.55);
}

.wax-seal-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: #8f6338;
  text-shadow: 0 1px 0 rgba(255, 248, 232, 0.85);
}

.sealed-envelope.is-opening .env-flap-top {
  transform: rotateX(175deg);
  z-index: 1;
}

.sealed-envelope.is-opening .wax-seal {
  transform: translate(-50%, -85%) scale(0.75);
  opacity: 0;
}

.sealed-envelope.is-opening .env-inner-letter {
  transform: translateY(-48px);
  z-index: 4;
}

.click-to-open-btn {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--rose-ink);
  padding: 8px 20px 6px;
  border-bottom: 1.5px solid var(--rose-accent);
  transition: transform 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
}

.click-to-open-btn:hover {
  color: #6d3a43;
  letter-spacing: 0.26em;
  transform: translateY(-1px);
}

.landing-hint {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--rose-muted);
}

/* ==========================================================================
   HALAMAN 2: DETAIL ACARA (KOLASE STORYBOOK)
   ========================================================================== */
.details-canvas {
  padding: 16px 14px 18px;
  position: relative;
}

.details-header {
  display: grid;
  grid-template-columns: 1fr 122px;
  align-items: start;
  gap: 4px;
  margin-bottom: -14px;
}

.details-title-group {
  text-align: center;
  padding-top: 10px;
}

.details-kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--rose-accent);
  margin-bottom: 3px;
}

.details-script {
  font-size: clamp(34px, 8.6vw, 43px);
  line-height: 1.05;
  color: var(--rose-accent);
}

.details-swing-wrap {
  margin-top: -16px;
  margin-right: -6px;
  display: flex;
  justify-content: flex-end;
}

.details-fairy-swing {
  width: 128px;
  transform-origin: top center;
  filter: drop-shadow(0 6px 10px rgba(131, 75, 84, 0.13));
}

.details-collage-top {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  align-items: end;
  gap: 4px;
  margin-bottom: 10px;
  position: relative;
}

.bird-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 14px;
}

.details-bird {
  width: 168px;
  filter: drop-shadow(0 6px 10px rgba(131, 75, 84, 0.1));
}

.opened-envelope-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 46px;
  padding-bottom: 18px;
}

.opened-envelope {
  position: relative;
  display: block;
  width: 196px;
  height: 132px;
  background: linear-gradient(155deg, #e0b3ba 0%, #d2a1a8 100%);
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(131, 75, 84, 0.2);
  transition: transform 0.28s ease;
}

.opened-envelope-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.open-env-back-flap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 99%;
  height: 76px;
  background: linear-gradient(0deg, #c6959d 0%, #dcb0b6 100%);
  clip-path: polygon(0 100%, 50% 4%, 100% 100%);
  border-radius: 6px;
  z-index: 1;
}

.open-env-photo-wrap {
  position: absolute;
  left: 24px;
  right: 24px;
  top: -22px;
  height: 120px;
  background: #fffdf9;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(96, 56, 62, 0.16);
  z-index: 2;
  overflow: hidden;
}

.open-env-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 3px;
}

.open-env-front-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dfb1b8 0%, #d19fa7 100%);
  clip-path: polygon(0 0, 54% 56%, 0 100%);
  z-index: 3;
}

.open-env-front-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, #d8a8b0 0%, #c8969e 100%);
  clip-path: polygon(100% 0, 46% 56%, 100% 100%);
  z-index: 3;
}

.open-env-front-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #cf9ea6 0%, #e2b6bc 100%);
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  z-index: 4;
}

.wax-seal-sm {
  width: 30px;
  height: 30px;
  top: 56%;
  z-index: 5;
}

.wax-seal-sm .wax-seal-num {
  font-size: 13px;
}

.details-mushrooms-mid {
  position: absolute;
  right: -6px;
  bottom: -14px;
  width: 90px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(131, 75, 84, 0.14));
}

.details-collage-mid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
}

.invite-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 224, 228, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #fffcf7 0%, #fbf0ea 100%);
  border: 1px solid rgba(217, 167, 174, 0.45);
  border-radius: 6px;
  padding: 20px 12px 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.card-floral-bg {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 118px;
  opacity: 0.34;
  pointer-events: none;
}

.card-mini-fairy-tl {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 36px;
  opacity: 0.85;
  pointer-events: none;
}

.card-butterfly {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 28px;
  opacity: 0.85;
  pointer-events: none;
}

.invite-card-inner {
  position: relative;
  z-index: 2;
}

.card-intro {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--rose-muted);
  margin-bottom: 6px;
}

.card-name {
  font-size: 31px;
  color: var(--rose-ink);
  margin: 4px 0 6px;
}

.card-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-envelope), transparent);
  margin: 6px auto 10px;
}

.card-date {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rose-ink);
}

.card-time {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rose-accent);
  margin-top: 2px;
  margin-bottom: 10px;
}

.card-venue {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.65;
  color: var(--rose-accent);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.card-micro-btn {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rose-ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(182, 138, 145, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-micro-btn:hover {
  background: var(--rose-soft);
  transform: translateY(-1px);
}

/* Pintu Peri RSVP */
.rsvp-door-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fairy-door-btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 192px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.fairy-door-btn:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(154, 93, 103, 0.22));
}

.fairy-door-img {
  width: 100%;
  height: auto;
}

.fairy-door-overlay {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  text-align: center;
}

.door-rsvp-script {
  font-size: 36px;
  color: #7c444d;
  text-shadow: 0 1px 6px rgba(255, 248, 245, 0.9);
  line-height: 0.9;
}

.door-click-here {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6b3b43;
  margin-top: 4px;
  background: rgba(255, 248, 246, 0.78);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Tombol Pintas Galeri pada Halaman Acara */
.details-gallery-strip {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
}

.gallery-teaser-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #f9e8eb 100%);
  border: 1px solid rgba(201, 146, 154, 0.55);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rose-ink);
  box-shadow: 0 6px 14px rgba(154, 93, 103, 0.1);
  transition: transform 0.22s ease, background 0.22s ease;
}

.gallery-teaser-pill:hover {
  transform: translateY(-2px);
  background: #f6e0e4;
}

.teaser-sparkle {
  color: var(--gold-wax-deep);
}

/* Taman Peri & Karangan Bunga Daftar Kado */
.details-collage-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 12px;
}

.garden-fairy-left {
  position: absolute;
  left: -4px;
  top: 12px;
  width: 92px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(131, 75, 84, 0.12));
}

.garden-butterfly {
  position: absolute;
  right: 18px;
  top: 10px;
  width: 40px;
  z-index: 4;
  pointer-events: none;
}

.garden-mushrooms-right {
  position: absolute;
  right: -4px;
  bottom: 4px;
  width: 84px;
  z-index: 3;
  pointer-events: none;
}

.wishlist-wreath-btn {
  position: relative;
  width: 248px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.wishlist-wreath-btn:hover {
  transform: scale(1.03);
}

.wreath-img {
  width: 100%;
  height: auto;
}

.wreath-center-text {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wreath-script {
  font-size: 32px;
  color: var(--rose-ink);
  line-height: 0.95;
}

.wreath-upper {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rose-accent);
  margin-top: 2px;
}

.wreath-tap-hint {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose-muted);
  margin-top: 5px;
  border-bottom: 1px solid rgba(182, 138, 145, 0.5);
  padding-bottom: 1px;
  white-space: nowrap;
}

.details-bottom-spacer {
  height: 12px;
}

/* ==========================================================================
   HALAMAN 3: GALERI MOMEN (FITUR BARU)
   ========================================================================== */
.gallery-inner {
  padding: 16px 18px 26px;
  text-align: center;
  position: relative;
}

.gallery-header {
  position: relative;
  margin-top: 6px;
  margin-bottom: 14px;
}

.gallery-head-butterfly {
  position: absolute;
  right: 16px;
  top: -4px;
  width: 34px;
  opacity: 0.85;
  pointer-events: none;
}

.gallery-heading {
  font-size: clamp(42px, 10vw, 52px);
}

.gallery-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--rose-accent);
  margin-top: 3px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rose-accent);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(217, 167, 174, 0.48);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-pill:hover {
  background: var(--rose-soft);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, #dda9b0 0%, #c9929a 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(154, 93, 103, 0.22);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.polaroid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid rgba(217, 167, 174, 0.45);
  border-radius: 12px;
  padding: 7px 7px 11px;
  box-shadow: 0 8px 20px rgba(154, 93, 103, 0.12);
  text-align: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.polaroid-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.polaroid-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.polaroid-card:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  box-shadow: 0 14px 28px rgba(154, 93, 103, 0.2);
  z-index: 2;
}

.polaroid-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8ecee;
}

.polaroid-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.polaroid-card:hover .polaroid-photo-wrap img {
  transform: scale(1.05);
}

.polaroid-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(255, 251, 248, 0.9);
  backdrop-filter: blur(4px);
  color: var(--rose-ink);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(217, 167, 174, 0.45);
}

.polaroid-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-ink);
  margin-top: 8px;
  line-height: 1.2;
}

.polaroid-caption {
  font-size: 10px;
  line-height: 1.45;
  color: #8f686e;
  margin-top: 3px;
}

.gallery-tip {
  margin-top: 14px;
  font-size: 10px;
  color: var(--rose-muted);
  letter-spacing: 0.04em;
}

.gallery-bottom-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-footer-art {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  pointer-events: none;
}

/* Modal Lightbox Galeri */
.lightbox-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 42, 48, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  background: var(--bg-card);
  border: 1px solid rgba(232, 207, 166, 0.6);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 22px 50px rgba(58, 28, 34, 0.35);
  animation: pageFadeIn 0.25s ease both;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose-ink);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(58, 28, 34, 0.32);
  z-index: 5;
}

.lightbox-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f5e5e7;
}

.lightbox-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 251, 248, 0.88);
  color: var(--rose-ink);
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(80, 42, 48, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 8px;
}

.lightbox-next {
  right: 8px;
}

.lightbox-meta {
  padding: 12px 4px 4px;
  text-align: left;
}

.lightbox-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.lightbox-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--rose-soft);
  color: var(--rose-accent);
  padding: 3px 9px;
  border-radius: 99px;
}

.lightbox-counter {
  font-size: 10px;
  font-weight: 600;
  color: var(--rose-muted);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--rose-ink);
}

.lightbox-caption {
  font-size: 11.5px;
  line-height: 1.55;
  color: #7d565d;
  margin-top: 3px;
}

/* ==========================================================================
   HALAMAN 4: RSVP (KONFIRMASI KEHADIRAN)
   ========================================================================== */
.rsvp-inner {
  padding: 20px 18px 28px;
  position: relative;
}

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

.rsvp-heading {
  font-size: clamp(38px, 9.5vw, 48px);
}

.rsvp-deadline {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose-accent);
  margin-top: 4px;
}

.rsvp-top-scene {
  position: relative;
  height: 82px;
  max-width: 340px;
  margin: 0 auto -12px;
  z-index: 3;
  pointer-events: none;
}

.rsvp-top-mush {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 78px;
}

.rsvp-top-butter {
  position: absolute;
  left: 96px;
  top: 10px;
  width: 32px;
}

.rsvp-top-fairy-sm {
  position: absolute;
  left: 146px;
  bottom: 10px;
  width: 60px;
}

.rsvp-top-fairy-lg {
  position: absolute;
  right: 8px;
  bottom: -4px;
  width: 96px;
}

.rsvp-card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid rgba(217, 167, 174, 0.45);
  border-radius: 14px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 14px;
}

.radio-fieldset {
  border: none;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-ink);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.text-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--rose-ink);
  background: #fff;
  border: 1px solid rgba(182, 138, 145, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: var(--rose-accent);
  box-shadow: 0 0 0 3px rgba(217, 167, 174, 0.25);
}

.text-area {
  resize: vertical;
  min-height: 62px;
}

.field-error {
  display: block;
  font-size: 10.5px;
  color: #c24b5d;
  margin-top: 4px;
  min-height: 14px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4ecea;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.choice-card:hover {
  background: #f5e2e5;
}

.choice-card:has(input:checked) {
  background: #f6dfe3;
  border-color: var(--rose-envelope-deep);
}

.choice-card input[type="radio"] {
  accent-color: var(--rose-accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.choice-text {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--rose-ink);
}

.btn-dusty-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dda9b0 0%, #c9929a 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(154, 93, 103, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-dusty-rose:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(154, 93, 103, 0.3);
  filter: brightness(1.03);
}

.btn-submit-rsvp {
  width: 100%;
  border-radius: 9px;
  margin-top: 4px;
}

.btn-outline-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rose-envelope-deep);
  color: var(--rose-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn-outline-rose:hover {
  background: var(--rose-soft);
}

.form-privacy-note {
  margin-top: 10px;
  text-align: center;
  font-size: 9.5px;
  color: var(--rose-muted);
}

.rsvp-success {
  text-align: center;
  padding: 12px 4px;
}

.success-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-accent);
  font-size: 20px;
  display: grid;
  place-items: center;
}

.success-title {
  font-size: 40px;
  margin-bottom: 6px;
}

.success-summary {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--rose-ink);
  margin-bottom: 16px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wishes-wall {
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.wishes-wall-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--rose-accent);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wish-item {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.wish-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-ink);
  margin-bottom: 3px;
}

.wish-status-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--rose-soft);
  color: var(--rose-accent);
}

.wish-body {
  font-size: 11.5px;
  line-height: 1.5;
  color: #7d565d;
}

.rsvp-footer-art {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  pointer-events: none;
}

.rsvp-bottom-mush-left {
  width: 88px;
  margin-left: -10px;
}

.rsvp-bottom-floral-right {
  width: 96px;
  opacity: 0.65;
  transform: scaleX(-1);
  margin-right: -10px;
}

/* ==========================================================================
   HALAMAN 5: DAFTAR KADO (WISHLIST)
   ========================================================================== */
.wishlist-inner {
  padding: 18px 20px 26px;
  text-align: center;
  position: relative;
}

.micro-nav-link {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--rose-muted);
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.micro-nav-link:hover {
  color: var(--rose-ink);
}

.wishlist-header {
  margin-top: 6px;
}

.wishlist-script {
  font-size: clamp(50px, 12vw, 60px);
  line-height: 0.92;
}

.wishlist-upper {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--rose-accent);
  margin-top: 2px;
}

.wishlist-hero-art {
  margin: 8px auto 12px;
  max-width: 310px;
}

.wishlist-scene-img {
  width: 100%;
  filter: drop-shadow(0 8px 14px rgba(131, 75, 84, 0.12));
}

.wishlist-message {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--rose-accent);
  max-width: 330px;
  margin: 0 auto 20px;
}

.btn-pill-wide {
  display: flex;
  margin: 0 auto;
  min-width: 224px;
  padding: 13px 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.registry-panel {
  margin-top: 22px;
  text-align: left;
  animation: pageFadeIn 0.4s ease both;
}

.registry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid rgba(217, 167, 174, 0.4);
  border-radius: 12px;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(154, 93, 103, 0.08);
  transition: transform 0.2s ease;
}

.gift-card:hover {
  transform: translateY(-2px);
}

.gift-card.is-reserved {
  background: #faf4f5;
  opacity: 0.85;
}

.gift-tag {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-accent);
  background: var(--rose-soft);
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 5px;
}

.gift-name {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rose-ink);
}

.gift-note {
  font-size: 10px;
  line-height: 1.45;
  color: #8f686e;
  margin-top: 3px;
}

.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(217, 167, 174, 0.4);
}

.gift-price {
  font-size: 10px;
  font-weight: 600;
  color: var(--rose-accent);
}

.btn-reserve {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--rose-envelope);
  color: #fff;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-reserve:hover {
  background: var(--rose-accent);
}

.gift-card.is-reserved .btn-reserve {
  background: #e6d4d7;
  color: var(--rose-ink);
}

.fairy-fund-card {
  background: linear-gradient(135deg, #fdf3f4 0%, #faf0ec 100%);
  border: 1px solid rgba(217, 167, 174, 0.48);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.fund-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose-accent);
  margin-bottom: 4px;
}

.fund-desc {
  font-size: 11px;
  color: #7d565d;
  margin-bottom: 10px;
}

.fund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 10px;
}

.fund-detail {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rose-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-fund {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rose-accent);
  padding: 5px 11px;
  border-radius: 99px;
  flex-shrink: 0;
}

.wishlist-back-env {
  display: block;
  margin: 18px auto 0;
}

.wishlist-footer-art {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  pointer-events: none;
}

.wish-mush-left {
  width: 78px;
  margin-left: -14px;
}

.wish-mush-right {
  width: 78px;
  transform: scaleX(-1);
  margin-right: -14px;
}

/* ==========================================================================
   STICKY BOTTOM COUNTDOWN BAR
   ========================================================================== */
.countdown-bar {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  background: linear-gradient(90deg, #d7a1a8 0%, #e1aeb5 50%, #d59fa6 100%);
  color: #fff;
  padding: 10px 14px 9px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 -6px 18px rgba(154, 93, 103, 0.14);
}

.countdown-digits {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cd-val {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(131, 75, 84, 0.2);
}

.cd-label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.92;
  margin-top: 3px;
}

.cd-sep {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.05;
  opacity: 0.85;
}

.countdown-footer-line {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.96;
}

.cd-rsvp-link {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.invitation-shell[data-active-page="landing"] .countdown-bar {
  display: none;
}

/* ==========================================================================
   NOTIFIKASI TOAST
   ========================================================================== */
.fairy-toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 16px);
  background: rgba(131, 75, 84, 0.94);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(100, 52, 60, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fairy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   ANIMASI
   ========================================================================== */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes swingGentle {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
}

@keyframes flutterWing {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate(4px, -5px) rotate(5deg) scale(1.06);
  }
}

@keyframes bobSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 167, 174, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(217, 167, 174, 0);
  }
}

.anim-float {
  animation: floatGentle 4.2s ease-in-out infinite;
}

.anim-swing {
  animation: swingGentle 5s ease-in-out infinite;
}

.anim-flutter {
  animation: flutterWing 3.4s ease-in-out infinite;
}

.anim-gentle-bob {
  animation: bobSoft 4.6s ease-in-out infinite;
}

/* ==========================================================================
   RESPONSIF MOBILE
   ========================================================================== */
@media (max-width: 500px) {
  body {
    padding: 0;
    background: var(--bg-canvas);
  }

  .desktop-backdrop {
    display: none;
  }

  .invitation-shell {
    max-width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-item {
    font-size: 9.8px;
  }

  .sealed-envelope {
    width: 214px;
    height: 146px;
  }

  .landing-mushrooms {
    width: 122px;
    left: -6px;
  }

  .landing-fairy {
    width: 148px;
    right: -10px;
  }

  .opened-envelope {
    width: 174px;
    height: 118px;
  }

  .open-env-photo-wrap {
    height: 110px;
    top: -20px;
  }

  .registry-grid {
    grid-template-columns: 1fr;
  }
}
