/* ==========================================================================
   The Wedding of Raka & Nadya — Dusty Mauve & Antique Gold Editorial Theme
   Palette: Dusty Mauve, Silk Blush, Antique Wax Gold, Ivory Stationery
   ========================================================================== */

:root {
  --bg-outer: #ecd9de;
  --bg-mauve-soft: #e6d1d7;
  --bg-mauve-mid: #d7bcc4;
  --bg-ivory: #fdfbfa;
  --bg-paper: #faf6f2;
  --mauve-card: #b895a0;
  --mauve-env: #9e7b84;
  --mauve-env-deep: #85626c;
  --mauve-ink: #6f4e57;
  --ink-dark: #48383d;
  --ink-muted: #7a666c;
  --gold-light: #eddcb4;
  --gold-mid: #c9a667;
  --gold-deep: #9d7a3c;
  --border-hair: rgba(142, 105, 115, 0.28);
  --shadow-shell: 0 22px 60px rgba(78, 49, 58, 0.22);
  --shadow-card: 0 12px 28px rgba(85, 55, 64, 0.16);

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

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

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--ink-dark);
  background: radial-gradient(circle at 20% 15%, #f6e8ec 0%, var(--bg-outer) 52%, #dec5cc 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.36;
}

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

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

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

.wedding-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  height: min(880px, calc(100vh - 32px));
  background: var(--bg-mauve-soft);
  border-radius: 30px;
  box-shadow: var(--shadow-shell), 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   Navigasi Atas
   ========================================================================== */
.top-nav {
  position: relative;
  z-index: 30;
  height: 46px;
  flex-shrink: 0;
  background: rgba(251, 246, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  gap: 8px;
}

.wedding-shell.is-locked .top-nav {
  display: none;
}

.wedding-shell.is-locked .page-viewport {
  overflow-y: hidden;
}

.wedding-shell.is-locked .wed-section:not(.section-cover) {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.nav-item {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 2px;
  position: relative;
  transition: color 0.22s ease;
  white-space: nowrap;
}

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

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

.music-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mauve-ink);
  background: rgba(158, 123, 132, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

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

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

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

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

.music-btn.is-playing .icon-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(142, 105, 115, 0.45) transparent;
}

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

.page-viewport::-webkit-scrollbar-thumb {
  background: rgba(142, 105, 115, 0.45);
  border-radius: 99px;
}

.wed-section {
  display: block;
  scroll-margin-top: 0;
}

.section-cover {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.ed-section {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.closing-footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(158, 123, 132, 0.22);
  text-align: center;
}

.closing-note {
  font-size: 11px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 310px;
  margin: 0 auto 10px;
}

.closing-couple {
  font-size: 40px;
  color: var(--mauve-ink);
  margin-bottom: 14px;
}

.back-top-btn {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-ink);
  background: #f5ebee;
  border: 1px solid rgba(158, 123, 132, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.back-top-btn:hover {
  background: #ebdce1;
  transform: translateY(-1px);
}

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

/* ==========================================================================
   HALAMAN 1: SAMPUL AMPLOP DUSTY MAUVE & SEGEL EMAS
   ========================================================================== */
.cover-inner {
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 100%;
  min-height: 100%;
  padding: 36px 20px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 248, 250, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #e7d5da 0%, #d8bfc7 55%, #cfb1bb 100%);
}

.cover-corner-tl,
.cover-corner-br {
  position: absolute;
  width: 158px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
}

.cover-corner-tl {
  top: -34px;
  left: -40px;
}

.cover-corner-br {
  bottom: -36px;
  right: -38px;
}

.cover-kicker,
.cover-couple,
.cover-guest-pill,
.cover-envelope-stage,
.cover-open-cta {
  position: relative;
  z-index: 2;
}

.cover-kicker {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #fffaf9;
  text-shadow: 0 1px 6px rgba(105, 70, 80, 0.28);
  margin-bottom: 6px;
}

.cover-couple {
  font-size: clamp(48px, 12vw, 60px);
  color: #7c5963;
  text-shadow: 0 2px 12px rgba(255, 250, 251, 0.7);
  margin-bottom: 10px;
}

.cover-guest-pill {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--mauve-ink);
  background: rgba(255, 252, 252, 0.65);
  border: 1px solid rgba(158, 123, 132, 0.4);
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 12px;
}

.cover-envelope-stage {
  position: relative;
  width: 100%;
  max-width: 370px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 30px;
}

.cover-floral-tr {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 146px;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(90, 56, 65, 0.2));
}

.cover-floral-bl {
  position: absolute;
  bottom: -14px;
  left: -8px;
  width: 136px;
  transform: rotate(155deg);
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(90, 56, 65, 0.2));
}

