/* ═══════════════════════════════════════════════════════════════════════
   💕 গুলাবোৰ বাৰ্থডে — Premium Dark Theme Styles
   Mobile-first, GPU-accelerated animations, Glassmorphism
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-deep: #060211;
  --bg-primary: #0a0612;
  --bg-secondary: #120c1e;
  --bg-card: rgba(255,255,255,0.035);

  --pink: #ff6b9d;
  --rose: #e91e63;
  --rose-light: #ff80ab;
  --rose-gold: #e8a87c;
  --gold: #ffd700;
  --gold-dark: #ffab00;
  --purple: #b388ff;
  --purple-deep: #7c4dff;
  --lavender: #ce93d8;
  --teal: #64ffda;

  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.35);

  --gradient-love: linear-gradient(135deg, #ff6b9d 0%, #c850c0 50%, #7c4dff 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffab00 50%, #ff8f00 100%);
  --gradient-rose: linear-gradient(135deg, #ff6b9d 0%, #e91e63 100%);
  --gradient-dream: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

  --glass: rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-hover: rgba(255,107,157,0.3);

  --shadow-sm: 0 4px 15px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 15px 50px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(255,107,157,0.15);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ═══════════════════ PRELOADER ═══════════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-container { text-align: center; }

.loader-heart-wrap {
  width: 80px; height: 80px;
  position: relative; margin: 0 auto 25px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-heart-wrap::before,
.loader-heart-wrap::after {
  content: ''; position: absolute;
  width: 40px; height: 65px;
  background: var(--gradient-love);
  border-radius: 40px 40px 0 0;
}
.loader-heart-wrap::before {
  left: 40px; top: 0;
  transform: rotate(-45deg); transform-origin: 0 100%;
}
.loader-heart-wrap::after {
  left: 0; top: 0;
  transform: rotate(45deg); transform-origin: 100% 100%;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
}

.loader-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  animation: loaderFade 1.5s ease-in-out infinite;
}

.loader-dots span {
  display: inline-block; width: 6px; height: 6px;
  background: var(--pink); border-radius: 50%;
  margin: 8px 3px 0; animation: dotBounce 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

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

/* ═══════════════════ ENTRANCE GATE ═══════════════════ */
#entrance-gate {
  position: fixed; inset: 0; z-index: 9000;
  background: radial-gradient(ellipse at 50% 40%, #1a0e2e 0%, var(--bg-deep) 70%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
#entrance-gate.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-content { text-align: center; z-index: 2; position: relative; padding: 20px; }
.gate-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Envelope */
.envelope {
  width: 140px; height: 100px;
  margin: 0 auto 35px; position: relative;
  cursor: pointer; perspective: 300px;
}
.envelope-body {
  width: 100%; height: 100%;
  background: var(--gradient-love);
  border-radius: 10px; position: relative;
  box-shadow: 0 12px 40px rgba(255,107,157,0.25);
}
.envelope-flap {
  position: absolute; top: 0; left: 0; width: 100%; height: 55%;
  background: var(--gradient-rose);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 1; transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border-radius: 10px 10px 0 0;
}
.envelope:hover .envelope-flap { transform: rotateX(180deg); }
.letter-pull {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  font-size: 2.2rem; animation: floatSoft 2.5s ease-in-out infinite;
}

.gate-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem; color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 25px rgba(255,215,0,0.25);
  animation: fadeInUp 0.8s ease;
}
.gate-subtitle {
  color: var(--text-secondary); font-size: 1rem;
  margin-bottom: 35px; animation: fadeInUp 1s ease;
}

/* Magic Button */
.magic-btn {
  background: var(--gradient-love);
  border: none; padding: 18px 48px;
  border-radius: 60px; color: #fff;
  font-size: 1.1rem; font-family: 'Poppins', sans-serif;
  font-weight: 500; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 30px rgba(233,30,99,0.35);
  animation: fadeInUp 1.2s ease;
}
.magic-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(233,30,99,0.5);
}
.magic-btn:active { transform: scale(0.96); }

