/* ==========================================================================
   THIỆP CƯỚI ONLINE FINE ART / EDITORIAL LUXURY
   THÀNH LONG & VŨ CHINH (28 - 29.11.2026)
   ========================================================================== */

:root {
  --bg-ivory: #FAF7F2;
  --bg-cream: #F3EDE2;
  --bg-paper: #FFFDF9;
  --bg-dark: #1E1916;
  --gold-primary: #B89146;
  --gold-light: #DFC690;
  --gold-dark: #8C6928;
  --gold-soft: rgba(184, 145, 70, 0.14);
  --crimson-accent: #8B2626;
  --text-main: #2A231F;
  --text-muted: #6E6259;
  --text-light: #96897E;
  --border-gold: rgba(184, 145, 70, 0.32);
  --shadow-soft: 0 18px 45px rgba(42, 35, 31, 0.07);
  --shadow-card: 0 12px 32px rgba(42, 35, 31, 0.09);
  --shadow-luxury: 0 25px 60px rgba(30, 25, 22, 0.14);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.envelope-locked {
  overflow: hidden;
}

/* ==========================================================================
   CANVAS CÁNH HOA RƠI & HẠT VÀNG LẤP LÁNH
   ========================================================================== */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ==========================================================================
   MÀN HÌNH MỞ PHONG BÌ THIỆP (ENVELOPE INTRO OVERLAY)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at center, #2b231d 0%, #15110e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.95s ease, visibility 0.95s ease, transform 0.95s ease;
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-overlay::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(223, 198, 144, 0.22);
  pointer-events: none;
}

.intro-edition-switcher {
  display: inline-flex;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(223, 198, 144, 0.3);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.intro-edition-btn {
  background: transparent;
  color: #e6dac3;
  border: none;
  padding: 0.48rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.intro-edition-btn.active {
  background: linear-gradient(135deg, #d4af63, #a37c35);
  color: #fff;
  box-shadow: 0 4px 15px rgba(184, 145, 70, 0.4);
}

.envelope-stage {
  position: relative;
  width: min(440px, 92vw);
  perspective: 1200px;
}

.envelope-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  background: linear-gradient(160deg, #f6efe2 0%, #e8dcc6 100%);
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(223, 198, 144, 0.45);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.envelope-wrapper:hover {
  transform: translateY(-4px);
}

/* Tấm thiệp bên trong phong bì */
.envelope-letter {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 12px;
  bottom: 14px;
  background: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 1.35rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-wrapper.opening .envelope-letter {
  transform: translateY(-105px) scale(1.02);
}

.letter-Inner-border {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 145, 70, 0.25);
  pointer-events: none;
}

.letter-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.letter-couple {
  font-family: var(--font-script);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.letter-guest-box {
  margin: 0.35rem 0 0.45rem;
  padding: 0.35rem 0.9rem;
  border-top: 1px solid rgba(184, 145, 70, 0.28);
  border-bottom: 1px solid rgba(184, 145, 70, 0.28);
}

.letter-guest-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.letter-guest-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--crimson-accent);
}

.letter-date {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Cánh phong bì trước & nắp phong bì */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
}

.envelope-pocket::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #efe4cf 0%, #e2d2b5 100%);
  clip-path: polygon(0 0, 50% 54%, 0 100%);
  border-right: 1px solid rgba(184, 145, 70, 0.2);
}

.envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, #efe4cf 0%, #e2d2b5 100%);
  clip-path: polygon(100% 0, 50% 54%, 100% 100%);
}

.envelope-bottom-flap {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, #e5d6ba 0%, #f5ebd8 100%);
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  z-index: 4;
  background: linear-gradient(180deg, #f8f1e4 0%, #e4d4b7 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s 0.35s;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.envelope-wrapper.opening .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Con dấu sáp vàng đồng (Wax Seal) */
.wax-seal {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e2be75, #b48635 65%, #7e591b 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 2px 5px rgba(255, 255, 255, 0.45), inset 0 -3px 8px rgba(68, 45, 8, 0.6);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 245, 220, 0.45);
  transition: transform 0.45s ease, opacity 0.45s ease;
  animation: pulseSeal 2.4s infinite ease-in-out;
}

.envelope-wrapper.opening .wax-seal {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
}

@keyframes pulseSeal {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(223, 198, 144, 0.5);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(223, 198, 144, 0);
  }
}

.wax-seal-monogram {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff9ec;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.wax-seal-sub {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 249, 236, 0.9);
  margin-top: 1px;
}

.open-card-cta {
  margin-top: 1.7rem;
  text-align: center;
  z-index: 5;
}

.btn-open-envelope {
  background: linear-gradient(135deg, #d7b46a 0%, #a87e33 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(184, 145, 70, 0.42);
  transition: var(--transition-smooth);
}

.btn-open-envelope:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(184, 145, 70, 0.58);
}

.intro-hint {
  margin-top: 0.75rem;
  color: rgba(230, 218, 195, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   THANH ĐIỀU HƯỚNG & CHUYỂN ĐỔI NHÀ TRAI / NHÀ GÁI
   ========================================================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 145, 70, 0.2);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand {
  flex-shrink: 0;
}

/* Logo monogram: vòng tròn cố định, không co, không xuống dòng */
.nav-monogram-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  box-shadow: inset 0 0 0 3px var(--bg-paper), inset 0 0 0 4px rgba(184, 145, 70, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--gold-dark);
  background: var(--bg-paper);
}

.nav-monogram-badge i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.62em;
  margin: 0 1px;
  color: var(--gold-primary);
}

.nav-brand-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 1360px) {
  .top-navbar .nav-links { gap: 1.05rem; }
  .top-navbar .nav-links a { font-size: 0.76rem; letter-spacing: 0.03em; }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .top-navbar .nav-brand-text { display: none; }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .top-navbar .nav-links { gap: 0.8rem; }
  .top-navbar .nav-links a { font-size: 0.72rem; letter-spacing: 0.02em; }
}

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-edition-pill {
  display: inline-flex;
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 3px;
}