/* Amplop Dusty Mauve Textured */
.mauve-envelope {
  position: relative;
  z-index: 4;
  width: 288px;
  height: 192px;
  background: linear-gradient(145deg, #ab8892 0%, #997680 55%, #896670 100%);
  border-radius: 4px;
  box-shadow:
    0 22px 40px rgba(72, 44, 52, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  perspective: 900px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mauve-envelope:hover {
  transform: translateY(-4px) scale(1.015);
}

.env-inner-card {
  position: absolute;
  inset: 12px 16px;
  background: linear-gradient(180deg, #fffdf9 0%, #f6efed 100%);
  border: 1px solid rgba(201, 166, 103, 0.45);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.env-card-kicker {
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.env-card-names {
  font-size: 30px;
  color: var(--mauve-ink);
  margin: 2px 0;
}

.env-card-date {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

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

.env-side-left {
  background: linear-gradient(135deg, #a6828c 0%, #93707a 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
  z-index: 2;
}

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

.env-side-bottom {
  background: linear-gradient(0deg, #8e6a74 0%, #a5828c 100%);
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
  z-index: 3;
  filter: drop-shadow(0 -2px 4px rgba(52, 28, 36, 0.2));
}

.env-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: linear-gradient(180deg, #b3909a 0%, #9a7781 100%);
  clip-path: polygon(0 0, 50% 98%, 100% 0);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 5px 8px rgba(52, 28, 36, 0.24));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Segel Lilin Emas Antik */
.gold-wax-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50% 48% 52% 49%;
  background: radial-gradient(circle at 32% 28%, #f4e2b4 0%, #cfa962 46%, #9b7434 100%);
  box-shadow:
    0 6px 14px rgba(64, 42, 18, 0.42),
    inset 0 2px 4px rgba(255, 248, 224, 0.75),
    inset 0 -3px 6px rgba(96, 66, 24, 0.55);
  z-index: 6;
  display: grid;
  place-items: center;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.wax-rim {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 243, 210, 0.52);
  box-shadow: inset 0 1px 3px rgba(102, 70, 26, 0.45);
}

.wax-monogram {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #69491a;
  text-shadow: 0 1px 0 rgba(255, 246, 218, 0.7);
}

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

.mauve-envelope.is-opening .gold-wax-seal {
  transform: translate(-50%, -90%) scale(0.7);
  opacity: 0;
}

.mauve-envelope.is-opening .env-inner-card {
  transform: translateY(-56px);
  z-index: 4;
}

.cover-open-cta {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fffdfb;
  text-shadow: 0 2px 10px rgba(92, 62, 71, 0.35);
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 251, 250, 0.7);
  transition: transform 0.25s ease, letter-spacing 0.25s ease;
}

.cover-open-cta:hover {
  transform: translateY(-2px);
  letter-spacing: 0.12em;
}

/* ==========================================================================
   HALAMAN 2: BERANDA KOLASE EDITORIAL (FLATLAY STORYBOOK)
   ========================================================================== */
.home-collage {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 248, 250, 0.48) 0%, transparent 45%),
    linear-gradient(180deg, #ead8dd 0%, #dfc8cf 65%, #d6bcc4 100%);
  padding: 14px 12px 0;
  position: relative;
}

/* Baris 1: Amplop Terbuka + Kartu Tanggal */
.collage-row-top {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  align-items: start;
  gap: 6px;
}

.floral-env-wrap {
  position: relative;
  z-index: 4;
  margin-left: -10px;
  margin-top: -4px;
}

.floral-env-img {
  width: 100%;
  max-width: 204px;
  filter: drop-shadow(0 12px 18px rgba(80, 50, 59, 0.22));
  transform: rotate(-4deg);
}

.date-paper-card {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, #fcf9f6 0%, #f5efe9 100%);
  border: 1px solid rgba(180, 149, 158, 0.35);
  border-radius: 3px;
  padding: 20px 14px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-top: 12px;
  transform: rotate(1.5deg);
}

.paper-ribbon-bow {
  position: absolute;
  top: -7px;
  right: 12px;
  width: 26px;
  height: 14px;
  background: linear-gradient(135deg, #ab8892 0%, #86626c 100%);
  border-radius: 99px 99px 4px 4px;
  transform: rotate(18deg);
  box-shadow: 0 3px 6px rgba(72, 44, 52, 0.22);
}

.date-day-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-dark);
  line-height: 1;
}

.date-month-script {
  font-size: 36px;
  color: var(--mauve-ink);
  margin: -2px 0;
}

.date-year {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-dark);
}

.date-sep {
  width: 34px;
  height: 1px;
  background: rgba(158, 123, 132, 0.45);
  margin: 9px auto;
}

.date-time {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mauve-ink);
  margin-bottom: 4px;
}

.date-venue {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.55;
  color: var(--ink-muted);
}

.date-card-floral {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 72px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(85, 55, 64, 0.18));
}

/* Baris 2: Kartu Mauve Resmi + Medali Bulat Detail */
.collage-row-mid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 8px;
  margin-top: -18px;
  position: relative;
  z-index: 5;
}

.mauve-formal-card {
  background: linear-gradient(155deg, #c7a6b0 0%, #b3909b 100%);
  padding: 8px;
  border-radius: 3px;
  box-shadow: 0 14px 28px rgba(76, 48, 56, 0.24);
  transform: rotate(-2.5deg);
}

.mauve-card-border {
  border: 1px solid rgba(255, 250, 248, 0.65);
  padding: 20px 12px 18px;
  text-align: center;
  color: #fffcfb;
}

.mauve-card-kicker {
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 10px;
}

.mauve-card-name {
  font-size: 38px;
  color: #fffdfb;
  line-height: 0.95;
  text-shadow: 0 1px 6px rgba(96, 62, 72, 0.25);
}

.mauve-card-amp {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  opacity: 0.9;
  margin: 2px 0;
}

.details-seal-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
}

.details-seal-btn {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b4909b 0%, #98737e 65%, #84606b 100%);
  box-shadow: 0 12px 24px rgba(72, 44, 52, 0.28);
  padding: 7px;
  display: grid;
  place-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  position: relative;
  z-index: 3;
}

.details-seal-btn:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 16px 30px rgba(72, 44, 52, 0.34);
}

.details-seal-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 248, 245, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fffcfb;
  text-align: center;
  padding: 6px;
}