.btn-sparkle {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: sparkleSlide 2.5s infinite;
}
@keyframes sparkleSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ═══════════════════ MUSIC TOGGLE ═══════════════════ */
.music-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 8000;
  width: 50px; height: 50px; border-radius: var(--radius-full);
  border: 1.5px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, border-color 0.3s;
}
.music-toggle:hover { transform: scale(1.1); border-color: var(--pink); }
.music-icon { font-size: 1.3rem; }
.music-waves {
  display: none; gap: 2px; align-items: flex-end; height: 18px;
}
.music-waves span {
  width: 3px; background: var(--pink);
  border-radius: 3px;
  animation: waveBar 0.6s ease-in-out infinite alternate;
}
.music-waves span:nth-child(1) { height: 8px; }
.music-waves span:nth-child(2) { animation-delay: 0.15s; height: 18px; }
.music-waves span:nth-child(3) { animation-delay: 0.3s; height: 12px; }
.music-waves span:nth-child(4) { animation-delay: 0.45s; height: 6px; }
.music-toggle.playing .music-icon { display: none; }
.music-toggle.playing .music-waves { display: flex; }
@keyframes waveBar { 0% { height: 4px; } 100% { height: 18px; } }

/* ═══════════════════ CANVASES ═══════════════════ */
#heartsCanvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#fireworksCanvas { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
#petalsCanvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px;
}

.section-header { text-align: center; margin-bottom: 50px; }

.section-icon {
  font-size: 2.8rem; display: block;
  margin-bottom: 14px;
  animation: floatSoft 3s ease-in-out infinite;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700;
  background: var(--gradient-love);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary); font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

/* ═══════════════════ HERO SECTION ═══════════════════ */
.hero-section {
  min-height: 100vh; text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(233,30,99,0.06), transparent 70%);
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.12;
  will-change: transform;
}
.shape-1 {
  width: 450px; height: 450px; background: var(--pink);
  top: -120px; right: -120px;
  animation: morphFloat 10s ease-in-out infinite;
}
.shape-2 {
  width: 380px; height: 380px; background: var(--purple);
  bottom: -80px; left: -120px;
  animation: morphFloat 13s ease-in-out infinite reverse;
}
.shape-3 {
  width: 280px; height: 280px; background: var(--gold);
  top: 45%; left: 50%;
  animation: morphFloat 16s ease-in-out infinite 3s;
}

@keyframes morphFloat {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
    transform: translate(25px, -25px) rotate(60deg);
  }
  66% {
    border-radius: 28% 72% 44% 56% / 49% 40% 60% 51%;
    transform: translate(-20px, 20px) rotate(120deg);
  }
}

.hero-content { position: relative; z-index: 2; }

.crown-icon {
  font-size: 3.5rem;
  animation: floatSoft 2.5s ease-in-out infinite;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px rgba(255,215,0,0.3));
}

.hero-name-tag {
  display: inline-block;
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 50px; padding: 8px 28px;
  margin-bottom: 20px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem; color: var(--rose-light);
  animation: fadeInUp 0.6s ease;
}

.hero-title { font-family: 'Great Vibes', cursive; margin-bottom: 15px; }
.hero-title .line-1 {
  display: block; font-size: 2.6rem; color: var(--gold);
  text-shadow: 0 0 35px rgba(255,215,0,0.25);
  animation: fadeInUp 0.8s ease;
}
.hero-title .line-2 {
  display: block; font-size: 4rem;
  background: var(--gradient-love);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}
.hero-title .line-3 {
  display: block; font-size: 3.2rem; color: var(--gold);
  text-shadow: 0 0 35px rgba(255,215,0,0.25);
  font-family: 'Great Vibes', cursive;
  animation: fadeInUp 1.2s ease;
}

.hero-divider {
  margin: 18px 0;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.hero-divider::before, .hero-divider::after {
  content: ''; width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}
.divider-heart { font-size: 1.5rem; animation: heartPulse 1.5s infinite; }

.hero-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 12px;
  animation: fadeInUp 1.4s ease;
}

