/* ==========================================================================
   WEBSITE THIỆP CƯỚI ONLINE: BÙI QUỐC HƯNG ❤️ BÙI THỊ TÂM
   PHONG CÁCH: SANG TRỌNG TRUYỀN THỐNG VIỆT NAM (BURGUNDY & IMPERIAL GOLD)
   ========================================================================== */

:root {
  /* Bảng màu chủ đạo: Đỏ Rượu Vang Hoàng Gia & Vàng Kim Cao Cấp */
  --burgundy-900: #42080e;
  --burgundy-800: #5c0f17;
  --burgundy-700: #781520;
  --burgundy-600: #931d2a;
  --burgundy-500: #b12837;
  
  --gold-700: #997322;
  --gold-600: #b88b2a;
  --gold-500: #d4af37;
  --gold-400: #e5c358;
  --gold-300: #f3dc8a;
  --gold-100: #fbf6e3;
  --gold-gradient: linear-gradient(135deg, #c59b27 0%, #f7e07e 50%, #b88924 100%);
  --gold-glow: 0 0 15px rgba(212, 175, 55, 0.35);

  --bg-creme: #faf6f0;
  --bg-creme-card: #ffffff;
  --bg-creme-alt: #f4ece1;
  --border-gold-soft: #e5d3b3;
  --border-gold-solid: #d4af37;

  --text-primary: #2b1f1d;
  --text-secondary: #5e4c48;
  --text-muted: #8c7772;
  --text-gold: #b8860b;
  --text-burgundy: #781520;

  --shadow-lux: 0 16px 36px rgba(92, 15, 23, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.20);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-creme);
  color: var(--text-primary);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(#d4af37 0.75px, transparent 0.75px);
  background-size: 28px 28px;
  background-position: -19px -19px;
}

body.envelope-locked {
  overflow: hidden;
  height: 100vh;
}

/* Typography Tiêu đề Hoàng Gia */
.font-script {
  font-family: 'Alex Brush', cursive, sans-serif;
}
.font-serif {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
}
.font-display {
  font-family: 'Playfair Display', serif;
}

/* Canvas Cánh hoa / Kim sa rơi nhẹ */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* ==========================================================================
   1. MÀN HÌNH MỞ THIỆP (ENVELOPE SCREEN)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #781520 0%, #42080e 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}

.envelope-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fadeInDown 0.9s ease-out;
}

.envelope-subheading {
  color: var(--gold-300);
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.envelope-title {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.envelope-title span {
  color: var(--gold-300);
  font-family: 'Alex Brush', cursive;
  font-size: 3rem;
  display: block;
  font-weight: normal;
  margin: -6px 0;
}

.envelope-date-tag {
  display: inline-block;
  color: var(--gold-100);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-500);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

/* Mô hình Phong bì 3D Sang Trọng */
.envelope-box {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(145deg, #6d111b 0%, #520b12 100%);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  overflow: visible;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

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

.envelope-box-border {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  pointer-events: none;
}

/* Nắp tam giác phong bì */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 220px solid transparent;
  border-right: 220px solid transparent;
  border-top: 140px solid #7a1622;
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
}

@media (max-width: 480px) {
  .envelope-flap {
    border-left-width: calc(50vw - 20px);
    border-right-width: calc(50vw - 20px);
    border-top-width: 120px;
  }
}

.envelope-box.is-opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Lá thiệp bên trong */
.envelope-inner-card {
  position: absolute;
  inset: 16px 20px 20px 20px;
  background: #fffdfa;
  border-radius: 8px;
  border: 1px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 3;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.envelope-box.is-opening .envelope-inner-card {
  transform: translateY(-60px);
}

.inner-card-monogram {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--burgundy-700);
  border: 1px solid var(--gold-500);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: var(--gold-100);
}

.inner-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--burgundy-800);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Dấu niêm phong sáp đỏ dập nổi Song Hỷ */
.wax-seal {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 35%, #ba1e2d, #5c0f17);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 2.1rem;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
  border: 2px solid var(--gold-500);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: sealPulse 2.2s infinite;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 14px rgba(212, 175, 55, 0); }
}

/* Nút Mở Thiệp Cưới */
.btn-open-invite {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--gold-gradient);
  color: var(--burgundy-900);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-open-invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}

.btn-open-invite svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   THIÊN THẦN TÌNH YÊU CUPID BAY QUANH THIỆP
   ========================================================================== */
.cupid-angel {
  position: absolute;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.9));
  transition: opacity 0.3s ease;
}

.cupid-angel svg {
  width: 100%;
  height: 100%;
}

