/* ==========================================================================
   UNDANGAN MEPANDES — PRAMJAYA & AGUNGFERNANDO
   Cover: Pohon Bergerak & Kertas Vintage Realistis (Sama dengan Cover Wedding)
   Page 2: Latar mepandes (1) copy.png s/d mepandes (3) copy.png & Tipografi Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Cormorant+Upright:wght@500;600;700&family=Great+Vibes&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* Palet Utama Cream / Ivory Klasik & Emas Bali */
  --cream-50:  #FDF9F1;
  --cream-100: #F7EFE0;
  --cream-200: #EFE2CA;
  --peach-200: #EBC9A0;

  /* Emas Bali */
  --gold-200: #F4DFB0;
  --gold-300: #E3B766;
  --gold-500: #C58A3C;
  --gold-600: #A87020;
  --gold-700: #875510;
  --gold-800: #633B06;
  --gold-gradient: linear-gradient(135deg, #F7DFA5 0%, #C58A3C 50%, #8F6A15 100%);
  --gold-foil-text: linear-gradient(145deg, #3D2102 0%, #8C5A10 24%, #C98E2B 48%, #734609 74%, #331A01 100%);

  /* Kertas Surat Vintage & Tinta Cokelat Espresso */
  --paper:             #EFE0C4;
  --paper-mid:         #E2C99F;
  --paper-edge:        #C59F6E;
  --ink-cocoa-deep:    #361F10;
  --cocoa-900:         #2B1A0E;
  --cocoa-800:         #3B2618;
  --cocoa-600:         #5C402C;
  --cocoa-500:         #785942;

  /* Tipografi */
  --font-cover:     'Great Vibes', 'Pinyon Script', cursive;
  --font-aesthetic: 'Great Vibes', 'Alex Brush', cursive;
  --font-royal:     'Cinzel Decorative', 'Cormorant Upright', serif;
  --font-display:   'Playfair Display', serif;
  --font-body:      'Cormorant Garamond', 'Poppins', serif;
  --font-sans:      'Poppins', sans-serif;

  /* Animasi */
  --ease-out:     cubic-bezier(.22, 1, .36, 1);
  --ease-inout:   cubic-bezier(.65, 0, .35, 1);
  --ease-write:   cubic-bezier(.4, 0, .2, 1);
  --ease-settle:  cubic-bezier(.34, 1.3, .64, 1);

  --max-w: 480px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--cocoa-900);
  background-color: #241911;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(197, 138, 60, 0.22), transparent 70%),
    radial-gradient(circle at 50% 100%, rgba(59, 42, 30, 0.35), transparent 70%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  line-height: 1.6;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Outer Mobile-First Viewport on Desktop */
.app-viewport {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  background-color: var(--cream-50);
  position: relative;
  box-shadow: 0 0 55px rgba(0, 0, 0, 0.55), 0 0 20px rgba(197, 138, 60, 0.25);
  overflow-x: hidden;
}

.bg-texture-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(#9e7518 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* ==========================================================================
   1. SAMPUL UNDANGAN (COVER SECTION — SAMA DENGAN WEDDING)
   ========================================================================== */
.cover {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 1000;
  background-color: var(--cream-50);
  user-select: none;
  cursor: pointer;
}

.cover .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  transform-origin: 50% 40%;
  will-change: transform, opacity, filter;
}

.cover .shine {
  position: absolute;
  inset: 0 0 auto 0;
  height: 17vw;
  max-height: 120px;
  z-index: 5;
  background: linear-gradient(100deg, transparent 35%, var(--gold-300) 50%, transparent 65%);
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
}

/* TREE FRAME: POHON MUNCUL DARI KIRI & KANAN + BERGOYANG KONTINU */
.tree-curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.tree-wing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 16;
  will-change: transform, opacity;
}

.tree-slot {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.tree-sway {
  width: 100%;
  height: 100%;
  transform-origin: 48% 92%;
  will-change: transform;
}

.tree-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(43, 29, 20, 0.24));
}

.tree-img--flip {
  transform: scaleX(-1);
}

.tree-slot--left-back {
  width: 84%;
  bottom: 24%;
  left: -46%;
  z-index: 1;
}