.hero-subtitle {
  color: var(--text-secondary); font-size: 1.05rem;
  max-width: 420px; margin: 0 auto 35px;
  animation: fadeInUp 1.6s ease;
}

.hero-age-badge { margin-bottom: 40px; animation: fadeInUp 1.8s ease; }
.age-ring {
  width: 130px; height: 130px; border-radius: var(--radius-full);
  border: 2.5px solid var(--pink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto;
  background: var(--glass); backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 35px rgba(255,107,157,0.15);
  animation: glowPulse 3s ease-in-out infinite;
}
.age-number {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem; color: var(--gold); line-height: 1;
}
.age-text {
  font-size: 0.55rem; color: var(--text-secondary);
  text-align: center; line-height: 1.3; padding: 0 12px;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,157,0.15); }
  50% { box-shadow: 0 0 45px rgba(255,107,157,0.35); }
}

.scroll-indicator { animation: floatSoft 2s ease-in-out infinite; }
.mouse {
  width: 26px; height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px; margin: 0 auto 8px;
  display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
  width: 3px; height: 9px;
  background: var(--pink); border-radius: 3px;
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}
.scroll-indicator p { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════ COUNTDOWN ═══════════════════ */
.countdown-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(179,136,255,0.05), transparent 70%);
}
.countdown-container {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center; margin-bottom: 35px;
}
.countdown-card {
  background: var(--glass); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  min-width: 85px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.countdown-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
}
.countdown-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdown-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 6px;
}
.card-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,107,157,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.countdown-card:hover .card-glow { opacity: 1; }
.countdown-separator {
  font-size: 2rem; color: var(--pink); font-weight: 700;
  animation: blinkSoft 1.2s infinite;
}
@keyframes blinkSoft { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
.countdown-message {
  text-align: center; color: var(--text-secondary);
  font-size: 1rem; font-style: italic;
}

/* ═══════════════════ LOVE REASONS / TIMELINE ═══════════════════ */
.timeline-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(233,30,99,0.04), transparent 70%);
}
.reasons-container {
  display: flex; flex-direction: column;
  gap: 22px; max-width: 620px; width: 100%;
}
.reason-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--glass); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0; transform: translateY(30px);
}
.reason-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reason-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 45px rgba(255,107,157,0.12);
  border-color: var(--glass-border-hover);
}
.reason-icon {
  font-size: 2rem; flex-shrink: 0;
  width: 55px; height: 55px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}
.reason-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; margin-bottom: 8px; color: var(--pink);
}
.reason-content p {
  color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7;
}

/* No DB messages placeholder */
.no-messages-placeholder {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-style: italic;
}

/* ═══════════════════ PHOTO GALLERY ═══════════════════ */
.gallery-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,215,0,0.03), transparent 70%);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px; width: 100%; max-width: 720px;
}
.gallery-item {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; border: 1px solid var(--glass-border);
  transition: transform 0.3s, border-color 0.3s;
  animation: fadeInScale 0.5s ease forwards;
}
.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--glass-border-hover);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.12); }

.gallery-item .photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 25px 10px 10px; font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  transform: translateY(100%); transition: transform 0.3s;
}
.gallery-item:hover .photo-caption { transform: translateY(0); }

.no-gallery-placeholder {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: var(--text-muted);
}
.no-gallery-placeholder .placeholder-icon {
  font-size: 3rem; margin-bottom: 15px; opacity: 0.5;
}
.no-gallery-placeholder p { font-size: 0.95rem; }

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════════ LIGHTBOX ═══════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,0.96);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92%; max-height: 85vh;
  border-radius: var(--radius-md); object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; z-index: 2;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer;
  width: 52px; height: 52px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-caption {
  position: absolute; bottom: 25px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  text-align: center; max-width: 80%;
  background: rgba(0,0,0,0.5); padding: 8px 20px;
  border-radius: 30px;
}