.edition-switch-btn {
  white-space: nowrap;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.edition-switch-btn.active {
  background: var(--gold-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(184, 145, 70, 0.3);
}

/* ==========================================================================
   HERO EDITORIAL SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 6.8rem 1.25rem 4.5rem;
  background: radial-gradient(ellipse at top, #fffdf9 0%, #f5efe4 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: rgba(184, 145, 70, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-save-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 6.2vw, 5.1rem);
  color: var(--text-main);
  line-height: 1.12;
  margin-bottom: 0.9rem;
  font-weight: 400;
}

/* Tên tách 2 dòng: "Thành Long" / "& Vũ Chinh" (dòng 2 thụt vào kiểu editorial) */
.hero-couple-names .hn-name {
  white-space: nowrap;
}

.hero-couple-names > .hn-name,
.hero-couple-names .hn-second {
  display: block;
}

.hero-couple-names .hn-second {
  padding-left: 1.1em;
  margin-top: -0.12em;
}

.hero-couple-names .hn-amp {
  display: inline-block;
  margin-right: 0.22em;
  font-size: 0.78em;
  color: var(--gold-primary);
}

.hero-guest-greeting {
  background: var(--bg-paper);
  border-left: 3px solid var(--gold-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}

.hero-guest-greeting .greeting-small {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
}

.hero-guest-greeting .greeting-guest-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--crimson-accent);
}

.hero-invitation-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  max-width: 540px;
}

.hero-dates-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-date-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-date-card.highlight {
  background: linear-gradient(145deg, #fffdf9 0%, #f8f0df 100%);
  border-color: var(--gold-primary);
}

.hero-date-card .event-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-date-card .event-main-time {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-date-card .event-lunar {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-location-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  background: rgba(184, 145, 70, 0.09);
  border: 1px dashed var(--gold-primary);
  border-radius: 10px;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

.hero-location-pill strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(184, 145, 70, 0.32);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(184, 145, 70, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-paper);
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--gold-primary);
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* Khung ảnh Hero (Editorial Arch): vòm chính + viền lệch + con dấu + cặp huy hiệu */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stage {
  --arch-w: min(440px, 80vw);
  --medal: 118px;
  position: relative;
  width: var(--arch-w);
  padding-bottom: 74px;
  margin: 0 auto;
}

/* Quầng sáng champagne phía sau */
.hero-glow {
  position: absolute;
  inset: -8% -18% 4%;
  background:
    radial-gradient(closest-side at 35% 30%, rgba(240, 214, 205, 0.55), transparent 70%),
    radial-gradient(closest-side at 70% 65%, rgba(223, 198, 144, 0.45), transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

/* Viền vòm vàng lệch tạo chiều sâu */
.hero-arch-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1.5px solid var(--gold-light);
  border-radius: 50% 50% 22px 22px / 33.34% 33.34% 22px 22px;
  transform: translate(22px, 22px);
  z-index: 1;
  pointer-events: none;
}

.hero-arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 10px;
  background: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 50% 50% 22px 22px / 33.34% 33.34% 22px 22px;
  box-shadow: 0 30px 70px rgba(30, 25, 22, 0.16), 0 6px 18px rgba(140, 105, 40, 0.10);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-arch-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 38px 80px rgba(30, 25, 22, 0.20), 0 8px 22px rgba(140, 105, 40, 0.14);
  }
}

/* Đường chỉ vàng mảnh bên trong khung */
.hero-arch-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(184, 145, 70, 0.38);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50% 50% 14px 14px / 33.34% 33.34% 14px 14px;
  display: block;
}

