/* ==========================================================================
   26th Birthday Celebration - Modern Romantic Design System
   Dedicated to Maya (Baby) — Bidur Bhattarai
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Caveat', cursive, serif;

  --color-primary-50: #fff1f2;
  --color-primary-100: #ffe4e6;
  --color-primary-200: #fecdd3;
  --color-primary-300: #fda4af;
  --color-primary-400: #fb7185;
  --color-primary-500: #f43f5e;
  --color-primary-600: #e11d48;
  --color-primary-700: #be123c;
  --color-primary-800: #9f1239;
  --color-primary-900: #881337;

  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;

  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(225, 29, 72, 0.15);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fffdfa;
  color: var(--color-stone-800);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at top, #fff5f5 0%, #fffbf2 40%, #fffdfa 100%);
  overflow-x: hidden;
}

/* Typography Classes */
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-handwriting { font-family: var(--font-handwriting); }

/* Layout Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ==========================================================================
   Ambient Falling Roses Canvas
   ========================================================================== */
#falling-roses-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 15;
}

/* ==========================================================================
   Header / Sticky Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 230, 138, 0.6);
  transition: all 0.3s ease;
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.avatar-ring {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-amber-400), var(--color-primary-400));
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-amber-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-stone-900);
}

.age-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  border: 1px solid var(--color-primary-200);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(159, 18, 57, 0.85);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-stone-200);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-stone-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background-color: #ffffff;
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Character Spotlight Section
   ========================================================================== */
.spotlight-section {
  position: relative;
  padding: 2.5rem 0 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: rgba(255, 228, 230, 0.85);
  color: var(--color-primary-800);
  border: 1px solid rgba(254, 205, 211, 0.8);
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08);
  margin-bottom: 1.5rem;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 241, 242, 0.6) 50%, rgba(255, 251, 235, 0.7) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(254, 205, 211, 0.85);
  box-shadow: var(--shadow-2xl);
  padding: 2rem;
}

@media (min-width: 768px) {
  .spotlight-card { padding: 2.75rem; }
}

.spotlight-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .spotlight-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }
}

/* Portrait Frame */
.polaroid-frame {
  position: relative;
  background: #ffffff;
  padding: 1.25rem 1.25rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(254, 205, 211, 0.9);
  box-shadow: 0 15px 35px rgba(225, 29, 72, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
}

.polaroid-frame:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.18);
}

.ribbon-tag {
  position: absolute;
  top: -0.75rem;
  right: -0.5rem;
  z-index: 10;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.photo-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--color-stone-100);
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid-frame:hover .photo-container img {
  transform: scale(1.04);
}

.photo-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-stone-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.photo-zoom-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.polaroid-caption {
  text-align: center;
  margin-top: 0.75rem;
}

.polaroid-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.2;
}

.polaroid-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: #e11d48;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* Spotlight Content Right */
.spotlight-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.spotlight-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .spotlight-heading { font-size: 2.75rem; }
}

.spotlight-tagline {
  font-size: 1.05rem;
  color: var(--color-stone-600);
  margin-top: 0.5rem;
}

.love-note-box {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.04);
}

.love-note-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-stone-800);
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

.love-note-signoff {
  margin-top: 1rem;
  font-family: var(--font-handwriting);
  font-size: 1.75rem;
  color: var(--color-primary-600);
  text-align: right;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-stone-800);
  border: 1px solid var(--color-stone-300);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--color-primary-400);
  color: var(--color-primary-600);
  transform: translateY(-1px);
}

/* ==========================================================================
   Virtual Candle Section
   ========================================================================== */
.candle-section {
  padding: 2.5rem 0 4rem;
}

.candle-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 2rem;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .candle-card { padding: 3rem 2.5rem; }
}

.candle-glow-bg {
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.25);
  filter: blur(60px);
  pointer-events: none;
  transition: all 0.7s ease;
}

.candle-glow-bg.blown {
  background: rgba(244, 63, 94, 0.25);
}