.cupid-wing {
  transform-origin: 40% 50%;
  animation: cupidWingFlap 0.22s ease-in-out infinite alternate;
}

@keyframes cupidWingFlap {
  0% { transform: rotate(-12deg) scale(0.95); }
  100% { transform: rotate(18deg) scale(1.08); }
}

.cupid-angel-1 {
  top: 20%;
  left: 10%;
}

.cupid-angel-2 {
  bottom: 25%;
  right: 10%;
}

/* Kích hoạt animation khi bấm Mở Thiệp */
.envelope-screen.cupid-flying .cupid-angel {
  opacity: 1;
}

.envelope-screen.cupid-flying .cupid-angel-1 {
  animation: cupidFly1 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.envelope-screen.cupid-flying .cupid-angel-2 {
  animation: cupidFly2 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes cupidFly1 {
  0% {
    opacity: 0;
    transform: translate(-140px, -80px) scale(0.4) rotate(-25deg);
  }
  20% {
    opacity: 1;
    transform: translate(60px, -30px) scale(1.05) rotate(10deg);
  }
  50% {
    transform: translate(220px, 90px) scale(1.2) rotate(35deg);
  }
  75% {
    transform: translate(80px, 150px) scale(1) rotate(-10deg);
  }
  88% {
    opacity: 1;
    transform: translate(10px, 20px) scale(1.1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-20px, -240px) scale(0.3) rotate(-35deg);
  }
}

@keyframes cupidFly2 {
  0% {
    opacity: 0;
    transform: translate(140px, 80px) scale(0.4) rotate(25deg);
  }
  20% {
    opacity: 1;
    transform: translate(-60px, 30px) scale(1.05) rotate(-10deg);
  }
  50% {
    transform: translate(-220px, -90px) scale(1.2) rotate(-35deg);
  }
  75% {
    transform: translate(-80px, -150px) scale(1) rotate(10deg);
  }
  88% {
    opacity: 1;
    transform: translate(-10px, -20px) scale(1.1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(20px, 240px) scale(0.3) rotate(35deg);
  }
}

/* Hạt bụi sáng lấp lánh nổ bung */
.cupid-burst-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 95;
}

.burst-heart-icon {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0;
  animation: burstAnim 1.1s ease-out forwards;
}

@keyframes burstAnim {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.6) rotate(var(--rot)); }
}

/* ==========================================================================
   2. TRÌNH PHÁT NHẠC NỀN & BẢNG CHỌN BÀI HÁT
   ========================================================================== */
.floating-music-box {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-disk-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1f1d 40%, #150f0e 100%);
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
  transition: transform 0.3s ease;
  position: relative;
}

.music-disk-btn.is-playing {
  animation: diskSpin 4s linear infinite;
}

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

.music-song-tag {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gold-soft);
  color: var(--burgundy-800);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.music-song-tag:hover {
  background: var(--gold-100);
  border-color: var(--gold-500);
}

.music-playlist-btn {
  background: #ffffff;
  border: 1px solid var(--border-gold-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--burgundy-800);
  font-size: 0.9rem;
}

/* Menu Dropdown danh sách bài hát */
.music-playlist-dropdown {
  position: absolute;
  bottom: 64px;
  left: 0;
  background: #ffffff;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 8px 0;
  width: 280px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1005;
}

.music-playlist-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-playlist-title {
  padding: 6px 16px 8px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--burgundy-800);
  border-bottom: 1px solid var(--border-gold-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.music-playlist-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

.music-playlist-item:last-child {
  border-bottom: none;
}

.music-playlist-item:hover {
  background: var(--gold-100);
}

.music-playlist-item.active {
  background: #fdf5ea;
  border-left: 4px solid var(--gold-500);
}

.music-playlist-item.active .pl-song-name {
  color: var(--burgundy-800);
  font-weight: 700;
}

.pl-song-info {
  line-height: 1.35;
}

.pl-song-name {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: block;
}

.pl-song-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.pl-playing-icon {
  color: var(--gold-600);
  font-size: 1.1rem;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
.hero-wrapper {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 80px 20px;
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.88) 0%, rgba(244, 236, 225, 0.96) 100%),
              url('/images/02-cap-doi-cau-treo-2.jpg') center/cover no-repeat;
  border-bottom: 2px solid var(--border-gold-soft);
}

.ornament-corner {
  width: 48px;
  height: 48px;
  opacity: 0.85;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--burgundy-700);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-couple-names {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--burgundy-800);
  line-height: 1.2;
  margin: 12px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-ampersand {
  font-family: 'Alex Brush', cursive;
  font-size: 4rem;
  color: var(--gold-600);
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px;
  font-weight: normal;
}

