/* CSS Variables & Theme */
:root {
  --olive-green: #5F7D43;
  --cream-bg: #FAF8F4;
  --coral-pink: #E27D74;
  --dark-olive: #3E4E30;
  --light-cream: #FFFDF9;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(95, 125, 67, 0.08);
  --shadow-md: 0 6px 20px rgba(95, 125, 67, 0.12);
  --shadow-lg: 0 12px 30px rgba(95, 125, 67, 0.16);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #11140e;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #11140e;
  color: var(--dark-olive);
  overflow-x: hidden;
}

/* Scroll Lock State for Cover Page */
body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

body.scroll-locked .app-container {
  overflow: hidden;
  height: 100vh;
}

/* ==========================================================================
   DESKTOP VIEWPORT FRAME (Large Screen Only)
   ========================================================================== */
.desktop-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1a2014;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8%;
  background-image: linear-gradient(135deg, #1f2719 0%, #11140e 100%);
  overflow: hidden;
}

/* Decorative blurred circles */
.desktop-bg-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 125, 67, 0.18) 0%, rgba(226, 125, 116, 0.08) 100%);
  filter: blur(100px);
  pointer-events: none;
}

.desktop-card {
  width: 380px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 35px 30px;
  color: var(--light-cream);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 2;
  transition: var(--transition-smooth);
}

.desktop-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--coral-pink);
  margin-bottom: 8px;
  font-weight: 600;
}

.desktop-card-names {
  font-family: 'Playball', cursive;
  font-size: 40px;
  font-weight: normal;
  color: var(--white);
  margin-bottom: 12px;
}

.desktop-card-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 253, 249, 0.6);
  margin-bottom: 25px;
  font-weight: 500;
}

.desktop-couple-preview {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center 30%;
  margin-bottom: 25px;
  border: 2px solid rgba(226, 125, 116, 0.3);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.desktop-card-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 253, 249, 0.7);
  font-weight: 400;
}

/* ==========================================================================
   MAIN APP CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--cream-bg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.app-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Desktop override to align mobile screen to the right */
@media (min-width: 993px) {
  body {
    justify-content: flex-end;
    padding-right: 12%;
  }
}

@media (max-width: 992px) {
  .desktop-bg {
    display: none;
  }
  body {
    justify-content: center;
    padding-right: 0;
  }
}

/* ==========================================================================
   PAGE SECTIONS & IMAGES
   ========================================================================== */
.page-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--cream-bg);
}

.page-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.page-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.page-section {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active class for page 1 immediately */
.page-section.active,
.page-section.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   FLOATING AUDIO BUTTON (VINYL DISC)
   ========================================================================== */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  border: 1.5px solid var(--olive-green);
  color: var(--olive-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.music-btn.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
}

.music-btn:hover {
  transform: scale(1.08);
  background: var(--white);
}

.music-icon {
  width: 18px;
  height: 18px;
  z-index: 5;
}

.vinyl-record {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #111;
  background: repeating-radial-gradient(circle, #333 0px, #111 2px, #333 4px);
  opacity: 0.15;
  top: 0;
  left: 0;
  z-index: 2;
}

.music-btn.playing {
  animation: spin-music 4s linear infinite;
  border-color: var(--coral-pink);
  color: var(--coral-pink);
}

@keyframes spin-music {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PAGE 1 (COVER) STYLES - DYNAMIC, BRITTANY FONT, & ANIMATED ORNAMENTS
   ========================================================================== */
@font-face {
  font-family: 'Brittany Signature';
  src: url('BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.cover-section {
  background-color: #FAF6EF !important;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-container {
  width: 100%;
  max-width: 500px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 30px 20px;
  position: relative;
  overflow: hidden;
}

/* Header Section */
.cover-header {
  text-align: center;
  margin-top: 10px;
  animation: coverFadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 10;
}

.cover-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--olive-green);
  margin-bottom: 6px;
}

.cover-title {
  font-family: 'Brittany Signature', cursive;
  font-size: 52px;
  font-weight: normal;
  color: var(--olive-green);
  line-height: 1.1;
  padding: 5px 0;
  text-transform: none;
}

/* Illustration Section with Ornaments Container */
.cover-illustration-container {
  width: 100%;
  max-width: 380px;
  margin: auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: coverScaleUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 5;
}

.cover-couple-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Absolute positioned animated ornaments from bunga1, bunga2, bunga3, blink */
.decor-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 6;
  transform-origin: bottom center; /* Great anchor for swaying flowers */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}


/* Smaller ornament sizes and custom-aligned coordinates */
.flower-top-left {
  left: 17.5%;
  top: 7.5%;
  width: 12.0%;
}

.sparkles-top-right {
  left: 71%;
  top: 13.5%;
  width: 10.5%;
  transform-origin: center center;
}

.flower-blue {
  left: 73%;
  top: 22.0%;
  width: 8.5%;
  transform-origin: center center;
}

.flower-bottom-right {
  left: 67.5%;
  top: 68.0%;
  width: 12.0%;
}

.sparkles-bottom-left {
  left: 18%;
  top: 71.5%;
  width: 10.5%;
  transform-origin: center center;
}

.flower-purple {
  left: 20%;
  top: 80.5%;
  width: 8.5%;
  transform-origin: center center;
}

/* Footer Section */
.cover-footer {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: coverFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 10;
}

.cover-to {
  font-family: 'Brittany Signature', cursive;
  font-size: 28px;
  color: var(--olive-green);
  margin-bottom: -2px;
  text-transform: none;
}

.cover-guest-wrapper {
  max-width: 90%;
  overflow: hidden;
  margin-bottom: 12px;
}

.cover-guest-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--olive-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.4;
  padding: 0 10px;
}