.tree-slot--left-mid {
  width: 74%;
  bottom: 14%;
  left: -38%;
  z-index: 2;
}

.tree-slot--left-low {
  width: 64%;
  bottom: 5%;
  left: -32%;
  z-index: 3;
}

.tree-slot--right-back {
  width: 84%;
  bottom: 24%;
  right: -46%;
  z-index: 1;
}

.tree-slot--right-mid {
  width: 74%;
  bottom: 14%;
  right: -38%;
  z-index: 2;
}

.tree-slot--right-low {
  width: 64%;
  bottom: 5%;
  right: -32%;
  z-index: 3;
}

.tree-curtain__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  pointer-events: none;
  z-index: 18;
}

.cover .fg {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.cover .fg img {
  width: 100%;
  height: auto;
  display: block;
}

.cover .fg--bc {
  left: 50%;
  bottom: -10vw;
  transform: translateX(-50%);
  width: 44vw;
  max-width: 220px;
  z-index: 10;
  transform-origin: 50% 100%;
}

.cover .fg--bl {
  left: -14vw;
  bottom: -6vw;
  width: 62vw;
  max-width: 300px;
  z-index: 12;
  transform-origin: 0% 100%;
}

.cover .fg--br {
  right: -16vw;
  bottom: -8vw;
  width: 66vw;
  max-width: 320px;
  z-index: 12;
  transform-origin: 100% 100%;
}

/* Daun Melayang */
.cover .drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14;
  overflow: hidden;
}

.drift-leaf {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Animasi Tulisan Tangan Nama di Kertas */
.letter__names .w {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
  -webkit-mask-size: 250% 100%;
          mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transform: translateY(6px);
}

.letter__names .w.is-writing {
  animation: writeName var(--dur, 1100ms) var(--ease-write) var(--delay, 0ms) forwards;
}

@keyframes writeName {
  to {
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
    transform: translateY(0);
  }
}

.w--1 { --dur: 1100ms; --delay: 0ms; }
.w--amp { --dur: 400ms; --delay: 1100ms; font-size: 0.72em; margin: 0.02em 0; }
.w--2 { --dur: 1100ms; --delay: 1500ms; }

.letter__leafshadow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 90%;
  aspect-ratio: 1;
  background: url('assets/leave3.webp') center / contain no-repeat;
  filter: brightness(0) blur(7px);
  opacity: .11;
  mix-blend-mode: multiply;
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 4;
}

.letter-flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 22;
}

.letter-flower {
  position: absolute;
  display: block;
}

.flower--tl { top: -6%; left: -14%; width: 34%; }
.flower--br { bottom: -4%; right: -12%; width: 30%; }
.flower--bl { bottom: 6%; left: -16%; width: 24%; }

.cover .ink {
  position: absolute;
  bottom: -8%;
  right: -22%;
  width: 16vw;
  max-width: 75px;
  transform: rotate(8deg);
  z-index: 24;
  pointer-events: none;
  will-change: transform;
}

/* Tombol Buka Undangan */
.cover .cta {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: max-content;
  bottom: calc(16vh);
  background: var(--cocoa-800);
  color: var(--cream-50);
  border: 1px solid var(--gold-500);
  height: 44px;
  border-radius: 999px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 15px rgba(43, 29, 20, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  outline: none;
}

.cover .cta:hover,
.cover .cta:focus {
  background: var(--cocoa-900);
  border-color: var(--gold-300);
  transform: scale(0.97);
}

.cover .cta.is-ready {
  animation: ctaPulse 2800ms ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 138, 60, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(197, 138, 60, 0.24); }
}

.cover .veil {
  position: absolute;
  inset: 0;
  background: var(--cream-100);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.8s var(--ease-inout);
}

/* Idle Cover Animations */
.cover.is-idle .fg--bl { animation: swayBL 5.5s ease-in-out infinite alternate; }
.cover.is-idle .fg--br { animation: swayBR 7s ease-in-out infinite alternate; }
.cover.is-idle .fg--bc { animation: swayBC 6.2s ease-in-out infinite alternate; }
.cover.is-idle .letter-wrapper { animation: floatPaper 6s ease-in-out infinite alternate; }
.cover.is-idle .ink { animation: wobbleInk 5s ease-in-out infinite alternate; }

