/* ==========================================================================
   THIỆP CƯỚI THÀNH TÂN & MỸ NHUNG - LUXURY WEDDING INVITATION THEME
   Inspired by meHappy & Modern Vietnamese Wedding Tradition
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --primary-red: #A61C24;
  --primary-dark-red: #7C0A11;
  --primary-deep: #5A050B;
  --primary-light-red: #D93843;
  --primary-blush: #FFF0F2;
  --primary-blush-border: #FCE1E5;
  --accent-gold: #C5A059;
  --accent-gold-light: #E8D5A7;
  --accent-gold-dark: #9A7B38;
  --gold-gradient: linear-gradient(135deg, #ECC880 0%, #C5A059 50%, #9A7B38 100%);
  --red-gradient: linear-gradient(135deg, #C41E3A 0%, #A61C24 60%, #7C0A11 100%);
  --red-gold-gradient: linear-gradient(135deg, #7C0A11 0%, #A61C24 50%, #C5A059 100%);
  
  --bg-cream: #FCF8F5;
  --bg-paper: #FFFDFB;
  --bg-card: #FFFFFF;
  --text-main: #2C2727;
  --text-muted: #6E6867;
  --text-gold: #B08D46;
  --border-light: rgba(197, 160, 89, 0.25);
  --border-card: #EFE8E2;
  
  --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Dancing Script', 'Great Vibes', cursive;
  --font-body: 'Montserrat', 'Be Vietnam Pro', -apple-system, sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(124, 10, 17, 0.08);
  --shadow-lg: 0 16px 40px rgba(124, 10, 17, 0.14);
  --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(#F5EBE1 0.75px, transparent 0.75px), 
    radial-gradient(#F5EBE1 0.75px, #FCF8F5 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Canvas Falling Petals & Hearts --- */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* --- OPENING DOOR ENVELOPE EFFECT (meHappy Style) --- */
.opening-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  overflow: hidden;
  transition: opacity 0.8s ease 0.8s, visibility 0.8s ease 0.8s;
}

.opening-curtain.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.curtain-left {
  left: 0;
  background-position: right center;
  background-image: url('../images/door-left.webp?v=20261004');
  background-color: var(--primary-dark-red);
}

.curtain-right {
  right: 0;
  background-position: left center;
  background-image: url('../images/door-right.webp?v=20261004');
  background-color: var(--primary-dark-red);
}

.opening-curtain.opened .curtain-left {
  transform: translateX(-100%);
}

.opening-curtain.opened .curtain-right {
  transform: translateX(100%);
}

.curtain-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.opening-curtain.opened .curtain-center-badge {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.wax-seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--red-gold-gradient);
  border: 4px solid #E8D5A7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.3);
  animation: sealPulse 2.5s infinite ease-in-out;
}

.wax-seal svg {
  width: 48px;
  height: 48px;
  fill: #FFF;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wax-seal span {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #FFF;
}

.btn-open-invitation {
  background: #FFFFFF;
  color: var(--primary-red);
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid #E8D5A7;
  animation: glowBtn 2s infinite ease-in-out;
}

.btn-open-invitation:hover {
  transform: scale(1.06);
  background: var(--primary-blush);
}

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

@keyframes glowBtn {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 213, 167, 0.4), 0 8px 25px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 0 10px 35px rgba(0,0,0,0.4); }
}

/* --- FLOATING CONTROLS & MUSIC DISC --- */
.floating-audio-disc {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-audio-disc:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(124, 10, 17, 0.2);
}

.disc-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
}

.disc-wrapper.rotating {
  animation: spinDisc 6s linear infinite;
}

.disc-wrapper.paused {
  animation-play-state: paused;
}

.disc-cover {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.disc-center-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFF;
  border-radius: 50%;
  border: 1px solid #000;
}

