/* ==========================================================================
   ROMANTIC & CUTE BIRTHDAY THEME - STYLE SYSTEM
   Designed for Anggun with Love ❤️
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --primary-pink: #ff4d6d;
  --primary-hover: #e03254;
  --soft-pink: #ff758f;
  --light-pink: #ffccd5;
  --blush-bg: #fff0f3;
  --cream-white: #fffdfa;
  --lavender: #f2e9e4;
  --rose-gold: #c97b84;
  --gold-accent: #f7a072;
  
  /* Text Colors */
  --text-primary: #3d1a24;
  --text-secondary: #704351;
  --text-muted: #9c6b79;
  --text-light: #ffffff;

  /* Surfaces & Glassmorphism */
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 182, 193, 0.45);
  --card-shadow: 0 12px 35px -8px rgba(255, 77, 109, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 45px -10px rgba(255, 77, 109, 0.28), 0 6px 18px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-cursive: 'Dancing Script', cursive;

  /* Radii & Transitions */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 50%, #fde2e4 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Animated Canvas */
#sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   PRELOADER / LOADING SCREEN (LUCU & ROMANTIS)
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at center, #ffffff 0%, #fff1f4 55%, #ffe5ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  user-select: none;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

/* Loader Animated Icon Wrapper */
.loader-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-gift-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-gift {
  font-size: 4rem;
  display: inline-block;
  animation: giftWiggle 2s infinite ease-in-out;
  transform-origin: bottom center;
}

.loader-heart {
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 2.2rem;
  animation: pulseHeart 1.2s infinite ease-in-out;
  filter: drop-shadow(0 4px 10px rgba(255, 77, 109, 0.4));
}

.loader-sparkle {
  position: absolute;
  font-size: 1.3rem;
  pointer-events: none;
  animation: sparkleFloat 2s infinite alternate ease-in-out;
}

.sp-1 { top: 0; left: 10px; animation-delay: 0.2s; }
.sp-2 { bottom: 12px; left: 4px; animation-delay: 0.8s; font-size: 1.5rem; }
.sp-3 { bottom: 8px; right: 8px; animation-delay: 1.4s; }

@keyframes giftWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.05); }
  40% { transform: rotate(8deg) scale(1.05); }
  60% { transform: rotate(-5deg) scale(1.02); }
  80% { transform: rotate(4deg) scale(1.01); }
}

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0.4; }
  100% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-pink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.loader-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  min-height: 28px;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

/* Progress Bar Container */
.loader-progress-container {
  width: 100%;
}

.loader-progress-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 204, 213, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--light-pink);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d6d 0%, #ff758f 50%, #ffd166 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
  position: relative;
  overflow: hidden;
}

.loader-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loader-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.loader-percentage {
  color: var(--primary-pink);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

/* Ready Button */
.loader-action {
  margin-top: 1.75rem;
  animation: slideFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn-loader-enter {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.45);
  animation: enterPulse 1.8s infinite ease-in-out;
}

@keyframes enterPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 16px 36px rgba(255, 77, 109, 0.6);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Main Layout Wrapper */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

/* --- Floating Music Widget (Disembunyikan sesuai permintaan) --- */
.audio-widget {
  display: none !important;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 2px solid var(--light-pink);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-pink);
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.3);
  background: #ffffff;
}

.music-icon {
  font-size: 1.15rem;
  display: inline-block;
  transition: transform 0.5s ease;
}