@keyframes swayBL {
  0%   { transform: rotate(-1.2deg); }
  100% { transform: rotate(1.2deg); }
}
@keyframes swayBR {
  0%   { transform: rotate(1.2deg); }
  100% { transform: rotate(-1.2deg); }
}
@keyframes swayBC {
  0%   { transform: translateX(-50%) translateY(0px) rotate(-0.8deg); }
  100% { transform: translateX(-50%) translateY(-3px) rotate(0.8deg); }
}
@keyframes floatPaper {
  0%   { transform: translate(-50%, -50%) translateY(0px) rotate(-1.2deg); }
  100% { transform: translate(-50%, -50%) translateY(-3px) rotate(-0.9deg); }
}
@keyframes wobbleInk {
  0%   { transform: rotate(7deg) translateY(0); }
  100% { transform: rotate(9.5deg) translateY(-2px); }
}

/* ==========================================================================
   FLOATING MUSIC DISC CONTROLLER (BACKSOUND)
   ========================================================================== */
.music-controller {
  position: fixed;
  bottom: 24px;
  right: calc(50% - (var(--max-w) / 2) + 18px);
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 4px 18px rgba(43, 26, 14, 0.35), 0 0 14px rgba(197, 138, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--cream-50);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7);
}

@media (max-width: 480px) {
  .music-controller {
    right: 18px;
  }
}

.music-controller.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.music-controller .disc-icon {
  width: 22px;
  height: 22px;
  fill: var(--cocoa-900);
}

.music-controller.playing .disc-icon {
  animation: spinDisc 5s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   PAGE 2: LATAR ILUSTRASI EMAS BALI (mepandes (1) copy.png s/d (3) copy.png)
   ========================================================================== */
.page-content {
  position: relative;
  z-index: 10;
  background-color: var(--cream-50);
  overflow: hidden;
}

/* Scene Background Layer (mepandes (2) copy.png & mepandes (3) copy.png) */
.scene-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scene-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.36;
  filter: contrast(1.04) saturate(1.08);
}

.scene-bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(253, 249, 241, 0.50) 0%, rgba(247, 239, 224, 0.78) 72%, rgba(247, 239, 224, 0.92) 100%);
}

.scene-bg__veil--soft {
  background:
    linear-gradient(180deg, rgba(253, 249, 241, 0.72) 0%, rgba(247, 239, 224, 0.58) 50%, rgba(253, 249, 241, 0.78) 100%);
}

/* Ornamen Sudut Karang Boma */
.bhoma-corner {
  position: absolute;
  width: 105px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 0.90;
  filter: drop-shadow(0 2px 6px rgba(99, 59, 6, 0.18));
}

.bhoma-corner--tl {
  top: 10px;
  left: 10px;
  transform: scaleY(-1);
}

.bhoma-corner--tr {
  top: 10px;
  right: 10px;
  transform: scale(-1, -1);
}

.gold-ornament-divider {
  display: block;
  width: 165px;
  height: auto;
  margin: 12px auto 18px;
  filter: drop-shadow(0 1px 2px rgba(99, 59, 6, 0.18));
}

/* Aksara Bali Images (Om Swastiastu & Om Shanti Shanti Shanti Om) */
.aksara-bali-img {
  display: block;
  width: min(68%, 220px);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 1px 1px rgba(255, 252, 242, 0.9));
}

.aksara-bali-santi {
  display: block;
  width: min(78%, 260px);
  height: auto;
  margin: 10px auto 4px;
  filter: drop-shadow(0 1px 1px rgba(255, 252, 242, 0.9));
}

/* ==========================================================================
   2. HERO SECTION MEPANDES (BINGKAI OVAL EMAS mepandes (1) copy.png)
   ========================================================================== */