/* 3D Cake & Candle Stage */
.cake-stage {
  position: relative;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.candle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.flame-container {
  height: 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.candle-flame {
  position: relative;
  width: 1.25rem;
  height: 2.25rem;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(to top, #ea580c, #f59e0b, #fef08a);
  animation: flameFlicker 1.5s infinite alternate ease-in-out;
  box-shadow: 0 0 20px #f59e0b, 0 0 35px #f43f5e;
}

.flame-core {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #93c5fd;
  opacity: 0.8;
}

.candle-wick {
  width: 3px;
  height: 12px;
  background-color: #292524;
  margin-top: -2px;
  border-radius: 2px;
}

.candle-stick {
  width: 1.25rem;
  height: 4.5rem;
  background: repeating-linear-gradient(
    45deg,
    #f43f5e,
    #f43f5e 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.cake-body {
  margin-top: -0.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-frosting {
  width: 11rem;
  height: 2.25rem;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-radius: 1.25rem 1.25rem 0.5rem 0.5rem;
  border: 2px solid #fecdd3;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cake-base {
  width: 14rem;
  height: 3rem;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 0.5rem 0.5rem 1.25rem 1.25rem;
  border: 2px solid #fcd34d;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-plate {
  width: 17rem;
  height: 0.85rem;
  background: #f5f5f4;
  border-radius: 9999px;
  border: 2px solid #e7e5e4;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin-top: -0.25rem;
}

/* Smoke wisps after blowing out */
.smoke-particle {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #d6d3d1;
  border-radius: 9999px;
  filter: blur(2px);
  animation: smokeRise 2s ease-out forwards;
}

@keyframes smokeRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0.8; }
  100% { transform: translateY(-50px) scale(2.2); opacity: 0; }
}

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

.wish-input-group {
  margin-top: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wish-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(253, 230, 138, 0.9);
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--color-stone-900);
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
}

.wish-input:focus {
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.btn-blow-candle {
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-blow-candle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.45);
}

.btn-blow-candle:active {
  transform: translateY(0);
}

/* Wish Granted Sealed Card */
.wish-granted-card {
  margin-top: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #fde68a;
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.14);
  animation: wishCardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  z-index: 5;
}

@keyframes wishCardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(15px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wish-granted-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.wish-granted-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0.85rem 0 0.35rem;
}

.wish-granted-subtitle {
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.wish-sealed-box {
  background: #fffdf5;
  border: 1.5px dashed #fde68a;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.wish-display-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #292524;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.wish-display-tag {
  font-size: 0.8rem;
  color: #b45309;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wish-granted-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-stardust {
  background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-stardust:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.btn-stardust:active {
  transform: translateY(0);
}

.btn-relight {
  background: #ffffff;
  color: #44403c;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1.5px solid #e7e5e4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-relight:hover {
  background: #f5f5f4;
  transform: translateY(-2px);
  border-color: #d6d3d1;
}

.btn-relight:active {
  transform: translateY(0);
}

/* ==========================================================================
   Photo Gallery Section
   ========================================================================== */
.gallery-section {
  padding: 3rem 0 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-card {
  background: #ffffff;
  padding: 1rem 1rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-stone-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-300);
}

.gallery-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--color-stone-100);
  position: relative;
}

.gallery-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-photo-frame img {
  transform: scale(1.05);
}

.gallery-info {
  margin-top: 0.85rem;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-stone-900);
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--color-stone-600);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.gallery-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-stone-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-button {
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-200);
  color: var(--color-primary-600);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.like-button:hover {
  background: var(--color-primary-100);
  transform: scale(1.05);
}

/* ==========================================================================
   7 Stages of Love Letters Section
   ========================================================================== */
.letters-section {
  padding: 3.5rem 0 5rem;
  background-color: rgba(255, 251, 235, 0.4);
  border-top: 1px solid rgba(253, 230, 138, 0.6);
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .letters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .letters-grid { grid-template-columns: repeat(4, 1fr); }
}