.disc-soundwave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.soundwave-bar {
  width: 3px;
  background: var(--primary-red);
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.floating-audio-disc.playing .soundwave-bar:nth-child(1) { animation: wave 1s infinite ease-in-out 0.1s; }
.floating-audio-disc.playing .soundwave-bar:nth-child(2) { animation: wave 1s infinite ease-in-out 0.3s; }
.floating-audio-disc.playing .soundwave-bar:nth-child(3) { animation: wave 1s infinite ease-in-out 0.2s; }
.floating-audio-disc.playing .soundwave-bar:nth-child(4) { animation: wave 1s infinite ease-in-out 0.4s; }

.disc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark-red);
  letter-spacing: 0.5px;
}

@keyframes spinDisc {
  100% { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { height: 5px; }
  50% { height: 18px; }
}

/* --- FLOATING BOTTOM NAVIGATION BAR --- */
.floating-navbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9980;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 95vw;
}

.nav-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-pill-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.nav-pill-btn:hover, .nav-pill-btn.active {
  color: var(--primary-red);
  background: var(--primary-blush);
}

.nav-pill-btn:hover svg {
  transform: translateY(-2px);
}

.nav-pill-btn.btn-gift {
  background: var(--red-gradient);
  color: #FFF;
  padding: 6px 14px;
}

.nav-pill-btn.btn-gift:hover {
  background: var(--primary-dark-red);
  box-shadow: var(--shadow-sm);
}

/* --- MAIN PAGE CONTAINER --- */
.wedding-site {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-bottom: 120px;
}

/* --- SECTION STYLES --- */
section {
  padding: 50px 24px;
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto 35px;
}

.divider-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.divider-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
}

.divider-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-gold);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  background: var(--primary-blush);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid var(--primary-blush-border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 6px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 40px 20px 30px;
  text-align: center;
  background: linear-gradient(180deg, #FFF0F2 0%, var(--bg-paper) 100%);
  position: relative;
}

.hero-save-the-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-couple-names {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-couple-names .amp {
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent-gold);
  margin: 0 8px;
}

.hero-wedding-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-image-frame {
  max-width: 460px;
  margin: 0 auto 24px;
  border-radius: 230px 230px 24px 24px;
  overflow: hidden;
  border: 8px solid #FFFFFF;
  box-shadow: 0 20px 45px rgba(124, 10, 17, 0.15), 0 0 0 1px var(--accent-gold-light);
  position: relative;
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

.hero-invitation-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- INVITATION LETTER SECTION --- */
.invitation-letter-section {
  padding: 20px 24px 40px;
}

.invitation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  position: relative;
  background-image: 
    radial-gradient(circle at top right, rgba(232, 213, 167, 0.15) 0%, transparent 60%),
    radial-gradient(circle at bottom left, rgba(196, 30, 58, 0.05) 0%, transparent 60%);
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--border-light);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.invitation-card .invitation-top-header {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guest-name-pill {
  display: inline-block;
  background: var(--primary-blush);
  border: 1px dashed var(--primary-light-red);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  margin: 10px 0 16px;
  transition: all var(--transition-normal);
}

.guest-name-pill.personalized {
  background: linear-gradient(135deg, #FFF0F2 0%, #FFF8EA 100%);
  border: 1.5px solid #D4AF37;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
}

.guest-name-pill span {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary-dark-red);
}

.curtain-guest-pill {
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.curtain-guest-pill strong {
  color: #FFD700;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.invitation-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 16px;
}

.invitation-date-highlight {
  background: linear-gradient(135deg, rgba(166, 28, 36, 0.06), rgba(197, 160, 89, 0.12));
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  border: 1px solid var(--border-light);
}

.invitation-date-highlight .time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark-red);
}

.invitation-date-highlight .lunar {
  font-size: 0.88rem;
  color: var(--accent-gold-dark);
  font-weight: 500;
  margin-top: 4px;
}

/* --- COUPLE SHOWCASE SECTION (CÔ DÂU & CHÚ RỂ) --- */
.couple-section,
.family-section {
  padding: 42px 20px;
  background: linear-gradient(180deg, var(--bg-paper) 0%, #FFF5F7 50%, var(--bg-paper) 100%);
  position: relative;
}

.couple-grid,
.family-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 28px auto 0;
}

.couple-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 16px 24px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(124, 10, 17, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.couple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(124, 10, 17, 0.14);
}

.couple-photo-wrapper {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid #FFF;
  outline: 1.5px solid rgba(212, 175, 55, 0.45);
  cursor: pointer;
  background: #F8F8F8;
}

.couple-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.couple-photo-wrapper:hover img {
  transform: scale(1.08);
}

.couple-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='28' height='28'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat center center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.couple-photo-wrapper:hover::after {
  opacity: 1;
}

.couple-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark-red);
  background: #FFF0F2;
  border: 1px solid rgba(124, 10, 17, 0.18);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-top: 14px;
}

