/* ==========================================================================
   Romantic Memories Portal - Haute-Couture Luxury Romantic Design System
   ========================================================================== */

:root {
  /* Luxury Palette: Rose Gold & Velvet Cherry */
  --primary-pink: #fb7185;
  --soft-pink: #fff1f2;
  --blush-light: #ffe4e6;
  --deep-rose: #e11d48;
  --velvet-cherry: #be123c;
  --rose-gold: #e0a96d;
  --rose-gold-glow: rgba(225, 29, 72, 0.16);
  --cream-white: #fffdfc;
  
  /* Frosted Glass & Surface */
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(251, 113, 133, 0.28);
  --card-inner-border: rgba(225, 29, 72, 0.12);
  
  /* Rich Espresso & Warm Neutrals for Ultra Readability */
  --text-dark: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #78716c;
  
  /* Soft Ambient Glows & Shadows */
  --shadow-soft: 0 14px 40px rgba(190, 18, 60, 0.07), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 22px 50px rgba(190, 18, 60, 0.16), 0 4px 12px rgba(225, 29, 72, 0.08);
  
  /* Typography */
  --font-arabic: 'Alexandria', 'Cairo', sans-serif;
  --font-english-serif: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-arabic);
  background: radial-gradient(circle at 10% 20%, #fff1f2 0%, #fffafb 40%, #fdf2f8 90%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  direction: rtl;
}

/* ==========================================================================
   Background Floating Particles & Shimmer
   ========================================================================== */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.floating-balloon {
  position: absolute;
  bottom: -70px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  opacity: 0.75;
  filter: drop-shadow(0 8px 14px rgba(233, 30, 99, 0.15));
  animation: floatUpward linear infinite;
}

.floating-balloon::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 20px;
  background: rgba(141, 110, 99, 0.35);
}

.floating-balloon::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid currentColor;
}

@keyframes floatUpward {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.8; }
  100% { transform: translateY(-115vh) rotate(16deg); opacity: 0; }
}

/* Click Sparkle Heart */
.click-heart {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  z-index: 9999;
  user-select: none;
  animation: popAndFade 1.2s forwards cubic-bezier(0.12, 0.84, 0.5, 1.2);
}

@keyframes popAndFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  40% { opacity: 0.95; transform: translate(-50%, -85px) scale(1.35) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -160px) scale(0.8) rotate(var(--rot, 0deg)); }
}

/* ==========================================================================
   App Container (Mobile & Tablet Frame)
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(216, 27, 96, 0.08);
  display: flex;
  flex-direction: column;
  padding-bottom: 95px; /* Space for audio player */
}

/* ==========================================================================
   1. Lock Screen (Instagram Exact Replica)
   ========================================================================== */
.lock-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: #fffdfb;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 24px;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease, visibility 0.8s;
}

.lock-screen.unlocked {
  opacity: 0;
  transform: translateX(-50%) translateY(-30px) scale(0.95);
  visibility: hidden;
  pointer-events: none;
}

.lock-content {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInDown 1s ease;
}

.lock-subtitle {
  font-family: var(--font-english-serif);
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: #8c7676;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lock-title {
  font-family: var(--font-english-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #332626;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.lock-title .heart-icon {
  color: #e53935;
  display: inline-block;
  animation: heartbeat 1.5s infinite ease-in-out;
}

.lock-prompt {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #9e7d7d;
  font-weight: 600;
  margin-bottom: 22px;
}

.lock-input-wrap {
  width: 100%;
  margin-bottom: 25px;
}

.lock-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(224, 187, 196, 0.8);
  background: #ffffff;
  color: #332626;
  font-size: 1.05rem;
  text-align: center;
  outline: none;
  font-family: var(--font-arabic);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.05);
  transition: all 0.3s ease;
}

.lock-input:focus {
  border-color: #e57373;
  box-shadow: 0 6px 22px rgba(229, 57, 53, 0.18);
  transform: translateY(-2px);
}

.lock-unlock-btn {
  background: transparent;
  border: none;
  font-family: var(--font-english-serif);
  font-size: 1.15rem;
  color: #b71c1c;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 30px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.lock-unlock-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #c62828;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.lock-unlock-btn:hover {
  transform: scale(1.05);
  color: #d32f2f;
}

.lock-unlock-btn:hover::after {
  left: 0;
  right: 0;
  background: #e53935;
}

.lock-hint-btn {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #b08d8d;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.lock-hint-btn:hover {
  color: #d81b60;
}