.btn-open-minimal {
  background: var(--olive-green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(95, 125, 67, 0.3);
  animation: pulse-open 2.2s infinite;
  text-transform: uppercase;
  pointer-events: auto;
  white-space: nowrap;
  margin-top: 5px;
}

.btn-open-minimal:hover {
  background: var(--dark-olive);
  box-shadow: 0 6px 20px rgba(95, 125, 67, 0.45);
  transform: translateY(-2px);
}

.icon-envelope {
  width: 14px;
  height: 14px;
}

/* Animations & Keyframes */

/* 1. Flowers Swaying / Shaking in Place */
.animate-flower-sway {
  animation: swayFlower 4.5s ease-in-out infinite;
}

.animate-flower-sway-reverse {
  animation: swayFlowerReverse 5.2s ease-in-out infinite;
}

.animate-flower-gentle {
  animation: swayGentle 4s ease-in-out infinite;
}

.animate-flower-gentle-reverse {
  animation: swayGentleReverse 4.8s ease-in-out infinite;
}

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

@keyframes swayFlowerReverse {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-7deg) translateY(-2px);
  }
}

@keyframes swayGentle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(4deg) scale(1.02);
  }
}

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

/* 2. Sparkles Blink Keyframes */
.animate-blink-fast {
  animation: blinkBlink 2.2s ease-in-out infinite;
}

.animate-blink-slow {
  animation: blinkBlink 3.4s ease-in-out infinite;
}

@keyframes blinkBlink {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
    filter: drop-shadow(0 0 1px rgba(226, 125, 116, 0.15));
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(226, 125, 116, 0.75));
  }
}

/* 3. Section Element Transitions */
@keyframes coverFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse-open {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(95, 125, 67, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(95, 125, 67, 0.4), 0 0 0 8px rgba(95, 125, 67, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(95, 125, 67, 0.3);
  }
}

/* ==========================================================================
   PAGE 2 (INTRO) COUNTDOWN DETAILS & NAMES
   ========================================================================== */
/* Page 2 – perkecil ilustrasi saja */
#page-2 .page-image {
  width: 82%;
  margin: 0 auto;
}

/* Couple Names Container */
.intro-names-container {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

/* h2 acts as a flex row so letters sit side by side */
.intro-names {
  font-family: 'Brittany Signature', cursive;
  font-size: 52px;
  font-weight: normal;
  color: var(--olive-green);
  text-align: center;
  text-transform: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

/* Each letter starts invisible and tiny */
.intro-letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0.2);
}

/* Spacer between words — no animation, just whitespace */
.intro-letter-space {
  display: inline-block;
  width: 0.22em;
}

/* Letters animate when parent section is revealed */
.page-section.revealed .intro-letter {
  animation: popIn 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) forwards;
  /* individual delay is set inline per letter */
}

/* Elastic pop: tiny → overshoot → settle */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  55% {
    opacity: 1;
    transform: scale(1.18);
  }
  78% {
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.countdown-container {
  position: absolute;
  top: 84%;
  left: 6%;
  width: 88%;
  display: flex;
  justify-content: space-between;
  pointer-events: auto;
  animation: float-pulse 4s ease-in-out infinite;
}

.countdown-box {
  background: rgba(255, 253, 249, 0.94);
  border: 1.5px solid var(--coral-pink);
  border-radius: 16px;
  width: 22.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.countdown-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--olive-green);
}

.countdown-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--olive-green);
}

.countdown-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--dark-olive);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

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

/* ==========================================================================
   PAGE 3 (QUOTE) DECORATIONS
   ========================================================================== */
.floating-heart {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  color: var(--coral-pink);
  animation: beat 1.5s ease infinite;
  opacity: 0.8;
}

@keyframes beat {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) scale(1.2); }
  60% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ==========================================================================
   PAGE 3 (QUOTE) CARD DESIGN & RISE ANIMATION
   ========================================================================== */