.couple-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin: 8px 0 8px;
  letter-spacing: 0.01em;
}

.couple-quote {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  padding: 0 4px;
}

/* Fallback for old family classes if needed */
.family-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--border-card);
}
.couple-avatar-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--accent-gold);
}

.timeline-img-thumb {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
}

.timeline-img-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='28' height='28'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat center center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.timeline-img-thumb:hover::after {
  opacity: 1;
}

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

.timeline-img-thumb:hover img {
  transform: scale(1.05);
}

.timeline-img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.timeline-img-grid-2 .timeline-img-thumb {
  height: 135px;
  margin-top: 0;
}

.parents-list strong {
  color: #111;
  font-weight: 600;
}

.person-role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  background: #FFF8EB;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.person-name-highlight {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 12px;
}

.family-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.family-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-red);
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-red);
  background: var(--primary-blush);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  border: 1px solid var(--primary-blush-border);
}

.btn-map-link:hover {
  background: var(--primary-red);
  color: #FFF;
}

.btn-map-link svg {
  width: 14px;
  height: 14px;
}

/* --- EVENTS SECTION (LỄ VU QUY & LỄ THÀNH HÔN) --- */
.events-section {
  padding: 30px 24px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.event-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.event-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--red-gradient);
}

.event-badge-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-red);
  background: var(--primary-blush);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 10px;
}

.event-meta-time {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--accent-gold-dark);
  font-weight: 600;
  font-size: 1.05rem;
}

.event-meta-time svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
}

.event-date-details {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 14px;
}

.event-location-box {
  background: #FAF6F3;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.event-location-box svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-red);
}

.event-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-event-action {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-event-action.primary {
  background: var(--red-gradient);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(166, 28, 36, 0.25);
}

.btn-event-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 28, 36, 0.35);
}

.btn-event-action.secondary {
  background: #FFF;
  color: var(--accent-gold-dark);
  border: 1px solid var(--accent-gold);
}

.btn-event-action.secondary:hover {
  background: var(--primary-blush);
  color: var(--primary-red);
}

/* --- BEACH WEDDING TIMELINE --- */
.beach-timeline-card {
  background: #FFFDFB;
  background-image: 
    radial-gradient(circle at top right, rgba(236, 200, 128, 0.12), transparent 45%),
    radial-gradient(circle at bottom left, rgba(196, 30, 58, 0.05), transparent 45%);
  border-radius: var(--radius-lg);
  padding: 36px 20px 28px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 10px 30px rgba(124, 10, 17, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
  position: relative;
  text-align: center;
}

.timeline-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.timeline-location-badge svg {
  color: var(--accent-gold);
}

.timeline-address-text {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.timeline-beach-notice {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 24px;
  padding: 0 10px;
}

.timeline-title-gold {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 34px;
  display: inline-block;
  position: relative;
}

.timeline-title-gold::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
}

/* Timeline Flow Layout */
.beach-timeline-flow {
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.beach-timeline-item {
  display: grid;
  grid-template-columns: 1fr 24px 1.4fr;
  align-items: center;
  position: relative;
  min-height: 110px;
}

/* Left Icon */
.timeline-icon-box {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
  color: var(--accent-gold-dark);
  transition: transform 0.3s ease;
}

.beach-timeline-item:hover .timeline-icon-box {
  transform: scale(1.08);
  color: var(--primary-red);
}

.timeline-icon-box svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(197, 160, 89, 0.25));
}