/* ═══════════════════ VIDEO SECTION ═══════════════════ */
.video-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(179,136,255,0.04), transparent 70%);
}
.video-container { width: 100%; max-width: 620px; }
.video-list { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.video-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.video-card video {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
}
.video-card .video-caption-text {
  padding: 12px 18px; font-size: 0.88rem;
  color: var(--text-secondary);
}

.no-video-placeholder {
  text-align: center; padding: 60px 30px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.no-video-placeholder .placeholder-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }
.no-video-placeholder p { color: var(--text-muted); font-size: 0.95rem; }

.video-decoration {
  display: flex; justify-content: center; gap: 22px;
  margin-top: 25px; font-size: 1.5rem;
}
.video-decoration span { animation: floatSoft 2s ease-in-out infinite; }
.video-decoration span:nth-child(2) { animation-delay: 0.35s; }
.video-decoration span:nth-child(3) { animation-delay: 0.7s; }

/* ═══════════════════ LOVE LETTER ═══════════════════ */
.letter-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(233,30,99,0.04), transparent 70%);
}
.letter-container { width: 100%; max-width: 620px; }
.letter-paper {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 45px 35px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.letter-stamp {
  position: absolute; top: 22px; right: 28px;
  font-size: 2.2rem; animation: heartPulse 2s infinite;
}
.letter-content p {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.9; margin-bottom: 16px;
}
.letter-greeting {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem; color: var(--gold) !important;
  margin-bottom: 22px !important;
}
.letter-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem; color: var(--pink) !important;
  text-align: right; margin-top: 28px !important;
}

/* Typewriter effect */
.letter-content p.typewriter {
  overflow: hidden; white-space: normal;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.letter-content p.typewriter.typed {
  opacity: 1; transform: translateY(0);
}

/* ═══════════════════ PROPOSAL / MARRIAGE ═══════════════════ */
.proposal-section {
  background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.06), transparent 55%);
  text-align: center; overflow: hidden;
}
.proposal-bg { position: absolute; inset: 0; }
.proposal-stars { position: absolute; inset: 0; }

.proposal-content {
  position: relative; z-index: 2; max-width: 520px;
}

/* Ring Box */
.ring-box {
  width: 130px; height: 110px;
  margin: 0 auto 35px;
  perspective: 600px; cursor: pointer;
}
.ring-box-lid {
  width: 140px; height: 32px;
  background: linear-gradient(135deg, #8b0000, #c62828);
  border-radius: 10px 10px 0 0;
  margin: 0 auto; transform-origin: bottom;
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: relative; z-index: 2;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
}
.ring-box:hover .ring-box-lid,
.ring-box.opened .ring-box-lid { transform: rotateX(-130deg); }

.ring-box-base {
  width: 140px; height: 78px;
  background: linear-gradient(135deg, #a00000, #d32f2f);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
  position: relative;
}
.ring-box-base::before {
  content: ''; position: absolute;
  inset: 6px; border-radius: 0 0 6px 6px;
  background: linear-gradient(135deg, #7a0000, #8b0000);
}
.ring {
  width: 44px; height: 44px;
  border: 4px solid var(--gold);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  animation: ringShimmer 2.5s infinite;
  position: relative; z-index: 1;
}
.diamond { font-size: 1.3rem; animation: floatSoft 1.5s ease-in-out infinite; }

@keyframes ringShimmer {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.25); }
  50% { box-shadow: 0 0 30px rgba(255,215,0,0.55); }
}

.proposal-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem; color: var(--gold);
  margin-bottom: 22px;
  text-shadow: 0 0 35px rgba(255,215,0,0.25);
}

.proposal-text {
  color: var(--text-secondary); font-size: 1.05rem;
  line-height: 1.8; margin-bottom: 22px;
}
.proposal-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; color: var(--pink);
  margin-bottom: 18px;
  animation: glowPulse 3s infinite;
}
.proposal-promise {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 30px;
}
.proposal-hearts {
  font-size: 1.6rem; display: flex;
  gap: 12px; justify-content: center;
}
.proposal-hearts span { animation: floatSoft 2s ease-in-out infinite; }
.proposal-hearts span:nth-child(2) { animation-delay: 0.4s; }
.proposal-hearts span:nth-child(3) { animation-delay: 0.8s; }