/* Lớp sáng mờ chân ảnh để cặp huy hiệu hoà vào khung */
.hero-arch-sheen {
  position: absolute;
  inset: 10px;
  border-radius: 50% 50% 14px 14px / 33.34% 33.34% 14px 14px;
  background: linear-gradient(to top, rgba(255, 253, 249, 0.7) 0%, rgba(255, 253, 249, 0) 26%);
  pointer-events: none;
}

/* Con dấu tròn chữ chạy "Save the Date" */
.hero-seal {
  position: absolute;
  top: 8%;
  left: -56px;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf9 0%, #f7efe0 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 14px 34px rgba(42, 35, 31, 0.14);
  z-index: 4;
}

.hero-seal::after {
  content: "";
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 145, 70, 0.45);
}

.hero-seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: heroSealSpin 30s linear infinite;
}

.hero-seal-ring text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  fill: var(--gold-dark);
}

.hero-seal-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2.15rem;
  line-height: 1;
  color: var(--gold-dark);
  z-index: 1;
}

.hero-seal-mono i {
  font-family: var(--font-serif);
  font-size: 0.55em;
  font-style: italic;
  margin: 0 2px;
  color: var(--gold-primary);
}

/* Ánh sao lấp lánh */
.hero-sparkle {
  position: absolute;
  color: var(--gold-primary);
  line-height: 1;
  z-index: 4;
  pointer-events: none;
  animation: heroTwinkle 3.2s ease-in-out infinite;
}

.hero-sparkle.s1 { top: 3%; right: 4%; font-size: 1.35rem; }
.hero-sparkle.s2 { top: 44%; right: -34px; font-size: 1rem; animation-delay: 1.1s; }
.hero-sparkle.s3 { bottom: 30%; left: -30px; font-size: 1.15rem; animation-delay: 2.1s; }

/* Cặp huy hiệu chân dung Chú Rể & Cô Dâu */
.hero-medals {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 5;
}

.hero-medal {
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.hero-medal-ring {
  display: block;
  width: var(--medal);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #f6e7c1, var(--gold-primary), #fbf1d8, var(--gold-dark), #f6e7c1);
  box-shadow: 0 14px 30px rgba(42, 35, 31, 0.18);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-medal:hover .hero-medal-ring {
  transform: translateY(-5px);
}

.hero-medal-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-paper);
}

.hero-medal figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  white-space: nowrap;
}

.hero-medal figcaption small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.hero-medals-amp {
  margin-top: calc(var(--medal) / 2 - 0.55em);
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-primary);
  text-shadow: 0 2px 10px rgba(255, 253, 249, 0.9);
}

/* Hiệu ứng xuất hiện (dùng thuộc tính translate/scale riêng để không đè transform khi hover) */
.hero-arch-frame,
.hero-arch-outline,
.hero-seal,
.hero-medals {
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: backwards;
}

.hero-arch-frame { animation-name: heroRise; }
.hero-arch-outline { animation-name: heroOutlineIn; animation-delay: 0.25s; }
.hero-seal { animation-name: heroPop; animation-delay: 0.5s; }
.hero-medals { animation-name: heroMedalsIn; animation-delay: 0.65s; }