.envelope-card {
  border-radius: 1.5rem;
  border: 2px solid;
  padding: 1.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.envelope-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Color Schemes for the 7 Stages */
.theme-rose {
  border-color: var(--color-primary-200);
  background: linear-gradient(180deg, #fff1f2 0%, rgba(255, 228, 230, 0.6) 100%);
}
.theme-gold {
  border-color: var(--color-amber-200);
  background: linear-gradient(180deg, #fffbeb 0%, rgba(254, 243, 199, 0.6) 100%);
}
.theme-lavender {
  border-color: #e9d5ff;
  background: linear-gradient(180deg, #faf5ff 0%, rgba(243, 232, 255, 0.6) 100%);
}
.theme-emerald {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, rgba(209, 250, 229, 0.6) 100%);
}
.theme-midnight {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, rgba(224, 231, 255, 0.6) 100%);
}
.theme-ruby {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, rgba(254, 226, 226, 0.6) 100%);
}
.theme-sunset {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, rgba(255, 237, 213, 0.6) 100%);
}

.envelope-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.envelope-stamp {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.envelope-stage-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-stone-900);
  line-height: 1.25;
}

.letter-paper-preview {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.letter-paper-preview p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-stone-800);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.envelope-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.envelope-signoff {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--color-primary-600);
  line-height: 1;
}

.read-letter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-stone-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.envelope-card:hover .read-letter-btn {
  background: #ffffff;
  border-color: var(--color-primary-400);
  color: var(--color-primary-600);
}

/* ==========================================================================
   Modals (Intro, Letter Reader, Lightbox)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Surprise Gift Intro Modal */
.intro-modal-dialog {
  max-width: 520px;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 2px solid var(--color-primary-200);
  text-align: center;
  padding: 2.25rem 2rem;
  position: relative;
}

.intro-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.intro-step.active {
  display: flex;
  animation: fadeInStep 0.35s ease forwards;
}

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

.cat-media-box {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(244, 63, 94, 0.3);
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-media-box video,
.cat-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.shake-animation {
  animation: comicShake 0.4s ease-in-out;
}

@keyframes comicShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
  100% { transform: translate(0, 0); }
}

.intro-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-stone-900);
  line-height: 1.3;
}

.intro-subtitle {
  font-size: 0.9rem;
  color: var(--color-stone-600);
  max-width: 380px;
}

.intro-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
  min-height: 48px;
}

/* Stationary Letter Reader */
.letter-reader-dialog {
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
}

.reader-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-stone-200);
  background: var(--color-stone-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-close-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-stone-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.reader-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-stone-900);
}

.reader-body {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  background: #fffdfa;
}

.stationery-paper {
  background: #ffffff;
  border: 1px solid rgba(254, 205, 211, 0.5);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.stationery-content {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-stone-800);
  white-space: pre-line;
}

.stationery-signoff {
  margin-top: 2rem;
  text-align: right;
  font-family: var(--font-handwriting);
  font-size: 2.25rem;
  color: var(--color-primary-600);
}

/* Lightbox Modal */
.lightbox-dialog {
  max-width: 800px;
  background: #000000;
  padding: 0;
  border-radius: 1rem;
}

.lightbox-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

/* ==========================================================================
   Footer & Dedicated Floating Badge
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(253, 230, 138, 0.8);
  background: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  text-align: center;
  margin-top: auto;
}

.footer-dedication {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--color-stone-600);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.floating-dedication {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 30;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(254, 205, 211, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--color-stone-600);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   Multi-Screen Romantic Birthday Intro Flow
   ========================================================================== */
.birthday-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #FAF5F2;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.birthday-intro-overlay.active {
  display: flex;
}

.intro-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.intro-flow-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 0;
}

.intro-screen {
  display: none;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-screen.active {
  display: flex;
  animation: introScreenFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.intro-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 229, 228, 0.8);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-stone-600);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.5rem;
}

.intro-pill-badge .heart-icon {
  color: var(--color-primary-500);
}

.intro-header-block {
  margin-bottom: 0.5rem;
}

.intro-main-heading {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-stone-900);
  line-height: 1.2;
}

.intro-cursive-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #fb7185;
  margin-top: 0.15rem;
}

/* Dancing Kitty Animations */
.dancing-kitty-box {
  margin: 0.5rem 0 1rem;
}