.mepandes-hero {
  position: relative;
  min-height: 100vh;
  padding: 54px 20px 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.mepandes-hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bingkai Oval Ukiran Emas Utama (mepandes (1) copy.png) */
.royal-oval-mirror {
  position: relative;
  width: min(84vw, 315px);
  aspect-ratio: 518 / 898;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 8px;
  padding: 24% 21%;
}

.royal-oval-mirror::before {
  content: "";
  position: absolute;
  inset: 11% 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 252, 245, 0.95) 0%, rgba(246, 234, 208, 0.90) 78%, transparent 100%);
  box-shadow: 0 10px 30px rgba(92, 54, 10, 0.14);
  z-index: 1;
}

.royal-oval-mirror__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(84, 48, 8, 0.24));
}

.royal-oval-mirror__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 170px;
}

.mirror-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 6px;
}

.mirror-title {
  font-family: var(--font-aesthetic);
  font-size: clamp(2.35rem, 9.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.08;
  background: var(--gold-foil-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 252, 242, 0.92))
    drop-shadow(0 2px 4px rgba(68, 38, 6, 0.22));
  padding: 2px 6px;
}

.mirror-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 75%;
  margin: 8px auto 10px;
  color: var(--gold-600);
  font-size: 0.75rem;
}

.mirror-line span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 112, 32, 0.75), transparent);
}

.mirror-date {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cocoa-900);
}

/* Countdown Timer */
.countdown-wrapper {
  width: 100%;
  margin-bottom: 18px;
}

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

.countdown-item {
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.95) 0%, rgba(243, 229, 202, 0.95) 100%);
  border: 1.5px solid rgba(184, 126, 42, 0.60);
  border-radius: 10px;
  padding: 10px 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 14px rgba(84, 50, 10, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-800);
}

.countdown-lbl {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cocoa-600);
  margin-top: 3px;
}

/* Tombol Emas Utama & Outline */
.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8F5C10 0%, #C58A3C 50%, #784B08 100%);
  color: #FFFDF8;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #F7DFA5;
  box-shadow: 0 6px 18px rgba(99, 59, 6, 0.28);
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 59, 6, 0.38);
}

.btn-gold-primary svg,
.btn-gold-outline svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.95);
  color: var(--gold-800);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 4px 12px rgba(99, 59, 6, 0.12);
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold-outline:hover {
  background: var(--cream-200);
}

.hero-bottom-gate {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 0.94;
}

/* ==========================================================================
   SECTIONS & KARTU ORNAMEN BALI (.mepandes-section & .mepandes-card)
   ========================================================================== */
.mepandes-section {
  position: relative;
  padding: 32px 18px;
  overflow: hidden;
}

.mepandes-card {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 253, 248, 0.92) 0%, rgba(249, 241, 225, 0.90) 100%);
  backdrop-filter: blur(3px);
  border: 1.5px solid rgba(186, 130, 46, 0.60);
  border-radius: 18px;
  padding: 36px 20px 32px;
  text-align: center;
  box-shadow:
    inset 0 0 0 4px rgba(255, 252, 244, 0.75),
    inset 0 0 0 5px rgba(186, 130, 46, 0.30),
    0 14px 34px rgba(72, 42, 10, 0.12);
  overflow: hidden;
}

.card-corner {
  position: absolute;
  width: 78px;
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}

.card-corner--tl {
  top: 6px;
  left: 6px;
  transform: scaleY(-1);
}

.card-corner--tr {
  top: 6px;
  right: 6px;
  transform: scale(-1, -1);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 4px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-800);
  line-height: 1.2;
}

.invitation-intro-text {
  font-size: 1.04rem;
  color: var(--cocoa-800);
  max-width: 380px;
  margin: 0 auto 20px;
  line-height: 1.65;
}

/* ==========================================================================
   3. PROFIL MEPANDES — FONT AESTHETIC TANPA FOTO & TANPA NAMA KELUARGA
   ========================================================================== */
.aesthetic-names-showcase {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.96) 0%, rgba(245, 232, 204, 0.96) 55%, rgba(235, 214, 175, 0.96) 100%);
  border: 1.5px solid rgba(176, 118, 32, 0.68);
  border-radius: 16px;
  padding: 34px 18px 32px;
  margin: 8px auto 18px;
  box-shadow:
    inset 0 0 0 4px rgba(255, 252, 245, 0.85),
    inset 0 0 0 5px rgba(176, 118, 32, 0.32),
    0 12px 28px rgba(78, 46, 8, 0.14);
  overflow: hidden;
}