/* Center Axis */
.timeline-axis-spine {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-axis-spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gold);
  left: 50%;
  transform: translateX(-50%);
}

.beach-timeline-item:first-child .timeline-axis-spine::before {
  top: 50%;
}

.beach-timeline-item:last-child .timeline-axis-spine::before {
  bottom: 50%;
}

.timeline-axis-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid #FFF;
  box-shadow: 0 0 0 2px var(--accent-gold);
  position: relative;
  z-index: 2;
}

/* Right Content */
.timeline-info-box {
  text-align: left;
  padding-left: 20px;
}

.timeline-time-val {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.timeline-desc-val {
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

/* Map & Action Buttons */
.timeline-cta-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-timeline-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: #525252;
  color: #FFF;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-timeline-map:hover {
  background: #2C2C2C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: #FFF;
}

.btn-timeline-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #FFF;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-timeline-cal:hover {
  background: var(--primary-blush);
  transform: translateY(-2px);
}

/* Flycam Video Card */
.flycam-video-card {
  margin-top: 28px;
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.flycam-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 14px;
}

.flycam-card-header svg {
  color: #FF0000;
}

.flycam-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #000;
}

.flycam-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.btn-youtube-direct {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #C4302B;
  background: #FFF0F0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-youtube-direct:hover {
  background: #FFE0E0;
  transform: translateY(-1px);
}

/* Thank you note flourish */
.timeline-thankyou-flourish {
  margin-top: 36px;
  text-align: center;
}

.timeline-thankyou-title {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-gold-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.timeline-thankyou-desc {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
}

/* --- COUNTDOWN TIMER --- */
.countdown-section {
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-paper) 0%, #FFF5F7 100%);
}

.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 16px;
}

.countdown-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 16px 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  line-height: 1.1;
}

.countdown-unit {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-top: 6px;
}

/* --- CALENDAR SECTION --- */
.calendar-section {
  padding: 20px 24px 40px;
}

.calendar-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  max-width: 440px;
  margin: 0 auto;
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark-red);
}

.calendar-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: 50%;
  position: relative;
  font-weight: 500;
}

.calendar-day-cell.other-month {
  color: #D3CDC9;
}

.calendar-day-cell.wedding-day {
  background: var(--red-gradient);
  color: #FFF !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(166, 28, 36, 0.4);
  position: relative;
  z-index: 2;
  animation: pulseWeddingDay 2s infinite ease-in-out;
}

.calendar-day-cell.wedding-day::after {
  content: "♥";
  position: absolute;
  top: -8px;
  right: -4px;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

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

.calendar-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--primary-dark-red);
  text-align: center;
  font-weight: 600;
}

/* --- LOVE STORY TIMELINE --- */
.timeline-section {
  padding: 30px 24px;
}

.timeline-list {
  position: relative;
  max-width: 520px;
  margin: 30px auto 0;
  padding-left: 30px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold-light), var(--primary-light-red), var(--accent-gold-light));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-gradient);
  border: 3px solid #FFF;
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.timeline-content {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-gold-dark);
  margin-bottom: 4px;
}

.timeline-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- WEDDING GALLERY SECTION --- */
.gallery-section {
  padding: 30px 24px;
}

.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}