.dancing-kitty-svg {
  width: 105px;
  height: 125px;
  animation: kittyBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

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

.kitty-tail {
  transform-origin: 38px 105px;
  animation: tailWag 1.2s ease-in-out infinite;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}

.kitty-front-paws {
  animation: pawsDance 0.9s ease-in-out infinite;
}

@keyframes pawsDance {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* Vintage Envelope Styling */
.intro-envelope-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vintage-envelope-box {
  position: relative;
  width: 250px;
  height: 155px;
  cursor: pointer;
  user-select: none;
  animation: envelopeFloat 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.vintage-envelope-box:hover {
  transform: translateY(-4px) scale(1.03);
}

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

.envelope-shadow {
  position: absolute;
  inset: 0;
  background: rgba(41, 37, 36, 0.12);
  border-radius: 1.25rem;
  filter: blur(8px);
  transform: translateY(8px);
}

.envelope-base {
  position: absolute;
  inset: 0;
  background: #F5EFE6;
  border-radius: 0.85rem;
  border: 1px solid #DECDBB;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-back-folds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.envelope-letter-peek {
  position: absolute;
  width: 78%;
  height: 60px;
  background: #ffffff;
  border-radius: 6px 6px 0 0;
  top: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(220, 206, 192, 0.6);
  transition: transform 0.4s ease;
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 20;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.envelope-top-flap.flap-open {
  transform: rotateX(180deg);
  opacity: 0;
}

.envelope-flap-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.envelope-wax-seal {
  position: absolute;
  top: 3.75rem;
  z-index: 30;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.envelope-wax-seal.seal-fade {
  transform: scale(0);
  opacity: 0;
}

.seal-inner {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  border: 1.5px solid #fda4af;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tap-open-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-stone-500);
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Screen 2: Opened Letter Card */
.opened-letter-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.75rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(254, 205, 211, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.chibi-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chibi-avatar-frame {
  width: 78px;
  height: 78px;
  border-radius: 9999px;
  background: #FFF5F6;
  border: 2px solid rgba(254, 205, 211, 0.9);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chibi-svg {
  width: 100%;
  height: 100%;
}

.beating-heart {
  animation: heartBeat 1.4s ease-in-out infinite;
  transform-origin: 50px 65px;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}

.hehe-pill-badge {
  position: absolute;
  bottom: -6px;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  background: #fff1f2;
  border: 1px solid rgba(254, 205, 211, 0.9);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.letter-heading-block {
  margin-top: 0.35rem;
}

.letter-main-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-stone-900);
  line-height: 1.15;
}

.letter-sub-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #fb7185;
}

.flower-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--color-stone-300);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  margin: 0.25rem 0;
}

.flower-emoji {
  font-size: 1rem;
}

.letter-body-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-stone-700);
  text-align: center;
  letter-spacing: 0.02em;
  padding: 0 0.5rem;
}

.letter-actions-block {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tease-quote-bubble {
  font-size: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-700);
  background: #fff1f2;
  padding: 0.2rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(254, 205, 211, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  animation: popBubble 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popBubble {
  from { opacity: 0; transform: scale(0.9) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.letter-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.btn-click-here {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-click-here:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4);
}

.btn-no-dodge {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  color: var(--color-stone-600);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.intro-footer-dedication {
  text-align: center;
  padding-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-stone-600);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pulse-heart {
  display: inline-block;
  animation: heartBeat 1.4s infinite;
}

/* ==========================================================================
   Surprise Cat Meme Modal - Exact Match to User Screenshots
   ========================================================================== */
.surprise-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #FFAEC0;
  background: linear-gradient(180deg, #FDB0C0 0%, #FA93AE 50%, #F472B6 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  user-select: none;
  transition: background 0.3s ease;
}

.surprise-modal-backdrop.open {
  display: flex;
  animation: surpriseFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.surprise-modal-backdrop.meme-screen {
  background: #FFAEC0 !important;
}

@keyframes surpriseFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Floating ambient petals in background (visible on gift_box, hidden on meme screens) */
.surprise-ambient-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.surprise-modal-backdrop.meme-screen .surprise-ambient-petals {
  display: none;
}

.surprise-ambient-petal {
  position: absolute;
  color: rgba(255, 240, 245, 0.6);
  font-size: 1.35rem;
  animation: floatPetalUp 8s linear infinite;
  user-select: none;
}

@keyframes floatPetalUp {
  0% { transform: translateY(105vh) rotate(0deg); opacity: 0.1; }
  20% { opacity: 0.55; }
  80% { opacity: 0.55; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Back Button (top left corner) */
.surprise-back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 40;
  font-size: 0.75rem;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  outline: none;
}

.surprise-back-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Dynamic Top Header Text */
.surprise-header-wrap {
  text-align: center;
  margin-bottom: 1rem;
  z-index: 20;
  max-width: 90vw;
}

@media (min-width: 640px) {
  .surprise-header-wrap {
    margin-bottom: 1.25rem;
  }
}

.surprise-header-title {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  line-height: 1.35;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
  margin: 0;
  transition: all 0.2s ease;
}

.surprise-header-title.step-angry {
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.surprise-header-title.step-love {
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.surprise-header-title.step-thanks {
  letter-spacing: 0.26em;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

@media (min-width: 640px) {
  .surprise-header-title {
    font-size: 1.25rem;
  }
  .surprise-header-title.step-angry,
  .surprise-header-title.step-love {
    font-size: 1.3rem;
  }
  .surprise-header-title.step-thanks {
    font-size: 1.55rem;
  }
}

.surprise-header-subtitle {
  color: #FFE4E6;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .surprise-header-subtitle {
    font-size: 0.875rem;
  }
}

/* 3D Heart Platform Stand */
.heart-stand-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

@media (min-width: 640px) {
  .heart-stand-container {
    width: 368px;
    height: 368px;
  }
}

.heart-stand-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(225, 29, 72, 0.28));
  user-select: none;
  pointer-events: none;
}

/* Media Centered inside Heart */
.heart-media-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Generic rounded card for cute cats */
.heart-media-card {
  width: 176px;
  height: 176px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(254, 205, 211, 0.9);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Exact square meme frame for angry cat with gun matching Screenshot 2 & 4 */
.heart-media-card.square-meme {
  border-radius: 0 !important;
  border: 2px solid rgba(28, 25, 23, 0.6) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  background: #000000 !important;
}

.heart-media-card video,
.heart-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Action Buttons Container Overlapping Bottom of Heart */
.heart-buttons-row {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  z-index: 30;
  width: 100%;
}

@media (min-width: 640px) {
  .heart-buttons-row {
    bottom: 28px;
    gap: 1rem;
  }
}

/* Exact Pill Buttons & Hover Effects from User's Screenshots */
.surprise-pill-btn {
  min-width: 5.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF007F 0%, #FF1493 50%, #E11D48 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(249, 168, 212, 0.4);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.55);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  outline: none;
  text-decoration: none;
}

@media (min-width: 640px) {
  .surprise-pill-btn {
    min-width: 6.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Hover on YES & general pill buttons */
.surprise-pill-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.7);
}

/* Hover on NO button (matches scale: 1.04 from React code) */
.surprise-pill-btn.surprise-no-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.7);
}

.surprise-pill-btn:active {
  transform: scale(0.95);
}

/* Angry Cat Single YES Button */
.surprise-pill-btn.surprise-angry-yes-btn {
  min-width: 7rem;
  letter-spacing: 0.15em;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
  .surprise-pill-btn.surprise-angry-yes-btn {
    min-width: 8rem;
  }
}

/* Click Here Pulsing Button */
.surprise-click-here-btn {
  padding: 0.5rem 1.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.6);
  animation: clickHerePulse 1.8s ease-in-out infinite;
}

@media (min-width: 640px) {
  .surprise-click-here-btn {
    padding: 0.625rem 2rem;
  }
}

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

.surprise-click-here-btn:hover {
  animation: none;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.75);
}

.finger-bounce {
  display: inline-block;
  animation: fingerBounce 0.8s infinite alternate ease-in-out;
}

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

/* Subtle Dedication Footer */
.surprise-footer-dedication {
  position: absolute;
  bottom: 0.875rem;
  inset-x: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  z-index: 30;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

@media (min-width: 640px) {
  .surprise-footer-dedication {
    bottom: 1rem;
    font-size: 0.875rem;
  }
}

/* Chibi bobbing animation for Gift Box step */
.chibi-bobbing {
  animation: chibiBob 2s ease-in-out infinite;
  transform-origin: 80px 64px;
}

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

.chibi-heart-float {
  animation: heartFloatPulse 1.4s ease-in-out infinite;
}

@keyframes heartFloatPulse {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ==========================================================================
   Music Player Widget in Navbar
   ========================================================================== */
.nav-music-player {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.nav-music-player:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-md);
}

.vinyl-disc-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: radial-gradient(circle, #f43f5e 25%, #1c1917 26%, #1c1917 65%, #44403c 66%, #1c1917 100%);
  border: 1px solid #e11d48;
}

.nav-music-player.playing .vinyl-disc {
  animation: spin 3.5s linear infinite;
}

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

.music-track-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.track-details {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-stone-800);
  line-height: 1.1;
}

.track-artist {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary-600);
  line-height: 1;
}

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

.eq-bar {
  width: 2.5px;
  background-color: var(--color-primary-500);
  border-radius: 9999px;
  height: 3px;
  transition: height 0.15s ease;
}

.nav-music-player.playing .eq-1 {
  animation: eqJump 0.6s ease-in-out infinite alternate;
}
.nav-music-player.playing .eq-2 {
  animation: eqJump 0.8s ease-in-out 0.15s infinite alternate;
}
.nav-music-player.playing .eq-3 {
  animation: eqJump 0.5s ease-in-out 0.3s infinite alternate;
}
.nav-music-player.playing .eq-4 {
  animation: eqJump 0.7s ease-in-out 0.1s infinite alternate;
}

@keyframes eqJump {
  0% { height: 3px; }
  100% { height: 14px; }
}

.music-ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-stone-600);
  font-size: 0.85rem;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.music-ctrl-btn:hover {
  color: var(--color-primary-600);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--color-stone-200);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-stone-700);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #fff1f2;
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

@media (max-width: 640px) {
  .nav-btn .btn-text {
    display: none;
  }
}

/* ==========================================================================
   Spotlight Enhancements
   ========================================================================== */
.polaroid-frame-col {
  display: flex;
  justify-content: center;
}

.headline-tag-wrap {
  margin-bottom: 0.6rem;
}

.spotlight-main-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.golden-gradient-text {
  background: linear-gradient(135deg, #B47B16 0%, #E8A317 50%, #C68012 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(180, 123, 22, 0.25));
}

.celebrate-emoji {
  font-size: 1.85rem;
}

.love-note-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-stone-700);
}

.note-first-line {
  font-family: var(--font-sans);
  font-weight: 800;
  color: #881337;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.note-last-line {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #e11d48;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.spotlight-dedication-bar {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dedication-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dedication-heart-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #fecdd3;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dedication-lead {
  font-weight: 800;
  font-size: 0.85rem;
  color: #1c1917;
}

.dedication-sub {
  font-size: 0.75rem;
  color: #78716c;
}

.btn-send-love {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF007F 0%, #E11D48 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-send-love:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.55);
}

.love-btn-heart {
  animation: heartBeat 1.4s infinite;
}

/* ==========================================================================
   Virtual Candle Shockwave & Ascending Stars
   ========================================================================== */
.wish-shockwave {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), rgba(244, 63, 94, 0.1), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 25;
}