.showcase-oval-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  max-width: 260px;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.participant-aesthetic-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.participant-ornament {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold-600);
  margin-bottom: 10px;
}

.participant-ornament--bottom {
  margin-bottom: 0;
  margin-top: 10px;
}

/* Font Kaligrafi Aesthetic untuk Nama Peserta Mepandes */
.aesthetic-person-name {
  font-family: var(--font-aesthetic);
  font-size: clamp(2.05rem, 7.6vw, 2.55rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.02em;
  word-spacing: 0.14em;
  background: linear-gradient(
    145deg,
    #361D02 0%,
    #784B08 22%,
    #BA7F1E 45%,
    #5E3804 65%,
    #AC7418 82%,
    #2E1801 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 250, 238, 0.92))
    drop-shadow(0 2px 3px rgba(54, 31, 16, 0.22));
  padding: 4px 6px;
}

.aesthetic-ampersand-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 72%;
  margin: 12px auto;
}

.amp-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 112, 32, 0.75), transparent);
}

.aesthetic-ampersand {
  font-family: var(--font-aesthetic);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-600);
  text-shadow: 0 1px 0 rgba(255, 250, 238, 0.9);
}

/* ==========================================================================
   4. DOA & KUTIPAN SUCI MAKNA MEPANDES
   ========================================================================== */
.sacred-sloka {
  background: rgba(244, 229, 198, 0.58);
  border-left: 3px solid var(--gold-600);
  border-right: 3px solid var(--gold-600);
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 16px;
}

.sacred-sloka__sanskrit {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--gold-800);
  margin-bottom: 8px;
  line-height: 1.5;
}

.sacred-sloka__translation {
  font-size: 0.98rem;
  color: var(--cocoa-800);
  margin-bottom: 8px;
  line-height: 1.55;
}

.sacred-sloka__source {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-700);
  font-style: normal;
}

.sad-ripu-box {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.92) 0%, rgba(243, 229, 200, 0.75) 100%);
  border: 1px dashed rgba(168, 112, 32, 0.55);
  border-radius: 10px;
  padding: 15px 16px;
}

.sad-ripu-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-800);
  margin-bottom: 6px;
}

.sad-ripu-desc {
  font-size: 0.95rem;
  color: var(--cocoa-800);
  line-height: 1.58;
}

/* ==========================================================================
   5. INFO ACARA, GOOGLE MAPS & DENAH LOKASI
   ========================================================================== */
.event-intro-note {
  font-size: 0.98rem;
  color: var(--cocoa-600);
  margin-bottom: 12px;
}

.event-date-highlight {
  background: linear-gradient(145deg, #6E460B 0%, #9E6818 50%, #593605 100%);
  color: #FFFDF8;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
  border: 1.5px solid #F2D694;
  box-shadow: 0 10px 24px rgba(84, 48, 6, 0.22);
}

.event-day-name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-200);
  margin-bottom: 4px;
}

.event-date-numbers {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: #FFFFFF;
}

.event-month-year {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--gold-200);
  margin-top: 2px;
}

.event-time-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 360px) {
  .event-time-cards {
    grid-template-columns: 1fr;
  }
}

.event-time-item {
  background: linear-gradient(165deg, #FFFDF8 0%, #F4E6C9 100%);
  border: 1px solid rgba(176, 118, 32, 0.55);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-time-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-700);
}

.event-time-clock {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cocoa-900);
}

.event-location-panel {
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid rgba(176, 118, 32, 0.45);
  border-radius: 14px;
  padding: 20px 14px 16px;
}

.location-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 10px rgba(99, 59, 6, 0.2);
}

.location-icon-circle svg {
  width: 18px;
  height: 18px;
  fill: var(--cocoa-900);
}

.location-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-800);
  margin-bottom: 6px;
}

.location-address {
  font-size: 0.98rem;
  color: var(--cocoa-800);
  line-height: 1.55;
  margin-bottom: 14px;
}

.maps-embed-container {
  width: 100%;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(176, 118, 32, 0.55);
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.maps-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.denah-preview-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(176, 118, 32, 0.55);
  background: #1d1610;
  cursor: pointer;
  transition: var(--transition);
}