.seal-script {
  font-family: var(--font-script);
  font-size: 24px;
  line-height: 1;
}

.seal-upper {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.mid-floral-accent {
  position: absolute;
  bottom: -24px;
  right: -12px;
  width: 82px;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}

/* Baris 3: Nampan Emas Antik Berisi Kartu RSVP */
.collage-row-tray {
  display: flex;
  justify-content: flex-start;
  padding-left: 8px;
  margin-top: -12px;
  position: relative;
  z-index: 6;
}

.gold-tray-rsvp-btn {
  position: relative;
  width: 244px;
  display: block;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

.gold-tray-rsvp-btn:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 14px 20px rgba(82, 54, 40, 0.28));
}

.gold-tray-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(70, 46, 36, 0.25));
}

.tray-rsvp-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  width: 54%;
  background: linear-gradient(180deg, #fffdf9 0%, #f5eee8 100%);
  border: 1px solid rgba(186, 152, 102, 0.55);
  border-radius: 3px;
  padding: 10px 8px 9px;
  box-shadow: 0 5px 12px rgba(72, 48, 36, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tray-rsvp-mini {
  font-family: var(--font-script);
  font-size: 16px;
  color: var(--mauve-ink);
  line-height: 1;
}

.tray-rsvp-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-dark);
  line-height: 1.05;
  margin-top: 1px;
}

.tray-rsvp-tap {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-top: 3px;
  border-top: 1px solid rgba(186, 152, 102, 0.45);
  padding-top: 3px;
}

/* Baris 4: 3 Polaroid Prewedding + Cincin Emas */
.collage-row-polaroids {
  position: relative;
  margin-top: 8px;
  padding: 6px 4px 10px;
}

.polaroid-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

.mini-polaroid {
  background: #fffdfb;
  padding: 6px 6px 18px;
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(72, 44, 52, 0.24);
  width: 124px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.1s;
  position: relative;
}

.mini-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1px;
}

.pol-note {
  display: block;
  font-family: var(--font-script);
  font-size: 16px;
  color: var(--mauve-ink);
  text-align: center;
  margin-top: 4px;
  line-height: 1;
}