.audio-btn.playing .music-icon {
  animation: spin 3s linear infinite;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.bar {
  width: 3px;
  background-color: var(--primary-pink);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-btn.playing .bar-1 { animation: soundBar 0.8s ease-in-out infinite alternate; }
.audio-btn.playing .bar-2 { animation: soundBar 1.1s ease-in-out infinite alternate 0.2s; }
.audio-btn.playing .bar-3 { animation: soundBar 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 14px; }
}

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

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

/* --- Common UI Components --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 77, 109, 0.12);
  color: var(--primary-pink);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.8vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 620px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, #ff758f 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 77, 109, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-pink);
  border: 2px solid var(--light-pink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 77, 109, 0.2);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--soft-pink);
}

.btn-ghost:hover {
  background: rgba(255, 77, 109, 0.08);
  color: var(--primary-pink);
}

.btn-outline-love {
  background: #ffffff;
  color: var(--primary-pink);
  border: 1.5px solid var(--soft-pink);
  box-shadow: 0 4px 14px rgba(255, 77, 109, 0.12);
}

.btn-outline-love:hover {
  background: var(--blush-bg);
  border-color: var(--primary-pink);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HERO SECTION WITH DYNAMIC ROMANTIC PHOTO BACKGROUND
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 1.5rem 0.5rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  width: 100%;
}

/* --- Dynamic Romantic Photo Slideshow Backdrop --- */
.hero-photo-backdrop {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 5rem);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(1.15) brightness(1.02);
  transform: scale(1.03);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 9s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.12);
}

/* Dreamy Pastel & Glassmorphic Overlays */
.hero-bg-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 243, 0.72) 0%,
    rgba(255, 229, 236, 0.62) 45%,
    rgba(255, 204, 213, 0.75) 85%,
    rgba(255, 240, 243, 0.98) 100%
  );
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 117, 143, 0.12) 60%,
    rgba(255, 77, 109, 0.3) 100%
  );
  mix-blend-mode: multiply;
}

.hero-bg-sparkles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 80px 120px, #ffd166, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 70px, #ff758f, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 240px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 90px, #ffd1dc, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: 0.65;
  animation: bgSparkleShift 20s linear infinite;
}

@keyframes bgSparkleShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-360px); }
}

/* --- Hero Glassmorphic Main Card --- */
.hero-content-card {
  position: relative;
  z-index: 3;
  max-width: 680px;
  width: 100%;
  margin: 0 auto 2.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  box-shadow: 
    0 24px 60px -12px rgba(255, 77, 109, 0.22),
    0 0 0 1px rgba(255, 182, 193, 0.4) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-decorations .floating-item {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  animation: floatRandom 4s ease-in-out infinite alternate;
}

.float-item-1 { top: 5%; left: 8%; animation-delay: 0s; }
.float-item-2 { top: 10%; right: 9%; animation-delay: 1s; font-size: 2.2rem; }
.float-item-3 { bottom: 25%; left: 6%; animation-delay: 1.8s; }
.float-item-4 { bottom: 28%; right: 8%; animation-delay: 0.6s; }

@keyframes floatRandom {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(12deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--light-pink);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--primary-pink);
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.14);
  margin-bottom: 1.25rem;
}

/* Birthday Girl Hero Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 145px;
  height: 145px;
  margin: 0.25rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d6d, #ffd166, #ff758f);
  filter: blur(14px);
  opacity: 0.8;
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

.hero-avatar-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  background: #ffffff;
}

.hero-avatar-wrapper:hover .hero-avatar-image {
  transform: scale(1.08) rotate(3deg);
}

.hero-avatar-crown {
  position: absolute;
  top: -16px;
  right: -8px;
  font-size: 2.3rem;
  z-index: 4;
  animation: crownBounce 2.5s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0) rotate(14deg); }
  50% { transform: translateY(-7px) rotate(22deg) scale(1.12); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.title-sub {
  font-family: var(--font-cursive);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  color: var(--primary-pink);
  font-weight: 700;
  line-height: 1.1;
}

.title-highlight {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff4d6d 0%, #ff758f 50%, #f7a072 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.title-emoji {
  font-size: 2.2rem;
  display: inline-block;
  animation: bounce 2s infinite ease-in-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 1.75rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* --- Desktop Floating Polaroid Memories --- */