.gallery-tab-btn {
  background: rgba(124, 10, 17, 0.06);
  border: 1px solid rgba(124, 10, 17, 0.16);
  color: var(--primary-dark-red);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.gallery-tab-btn:hover,
.gallery-tab-btn.active {
  background: var(--primary-dark-red);
  color: #fff;
  border-color: var(--primary-dark-red);
  box-shadow: 0 3px 8px rgba(124, 10, 17, 0.25);
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  background: #EAE3DC;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.featured {
  grid-column: span 2;
}

.gallery-item.featured img {
  aspect-ratio: 16/9;
}

.gallery-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(124, 10, 17, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
}

.gallery-overlay-icon svg {
  width: 32px;
  height: 32px;
  color: #FFF;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-caption {
  text-align: center;
  color: #FFF;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 520px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-caption .lb-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
  margin-bottom: 2px;
}

.lightbox-caption .lb-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFF;
}

.lightbox-caption .lb-counter {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #FFF;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: #FFF;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- RSVP SECTION --- */
.rsvp-section {
  padding: 30px 24px;
  background: linear-gradient(180deg, #FFF5F7 0%, var(--bg-paper) 100%);
}

.rsvp-form-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  max-width: 520px;
  margin: 24px auto 0;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--primary-red);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #DCD4CE;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: #FCFAF8;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(166, 28, 36, 0.12);
}

.radio-group-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.radio-label-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F7F3EE;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.radio-label-pill input[type="radio"] {
  accent-color: var(--primary-red);
}

.radio-label-pill:has(input[type="radio"]:checked) {
  background: var(--primary-blush);
  border-color: var(--primary-light-red);
  color: var(--primary-dark-red);
  font-weight: 600;
}

.btn-submit-rsvp {
  width: 100%;
  background: var(--red-gradient);
  color: #FFF;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 10px;
  box-shadow: 0 8px 25px rgba(166, 28, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-submit-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(166, 28, 36, 0.4);
}

/* --- LỜI NGỎ (FOREWORD) SECTION --- */
.foreword-section {
  padding: 40px 24px;
  background: linear-gradient(180deg, #FFFDFB 0%, #FFF5F7 50%, #FFFDFB 100%);
  position: relative;
  overflow: hidden;
}

.foreword-card {
  max-width: 620px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 44px 28px 38px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 12px 35px rgba(124, 10, 17, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
}

.foreword-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(197, 160, 89, 0.4);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.foreword-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blush);
  color: var(--primary-red);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(166, 28, 36, 0.12);
}

.foreword-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
}

.foreword-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 2px;
  background: var(--gold-gradient);
}

.foreword-quote-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent-gold);
  line-height: 0.8;
  opacity: 0.55;
  margin-bottom: 8px;
}

.foreword-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 400;
  text-align: justify;
  text-align-last: center;
  padding: 0 12px;
}

.foreword-closing {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.foreword-closing .heart-pulse {
  color: #E63946;
  display: inline-block;
  animation: heartPulse 1.8s infinite ease-in-out;
}

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

.foreword-signature {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--accent-gold-dark);
  line-height: 1.2;
}

@media (max-width: 600px) {
  .foreword-section {
    padding: 32px 16px;
  }
  .foreword-card {
    padding: 36px 18px 30px;
  }
  .foreword-title {
    font-size: 1.8rem;
  }
  .foreword-text {
    font-size: 0.98rem;
    line-height: 1.8;
    padding: 0 4px;
  }
  .foreword-signature {
    font-size: 2rem;
  }
}

/* --- WISHES & GUESTBOOK SECTION --- */
.wishes-section {
  padding: 30px 24px;
}

.wishes-container {
  max-width: 540px;
  margin: 24px auto 0;
}

.wish-input-box {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  margin-bottom: 24px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.wishes-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.wish-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: fadeIn 0.4s ease;
}

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

.wish-sender-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wish-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-blush);
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-blush-border);
}

.wish-sender-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark-red);
}