.pol-1 {
  transform: rotate(-7deg) translateX(12px);
  z-index: 2;
}

.pol-2 {
  transform: rotate(3deg) translateY(-6px);
  z-index: 3;
}

.pol-3 {
  transform: rotate(7deg) translateX(-10px);
  z-index: 4;
}

.mini-polaroid:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.06);
  z-index: 10;
}

.flatlay-rings {
  position: absolute;
  left: 22px;
  bottom: -6px;
  width: 78px;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(72, 46, 26, 0.28));
}

.flatlay-floral-br {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 96px;
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
}

.polaroid-hint {
  text-align: center;
  font-size: 9.5px;
  color: var(--mauve-ink);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* Banner Hitung Mundur Silk Mauve */
.silk-countdown-banner {
  position: relative;
  margin: 0 -12px;
  padding: 20px 14px 22px;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.silk-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.2px) saturate(0.95);
  transform: scale(1.06);
}

.silk-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(168, 130, 141, 0.56) 0%, rgba(132, 95, 106, 0.68) 100%);
}

.silk-countdown-content {
  position: relative;
  z-index: 2;
  color: #fffdfb;
}

.silk-cd-title {
  font-size: 28px;
  color: #fffdfb;
  text-shadow: 0 2px 8px rgba(74, 46, 54, 0.35);
  margin-bottom: 6px;
}

.silk-cd-digits {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

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

.scd-val {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(68, 42, 50, 0.35);
}

.scd-lbl {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.92;
  margin-top: 4px;
}

.scd-sep {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.05;
  opacity: 0.82;
}

/* ==========================================================================
   HALAMAN 3: DETAIL PERNIKAHAN (KOLOM EDITORIAL LENGKAP)
   ========================================================================== */
.editorial-hero-banner {
  position: relative;
  padding: 24px 18px 26px;
  text-align: center;
  overflow: hidden;
  border-top: 2px solid rgba(253, 251, 250, 0.65);
}

.editorial-hero-inner {
  position: relative;
  z-index: 2;
  color: #fffdfb;
}

.hero-back-link {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 251, 250, 0.92);
  margin-bottom: 10px;
  display: inline-block;
}

.hero-serif-kicker {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.95;
}

.hero-script-title {
  font-size: clamp(38px, 10vw, 48px);
  color: #fffdfb;
  text-shadow: 0 2px 10px rgba(74, 46, 54, 0.35);
  margin-top: 2px;
}

.editorial-body {
  position: relative;
  overflow: hidden;
  background: var(--bg-ivory);
  padding: 28px 22px 38px;
  text-align: center;
}

.ed-orn {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}

.ed-orn-tr {
  top: -18px;
  right: -46px;
  width: 144px;
}

.ed-orn-ml {
  top: 23%;
  left: -58px;
  width: 148px;
}

.ed-orn-mr {
  top: 47%;
  right: -56px;
  width: 146px;
}

.ed-orn-bl {
  top: 71%;
  left: -54px;
  width: 142px;
}

.ed-orn-br {
  bottom: -18px;
  right: -44px;
  width: 138px;
}

.ed-section,
.ed-footer {
  position: relative;
  z-index: 2;
}

.ed-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(158, 123, 132, 0.18);
}

.ed-section:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}

.ed-lead {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-dark);
  max-width: 340px;
  margin: 0 auto 14px;
}

.ed-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mauve-ink);
  background: #f8f2f4;
  border-radius: 10px;
  padding: 14px 16px;
}

.ed-verse span {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.ed-script-head {
  font-size: 36px;
  color: var(--mauve-ink);
  margin-bottom: 8px;
}

.ed-sub-date {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.ed-sub-bold {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 6px;
}

.ed-text {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 350px;
  margin: 0 auto;
}

.couple-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.couple-bio-card {
  background: #faf5f6;
  border: 1px solid rgba(158, 123, 132, 0.24);
  border-radius: 10px;
  padding: 14px 10px;
}

.bio-role {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mauve-env);
  margin-bottom: 5px;
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 5px;
}

.bio-parents {
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ed-btn-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-mauve-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b08d97 0%, #96727d 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(133, 98, 108, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-mauve-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.btn-mauve-outline:hover {
  background: #f5ebee;
}

/* Timeline Vertikal Minimalis seperti Referensi */
.wedding-timeline {
  position: relative;
  max-width: 310px;
  margin: 0 auto;
  padding: 6px 0;
}

.wedding-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(158, 123, 132, 0.42);
  transform: translateX(-50%);
}