.hero-wedding-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 28px;
  border: 1px solid var(--border-gold-solid);
  border-radius: var(--radius-full);
  margin-top: 14px;
  box-shadow: var(--shadow-gold);
}

.hero-wedding-date span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy-800);
  letter-spacing: 2px;
}

.hero-photo-frame {
  margin-top: 36px;
  position: relative;
  width: 290px;
  height: 380px;
  border-radius: 180px 180px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lux), 0 0 0 6px #ffffff, 0 0 0 9px var(--gold-500);
}

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

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

/* ==========================================================================
   4. CHUNG CÁC SECTION
   ========================================================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-creme-alt);
  border-top: 1px solid var(--border-gold-soft);
  border-bottom: 1px solid var(--border-gold-soft);
}

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

.section-pretitle {
  font-family: 'Alex Brush', cursive;
  font-size: 2.2rem;
  color: var(--gold-600);
  line-height: 1;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--burgundy-800);
  margin: 4px 0 12px 0;
  letter-spacing: 1px;
}

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}

.divider-gold::before,
.divider-gold::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold-500);
}

.divider-gold svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-600);
}

/* ==========================================================================
   5. GIỚI THIỆU CÔ DÂU & CHÚ RỂ + SONG THÂN PHỤ MẪU
   ========================================================================== */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.couple-card {
  background: var(--bg-creme-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-gold-soft);
  box-shadow: var(--shadow-lux);
  position: relative;
  transition: transform 0.3s ease;
}

.couple-card:hover {
  transform: translateY(-5px);
}

.couple-avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 22px auto;
  border-radius: 50%;
  padding: 6px;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold);
}

.couple-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.couple-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
}

.couple-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--burgundy-800);
  margin: 4px 0 12px 0;
}

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

/* Song Thân Phụ Mẫu */
.family-box {
  margin-top: 50px;
  background: #ffffff;
  border: 1px solid var(--border-gold-solid);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lux);
}

.family-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--burgundy-800);
  margin-bottom: 24px;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .family-grid {
    grid-template-columns: 1fr;
  }
}

.family-col {
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-creme);
  border: 1px dashed var(--border-gold-solid);
  display: flex;
  flex-direction: column;
}

.family-col-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--burgundy-700);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Danh sách thành phần gia đình dóng thẳng hàng tuyệt đối */
.family-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.family-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  text-align: left;
  font-size: 1rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

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

.family-role {
  color: var(--burgundy-700);
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  white-space: nowrap;
}

.family-name {
  color: var(--text-primary);
  line-height: 1.4;
}

.family-name strong {
  color: var(--burgundy-900);
  font-weight: 700;
  font-size: 1.05rem;
}

.family-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   THẺ THÔNG BÁO SỰ KIỆN CƯỚI ĐÔI (DUAL CEREMONY CARDS)
   ========================================================================== */
.events-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .events-cards-grid {
    grid-template-columns: 1fr;
  }
}

.event-spec-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-gold-solid);
  box-shadow: var(--shadow-lux);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(92, 15, 23, 0.16);
}

.event-spec-card.highlight {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, #ffffff 0%, #fffbf2 100%);
}

.event-spec-badge {
  display: inline-block;
  background: var(--gold-100);
  color: var(--burgundy-800);
  border: 1px solid var(--border-gold-soft);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.event-spec-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--burgundy-800);
  margin-bottom: 10px;
}

.event-spec-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--burgundy-700);
  margin-bottom: 8px;
}

.event-spec-address {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
  flex-grow: 1;
}

.btn-event-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--burgundy-700);
  color: #ffffff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 4px 12px rgba(120, 21, 32, 0.25);
}

.btn-event-map:hover {
  background: var(--burgundy-800);
  transform: translateY(-2px);
}


/* ==========================================================================
   6. LỊCH TRÌNH TIỆC CƯỚI & ĐỒNG HỒ ĐẾM NGƯỢC
   ========================================================================== */
.countdown-box {
  background: linear-gradient(135deg, #781520 0%, #4a0910 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(74, 9, 16, 0.35);
  border: 1px solid var(--gold-500);
  margin-bottom: 50px;
}

.countdown-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 24px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 85px;
  backdrop-filter: blur(5px);
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 6px;
}

/* ==========================================================================
   TỜ LỊCH THÁNG CƯỚI (SAVE THE DATE CALENDAR)
   ========================================================================== */
.calendar-card {
  max-width: 440px;
  margin: 0 auto 50px auto;
  background: #ffffff;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px 24px;
  box-shadow: var(--shadow-lux), 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 0 6px rgba(212, 175, 55, 0.3);
  text-align: center;
  position: relative;
  background-image: radial-gradient(#d4af37 0.6px, transparent 0.6px);
  background-size: 20px 20px;
}

.calendar-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-gold-soft);
}