.wish-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wish-message {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.wish-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.wish-like-btn.liked, .wish-like-btn:hover {
  color: var(--primary-red);
}

.wish-like-btn svg {
  width: 16px;
  height: 16px;
}

/* --- DIRECT INLINE GIFT SECTION --- */
.gift-section {
  padding: 40px 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F8 50%, #FFFFFF 100%);
  position: relative;
}

.direct-gift-container {
  max-width: 520px;
  margin: 28px auto 0;
}

.direct-gift-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 24px 30px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 12px 35px rgba(124, 10, 17, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
}

.direct-qr-frame {
  max-width: 320px;
  margin: 0 auto 22px;
  padding: 10px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #EFE4DC;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.direct-qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.direct-banking-details {
  background: #FAF6F3;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  border: 1px solid #EFE8E2;
  text-align: left;
}

.banking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.07);
}

.banking-row:last-child {
  border-bottom: none;
}

.banking-row .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.banking-row .val {
  color: var(--text-main);
  text-align: right;
  font-weight: 600;
}

.banking-row.highlight {
  padding-top: 10px;
  margin-top: 4px;
}

.banking-row .stk-number {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 1.5px;
}

.banking-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-bank-action {
  flex: 1;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
}

.btn-bank-action.copy {
  background: var(--red-gradient);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(166, 28, 36, 0.25);
}

.btn-bank-action.copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 28, 36, 0.35);
}

.btn-bank-action.download {
  background: #FFF;
  color: var(--accent-gold-dark);
  border: 1px solid var(--accent-gold);
}

.btn-bank-action.download:hover {
  background: var(--primary-blush);
  color: var(--primary-red);
  transform: translateY(-2px);
}

/* --- FOOTER SECTION --- */
.wedding-footer {
  text-align: center;
  padding: 40px 24px 20px;
  background: linear-gradient(180deg, var(--bg-paper) 0%, #FFF0F2 100%);
  position: relative;
}

.footer-heart-symbol {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 12px;
  display: inline-block;
  animation: sealPulse 2s infinite ease-in-out;
}

.footer-thank-you {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark-red);
  margin-bottom: 10px;
}

.footer-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.footer-signature {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.footer-watermark {
  font-size: 0.75rem;
  color: #A99F99;
  letter-spacing: 1px;
}

/* --- TOAST NOTIFICATION --- */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(30, 25, 25, 0.92);
  color: #FFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 600px) {
  .couple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  
  .couple-card {
    padding: 16px 10px 18px;
    border-radius: 16px;
  }

  .couple-photo-wrapper {
    border-radius: 14px;
    border-width: 2.5px;
  }

  .couple-role-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-top: 10px;
  }

  .couple-name {
    font-size: 1.18rem;
    margin: 6px 0 4px;
  }

  .couple-quote {
    font-size: 0.76rem;
    line-height: 1.45;
  }
  
  .section-title {
    font-size: 1.7rem;
  }

  .hero-couple-names {
    font-size: 2.1rem;
  }

  .hero-couple-names .amp {
    font-size: 2.4rem;
  }
  
  .countdown-num {
    font-size: 1.8rem;
  }
  
  .floating-audio-disc {
    bottom: 84px;
    right: 16px;
  }
  
  .floating-navbar {
    bottom: 14px;
    padding: 4px 8px;
    gap: 2px;
  }
  
  .nav-pill-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  
  .nav-pill-btn svg {
    width: 16px;
    height: 16px;
  }

  .beach-timeline-card {
    padding: 28px 12px 24px;
  }

  .timeline-title-gold {
    font-size: 1.85rem;
    letter-spacing: 4px;
    margin-bottom: 26px;
  }

  .beach-timeline-item {
    grid-template-columns: 1fr 18px 1.5fr;
    min-height: 95px;
  }

  .timeline-icon-box {
    padding-right: 14px;
  }

  .timeline-icon-box svg {
    width: 46px;
    height: 46px;
  }

  .timeline-info-box {
    padding-left: 14px;
  }

  .timeline-time-val {
    font-size: 1.35rem;
  }

  .timeline-desc-val {
    font-size: 0.9rem;
  }
}

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