﻿/* ==========================================================================
   Mẫu 17: Hỷ sự cát tường (Clone Cinelove Thiệp cưới 43)
   Tông màu: Đỏ Hỷ Sự (#a81d24, #911218), Vàng Ánh Kim (#d4af37, #f7d070), Kem ấm (#fdfbf7)
   ========================================================================== */

:root,
[data-palette="crimson"] {
  --primary: #961218;
  --primary-dark: #6e0c10;
  --primary-light: #b9252c;
  --accent-gold: #cba239;
  --accent-gold-light: #fae498;
  --accent-gold-dark: #a07a1b;
  --bg-page: #fdfbf7;
  --bg-card: #ffffff;
  --bg-crimson: #881016;
  --text-main: #2c2424;
  --text-muted: #6f6565;
  --text-light: #ffffff;
  --border-gold: #e5cb87;
  --border-subtle: #eedecf;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Alex Brush", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Quicksand", "Montserrat", sans-serif;
  --shadow-sm: 0 2px 10px rgba(150, 18, 24, 0.08);
  --shadow-md: 0 4px 20px rgba(150, 18, 24, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Reset cơ bản */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #2b0b0e;
  background-image: radial-gradient(#4d1318 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums lining-nums;
}

body.curtain-locked {
  overflow: hidden;
}

/* Khung chứa mobile-first (chuẩn 500px) */
.site-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-page);
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  overflow: hidden;
}

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

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

.script {
  font-family: var(--font-script);
}

/* ==========================================================================
   1. MÀN RÈM ĐỎ MỞ RA (Curtain Opening Effect)
   ========================================================================== */
.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #1a0406;
  transition: visibility 1.2s ease, opacity 0.6s ease 0.9s;
}

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

.curtain-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.curtain-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.curtain-panel.curtain-right {
  z-index: 1;
}

.curtain-panel.curtain-left {
  z-index: 2;
}

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

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