.wish-shockwave.pulse {
  animation: shockwavePulse 1.4s ease-out forwards;
}

@keyframes shockwavePulse {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

.wish-stars-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 30;
}

.ascending-wish-star {
  position: absolute;
  font-size: 1.1rem;
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  animation: floatUpStar 2s ease-out forwards;
}

@keyframes floatUpStar {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translate(var(--offset-x), -15px) scale(1.4); }
  100% { transform: translate(calc(var(--offset-x) * 1.5), -70px) scale(0); opacity: 0; }
}

.candle-stripes {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, transparent 4px, transparent 8px);
}

.flame-aura {
  position: absolute;
  inset: -6px;
  background: rgba(251, 191, 36, 0.4);
  border-radius: 9999px;
  filter: blur(6px);
  animation: pulseHint 1.2s infinite;
}

.flame-body {
  width: 18px;
  height: 32px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: linear-gradient(to top, #ea580c, #f59e0b, #fef08a);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
  animation: flameFlicker 1.5s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-1deg); }
  100% { transform: scale(1.08) rotate(1deg); }
}

.wish-interaction-area {
  margin-top: 1.5rem;
}

.wish-buttons-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Gallery Tabs & Enhanced Lightbox
   ========================================================================== */
.gallery-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-tabs-row {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-stone-200);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  width: fit-content;
}