.lock-error-msg {
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: 12px;
  min-height: 20px;
  font-weight: 500;
  animation: shake 0.5s ease;
}

.lock-footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: #b59f9f;
  font-family: var(--font-english-serif);
}

/* ==========================================================================
   2. Multi-Page Story Framework (Pagination & Navigation)
   ========================================================================== */
.story-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 95px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.story-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Top Progress Dots & Stepper */
.story-nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 143, 177, 0.25);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244, 143, 177, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.page-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--deep-rose);
  box-shadow: 0 2px 8px rgba(216, 27, 96, 0.35);
}

.page-stepper-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--deep-rose);
}

/* Page Container & Slide Animations */
.story-pages-viewport {
  position: relative;
  width: 100%;
}

.story-page {
  display: none;
  padding: 20px 16px 40px;
  animation: pageFadeIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.story-page.active {
  display: block;
}

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

/* Bottom Navigation Controls */
.page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed rgba(244, 143, 177, 0.4);
}

.btn-nav-prev, .btn-nav-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-arabic);
}

.btn-nav-prev {
  background: #ffffff;
  border: 1.5px solid rgba(244, 143, 177, 0.6);
  color: var(--text-muted);
}

.btn-nav-prev:hover {
  background: #fff0f5;
  color: var(--deep-rose);
  border-color: var(--deep-rose);
  transform: translateX(3px);
}

.btn-nav-next {
  background: linear-gradient(135deg, #f48fb1, #d81b60);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(216, 27, 96, 0.25);
  flex-grow: 1;
}

.btn-nav-next:hover {
  background: linear-gradient(135deg, #f06292, #c2185b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(216, 27, 96, 0.35);
}

/* ==========================================================================
   Page 1: Welcome & Live Love Counter
   ========================================================================== */
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 247, 0.94) 100%);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 36px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-family: var(--font-english-serif);
}

.hero-main-title {
  font-size: 1.75rem;
  line-height: 1.6;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  white-space: pre-line;
}

.hero-divider-heart {
  font-size: 1.8rem;
  color: var(--deep-rose);
  margin: 8px 0;
  display: inline-block;
  animation: floatHeart 2.5s infinite ease-in-out;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

.counter-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff1f4 100%);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.counter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.counter-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: 18px;
  padding: 14px 6px;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.04);
}

.counter-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--velvet-cherry);
  font-family: var(--font-english-serif);
  display: block;
}

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

/* ==========================================================================
   Page 2: For Us Love Letter
   ========================================================================== */
.for-us-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.for-us-header {
  font-family: var(--font-english-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #332626;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.for-us-body {
  background: #fffafa;
  border: 1px dashed rgba(244, 143, 177, 0.6);
  border-radius: 20px;
  padding: 24px 18px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #4e342e;
  font-weight: 500;
  margin-bottom: 18px;
}

.for-us-quote {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 14px;
}

.for-us-heart-center {
  font-size: 2.2rem;
  color: #e53935;
  animation: pulse 1.8s infinite;
  display: inline-block;
}

/* ==========================================================================
   Page 3: 10 Photos Polaroid Gallery (السيكشن الأول: 10 صور)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #3e2723;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.polaroid-10-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.polaroid-card {
  background: #ffffff;
  padding: 10px 10px 16px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Tape effect */
.polaroid-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 15px;
  background: rgba(255, 235, 238, 0.85);
  border: 1px solid rgba(244, 143, 177, 0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 2;
}

.polaroid-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 16px 32px rgba(216, 27, 96, 0.2);
  z-index: 5;
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 2px;
  margin-bottom: 10px;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.polaroid-caption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3e2723;
  text-align: center;
  font-family: var(--font-arabic);
  font-weight: 600;
  margin-top: auto;
}

.polaroid-date {
  font-size: 0.7rem;
  color: #8d6e63;
  text-align: center;
  margin-top: 5px;
}

/* ==========================================================================
   Page 4: 7 Columns Stories (السيكشن الثاني: 7 أعمدة ومحطات)
   ========================================================================== */
.seven-columns-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.column-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.column-icon-wrap {
  font-size: 1.6rem;
}