/* Mehndi decoration border */
.mehndi-border {
  position: absolute; pointer-events: none;
  width: 100%; height: 100%; top: 0; left: 0;
}
.mehndi-corner {
  position: absolute; width: 80px; height: 80px;
  border: 2px solid rgba(255,215,0,0.15);
}
.mehndi-corner.tl { top: 15px; left: 15px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.mehndi-corner.tr { top: 15px; right: 15px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.mehndi-corner.bl { bottom: 15px; left: 15px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.mehndi-corner.br { bottom: 15px; right: 15px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  position: relative; z-index: 2;
  padding: 50px 20px; text-align: center;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(255,107,157,0.02));
}
.footer-hearts {
  font-size: 1.3rem; margin-bottom: 14px;
  display: flex; gap: 10px; justify-content: center;
}
.footer-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem; color: var(--pink); margin-bottom: 6px;
}
.footer-assamese {
  color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px;
}
.footer-year { color: var(--text-muted); font-size: 0.8rem; }

/* ═══════════════════ SHARED ANIMATIONS ═══════════════════ */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal animations */
[data-animate] {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="slideRight"] { transform: translateX(-45px); }
[data-animate="slideLeft"] { transform: translateX(45px); }
[data-animate="scaleIn"] { transform: scale(0.8); }
[data-animate].visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* Staggered children reveal */
.stagger-reveal > * {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-reveal.visible > * { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE — MOBILE FIRST ═══════════════════ */
@media (max-width: 520px) {
  .hero-title .line-1 { font-size: 2rem; }
  .hero-title .line-2 { font-size: 2.8rem; }
  .hero-title .line-3 { font-size: 2.4rem; }
  .section { padding: 60px 16px; }
  .section-title { font-size: 1.85rem; }
  .section-icon { font-size: 2.2rem; }
  .countdown-card { min-width: 68px; padding: 20px 14px; }
  .countdown-value { font-size: 2.1rem; }
  .countdown-separator { font-size: 1.5rem; }
  .letter-paper { padding: 28px 22px; }
  .proposal-title { font-size: 2.4rem; }
  .proposal-question { font-size: 1.35rem; }
  .reason-card {
    flex-direction: column; align-items: center; text-align: center;
    padding: 22px;
  }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .gate-title { font-size: 2rem; }
  .envelope { width: 110px; height: 78px; }
  .hero-name-tag { font-size: 1rem; padding: 6px 22px; }
  .age-ring { width: 110px; height: 110px; }
  .age-number { font-size: 2.6rem; }
}

@media (max-width: 360px) {
  .hero-title .line-1 { font-size: 1.7rem; }
  .hero-title .line-2 { font-size: 2.3rem; }
  .hero-title .line-3 { font-size: 2rem; }
  .countdown-card { min-width: 58px; padding: 16px 10px; }
  .countdown-value { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   ADMIN CONTROLS — Hidden by default, shown after login
   ═══════════════════════════════════════════════════════ */

/* Admin Login Icon — subtle bottom-left */
.admin-login-icon {
  position: fixed; bottom: 15px; left: 15px; z-index: 8000;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: transparent; border: none;
  color: rgba(255,255,255,0.08); font-size: 0.85rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: color 0.3s, background 0.3s;
}
.admin-login-icon:hover {
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
}

/* Admin Floating Toolbar */
.admin-toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8500;
  background: rgba(10,6,18,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,157,0.2);
  padding: 10px 16px;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.admin-toolbar-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 700px; margin: 0 auto;
}
.admin-toolbar-label {
  font-size: 0.8rem; color: var(--pink);
  font-weight: 600; flex: 1;
}
.admin-tb-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary); font-size: 0.8rem;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: all 0.2s; white-space: nowrap;
}
.admin-tb-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-tb-logout { border-color: rgba(244,67,54,0.3); color: rgba(244,67,54,0.7); }
.admin-tb-logout:hover { background: rgba(244,67,54,0.1); color: #f44336; }

/* Admin Modal */
.admin-modal {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.admin-modal-card {
  background: #14111f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  animation: scaleInModal 0.25s ease;
}
@keyframes scaleInModal { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.admin-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 1.2rem; cursor: pointer;
  transition: color 0.2s;
}
.admin-modal-close:hover { color: #fff; }

.admin-modal-icon { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }

.admin-modal-title {
  text-align: center; font-size: 1.15rem; font-weight: 600;
  color: var(--pink); margin-bottom: 20px;
}

.admin-modal-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff; font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  outline: none; margin-bottom: 12px;
  transition: border-color 0.3s;
}
.admin-modal-input:focus { border-color: var(--pink); }

.admin-modal-textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff; font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none; resize: vertical;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}
.admin-modal-textarea:focus { border-color: var(--pink); }

.admin-modal-select {
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff; font-size: 1.1rem;
  outline: none; cursor: pointer;
  min-width: 55px;
}

.admin-modal-btn {
  width: 100%; padding: 13px;
  background: var(--gradient-love);
  border: none; border-radius: 10px;
  color: #fff; font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.admin-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(233,30,99,0.3);
}
.admin-modal-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.admin-modal-actions {
  display: flex; gap: 10px;
}
.admin-modal-actions .admin-modal-btn { flex: 1; }

.admin-modal-error {
  text-align: center; color: #f44336;
  font-size: 0.85rem; margin-top: 10px;
  animation: shakeErr 0.4s ease;
}
@keyframes shakeErr {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.admin-form-row {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.admin-form-row .admin-modal-input { margin-bottom: 0; flex: 1; }

/* Admin Upload Areas */
.admin-upload-area {
  width: 100%; max-width: 620px; margin: 0 auto 22px;
}
.admin-upload-zone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 20px;
  border: 2px dashed rgba(255,107,157,0.25);
  border-radius: var(--radius-lg);
  background: rgba(255,107,157,0.03);
  cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.admin-upload-zone:hover,
.admin-upload-zone.dragover {
  border-color: var(--pink);
  background: rgba(255,107,157,0.06);
}
.admin-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.admin-upload-title { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; }
.admin-upload-hint { font-size: 0.78rem; color: var(--text-muted); }

/* Admin Media Controls (on gallery/video items) */
.admin-media-controls {
  position: absolute; top: 6px; left: 6px; right: 6px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 5; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .admin-media-controls,
.video-card:hover .admin-media-controls { opacity: 1; }

.admin-badge {
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-badge.vis { background: rgba(76,175,80,0.25); color: #4caf50; }
.admin-badge.hid { background: rgba(244,67,54,0.2); color: #f44336; }

.admin-btns { display: flex; gap: 4px; }
.admin-ctrl-btn {
  width: 30px; height: 30px;
  border-radius: 8px; border: none;
  cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(5px);
}
.admin-ctrl-btn:hover { transform: scale(1.15); }

/* Admin Video Controls */
.admin-video-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.admin-video-bar .admin-btns { gap: 6px; }
.admin-video-bar .admin-badge { font-size: 0.65rem; }

/* Admin Message Controls */
.admin-reason-controls {
  display: flex; gap: 4px;
  margin-left: auto; flex-shrink: 0;
  align-self: center;
}

/* Admin Message Form */
.admin-msg-form {
  width: 100%; max-width: 620px; margin-bottom: 22px;
}
.admin-msg-form-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-msg-form-inner h4 {
  font-size: 0.9rem; color: var(--pink);
  margin-bottom: 14px; font-weight: 500;
}

/* Admin Toast */
.admin-toast {
  position: fixed; bottom: 25px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #14111f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.88rem; color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 9700;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.admin-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Body class when admin is active — shift content for toolbar */
body.admin-active .section:first-child { padding-top: 100px; }
body.admin-active .music-toggle { top: 60px; }
body.admin-active .admin-login-icon { display: none; }