.gallery-tab {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-stone-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-tab:hover {
  color: var(--color-primary-600);
}

.gallery-tab.active {
  background: #ffffff;
  color: var(--color-primary-700);
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(254, 205, 211, 0.9);
}

.photo-overlay-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .photo-overlay-zoom {
  opacity: 1;
}

.zoom-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-stone-800);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.card-category-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #fff1f2;
  color: var(--color-primary-700);
  border: 1px solid rgba(254, 205, 211, 0.7);
}

.card-location-tag {
  font-size: 0.7rem;
  color: var(--color-stone-500);
  font-weight: 500;
}

/* Lightbox Modal with Next/Prev */
.lightbox-dialog {
  max-width: 920px;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.lightbox-float-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-float-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .lightbox-layout {
    flex-direction: row;
    min-height: 520px;
  }
}

.lightbox-photo-half {
  flex: 3;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev-btn {
  left: 0.75rem;
}

.lightbox-nav-btn.next-btn {
  right: 0.75rem;
}

.lightbox-details-half {
  flex: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.lightbox-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.lightbox-counter-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-stone-500);
}

.lightbox-detail-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-stone-900);
  line-height: 1.2;
}

.lightbox-meta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-stone-500);
}

.lightbox-caption-box {
  margin-top: 1rem;
  padding: 0.85rem;
  background: #fafaf9;
  border-radius: 0.75rem;
  border-left: 3px solid var(--color-primary-400);
}