.hero-floating-polaroids {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.floating-polaroid {
  position: absolute;
  pointer-events: auto;
  width: 135px;
  background: #ffffff;
  padding: 8px 8px 12px;
  border-radius: 8px;
  box-shadow: 
    0 14px 30px rgba(255, 77, 109, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(255, 204, 213, 0.7);
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.floating-polaroid.is-active-slide {
  border-color: var(--primary-pink);
  box-shadow: 
    0 16px 36px rgba(255, 77, 109, 0.4),
    0 0 0 3px rgba(255, 77, 109, 0.3);
}

.pol-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #fff0f3;
}

.pol-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.floating-polaroid:hover .pol-img-wrap img {
  transform: scale(1.08);
}

/* Washi Tape and Pins */
.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 58px;
  height: 19px;
  background: rgba(255, 117, 143, 0.68);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-left: 2px dashed rgba(255, 255, 255, 0.65);
  border-right: 2px dashed rgba(255, 255, 255, 0.65);
  z-index: 5;
  pointer-events: none;
}

.washi-pink {
  background: rgba(255, 117, 143, 0.68);
}

.washi-gold {
  background: rgba(255, 209, 102, 0.72);
  transform: translateX(-50%) rotate(2.5deg);
}

.washi-lavender {
  background: rgba(200, 182, 255, 0.72);
  transform: translateX(-50%) rotate(-2deg);
}

.pol-pin {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 1.2rem;
  z-index: 6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

/* Floating Positions (Desktop & Laptop) */
@media (min-width: 1024px) {
  /* Left Side Polaroids */
  .polaroid-pos-1 {
    left: max(-80px, calc(50% - 370px - 145px));
    top: 2%;
    animation: floatPol1 5s ease-in-out infinite alternate;
  }
  .polaroid-pos-2 {
    left: max(-105px, calc(50% - 370px - 175px));
    top: 26%;
    animation: floatPol2 6s ease-in-out infinite alternate 0.8s;
  }
  .polaroid-pos-3 {
    left: max(-75px, calc(50% - 370px - 140px));
    top: 50%;
    animation: floatPol3 5.5s ease-in-out infinite alternate 1.6s;
  }
  .polaroid-pos-7 {
    left: max(-100px, calc(50% - 370px - 165px));
    top: 74%;
    animation: floatPol2 5.7s ease-in-out infinite alternate 1.1s;
  }

  /* Right Side Polaroids */
  .polaroid-pos-4 {
    right: max(-80px, calc(50% - 370px - 145px));
    top: 1%;
    animation: floatPol4 5.2s ease-in-out infinite alternate 0.4s;
  }
  .polaroid-pos-5 {
    right: max(-105px, calc(50% - 370px - 175px));
    top: 21%;
    animation: floatPol5 6.2s ease-in-out infinite alternate 1.2s;
  }
  .polaroid-pos-6 {
    right: max(-75px, calc(50% - 370px - 140px));
    top: 41%;
    animation: floatPol6 5.8s ease-in-out infinite alternate 2s;
  }
  .polaroid-pos-8 {
    right: max(-105px, calc(50% - 370px - 175px));
    top: 61%;
    animation: floatPol5 6.4s ease-in-out infinite alternate 0.7s;
  }
  .polaroid-pos-9 {
    right: max(-80px, calc(50% - 370px - 145px));
    top: 81%;
    animation: floatPol4 5.6s ease-in-out infinite alternate 1.8s;
  }
}

@keyframes floatPol1 {
  0% { transform: translateY(0px) rotate(-7deg); }
  100% { transform: translateY(-14px) rotate(-4deg); }
}
@keyframes floatPol2 {
  0% { transform: translateY(0px) rotate(5deg); }
  100% { transform: translateY(-16px) rotate(8deg); }
}
@keyframes floatPol3 {
  0% { transform: translateY(0px) rotate(-4deg); }
  100% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes floatPol4 {
  0% { transform: translateY(0px) rotate(6deg); }
  100% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes floatPol5 {
  0% { transform: translateY(0px) rotate(-5deg); }
  100% { transform: translateY(-14px) rotate(-8deg); }
}
@keyframes floatPol6 {
  0% { transform: translateY(0px) rotate(7deg); }
  100% { transform: translateY(-16px) rotate(4deg); }
}

.floating-polaroid:hover {
  transform: translateY(-8px) scale(1.14) rotate(0deg) !important;
  z-index: 25;
  box-shadow: 0 22px 45px rgba(255, 77, 109, 0.45);
}

/* --- Mobile Horizontal Polaroid Ribbon --- */
.hero-mobile-ribbon {
  display: none;
  width: 100%;
  margin-top: 1.25rem;
  border-top: 1px dashed rgba(255, 182, 193, 0.6);
  padding-top: 1rem;
}

.mobile-ribbon-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.mobile-ribbon-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.75rem 0.5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--light-pink) transparent;
}

.mobile-ribbon-track::-webkit-scrollbar {
  height: 5px;
}

.mobile-ribbon-track::-webkit-scrollbar-thumb {
  background: var(--light-pink);
  border-radius: 10px;
}

.mobile-polaroid-item {
  flex: 0 0 115px;
  scroll-snap-align: center;
  background: #ffffff;
  padding: 6px 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.16);
  border: 1.5px solid var(--light-pink);
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.mobile-polaroid-item:active {
  transform: scale(0.96);
}

.mobile-polaroid-item.is-active-slide {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px var(--primary-pink), 0 8px 22px rgba(255, 77, 109, 0.3);
}

.mobile-pol-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #fff0f3;
}

.mobile-pol-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .hero-floating-polaroids {
    display: none;
  }
  .hero-mobile-ribbon {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-content-card {
    padding: 2.2rem 1.25rem 1.75rem;
    border-radius: var(--radius-md);
  }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.scroll-arrow {
  font-size: 1.3rem;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   SECTION 1: INTERACTIVE BIRTHDAY CAKE
   ========================================================================== */
.cake-section {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cake-stage {
  margin: 2.5rem auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.cake-container {
  position: relative;
  width: 200px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  user-select: none;
}

.cake-container:hover {
  transform: scale(1.04);
}

.cake-container:active {
  transform: scale(0.98);
}

/* Candles Layer */
.candles-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: -4px;
  z-index: 5;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #fff 0%, #ffe600 30%, #ff5400 80%, #ff0055 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 16px #ff7b00, 0 0 28px #ffb703;
  animation: flameFlicker 0.6s infinite alternate ease-in-out;
  transform-origin: center bottom;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flame.blown-out {
  opacity: 0;
  transform: scale(0.2) translateY(-10px);
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08, 0.95) rotate(2deg); }
  100% { transform: scale(0.95, 1.05) rotate(-1deg); }
}

.smoke {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  background: rgba(180, 180, 180, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.smoke.active {
  animation: smokePuff 1.2s ease-out forwards;
}

@keyframes smokePuff {
  0% { opacity: 0.8; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 0.4; transform: translate(5px, -20px) scale(1.6); }
  100% { opacity: 0; transform: translate(-8px, -45px) scale(2.4); }
}

.wick {
  width: 2px;
  height: 6px;
  background: #444;
}

.candle-stick {
  width: 10px;
  height: 32px;
  background: repeating-linear-gradient(45deg, #ffccd5, #ffccd5 4px, #ffffff 4px, #ffffff 8px);
  border-radius: 3px 3px 0 0;
  box-shadow: inset -2px 0 3px rgba(0,0,0,0.1);
}

/* Cake Tiers */
.cake-tier {
  position: relative;
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.tier-top {
  width: 110px;
  height: 40px;
  background: linear-gradient(to right, #ffd1dc, #ffe5ec, #ffd1dc);
  border-bottom: 3px solid #ffb3c6;
  z-index: 4;
}

.tier-middle {
  width: 150px;
  height: 48px;
  background: linear-gradient(to right, #fff0f3, #ffffff, #fff0f3);
  border-bottom: 3px solid #ffccd5;
  margin-top: -3px;
  z-index: 3;
}

.tier-bottom {
  width: 190px;
  height: 56px;
  background: linear-gradient(to right, #ffd1dc, #ffccd5, #ffd1dc);
  border-bottom: 4px solid #ff8fa3;
  margin-top: -3px;
  z-index: 2;
}

/* Frosting & Drips */
.frosting-drips {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: #ffffff;
  border-radius: 10px 10px 4px 4px;
}

.frosting-drips::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 6px;
  background: radial-gradient(circle, #ffffff 60%, transparent 60%) repeat-x;
  background-size: 14px 10px;
}

.cake-plate {
  width: 220px;
  height: 12px;
  background: linear-gradient(to bottom, #f3f3f3, #e2e2e2);
  border-radius: 10px;
  margin-top: -2px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  z-index: 1;
}

/* Cake Action Buttons */
.cake-actions {
  margin-top: 1.5rem;
}

.btn-blow {
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  color: #fff;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(255, 77, 109, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-blow:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 15px 32px rgba(255, 77, 109, 0.5);
}

/* Wish Card Revealed */
.cake-wish-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f9 100%);
  border: 2px solid var(--soft-pink);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: 0 15px 35px rgba(255, 77, 109, 0.2);
  animation: slideFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.wish-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.wish-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-pink);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.wish-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   SECTION 2: WHY YOU'RE SO SPECIAL
   ========================================================================== */
.reasons-section {
  text-align: center;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.reason-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--light-pink), var(--primary-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--soft-pink);
}

.reason-card:hover::before {
  opacity: 1;
}

.reason-emoji {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

.reason-card:hover .reason-emoji {
  transform: scale(1.2) rotate(8deg);
}

.reason-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.reason-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 3: THE SECRET LOCKED VAULT (BRANKAS RAHASIA)
   ========================================================================== */
.vault-section {
  position: relative;
}

/* Locked Card State */
.vault-locked-card {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.lock-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #fff0f3, #ffd1dc);
  border: 3px solid var(--light-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 77, 109, 0.25);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 77, 109, 0);
  }
}

.lock-icon {
  font-size: 2.3rem;
  transition: transform 0.3s ease;
}

.vault-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.vault-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* PIN Display */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1rem;
}

.pin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--primary-pink);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-dot.filled {
  background: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.6);
  transform: scale(1.15);
}

.pin-dot.filled::after {
  content: "❤️";
  font-size: 11px;
}

/* PIN Feedback Message */
.pin-feedback {
  min-height: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: opacity 0.3s ease;
}

.pin-feedback.error {
  color: #d90429;
}

.pin-feedback.success {
  color: #2b9348;
}

/* Shake Animation on Wrong PIN */
.shake-error {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Numpad Grid */
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 290px;
  margin: 0 auto;
}

.numpad-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--light-pink);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  user-select: none;
}

.numpad-btn:hover {
  background: #ffffff;
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 77, 109, 0.2);
}

.numpad-btn:active {
  transform: translateY(2px) scale(0.96);
  background: var(--blush-bg);
}

.numpad-btn.btn-action {
  font-size: 1.15rem;
  color: var(--primary-pink);
  background: rgba(255, 240, 243, 0.8);
}

/* Hint Actions */
.pin-footer-actions {
  margin-top: 1.8rem;
}

.hint-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.hint-btn:hover {
  color: var(--primary-pink);
}

.hint-box {
  margin-top: 0.9rem;
  background: #fff8f9;
  border: 1.5px dashed var(--soft-pink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: slideFadeIn 0.3s ease;
}

/* ==========================================================================
   UNLOCKED VAULT CONTENT
   ========================================================================== */
.vault-unlocked-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--card-shadow);
  animation: unlockZoomIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes unlockZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.unlocked-banner {
  text-align: center;
  margin-bottom: 2.25rem;
}

.unlocked-icon {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.unlocked-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary-pink);
  margin-bottom: 0.4rem;
}