.calendar-month {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--burgundy-800);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.calendar-sub {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-top: 2px;
}

.calendar-grid-table {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 6px;
  align-items: center;
  justify-items: center;
  margin-bottom: 16px;
}

.cal-day-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--burgundy-700);
  text-transform: uppercase;
  padding-bottom: 6px;
}

.cal-day-name.sunday {
  color: #ba1e2d;
}

.cal-cell {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  color: var(--text-primary);
  border-radius: 50%;
  transition: all 0.2s ease;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.cal-cell.empty {
  visibility: hidden;
}

.cal-cell.sunday {
  color: #ba1e2d;
}

/* NGÀY CƯỚI 24 ĐƯỢC GHIM NỔI BẬT */
.cal-cell.wedding-pinned-day {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 35%, #ba1e2d 0%, #5c0f17 100%);
  color: #ffffff;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(120, 21, 32, 0.4), 0 0 0 3px rgba(212, 175, 55, 0.4);
  position: relative;
  flex-direction: column;
  z-index: 5;
  animation: pinnedPulse 2.2s infinite ease-in-out;
  cursor: pointer;
  transform: scale(1.08);
}

.pinned-heart-icon {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 0.95rem;
  animation: heartWiggle 1.5s infinite ease-in-out;
}

.pinned-day-num {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.pinned-tag {
  font-size: 0.55rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-300);
  line-height: 1;
  margin-top: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

@keyframes pinnedPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(120, 21, 32, 0.4), 0 0 0 3px rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.65), 0 0 0 6px rgba(212, 175, 55, 0.6);
  }
}

@keyframes heartWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

.calendar-footer {
  padding-top: 10px;
  border-top: 1px dashed var(--border-gold-soft);
  font-size: 0.95rem;
  color: var(--burgundy-800);
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .calendar-card {
    padding: 20px 14px 16px 14px;
    margin-bottom: 40px;
  }
  .cal-cell {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }
  .cal-cell.wedding-pinned-day {
    width: 44px;
    height: 44px;
  }
  .pinned-day-num {
    font-size: 1rem;
  }
  .pinned-tag {
    font-size: 0.5rem;
  }
}

/* Lịch Trình (Timeline) */
.timeline-list {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-500);
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .timeline-list::before {
    left: 28px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

@media (max-width: 640px) {
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 60px;
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--burgundy-700);
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .timeline-dot {
    left: 28px;
  }
}

.timeline-content {
  width: 44%;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold-soft);
  box-shadow: var(--shadow-lux);
}

@media (max-width: 640px) {
  .timeline-content {
    width: 100%;
  }
}

.timeline-time {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy-700);
  background: var(--gold-100);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. ALBUM ẢNH CƯỚI XẾP HÌNH TRÁI TIM TÌNH YÊU (HEART MOSAIC GALLERY)
   ========================================================================== */
.heart-gallery-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heart-gallery-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(120, 21, 32, 0.08) 50%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 1;
}

.heart-gallery-shape {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.heart-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.heart-photo-item {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold-500);
  box-shadow: 0 6px 18px rgba(92, 15, 23, 0.18);
  cursor: pointer;
  background: #2b1f1d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s;
}

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

.heart-photo-item:hover {
  transform: scale(1.18) rotate(1.5deg);
  z-index: 20;
  border-color: #ffffff;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.55), 0 0 0 3px var(--gold-400);
}

.heart-photo-item:hover img {
  transform: scale(1.1);
}

/* Huy hiệu Song Hỷ dát vàng ở hõm giữa trái tim */
.heart-center-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ba1e2d, #5c0f17);
  border: 2px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  animation: heartBadgePulse 2.4s infinite ease-in-out;
  margin: 0 6px;
}

.heart-center-badge span {
  font-size: 1.85rem;
  line-height: 1;
}

@keyframes heartBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5); }
}

.heart-gallery-tip {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--burgundy-700);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* Responsive trên điện thoại Mobile */
@media (max-width: 600px) {
  .heart-gallery-wrapper {
    padding: 20px 4px;
  }
  .heart-row {
    gap: 8px;
  }
  .heart-photo-item {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    border-width: 1.5px;
  }
  .heart-center-badge {
    width: 54px;
    height: 54px;
    margin: 0 2px;
  }
  .heart-center-badge span {
    font-size: 1.35rem;
  }
}