.column-date-pill {
  background: linear-gradient(135deg, #e53935, #c2185b);
  color: #ffffff;
  font-family: var(--font-english-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.column-content-box {
  padding: 12px 20px 16px;
  text-align: right;
}

.column-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #3e2723;
  margin-bottom: 8px;
}

.column-story {
  font-size: 0.95rem;
  color: #5d4037;
  line-height: 1.7;
}

.column-image-wrap {
  width: 100%;
  max-height: 380px;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #fdf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 22px 22px;
}

.column-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
  display: block;
}

.column-image-wrap:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   Page 5: Bucket List (قائمة الأهداف المشتركة)
   ========================================================================== */
.bucket-card-wrap {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: var(--shadow-soft);
}

.bucket-progress-wrapper {
  margin-bottom: 22px;
  background: #fff0f5;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(244, 143, 177, 0.4);
}

.bucket-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(244, 143, 177, 0.25);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f48fb1, #d81b60);
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bucket-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffdfd;
  border: 1px solid rgba(244, 143, 177, 0.3);
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.bucket-item:hover {
  background: #fff5f8;
  border-color: var(--primary-pink);
  transform: translateX(-3px);
}

.bucket-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: #fff;
  font-size: 0.85rem;
}

.bucket-item.done .bucket-checkbox {
  background: var(--deep-rose);
  border-color: var(--deep-rose);
}

.bucket-item-text {
  font-size: 0.95rem;
  color: #4e342e;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.bucket-item.done .bucket-item-text {
  text-decoration: line-through;
  color: #a1887f;
}

/* ==========================================================================
   Floating Music Player (Fixed Bottom Bar)
   ========================================================================== */
.music-player-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244, 143, 177, 0.4);
  box-shadow: 0 -8px 25px rgba(216, 27, 96, 0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f48fb1, #d81b60);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(216, 27, 96, 0.25);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}

.music-player-bar.playing .music-disc {
  animation-play-state: running;
}

.music-meta {
  display: flex;
  flex-direction: column;
}

.music-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3e2723;
}

.music-artist {
  font-size: 0.75rem;
  color: #8d6e63;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn.play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
  transition: all 0.2s ease;
}

.music-btn.play-pause-btn:hover {
  background: #c62828;
  transform: scale(1.08);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.lightbox-content {
  background: #fff;
  border-radius: 18px;
  max-width: 450px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-close-btn:hover {
  background: rgba(216, 27, 96, 0.9);
}

.lightbox-image-wrap {
  width: 100%;
  max-height: 65vh;
  background: #000;
}

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

.lightbox-caption-box {
  padding: 18px 20px;
}

.lightbox-caption-text {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2723;
  line-height: 1.6;
  margin-bottom: 6px;
}

.lightbox-date-text {
  font-size: 0.8rem;
  color: #8d6e63;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Large Screens (Centered App Shell with subtle romantic desktop background) */
@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
  }

  .app-container {
    border-radius: 36px;
    overflow: hidden;
    min-height: 92vh;
    box-shadow: 0 25px 60px rgba(216, 27, 96, 0.15), 0 0 0 1px rgba(244, 143, 177, 0.35);
  }

  .lock-screen {
    border-radius: 36px;
    height: 92vh;
    top: 4vh;
  }

  .music-player-bar {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    bottom: 4vh;
  }
}

/* Small Mobile Screens (< 420px) */
@media (max-width: 420px) {
  .hero-card {
    padding: 24px 16px 20px;
    margin-bottom: 18px;
  }

  .hero-main-title {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .counter-grid {
    gap: 6px;
  }

  .counter-number {
    font-size: 1.25rem;
  }

  .counter-label {
    font-size: 0.7rem;
  }

  .for-us-card {
    padding: 24px 16px;
  }

  .for-us-body {
    font-size: 0.95rem;
    padding: 16px 14px;
    line-height: 1.7;
  }

  .polaroid-10-grid {
    gap: 12px;
  }

  .polaroid-card {
    padding: 8px 8px 14px;
  }

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

  .column-title {
    font-size: 1.05rem;
  }

  .column-story {
    font-size: 0.88rem;
  }

  .column-image-wrap {
    height: 170px;
  }

  .bucket-item-text {
    font-size: 0.88rem;
  }

  .btn-nav-prev, .btn-nav-next {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .music-title {
    font-size: 0.85rem;
  }

  .music-artist {
    font-size: 0.7rem;
  }

  .music-btn.play-pause-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* Very Small Mobile Screens (< 360px) */
@media (max-width: 360px) {
  .polaroid-10-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-card {
    max-width: 260px;
    margin: 0 auto;
  }
}