.curtain-cta {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

.curtain-overlay.opened .curtain-cta {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

.curtain-tag {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.curtain-names {
  font-size: 38px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.curtain-date {
  font-size: 14px;
  letter-spacing: 2px;
  color: #f7d070;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.curtain-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #d4af37, #f7e8a9, #a07a1b);
  color: #4a070a;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: btnPulse 1.8s infinite;
}

.curtain-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.7);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   2. NÚT PHÁT NHẠC ĐĨA THAN XOAY (Vinyl Music Button)
   ========================================================================== */
.audio-control-wrapper {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
}

.audio-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b2b2b, #0d0d0d);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.audio-toggle:active {
  transform: scale(0.92);
}

.vinyl-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-toggle.playing .vinyl-disk {
  animation: spinVinyl 4s linear infinite;
}

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

.vinyl-center {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
}

.music-note-icon {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   3. HERO SECTION (Bìa thiệp)
   ========================================================================== */
.section-hero {
  padding: 30px 20px 24px;
  background: linear-gradient(180deg, #961218 0%, #6e0c10 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--accent-gold);
}

.hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-gold-border {
  position: relative;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #fff4cc, var(--accent-gold-dark));
  border-radius: 180px 180px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.hero-image {
  width: 100%;
  max-width: 320px;
  height: 420px;
  object-fit: cover;
  border-radius: 172px 172px 18px 18px;
  display: block;
}

.hero-hysu-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #961218;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-top-caps {
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-title-names {
  font-size: 46px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.hero-main-date {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fae498;
  margin-bottom: 4px;
}

.hero-main-lunar {
  font-size: 14px;
  color: #edd1be;
  font-style: italic;
}

/* ==========================================================================
   4. DÀNH CHO KHÁCH MỜI (Guest Card)
   ========================================================================== */
.section-guest {
  padding: 24px 20px 0;
}

.guest-card {
  background: #fff;
  border: 2px dashed var(--accent-gold);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.guest-emblem {
  font-size: 28px;
  display: inline-block;
  margin-bottom: 4px;
}

.guest-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.guest-name {
  font-size: 38px;
  color: var(--primary);
  line-height: 1.25;
  margin: 4px 0 6px;
}

.guest-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   5. THƯ NGỎ (Intro Card)
   ========================================================================== */
.section-intro {
  padding: 30px 20px 10px;
}

.intro-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.intro-icon {
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.intro-line {
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 18px;
}

.intro-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  text-wrap: balance;
}

.intro-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   6. ĐẠI DIỆN HAI BÊN GIA ĐÌNH (Families Section)
   ========================================================================== */
.section-families {
  padding: 30px 20px 10px;
}

.families-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.families-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.family-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
  position: relative;
}

.family-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.family-side-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-gold);
}

.family-parent {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.family-role {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
}

.member-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 17px;
}

.family-address {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* ==========================================================================
   7. LỊCH TRÌNH HÔN LỄ (Events Section)
   ========================================================================== */
.section-events {
  padding: 30px 20px 10px;
}

.events-main-title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.event-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
  position: relative;
}

.event-item.event-featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #fffcf9 0%, #fff6f2 100%);
}

.event-badge-icon {
  font-size: 32px;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.event-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-time {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.event-date-large {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.event-lunar {
  font-size: 14px;
  color: #8c531b;
  font-style: italic;
  margin-bottom: 12px;
}

.event-place {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.event-addr {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-event-map {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(150, 18, 24, 0.25);
}

.btn-event-map:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(150, 18, 24, 0.35);
}

/* ==========================================================================
   8. LỊCH CƯỚI & ĐẾM NGƯỢC (Calendar & Countdown)
   ========================================================================== */
.section-calendar-count {
  padding: 30px 20px 10px;
}

.cal-count-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.cal-top-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--accent-gold-light);
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 16px;
  font-family: var(--font-serif);
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  padding: 16px;
  display: table;
  text-align: center;
}

.calendar-grid th {
  padding: 12px 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.calendar-grid td {
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  height: 40px;
}

.calendar-grid td.wedding-highlight {
  color: #ffffff;
}

.calendar-grid td.wedding-highlight .day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(150, 18, 24, 0.4);
}

.wedding-star {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 10px;
  color: var(--accent-gold);
}

.countdown-wrap {
  background: linear-gradient(180deg, #fffcf9, #fbf2ea);
  border-top: 1px dashed var(--border-gold);
  padding: 24px 16px;
  text-align: center;
}

.countdown-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.cd-box {
  flex: 1;
  max-width: 74px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  font-family: var(--font-serif);
}

.cd-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   9. ẢNH TRUYỀN THỐNG (Tradition Photo)
   ========================================================================== */
.section-tradition-photo {
  padding: 30px 20px 10px;
}

.tradition-wrap {
  text-align: center;
}

.tradition-frame {
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #fff5d6, var(--accent-gold-dark));
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}

.tradition-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.tradition-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  text-wrap: balance;
}

/* ==========================================================================
   10. ALBUM ẢNH CƯỚI (Carousel & Gallery)
   ========================================================================== */
.section-gallery {
  padding: 30px 20px 10px;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease-in-out;
  touch-action: pan-y;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.carousel-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 5;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(150, 18, 24, 0.8);
}

.prev-arrow { left: 12px; }
.next-arrow { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--accent-gold);
}

/* ==========================================================================
   11. XÁC NHẬN THAM DỰ (RSVP)
   ========================================================================== */
.section-rsvp {
  padding: 30px 20px 10px;
}

.rsvp-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.rsvp-header {
  text-align: center;
  margin-bottom: 24px;
}

.rsvp-emblem {
  font-size: 38px;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.rsvp-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rsvp-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-wrap: balance;
}

.form-row {
  margin-bottom: 18px;
}

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

.form-row input[type="text"],
.form-select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #fffdfa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input[type="text"]:focus,
.form-select:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(150, 18, 24, 0.12);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-group.inline {
  flex-direction: row;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.btn-rsvp-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(150, 18, 24, 0.35);
  transition: all 0.25s ease;
  margin-top: 8px;
}

.btn-rsvp-submit:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 25px rgba(150, 18, 24, 0.45);
  transform: translateY(-2px);
}

.form-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.form-msg.success {
  color: #2e7d32;
}

.form-msg.error {
  color: #c92a2a;
}

/* ==========================================================================
   12. HỘP MỪNG CƯỚI (Gifts Section)
   ========================================================================== */
.section-gifts {
  padding: 30px 20px 10px;
}

.gift-banner {
  background: linear-gradient(135deg, #961218, #6e0c10);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.gift-banner-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
}

.gift-title {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.gift-subtitle {
  font-size: 14px;
  color: #f2d6c6;
  margin-bottom: 18px;
}

.btn-gift-open {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #d4af37, #f7e8a9, #a07a1b);
  color: #4a070a;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.btn-gift-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   13. SỔ LỜI CHÚC (Wishes Guestbook)
   ========================================================================== */
.section-wishes {
  padding: 30px 20px 10px;
}

.wishes-title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.wish-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-gold);
}

.wish-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.wish-content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

/* ==========================================================================
   14. LỜI CẢM ƠN (Footer)
   ========================================================================== */
.section-thanks {
  padding: 30px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-page) 0%, #f6ece0 100%);
}

.thanks-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.thanks-title {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.thanks-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 28px;
  text-wrap: balance;
}

.credit {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.credit:hover {
  opacity: 1;
  color: var(--primary);
}

/* ==========================================================================
   15. MODAL HỘP MỪNG CƯỚI (Bank QR Modal)
   ========================================================================== */
.gift-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.gift-modal-backdrop[hidden] {
  display: none;
}

.gift-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--accent-gold);
  animation: modalPop 0.3s ease;
}

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

.gift-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary);
  color: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 26px;
  color: #fff;
  line-height: 1;
  padding: 0 4px;
}

.gift-modal-content {
  padding: 20px;
}

.gift-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bank-card {
  background: #fdfbf7;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.bank-owner {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.bank-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bank-acc-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px dashed var(--accent-gold);
  margin-bottom: 12px;
}

.bank-acc-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.btn-copy-acc {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-copy-acc.copied {
  background: #2e7d32;
}

.bank-qr-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.bank-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   16. LIGHTBOX PHÓNG TO ẢNH (Image Lightbox)
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 34px;
  color: #ffffff;
  padding: 4px 10px;
  z-index: 10;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ==========================================================================
   17. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