.lightbox-caption-text {
  font-size: 0.9rem;
  color: var(--color-stone-700);
  line-height: 1.5;
}

.lightbox-story-box {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-stone-600);
  line-height: 1.5;
}

.story-label {
  font-weight: 700;
  color: var(--color-stone-800);
  display: block;
  margin-bottom: 0.15rem;
}

.lightbox-details-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-stone-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uploaded-by-text {
  font-size: 0.8rem;
  color: var(--color-stone-500);
}

/* Washi Tape & Letter Reader Enhancements */
.washi-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 110px;
  height: 18px;
  background: rgba(254, 205, 211, 0.85);
  border-top: 1px solid rgba(251, 113, 133, 0.5);
  border-bottom: 1px solid rgba(251, 113, 133, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  z-index: 20;
}

.reader-letter-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-stone-900);
  margin-top: 0.25rem;
  line-height: 1.2;
}

.reader-letter-subtitle {
  font-size: 0.75rem;
  color: var(--color-primary-600);
  font-weight: 500;
  margin-top: 0.15rem;
}

.stage-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background: #fff1f2;
  border: 1px solid rgba(254, 205, 211, 0.9);
  color: var(--color-primary-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.reader-stamp-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #fff1f2;
  border: 1.5px solid rgba(254, 205, 211, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(3deg);
}

.stationery-signoff-row {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(254, 205, 211, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signoff-lead {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-stone-400);
}

.signoff-handwriting {
  font-family: var(--font-handwriting);
  font-size: 2.25rem;
  color: var(--color-primary-600);
  line-height: 1;
}

.signoff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #fff1f2;
  border: 1px solid rgba(254, 205, 211, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-700);
}

.reader-nav-footer {
  padding: 0.85rem 1.5rem;
  background: rgba(255, 241, 242, 0.6);
  border-top: 1px solid rgba(254, 205, 211, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reader-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-reader-nav {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-stone-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reader-nav:hover:not(:disabled) {
  background: #fff1f2;
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

.btn-reader-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-reader-close {
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #ffffff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25);
  transition: transform 0.2s ease;
}

.btn-reader-close:hover {
  transform: scale(1.03);
}

/* Add Photo & Personalize Modals */
.add-photo-dialog,
.personalize-dialog {
  max-width: 520px;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-stone-700);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stone-200);
  font-size: 0.875rem;
  color: var(--color-stone-900);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.file-drop-zone {
  border: 2px dashed rgba(254, 205, 211, 0.9);
  background: #fffdfa;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-drop-zone:hover {
  border-color: var(--color-primary-400);
}