.denah-preview-card:hover {
  transform: scale(1.01);
}

.denah-preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

.denah-zoom-hint {
  display: block;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--gold-200);
  background: rgba(36, 24, 14, 0.92);
}

/* ==========================================================================
   6. KONFIRMASI TAMU (RSVP) & KOLOM UCAPAN
   ========================================================================== */
.rsvp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.rsvp-stat-box {
  background: #FFFDF8;
  border: 1px solid rgba(176, 118, 32, 0.45);
  border-radius: 10px;
  padding: 10px 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-number.total   { color: var(--gold-700); }
.stat-number.present { color: #2E6F40; }
.stat-number.absent  { color: #A63A3A; }
.stat-number.unsure  { color: #B87D14; }

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--cocoa-600);
  margin-top: 3px;
}

.rsvp-form {
  text-align: left;
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cocoa-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1.5px solid rgba(176, 118, 32, 0.48);
  background: #FFFDF9;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cocoa-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(197, 138, 60, 0.18);
}

.segmented-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: 8px;
  border: 1.5px solid rgba(176, 118, 32, 0.45);
  background: #FFFDF9;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cocoa-800);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.radio-card input[type="radio"]:checked + .radio-label {
  background: linear-gradient(135deg, #8F5C10 0%, #C58A3C 100%);
  color: #FFFDF8;
  border-color: var(--gold-700);
  box-shadow: 0 4px 10px rgba(99, 59, 6, 0.22);
}

.btn-submit-full {
  width: 100%;
  margin-top: 4px;
}

/* Daftar Kolom Ucapan */
.wishes-board {
  border-top: 1px solid rgba(176, 118, 32, 0.35);
  padding-top: 18px;
  text-align: left;
}

.wishes-board-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-800);
  text-align: center;
  margin-bottom: 12px;
}

.wishes-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.wish-empty {
  text-align: center;
  padding: 24px 14px;
  color: var(--cocoa-600);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  background: rgba(255, 253, 249, 0.65);
  border: 1px dashed rgba(176, 118, 32, 0.35);
  border-radius: 10px;
}

.wish-item {
  background: #FFFDF9;
  border: 1px solid rgba(176, 118, 32, 0.38);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 3px 8px rgba(72, 42, 10, 0.05);
}

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

.wish-author {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--cocoa-900);
}

.wish-badge {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.wish-badge.hadir {
  background: rgba(46, 111, 64, 0.14);
  color: #2E6F40;
}

.wish-badge.tidak-hadir {
  background: rgba(166, 58, 58, 0.14);
  color: #A63A3A;
}

.wish-badge.ragu {
  background: rgba(184, 125, 20, 0.16);
  color: #9A6508;
}

.wish-message {
  font-size: 0.95rem;
  color: var(--cocoa-800);
  line-height: 1.5;
  margin-bottom: 4px;
}

.wish-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--cocoa-500);
}

/* ==========================================================================
   7. PENUTUP (CLOSING SECTION)
   ========================================================================== */
.closing-card {
  padding-bottom: 105px;
}

.closing-message {
  font-size: 0.98rem;
  color: var(--cocoa-800);
  line-height: 1.65;
  max-width: 370px;
  margin: 0 auto 18px;
}

.closing-aesthetic-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}

.closing-name-item {
  font-family: var(--font-aesthetic);
  font-size: clamp(1.75rem, 6.5vw, 2.15rem);
  line-height: 1.15;
  word-spacing: 0.14em;
  background: var(--gold-foil-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 238, 0.85));
  padding: 2px 6px;
}

.closing-amp {
  font-family: var(--font-aesthetic);
  font-size: 1.65rem;
  color: var(--gold-600);
  line-height: 1;
}

.closing-salutation {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-800);
  margin-top: 4px;
}

.closing-bottom-gate {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.90;
}

/* ==========================================================================
   TOAST & LIGHTBOX MODAL
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--cocoa-900);
  color: var(--cream-50);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notice svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-300);
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  border: 2px solid var(--gold-500);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: var(--cocoa-900);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Scroll Fade-in Animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}