.tl-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  min-height: 58px;
}

.tl-side {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.tl-left {
  align-items: flex-end;
  text-align: right;
}

.tl-right {
  align-items: flex-start;
  text-align: left;
}

.tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mauve-env);
  margin: 0 auto;
  box-shadow: 0 0 0 3px var(--bg-ivory);
  position: relative;
  z-index: 2;
}

.tl-time {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mauve-ink);
}

.tl-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-dark);
}

.tl-icon {
  width: 32px;
  height: 32px;
  color: var(--mauve-ink);
}

/* Akomodasi */
.stay-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.stay-item {
  padding: 0 6px;
}

.stay-name {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-dark);
}

.stay-note {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin: 2px 0 8px;
}

.btn-mauve-mini {
  display: inline-block;
  background: var(--mauve-card);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn-mauve-mini:hover {
  background: var(--mauve-env-deep);
}

/* Swatches Dress Code */
.dress-swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.swatch-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(72, 44, 52, 0.2);
  transition: transform 0.2s ease;
}

.swatch-dot:hover,
.swatch-dot.is-picked {
  transform: scale(1.16);
}

.swatch-caption {
  margin-top: 8px;
  font-size: 10px;
  color: var(--mauve-ink);
  font-weight: 500;
}

/* Amplop Digital Drawer */
.gift-drawer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  animation: pageReveal 0.35s ease both;
}

.gift-drawer[hidden] {
  display: none;
}

.gift-bank-card {
  background: #faf5f6;
  border: 1px solid rgba(158, 123, 132, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bank-name {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-ink);
}

.bank-num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: 0.05em;
}

.bank-holder {
  font-size: 10.5px;
  color: var(--ink-muted);
}

.btn-copy-bank {
  background: var(--mauve-env);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* FAQ 2 Kolom */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  text-align: center;
}

.faq-item h4 {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.ed-footer {
  padding-top: 8px;
}

.ed-footer-note {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.ed-rsvp-footer-link {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mauve-ink);
  border-bottom: 1px solid var(--mauve-env);
  padding-bottom: 3px;
}

/* ==========================================================================
   HALAMAN 4: RSVP EDITORIAL
   ========================================================================== */
.rsvp-editorial-body {
  position: relative;
  overflow: hidden;
  background: var(--bg-ivory);
  padding: 24px 20px 36px;
  text-align: center;
}

.rsvp-orn-tl {
  position: absolute;
  top: -16px;
  left: -50px;
  width: 136px;
  opacity: 0.36;
  pointer-events: none;
  z-index: 1;
}

.rsvp-orn-mr {
  position: absolute;
  top: 46%;
  right: -54px;
  width: 138px;
  opacity: 0.34;
  pointer-events: none;
  z-index: 1;
}

.rsvp-badge-scene,
.rsvp-intro-note,
.rsvp-form,
.rsvp-confirmed,
.wishes-section {
  position: relative;
  z-index: 2;
}

.closing-footer {
  position: relative;
  margin-top: 30px;
  padding: 28px 10px 18px;
  border-top: 1px solid rgba(158, 123, 132, 0.22);
  text-align: center;
  z-index: 2;
}

.closing-content {
  position: relative;
  z-index: 2;
}

.closing-floral-bl,
.closing-floral-br {
  position: absolute;
  bottom: -36px;
  width: 126px;
  opacity: 0.62;
  pointer-events: none;
  z-index: 1;
}

.closing-floral-bl {
  left: -34px;
}

.closing-floral-br {
  right: -34px;
}

.rsvp-badge-scene {
  position: relative;
  width: 210px;
  margin: 0 auto 14px;
  padding: 8px 0;
}

.rsvp-layered-card {
  position: relative;
  background: #f5eff1;
  border: 1px solid rgba(158, 123, 132, 0.35);
  border-radius: 3px;
  padding: 16px 20px 14px;
  box-shadow: 10px 6px 0 var(--mauve-card);
  text-align: center;
}

.mini-gold-seal {
  position: absolute;
  left: -14px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4e2b4 0%, #c69f58 55%, #957031 100%);
  color: #634417;
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(72, 46, 20, 0.3);
}

.rsvp-badge-top,
.rsvp-badge-bot {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mauve-ink);
}