/* Quote card — centered inside bg-1.png frame, above the bow */
.page3-quote-container {
  position: absolute;
  top: 47%;         /* center vertically within the visual center of the ribbon */
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly centers the text block */
  width: 68%;       /* reduced width to keep text inside the ribbon curves */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

/* Main quote text — starts hidden below */
.page3-quote-body {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; /* reduced font size to fit neatly within the frame */
  font-weight: 400;
  color: var(--olive-green); /* same green as Agung & Suci on page 2 */
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(28px);
}

/* Source reference — starts hidden below */
.page3-quote-source {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; /* scaled down to match the new body font size */
  font-weight: 600;
  color: var(--olive-green); /* same green as Agung & Suci on page 2 */
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(20px);
}

/* Trigger riseUp when section scrolls into view */
.page-section.revealed .page3-quote-body {
  animation: riseUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.page-section.revealed .page3-quote-source {
  animation: riseUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.55s;
}

@keyframes riseUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PAGE 4 (BRIDE & GROOM) NEW LAYOUT
   ========================================================================== */
.profile-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6%; /* below the top edge */
  width: 100%;
  height: 100%;
}

.top-lamp-decor {
  width: 48%;
  height: auto;
  margin-bottom: 3%;
  animation: lampBlink 2.5s ease-in-out infinite;
  z-index: 10;
}

.profiles-container {
  width: 88%;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 5;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
}

.page-section.revealed .profile-row {
  animation: profileFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.revealed .groom-row {
  animation-delay: 0.25s;
}

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

.profile-photo-wrapper {
  position: relative;
  width: 43%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame {
  position: absolute;
  width: 125%; /* Frame is scalloped, enclosing photo */
  height: 125%;
  object-fit: contain;
  animation: spinSlow 20s linear infinite;
  z-index: 2;
}

.profile-photo {
  position: relative;
  width: 88%;
  height: 88%;
  object-fit: contain;
  z-index: 1;
}

.profile-text {
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.profile-name {
  font-family: 'Another Shabby', 'Playball', cursive;
  font-size: 26px;
  font-weight: 500;
  color: #3b610c;
  margin-bottom: 2px;
}

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

.profile-parents {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #c45c58;
  line-height: 1.5;
}

@keyframes lampBlink {
  0%, 100% { opacity: 0.6; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 12px rgba(255, 230, 160, 0.5)); }
}

/* ==========================================================================
   PAGE 5 (SAVE THE DATE & MAPS) OVERLAY DETAILS
   ========================================================================== */
.calendar-love-overlay {
  position: absolute;
  top: 38%; /* Diturunkan 1% lagi */
  left: 58%;
  transform: translate(-50%, -50%);
  width: 50%;
  pointer-events: none;
  z-index: 5;
}

.calendar-love-img {
  width: 100%;
  height: auto;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0% { transform: scale(1); opacity: 0.8; }
  15% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px rgba(226, 125, 116, 0.6)); }
  30% { transform: scale(1); opacity: 0.8; }
  45% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px rgba(226, 125, 116, 0.6)); }
  100% { transform: scale(1); opacity: 0.8; }
}

.btn-maps-overlay {
  position: absolute;
  top: 79.2%;
  left: 26%;
  width: 48%;
  height: 4.8%;
  pointer-events: auto;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn-maps-overlay:hover {
  background-color: rgba(95, 125, 67, 0.12);
  box-shadow: 0 0 15px rgba(226, 125, 116, 0.4);
}

.pulse-indicator {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 40px;
  border: 2px solid var(--coral-pink);
  opacity: 0;
  animation: btn-ring-pulse 2s infinite;
}

@keyframes btn-ring-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* ==========================================================================
   PAGE 7 (RSVP TRIGGER) OVERLAY DETAILS
   ========================================================================== */
.btn-rsvp-overlay {
  position: absolute;
  top: 58.4%;
  left: 24%;
  width: 52%;
  height: 4.8%;
  pointer-events: auto;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
  transition: var(--transition-smooth);
}

.btn-rsvp-overlay:hover {
  background-color: rgba(95, 125, 67, 0.15);
}

.btn-rsvp-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  box-shadow: 0 0 0 0 rgba(226, 125, 116, 0.6);
  animation: rsvp-glow-pulse 1.8s infinite;
}

@keyframes rsvp-glow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 125, 116, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(226, 125, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 125, 116, 0); }
}

/* ==========================================================================
   PAGE 8 (COPY REKENING) OVERLAY DETAILS
   ========================================================================== */
.btn-copy-overlay {
  position: absolute;
  left: 26%;
  width: 48%;
  height: 4.8%;
  pointer-events: auto;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-copy-suci {
  top: 48.2%;
}

#btn-copy-agung {
  top: 73.1%;
}