.unlocked-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Vault Tab Navigation */
.vault-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--light-pink);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-pink), #ff758f);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.35);
}

.vault-tab-pane {
  display: none;
}

.vault-tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   TAB 1: INTERACTIVE LOVE LETTER & ENVELOPE
   -------------------------------------------------------------------------- */
.envelope-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.envelope-instruction {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite ease-in-out;
}

/* 3D Envelope Box */
.envelope-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #f7cbd4;
  border: 2px solid #f2a8b9;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 38px rgba(255, 77, 109, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

.envelope-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(255, 77, 109, 0.28);
}

/* Envelope Flap & Wax Seal */
.envelope-flap {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px dashed rgba(255, 77, 109, 0.3);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.envelope-seal {
  width: 46px;
  height: 46px;
  background: radial-gradient(circle, #e63946, #c1121f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.45);
  border: 2px solid #ffccd5;
  transition: transform 0.3s ease;
}

.envelope-box:hover .envelope-seal {
  transform: scale(1.1);
}

.envelope-box.opened .envelope-seal {
  transform: scale(0.8) rotate(45deg);
  opacity: 0.7;
}

/* Parchment Letter Paper */
.letter-paper {
  background: #fffdf8;
  border: 1px solid #ebd9b4;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: inset 0 0 20px rgba(220, 180, 130, 0.15), 0 6px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(235, 217, 180, 0.35) 31px, rgba(235, 217, 180, 0.35) 32px);
  line-height: 32px;
}

.letter-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
  border: 2px dashed #f7a072;
  border-radius: 6px;
  padding: 4px;
  transform: rotate(8deg);
  opacity: 0.85;
}

.letter-header {
  margin-bottom: 1.8rem;
}

.letter-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.letter-salutation {
  font-family: var(--font-cursive);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.letter-body {
  color: #4a2833;
  font-size: 1.05rem;
  line-height: 32px;
}

.letter-body p {
  margin-bottom: 1.25rem;
  text-indent: 1.5rem;
}

.letter-footer {
  margin-top: 2rem;
  text-align: right;
  line-height: 1.4;
}

.letter-closing {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.letter-signature {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   TAB 2: POLAROID PHOTO GALLERY (DI DALAM BRANKAS)
   -------------------------------------------------------------------------- */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.2rem 1.8rem;
  padding: 1rem 0.5rem;
}

/* Polaroid Card */
.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 22px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Cute Washi Tape at Top of Polaroid */
.polaroid-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(255, 204, 213, 0.85);
  border-left: 2px dashed rgba(255, 77, 109, 0.3);
  border-right: 2px dashed rgba(255, 77, 109, 0.3);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 2;
}

/* Slight Random-feeling Tilts */
.polaroid-card:nth-child(4n+1) { transform: rotate(-2.5deg); }
.polaroid-card:nth-child(4n+2) { transform: rotate(2deg); }
.polaroid-card:nth-child(4n+3) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(4n+4) { transform: rotate(2.5deg); }

.polaroid-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  box-shadow: 0 18px 36px rgba(255, 77, 109, 0.22);
  z-index: 10;
}

.polaroid-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 2px;
}