@keyframes heroRise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes heroOutlineIn {
  from { opacity: 0; translate: -22px -22px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes heroPop {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

@keyframes heroMedalsIn {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes heroSealSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arch-frame,
  .hero-arch-outline,
  .hero-seal,
  .hero-medals,
  .hero-seal-ring,
  .hero-sparkle {
    animation: none;
  }
}

  /* ==========================================================================
   TIÊU ĐỀ CHUNG CÁC SECTION
   ========================================================================== */
  .section {
    padding: 5.2rem 1.25rem;
    position: relative;
  }

  .section-alt {
    background-color: var(--bg-cream);
  }

  .container {
    max-width: 1160px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.2rem;
  }

  .section-subtitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem auto 1rem;
    color: var(--gold-primary);
  }

  .section-divider::before,
  .section-divider::after {
    content: "";
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  }

  .section-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
  }

  /* ==========================================================================
   GIỚI THIỆU CÔ DÂU & CHÚ RỂ (COUPLE SECTION)
   ========================================================================== */
  .couple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: stretch;
  }

  .couple-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .couple-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury);
  }

  .couple-photo-wrap {
    width: min(280px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 140px 140px 14px 14px;
    padding: 8px;
    border: 1px solid var(--border-gold);
    background: var(--bg-ivory);
    margin-bottom: 1.4rem;
    overflow: hidden;
    cursor: pointer;
  }

  .couple-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 132px 132px 10px 10px;
    transition: transform 0.6s ease;
    display: block;
  }

  @media (hover: hover) and (pointer: fine) {
    .couple-card:hover .couple-photo-wrap img {
      transform: scale(1.04);
    }
  }

  .couple-role-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-dark);
    background: var(--gold-soft);
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .couple-name {
    font-family: var(--font-script);
    font-size: 2.65rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 0.5rem;
  }

  .couple-bio {
    font-size: 0.93rem;
    color: var(--text-muted);
    max-width: 380px;
    margin-bottom: 1.2rem;
  }

  .couple-address-box {
    margin-top: auto;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-ivory);
    border-radius: 12px;
    border: 1px dashed var(--border-gold);
    font-size: 0.88rem;
  }

  .couple-address-box strong {
    display: block;
    color: var(--gold-dark);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
  }

  /* ==========================================================================
   LỊCH THÁNG 11/2026 & ĐẾM NGƯỢC (CALENDAR & COUNTDOWN)
   ========================================================================== */
  .calendar-countdown-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .calendar-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    text-align: center;
  }

  .calendar-month-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .calendar-lunar-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    text-align: center;
  }

  .cal-weekday {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(184, 145, 70, 0.2);
  }

  .cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 50%;
    position: relative;
  }

  .cal-day.empty {
    pointer-events: none;
  }

  .cal-day.feast-day {
    background: var(--gold-soft);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-dark);
    font-weight: 700;
  }

  .cal-day.wedding-day {
    background: var(--crimson-accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(139, 38, 38, 0.35);
  }

  .cal-day .day-badge {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    line-height: 1;
    margin-top: 2px;
    text-transform: uppercase;
  }

  .calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 145, 70, 0.2);
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  .legend-dot.feast {
    background: var(--gold-soft);
    border: 1.5px solid var(--gold-primary);
  }

  .legend-dot.ceremony {
    background: var(--crimson-accent);
  }

  /* Khối đếm ngược */
  .countdown-panel {
    background: linear-gradient(145deg, #241e1a 0%, #171310 100%);
    color: #fffdf9;
    border-radius: 20px;
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-luxury);
    border: 1px solid rgba(223, 198, 144, 0.3);
    text-align: center;
  }

  .countdown-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-light);
    display: block;
    margin-bottom: 0.5rem;
  }

  .countdown-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }

  .countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.65rem;
  }

  .cd-box {
    background: rgba(255, 253, 249, 0.06);
    border: 1px solid rgba(223, 198, 144, 0.28);
    border-radius: 14px;
    padding: 1.1rem 0.5rem;
  }

  .cd-num {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.8vw, 2.65rem);
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    display: block;
  }

  .cd-unit {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 253, 249, 0.72);
    margin-top: 0.45rem;
    display: block;
  }

  .countdown-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.08rem;
    color: rgba(255, 253, 249, 0.85);
  }

  /* ==========================================================================
   THIỆP MỜI CHÍNH THỨC & LỊCH TRÌNH SỰ KIỆN + BẢN ĐỒ
   ========================================================================== */
  .formal-invitation-card {
    background: var(--bg-paper);
    border: 1px solid var(--gold-primary);
    border-radius: 22px;
    padding: 3rem 2.2rem;
    max-width: 880px;
    margin: 0 auto 3rem;
    box-shadow: var(--shadow-luxury);
    text-align: center;
    position: relative;
  }

  .formal-invitation-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(184, 145, 70, 0.3);
    border-radius: 14px;
    pointer-events: none;
  }

  .formal-top-badge {
    display: inline-block;
    background: var(--crimson-accent);
    color: #fff;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .formal-houses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 680px;
    margin: 0 auto 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(184, 145, 70, 0.25);
  }

  .formal-house-col h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    margin-bottom: 0.25rem;
  }

  .formal-house-col .house-couple-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
  }

  .formal-house-col p {
    font-size: 0.88rem;
    color: var(--text-muted);
  }

  .formal-invite-lead {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }

  .formal-guest-highlight {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--crimson-accent);
    margin-bottom: 0.5rem;
  }

  .formal-couple-display {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--text-main);
    margin: 0.5rem 0 1.4rem;
  }

  .formal-events-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .formal-event-box {
    background: var(--bg-ivory);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
  }

  .formal-event-box.ceremony-box {
    background: linear-gradient(145deg, #fff9f5 0%, #f7ebdf 100%);
    border-color: var(--gold-primary);
  }

  .formal-event-type {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--crimson-accent);
    margin-bottom: 0.35rem;
  }

  .formal-event-time {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
  }

  .formal-event-lunar {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
  }

  .formal-venue-banner {
    background: var(--gold-soft);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.15rem 1.5rem;
    max-width: 650px;
    margin: 0 auto;
  }

  .formal-venue-banner .venue-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    font-weight: 700;
  }

  .formal-venue-banner .venue-address {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.2rem;
  }

  /* Bản đồ 2 nhà Trai & Gái */
  .venues-map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .venue-map-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
  }

  .venue-map-card.active-side {
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-luxury);
  }

  .venue-card-body {
    padding: 1.5rem;
  }

  .venue-side-tag {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
  }

  .venue-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
  }

  .venue-card-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }

  .venue-iframe-wrap {
    width: 100%;
    height: 230px;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    background: #eee;
  }

  .venue-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .venue-card-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  /* ==========================================================================
   ALBUM ẢNH CƯỚI NGHỆ THUẬT (GALLERY & LIGHTBOX)
   ========================================================================== */
  .gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.25rem;
  }

  .filter-btn {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .filter-btn:hover,
  .filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(184, 145, 70, 0.3);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-cream);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    group: true;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .gallery-item.featured-card {
    border: 2px solid var(--gold-primary);
  }

  .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury);
    border-color: var(--gold-primary);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
      transform: scale(1.06);
    }
  }

  .gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 25, 22, 0.78);
    backdrop-filter: blur(6px);
    color: var(--gold-light);
    border: 1px solid rgba(223, 198, 144, 0.45);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
  }

  .gallery-caption-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.2rem 1rem 0.95rem;
    background: linear-gradient(to top, rgba(20, 16, 14, 0.85) 0%, rgba(20, 16, 14, 0) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-smooth);
  }

  .gallery-item:hover .gallery-caption-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-caption-overlay p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.3;
  }

  /* Lightbox Modal */
  .lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 12, 10, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .lightbox-modal.open {
    opacity: 1;
    visibility: visible;
  }

  .lightbox-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e6dac3;
    z-index: 5;
  }

  .lightbox-counter {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .lightbox-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .lb-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(223, 198, 144, 0.3);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease;
  }

  .lb-icon-btn:hover {
    background: var(--gold-primary);
  }

  .lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-stage img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(223, 198, 144, 0.3);
  }

  .lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(223, 198, 144, 0.35);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
    z-index: 5;
  }

  .lb-nav-btn:hover {
    background: var(--gold-primary);
  }

  .lb-prev {
    left: 1.25rem;
  }

  .lb-next {
    right: 1.25rem;
  }

  .lightbox-caption {
    margin-top: 1rem;
    color: #f3ede2;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    text-align: center;
    padding: 0 1rem;
    transition: opacity 0.25s ease;
  }

  /* Zoom ảnh trong Lightbox */
  .lightbox-modal {
    overflow: hidden;
    padding: 3.6rem 0 calc(6rem + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-stage img {
    max-height: min(78vh, calc(100vh - 13.5rem));
    max-height: min(78dvh, calc(100dvh - 13.5rem));
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transform-origin: center center;
    cursor: zoom-in;
  }

  /* Chỉ bật will-change trong lúc kéo/chụm cho mượt. Khi thả tay phải tắt đi,
     nếu không trình duyệt giữ bản raster ở 100% rồi phóng to -> ảnh bị mờ */
  .lightbox-stage img.is-gesturing {
    will-change: transform;
  }

  .lightbox-modal.is-zoomed .lightbox-stage {
    z-index: 4;
  }

  .lightbox-modal.is-zoomed .lightbox-stage img {
    cursor: grab;
    border-radius: 0;
    box-shadow: none;
  }

  .lightbox-modal.is-zoomed .lightbox-stage img.is-dragging {
    cursor: grabbing;
  }

  .lightbox-modal.is-zoomed .lightbox-caption,
  .lightbox-modal.is-zoomed .lb-nav-btn,
  .lightbox-modal.is-zoomed .lb-zoom-hint {
    opacity: 0;
    pointer-events: none;
  }

  .lb-nav-btn,
  .lb-zoom-hint {
    transition: background 0.25s ease, opacity 0.25s ease;
  }

  .lb-zoom-bar {
    position: absolute;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(20, 16, 13, 0.72);
    border: 1px solid rgba(223, 198, 144, 0.3);
    backdrop-filter: blur(8px);
    z-index: 6;
  }

  .lb-zoom-btn,
  .lb-zoom-level {
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease;
  }

  .lb-zoom-btn {
    width: 36px;
    font-size: 1.25rem;
    line-height: 1;
  }

  .lb-zoom-level {
    min-width: 62px;
    padding: 0 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: #e6dac3;
    font-variant-numeric: tabular-nums;
  }

  .lb-zoom-btn:hover,
  .lb-zoom-level:hover {
    background: var(--gold-primary);
  }

  .lb-zoom-hint {
    position: absolute;
    bottom: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.72rem;
    color: rgba(243, 237, 226, 0.6);
    pointer-events: none;
  }

  .lb-zoom-hint.hint-touch { display: none; }

  @media (hover: none) and (pointer: coarse) {
    .lb-zoom-hint.hint-touch { display: inline; }
    .lb-zoom-hint.hint-mouse { display: none; }
  }

  @media (max-width: 600px) {
    .lightbox-topbar {
      padding: 0.7rem 0.75rem;
    }

    .lightbox-actions {
      gap: 0.4rem;
    }

    .lb-icon-btn {
      white-space: nowrap;
      padding: 0.4rem 0.7rem;
      font-size: 0.72rem;
    }
  }

  /* ==========================================================================
   XÁC NHẬN THAM DỰ (RSVP) & SỔ LƯU BÚT (GUESTBOOK)
   ========================================================================== */
  .rsvp-guestbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .rsvp-card,
  .guestbook-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2.2rem 1.85rem;
    box-shadow: var(--shadow-soft);
  }

  .form-group {
    margin-bottom: 1.15rem;
  }

  .form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
  }

  .form-control {
    width: 100%;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(184, 145, 70, 0.38);
    border-radius: 10px;
    background: var(--bg-ivory);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-main);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(184, 145, 70, 0.16);
    background: #fff;
  }

  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .wishes-Quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
  }

  .wish-preset-chip {
    background: var(--bg-cream);
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .wish-preset-chip:hover {
    background: var(--gold-soft);
    color: var(--gold-dark);
  }

  .wishes-list {
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.35rem;
  }

  .wish-item {
    background: var(--bg-ivory);
    border: 1px solid rgba(184, 145, 70, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
  }

  .wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .wish-author {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .wish-side-tag {
    font-size: 0.7rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 600;
  }

  .wish-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.45rem;
  }

  .wish-content {
    font-size: 0.92rem;
    color: var(--text-muted);
  }

  /* ==========================================================================
   HỘP MỪNG CƯỚI (WEDDING GIFT / QR BANKING)
   ========================================================================== */
  .gift-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .gift-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
  }

  .gift-card.primary-gift {
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-card);
  }

  .gift-qr-frame {
    width: 210px;
    height: 210px;
    margin: 1rem auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }

  .gift-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .gift-bank-info {
    margin: 1rem 0;
    font-size: 0.92rem;
  }

  .gift-bank-info .acc-num {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.06em;
    display: block;
    margin: 0.2rem 0;
  }

  /* ==========================================================================
   NÚT NỔI GÓC DƯỚI (NHẠC NỀN & TẠO LINK GỬI KHÁCH)
   ========================================================================== */
  .floating-widgets {
    position: fixed;
    bottom: 1.35rem;
    right: 1.35rem;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
  }

  .widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(30, 25, 22, 0.86);
    backdrop-filter: blur(8px);
    color: #f6efe2;
    border: 1px solid rgba(223, 198, 144, 0.45);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transition: var(--transition-smooth);
  }

  .widget-btn:hover {
    background: var(--gold-primary);
    color: #fff;
  }

  .music-btn.playing .music-disc {
    animation: spinDisc 4s linear infinite;
  }

  .music-disc {
    display: inline-block;
  }

  @keyframes spinDisc {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  /* Modal Tạo Link Cá Nhân Hóa */
  .custom-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(20, 16, 14, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .custom-modal.open {
    opacity: 1;
    visibility: visible;
  }

  .modal-box {
    background: var(--bg-paper);
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-luxury);
    position: relative;
  }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-cream);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
  }

  /* ==========================================================================
   CHÂN TRANG (FOOTER)
   ========================================================================== */
  .footer {
    background: var(--bg-dark);
    color: #e8dcc6;
    text-align: center;
    padding: 4rem 1.25rem 3rem;
    border-top: 1px solid rgba(223, 198, 144, 0.25);
  }

  .footer-names {
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    color: var(--gold-light);
    margin-bottom: 0.4rem;
  }

  .footer-date {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }

  .footer-links a {
    color: #e8dcc6;
    text-decoration: none;
    font-size: 0.84rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(223, 198, 144, 0.3);
    border-radius: 999px;
  }

  .footer-links a:hover {
    background: var(--gold-primary);
    color: #fff;
  }

  /* ==========================================================================
   THANH ĐIỀU HƯỚNG CẠNH DƯỚI DÀNH CHO MOBILE (MOBILE BOTTOM APP BAR)
   ========================================================================== */
  .mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(184, 145, 70, 0.32);
    box-shadow: 0 -8px 28px rgba(30, 25, 22, 0.09);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.32rem 0.2rem;
    border-radius: 10px;
    transition: all 0.25s ease;
  }

  .mobile-nav-item .m-icon {
    font-size: 1.12rem;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  .mobile-nav-item.active {
    color: var(--gold-dark);
    background: rgba(184, 145, 70, 0.13);
  }

  .mobile-nav-item.active .m-icon {
    transform: translateY(-2px) scale(1.08);
  }

  /* ==========================================================================
   RESPONSIVE DESIGN CHO ĐIỆN THOẠI & TABLET THỰC TẾ
   ========================================================================== */
  @media (max-width: 960px) {
    .nav-links {
      display: none;
    }

    .hero-container,
    .couple-grid,
    .calendar-countdown-wrapper,
    .venues-map-grid,
    .rsvp-guestbook-grid,
    .gift-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .formal-houses-grid,
    .formal-events-duo {
      grid-template-columns: minmax(0, 1fr);
      gap: 1rem;
    }
  }

  @media (max-width: 768px) {
    body {
      padding-bottom: 70px;
    }

    .mobile-bottom-nav {
      display: flex;
    }

    .top-navbar .nav-container {
      padding: 0.55rem 0.85rem;
    }

    .nav-monogram-badge {
      width: 36px;
      height: 36px;
      font-size: 1rem;
    }

    .nav-brand-text {
      font-size: 1.02rem;
    }

    .edition-switch-btn {
      padding: 0.3rem 0.68rem;
      font-size: 0.72rem;
    }

    /* Phong bì mở thiệp trên màn hình điện thoại */
    .envelope-overlay {
      padding: 1rem;
    }

    .envelope-overlay::before {
      inset: 10px;
    }

    .intro-edition-switcher {
      margin-bottom: 1.1rem;
      width: 100%;
      max-width: 360px;
    }

    .intro-edition-btn {
      flex: 1;
      padding: 0.45rem 0.5rem;
      font-size: 0.75rem;
    }

    .envelope-wrapper {
      height: 265px;
    }

    .envelope-wrapper.opening .envelope-letter {
      transform: translateY(-75px) scale(1.01);
    }

    /* Hero Section tối ưu cho Mobile */
    .hero-section {
      padding: 4.8rem 1rem 2.6rem;
    }

    .hero-container {
      gap: 1.75rem;
    }

    .hero-content {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-badge-row {
      margin-bottom: 0.75rem;
      font-size: 0.72rem;
    }

    .hero-save-date {
      font-size: 0.82rem;
      letter-spacing: 0.2em;
    }

    .hero-couple-names {
      font-size: clamp(2.75rem, 11vw, 3.6rem);
      margin-bottom: 0.65rem;
    }

    .hero-couple-names .hn-second {
      padding-left: 0;
    }

    .hero-guest-greeting {
      width: 100%;
      border-left: none;
      border-top: 2px solid var(--gold-primary);
      border-radius: 12px;
      padding: 0.75rem 1rem;
      margin-bottom: 1.1rem;
    }

    .hero-invitation-lead {
      font-size: 0.92rem;
      margin-bottom: 1.2rem;
    }

    .hero-dates-cards {
      width: 100%;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.65rem;
      margin-bottom: 1.2rem;
    }

    .hero-date-card {
      padding: 0.8rem 0.55rem;
      text-align: center;
    }

    .hero-date-card .event-tag {
      font-size: 0.65rem;
      letter-spacing: 0.08em;
    }

    .hero-date-card .event-main-time {
      font-size: 1.05rem;
    }

    .hero-date-card .event-lunar {
      font-size: 0.72rem;
    }

    .hero-location-pill {
      width: 100%;
      justify-content: center;
      text-align: left;
      padding: 0.7rem 0.9rem;
      font-size: 0.86rem;
      margin-bottom: 1.25rem;
    }

    .hero-actions {
      width: 100%;
      flex-direction: column;
      gap: 0.65rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
      width: 100%;
      justify-content: center;
      padding: 0.82rem 1.2rem;
    }

    .hero-stage {
      --arch-w: min(310px, 76vw);
      --medal: 86px;
      padding-bottom: 60px;
    }

    .hero-seal {
      width: 92px;
      left: -26px;
      top: 5%;
    }

    .hero-seal::after { inset: 20px; }
    .hero-seal-mono { font-size: 1.55rem; }
    .hero-medals-amp { font-size: 2rem; }
    .hero-medal figcaption { font-size: 0.98rem; }
    .hero-sparkle.s2 { right: -18px; }
    .hero-sparkle.s3 { left: -18px; }

    /* Các section trên điện thoại */
    .section {
      padding: 3.4rem 1rem;
    }

    .section-header {
      margin-bottom: 2rem;
    }

    .couple-card {
      padding: 1.4rem 1.15rem;
    }

    .calendar-card,
    .countdown-panel,
    .rsvp-card,
    .guestbook-card,
    .gift-card {
      padding: 1.45rem 1.1rem;
    }

    .countdown-boxes {
      gap: 0.5rem;
    }

    .cd-box {
      padding: 0.8rem 0.25rem;
    }

    .formal-invitation-card {
      padding: 1.85rem 1rem;
    }

    .formal-invitation-card::before {
      inset: 7px;
    }

    .formal-venue-banner .venue-address {
      font-size: 1.2rem;
    }

    /* Bộ lọc Album vuốt ngang mượt mà trên điện thoại */
    .gallery-filters {
      flex-wrap: nowrap;
      justify-content: flex-start;
      overflow-x: auto;
      padding-bottom: 0.5rem;
      margin-bottom: 1.4rem;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
      display: none;
    }

    .filter-btn {
      flex: 0 0 auto;
      padding: 0.48rem 0.95rem;
      font-size: 0.78rem;
    }

    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.7rem;
    }

    /* Ảnh đầu tiên trong Album hiển thị lớn 2 cột nổi bật trên Mobile */
    .gallery-item:first-child {
      grid-column: span 2;
    }

    .gallery-badge {
      top: 8px;
      left: 8px;
      font-size: 0.6rem;
      padding: 0.2rem 0.55rem;
    }

    .gallery-caption-overlay {
      opacity: 1;
      transform: translateY(0);
      padding: 1.4rem 0.65rem 0.55rem;
    }

    .gallery-caption-overlay p {
      font-size: 0.8rem;
    }

    .form-row-2 {
      grid-template-columns: 1fr;
    }

    /* Nút tiện ích nổi nằm gọn phía trên thanh Bottom Bar */
    .floating-widgets {
      bottom: 4.6rem;
      right: 0.85rem;
      gap: 0.5rem;
    }

    .widget-btn {
      padding: 0.52rem 0.88rem;
      font-size: 0.74rem;
    }

    .lb-prev {
      left: 0.45rem;
      width: 40px;
      height: 40px;
    }

    .lb-next {
      right: 0.45rem;
      width: 40px;
      height: 40px;
    }
  }

/* ==========================================================================
   SỬA LỖI GIAO DIỆN ĐIỆN THOẠI (chống tràn ngang, navbar gọn, nút nổi dạng icon)
   ========================================================================== */
html {
  overflow-x: clip;
}

@media (max-width: 960px) {
  /* Không phần tử con nào được ép cột lưới rộng hơn màn hình */
  .hero-container > *,
  .couple-grid > *,
  .calendar-countdown-wrapper > *,
  .venues-map-grid > *,
  .rsvp-guestbook-grid > *,
  .gift-grid > *,
  .formal-houses-grid > *,
  .formal-events-duo > * {
    min-width: 0;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .countdown-boxes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Navbar: logo + tên co giãn, nút Nhà Trai/Nhà Gái luôn nằm trong màn hình */
  .top-navbar .nav-container {
    gap: 0.6rem;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
  }

  .nav-brand-text {
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Lịch & đếm ngược vừa khít màn hình nhỏ */
  .calendar-card {
    padding: 1.4rem 0.85rem;
  }

  .calendar-month-title {
    font-size: 1.5rem;
  }

  .calendar-grid {
    gap: 0.25rem;
  }

  .cal-weekday {
    font-size: 0.66rem;
  }

  .cal-day .day-badge {
    font-size: 0.5rem;
    white-space: nowrap;
  }

  .countdown-panel {
    padding: 1.5rem 0.9rem;
  }

  .countdown-title {
    font-size: 1.55rem;
  }

  .cd-num {
    font-size: 1.7rem;
  }

  .cd-unit {
    font-size: 0.64rem;
  }

  /* Nút nổi: thu gọn thành nút tròn chỉ có icon, không che nội dung */
  .floating-widgets {
    right: 0.75rem;
    bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
    gap: 0.55rem;
  }

  .widget-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    font-size: 1.1rem;
    gap: 0;
  }

  .widget-btn > span:not(:first-child) {
    display: none;
  }

  /* Huy hiệu số lời chúc không bị xuống dòng */
  #wishes-count-badge {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .guestbook-card h3 {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 768px) {
  /* Bottom nav: nhãn luôn 1 dòng */
  .mobile-bottom-nav {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .mobile-nav-item {
    min-width: 0;
    padding: 0.32rem 0.1rem;
    font-size: 0.64rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 480px) {
  /* Ô lịch quá nhỏ cho chữ — chú thích bên dưới đã ghi rõ giờ */
  .cal-day .day-badge {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-brand-text {
    display: none;
  }

  .mobile-nav-item {
    font-size: 0.6rem;
  }
}

/* Tên cặp đôi & ngày ở footer: mỗi cụm giữ nguyên trên 1 dòng, chỉ ngắt giữa các cụm */
.sn-part {
  display: inline-block;
  white-space: nowrap;
}

.split-names {
  line-height: 1.15;
}

.split-names .sn-amp {
  font-size: 0.78em;
  color: var(--gold-primary);
}

.footer-names.split-names .sn-amp {
  color: inherit;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .split-names .sn-part {
    display: block;
  }

  .footer-date {
    font-size: 1rem;
    letter-spacing: 0.14em;
    line-height: 1.7;
  }

  .footer-date .sn-part,
  .footer-addr .sn-part {
    display: block;
  }

  .footer-date .fd-sep,
  .footer-addr .fd-sep {
    display: none;
  }
}

/* Màn hình cảm ứng: không dùng transition transform trên ảnh để trình duyệt
   không giữ ảnh ở lớp GPU độ phân giải thấp (gây nhoè/răng cưa sau khi chạm) */
@media (hover: none), (pointer: coarse) {
  .couple-photo-wrap img,
  .gallery-item img {
    transition: none;
    transform: none;
  }
}