.btn-copy-overlay:hover {
  background-color: rgba(226, 125, 116, 0.12);
  box-shadow: 0 0 10px rgba(226, 125, 116, 0.2);
}

.copy-tooltip {
  position: absolute;
  bottom: 120%;
  background: var(--dark-olive);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
}

.btn-copy-overlay:hover .copy-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-3px);
}

/* ==========================================================================
   PAGE 9 (SCROLL TO COVER) OVERLAY DETAILS
   ========================================================================== */
.btn-back-top {
  position: absolute;
  top: 74%;
  left: 28%;
  width: 44%;
  height: 5.2%;
  pointer-events: auto;
  border-radius: 40px;
  background: var(--coral-pink);
  color: var(--white);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 15px rgba(226, 125, 116, 0.4);
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.btn-back-top:hover {
  background: var(--olive-green);
  box-shadow: 0 6px 20px rgba(95, 125, 67, 0.5);
  transform: translateY(-2px);
}

.arrow-up-icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   RSVP MODAL & GUEST Ucapan SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43, 54, 33, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--light-cream);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid rgba(95, 125, 67, 0.15);
}

/* Align modal on desktop split screen */
@media (min-width: 993px) {
  .modal-overlay {
    justify-content: flex-end;
    padding-right: 12%;
  }
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(95, 125, 67, 0.1);
  background: var(--cream-bg);
}

.modal-title {
  font-family: 'Playball', cursive;
  font-size: 26px;
  color: var(--olive-green);
  font-weight: 500;
}

.modal-close-btn {
  background: rgba(226, 125, 116, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-pink);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--coral-pink);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.tab-container {
  display: flex;
  background: rgba(95, 125, 67, 0.08);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dark-olive);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.tab-btn.active {
  background: var(--olive-green);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(95, 125, 67, 0.2);
}

/* Tab Sections */
.tab-section {
  display: none;
  flex-direction: column;
  flex: 1;
}

.tab-section.active {
  display: flex;
}

/* RSVP Form Elements */
.rsvp-form-element {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(95, 125, 67, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  color: var(--dark-olive);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--coral-pink);
  box-shadow: 0 0 8px rgba(226, 125, 116, 0.15);
}

.form-textarea {
  resize: none;
  line-height: 1.5;
}

/* Custom attendance selector styling */
.attendance-options {
  display: flex;
  gap: 12px;
}

.attendance-card {
  flex: 1;
  cursor: pointer;
}

.attendance-card input {
  display: none;
}

.attendance-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(95, 125, 67, 0.2);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-olive);
  background: var(--white);
  text-align: center;
  transition: var(--transition-smooth);
}

.check-icon {
  width: 14px;
  height: 14px;
  display: none;
}

.attendance-card input:checked + .attendance-box {
  border-color: var(--olive-green);
  background: rgba(95, 125, 67, 0.05);
  color: var(--olive-green);
}

.attendance-card input:checked + .attendance-box .check-icon {
  display: block;
}

/* Submit Button */
.btn-submit-rsvp {
  background: var(--coral-pink);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(226, 125, 116, 0.3);
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-submit-rsvp:hover {
  background: var(--olive-green);
  box-shadow: 0 6px 18px rgba(95, 125, 67, 0.35);
  transform: translateY(-1px);
}

.send-icon {
  width: 16px;
  height: 16px;
}

/* Guestbook (Wishes list) */
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 52vh;
  padding-right: 4px;
}

.guestbook-list::-webkit-scrollbar {
  width: 4px;
}

.guestbook-list::-webkit-scrollbar-thumb {
  background: rgba(95, 125, 67, 0.2);
  border-radius: 4px;
}

.wish-item {
  background: var(--white);
  border: 1px solid rgba(95, 125, 67, 0.1);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  animation: fade-in-wish 0.5s ease-out both;
}

@keyframes fade-in-wish {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.wish-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--olive-green);
}

.wish-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

.wish-badge.hadir {
  background: rgba(95, 125, 67, 0.1);
  color: var(--olive-green);
}

.wish-badge.tidak-hadir {
  background: rgba(226, 125, 116, 0.15);
  color: var(--coral-pink);
}

.wish-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dark-olive);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.wish-date {
  font-size: 8.5px;
  color: rgba(62, 78, 48, 0.5);
  margin-top: 6px;
  text-align: right;
  display: block;
}

/* Empty State */
.wish-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: rgba(62, 78, 48, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wish-empty-icon {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

/* ==========================================================================
   TOAST NOTIFICATION (Clipboard)
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--dark-olive);
  color: var(--white);
  border-radius: 50px;
  padding: 10px 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.active {
  bottom: 30px;
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-icon-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-check-icon {
  width: 10px;
  height: 10px;
  color: var(--white);
}

.toast-text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}