.polaroid-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.06);
}

.polaroid-caption-box {
  display: none !important;
}

/* Vault Re-lock Button */
.vault-bottom-action {
  margin-top: 3.5rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 15, 0.75);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 620px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 77, 109, 0.15);
  color: var(--primary-pink);
}

.lightbox-image-box {
  width: 100%;
  max-height: 60vh;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-image-box img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  display: none !important;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.lightbox-nav-btn {
  background: var(--blush-bg);
  border: 1px solid var(--light-pink);
  color: var(--primary-pink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--primary-pink);
  color: #ffffff;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.page-footer {
  text-align: center;
  padding-top: 2rem;
  color: var(--text-secondary);
}

.footer-heart {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: pulseHeart 1.8s infinite;
}

.footer-text {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET TWEAKS)
   ========================================================================== */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem 0.85rem 3.5rem;
    gap: 3.5rem;
  }

  .audio-widget {
    top: 0.85rem;
    right: 0.85rem;
  }

  .audio-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .hero-section {
    padding-top: 2.5rem;
  }

  .cake-section {
    padding: 2rem 1rem;
  }

  .cake-container {
    transform: scale(0.88);
  }

  .vault-locked-card {
    padding: 2.2rem 1.1rem;
  }

  .numpad-grid {
    gap: 9px;
  }

  .numpad-btn {
    height: 56px;
    font-size: 1.35rem;
  }

  .letter-paper {
    padding: 1.75rem 1.25rem;
  }

  .letter-salutation {
    font-size: 1.6rem;
  }

  .letter-body {
    font-size: 0.96rem;
    line-height: 28px;
  }

  .letter-body p {
    text-indent: 1rem;
  }

  .letter-signature {
    font-size: 1.8rem;
  }

  .polaroid-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.6rem 1rem;
  }

  .polaroid-card {
    padding: 10px 10px 16px;
  }

  .polaroid-caption {
    font-size: 1.05rem;
  }
}