.rsvp-badge-script {
  font-size: 38px;
  color: var(--ink-dark);
  line-height: 0.9;
  margin: 2px 0;
}

.rsvp-badge-floral {
  position: absolute;
  right: -28px;
  bottom: -14px;
  width: 84px;
  pointer-events: none;
}

.rsvp-intro-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 330px;
  margin: 0 auto 20px;
}

.rsvp-form {
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

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

.rf-fieldset {
  border: none;
}

.rf-field label,
.rf-fieldset legend {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-dark);
  margin-bottom: 6px;
}

.rf-field input[type="text"],
.rf-field select,
.rf-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-dark);
  background: #f9f5f6;
  border: 1px solid rgba(158, 123, 132, 0.32);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rf-field input[type="text"]:focus,
.rf-field select:focus,
.rf-field textarea:focus {
  border-color: var(--mauve-env);
  background: #fff;
}

.rf-error {
  display: block;
  font-size: 10px;
  color: #b44354;
  margin-top: 4px;
  min-height: 14px;
}

.rf-choice {
  display: flex !important;
  align-items: center;
  gap: 9px;
  background: #f5eef0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 6px !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.rf-choice:has(input:checked) {
  background: #efe2e6;
  border-color: var(--mauve-env);
}

.rf-choice input {
  accent-color: var(--mauve-ink);
}

.btn-mauve-submit {
  width: 100%;
  background: linear-gradient(135deg, #b895a0 0%, #98737e 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px;
  border-radius: 7px;
  margin-top: 4px;
  box-shadow: 0 8px 18px rgba(133, 98, 108, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-mauve-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.rsvp-confirmed {
  background: #faf5f6;
  border: 1px solid rgba(158, 123, 132, 0.35);
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 18px;
}

.confirmed-monogram {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2dfb0 0%, #c69f58 100%);
  color: #634417;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.confirmed-title {
  font-size: 38px;
  color: var(--mauve-ink);
}

.confirmed-msg {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-dark);
  margin: 6px 0 16px;
}

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

.wishes-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(158, 123, 132, 0.2);
}

.wishes-heading {
  font-size: 32px;
  color: var(--mauve-ink);
  margin-bottom: 12px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.wish-card {
  background: #faf5f6;
  border: 1px solid rgba(158, 123, 132, 0.24);
  border-radius: 8px;
  padding: 11px 13px;
}

.wish-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wish-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-dark);
}

.wish-pill {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: #ede0e4;
  color: var(--mauve-ink);
  padding: 2px 8px;
  border-radius: 99px;
}

.wish-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ==========================================================================
   MODAL LIGHTBOX GALERI PREWEDDING
   ========================================================================== */
.lightbox-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 34, 40, 0.78);
  backdrop-filter: blur(6px);
}

.lb-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  background: var(--bg-ivory);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 22px 50px rgba(34, 18, 24, 0.4);
  animation: pageReveal 0.25s ease both;
}

.lb-close {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mauve-ink);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  z-index: 5;
}

.lb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eee4e7;
}

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

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 252, 251, 0.88);
  color: var(--ink-dark);
  font-size: 22px;
  display: grid;
  place-items: center;
}

.lb-prev {
  left: 8px;
}

.lb-next {
  right: 8px;
}

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

.lb-counter {
  font-size: 10px;
  font-weight: 600;
  color: var(--mauve-env);
}

.lb-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-top: 2px;
}

.lb-caption {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* ==========================================================================
   TOAST & ANIMASI
   ========================================================================== */
.wedding-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: rgba(72, 56, 61, 0.94);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swayGentle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes swayRev {
  0%,
  100% {
    transform: rotate(155deg);
  }
  50% {
    transform: rotate(152deg);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0px);
  }
  50% {
    transform: rotate(-3deg) translateY(-5px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(158, 123, 132, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(158, 123, 132, 0);
  }
}

.anim-sway {
  animation: swayGentle 5.5s ease-in-out infinite;
}

.anim-sway-rev {
  animation: swayRev 6s ease-in-out infinite;
}

.anim-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

/* Animasi Muncul Pelan dari Bawah ke Atas (Scroll Reveal) */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 1.28s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .desktop-backdrop {
    display: none;
  }

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

  .mauve-envelope {
    width: 266px;
    height: 176px;
  }

  .mini-polaroid {
    width: 112px;
  }

  .couple-bio-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