@media (max-width: 360px) {
  .heart-row {
    gap: 6px;
  }
  .heart-photo-item {
    width: 64px;
    height: 64px;
    border-radius: 11px;
  }
}
  inset: 0;
  background: linear-gradient(to top, rgba(66, 8, 14, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-300);
}

.gallery-desc {
  font-size: 0.82rem;
  color: #f5f5f5;
  margin-top: 2px;
}

/* Lightbox Toàn Màn Hình */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 5, 0.94);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  backdrop-filter: blur(10px);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.6);
}

.lightbox-caption-text {
  color: var(--gold-300);
  margin-top: 12px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.lightbox-close-btn,
.lightbox-prev-btn,
.lightbox-next-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--gold-500);
  color: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close-btn:hover,
.lightbox-prev-btn:hover,
.lightbox-next-btn:hover {
  background: var(--burgundy-700);
}

.lightbox-close-btn {
  top: -50px;
  right: 0;
}

.lightbox-prev-btn {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next-btn {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
  .lightbox-close-btn { top: 10px; right: 10px; }
}

/* ==========================================================================
   8. ĐỊA ĐIỂM & BẢN ĐỒ CHỈ ĐƯỜNG (MAPS SECTION)
   ========================================================================== */
.venue-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-gold-solid);
  box-shadow: var(--shadow-lux);
  text-align: center;
  margin-bottom: 30px;
}

.venue-tag {
  display: inline-block;
  background: var(--gold-100);
  color: var(--burgundy-800);
  border: 1px solid var(--border-gold-soft);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.venue-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--burgundy-800);
  margin-bottom: 8px;
}

.venue-address {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-open-maps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: var(--burgundy-700);
  color: #ffffff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(120, 21, 32, 0.3);
  transition: transform 0.25s, background 0.25s;
}

.btn-open-maps:hover {
  background: var(--burgundy-800);
  transform: translateY(-2px);
}

.map-embed-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold-solid);
  box-shadow: var(--shadow-lux);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   9. XÁC NHẬN THAM DỰ (RSVP) & SỔ LƯU BÚT CHÚC PHÚC
   ========================================================================== */
.rsvp-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 45px 36px;
  border: 1px solid var(--border-gold-solid);
  box-shadow: var(--shadow-lux);
  max-width: 680px;
  margin: 0 auto 50px auto;
}

@media (max-width: 600px) {
  .rsvp-card {
    padding: 30px 20px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--burgundy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-creme);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 14px 28px;
  background: var(--gold-gradient);
  color: var(--burgundy-900);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-rsvp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.btn-submit-rsvp:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Sổ lưu bút (Wishes Wall) */
.wishes-wall {
  max-width: 720px;
  margin: 0 auto;
}

.wish-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border-gold-soft);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  border-left: 4px solid var(--gold-500);
  animation: fadeIn 0.4s ease;
}

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

.wish-author {
  font-weight: 700;
  color: var(--burgundy-800);
  font-size: 1rem;
}

.wish-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--burgundy-700);
  font-weight: 600;
  border: 1px solid var(--border-gold-soft);
}

.wish-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
}

/* ==========================================================================
   10. HỘP MỪNG CƯỚI (GIFT / QR MODAL)
   ========================================================================== */
.gift-trigger-box {
  text-align: center;
  margin-top: 40px;
}

.btn-open-gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: #ffffff;
  border: 2px solid var(--gold-500);
  color: var(--burgundy-800);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
}

.btn-open-gift:hover {
  background: var(--gold-gradient);
  color: var(--burgundy-900);
  transform: translateY(-2px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(5px);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 36px 28px;
  border: 2px solid var(--gold-500);
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 540px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}

.qr-item {
  background: var(--bg-creme);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold-soft);
}

.qr-item img {
  width: 170px;
  height: 170px;
  border-radius: 8px;
  border: 1px solid var(--border-gold-soft);
  margin-bottom: 12px;
}

.qr-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--burgundy-800);
  font-size: 1.1rem;
}

.qr-bank-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   11. LỜI CẢM ƠN & FOOTER
   ========================================================================== */
.thankyou-section {
  background: linear-gradient(180deg, var(--bg-creme-alt) 0%, #f1e4d3 100%);
  border-top: 2px solid var(--border-gold-solid);
  padding: 90px 20px 80px 20px;
  text-align: center;
}

.thankyou-card {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  padding: 45px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold-solid);
  box-shadow: var(--shadow-lux);
}

.thankyou-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--burgundy-800);
  margin-bottom: 16px;
}

.thankyou-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.thankyou-signatures {
  font-family: 'Alex Brush', cursive;
  font-size: 3.2rem;
  color: var(--burgundy-700);
  line-height: 1.2;
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--burgundy-800);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-500);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 10002;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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