:root {
  --bg-ivory: #FAF7F0;
  --bg-paper: #FDFBF6;
  --bg-soft: #F3EDE0;
  --terracotta: #8C4A38;
  --terracotta-dark: #6E3627;
  --terracotta-light: #B87B69;
  --slate: #394655;
  --slate-muted: #667280;
  --lily: #CBD2DC;
  --gold-line: rgba(140, 74, 56, 0.22);
  --shadow-soft: 0 20px 50px rgba(68, 45, 36, 0.08);
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--bg-ivory);
  color: var(--slate);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(203, 210, 220, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(184, 123, 105, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(203, 210, 220, 0.2) 0%, transparent 45%);
}

body.lock-scroll {
  overflow: hidden;
}

/* =============== HIỆU ỨNG MỞ CÁNH THIỆP CHÀO MỪNG + CON DẤU SÁP =============== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transition: visibility 1.2s ease, opacity 1.1s ease;
}

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

.gate-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(160deg, #FBF9F2 0%, #F2EAE0 100%);
  border-color: rgba(140, 74, 56, 0.18);
  transition: transform 1.15s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(140, 74, 56, 0.05);
}

.gate-door.left {
  left: 0;
  border-right: 1px solid rgba(140, 74, 56, 0.18);
  transform-origin: left center;
}

.gate-door.right {
  right: 0;
  border-left: 1px solid rgba(140, 74, 56, 0.18);
  transform-origin: right center;
}

.gate-overlay.is-opened .gate-door.left {
  transform: translateX(-102%);
}

.gate-overlay.is-opened .gate-door.right {
  transform: translateX(102%);
}

.gate-lily {
  position: absolute;
  width: 260px;
  opacity: 0.42;
  pointer-events: none;
}

.gate-door.left .gate-lily {
  bottom: -20px;
  left: -30px;
  transform: scaleX(-1);
}

.gate-door.right .gate-lily {
  top: -10px;
  right: -25px;
}

.gate-center-card {
  position: relative;
  z-index: 10;
  width: min(420px, calc(100% - 32px));
  background: rgba(253, 251, 246, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 38px 28px 34px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(68, 45, 36, 0.18);
  border: 1px solid rgba(140, 74, 56, 0.2);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.gate-center-card::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 21px;
  border: 1px solid rgba(140, 74, 56, 0.14);
  pointer-events: none;
}

.gate-overlay.is-opened .gate-center-card {
  transform: scale(0.92) translateY(-16px);
  opacity: 0;
}

.gate-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 14px;
}

/* Con dấu sáp T&T */
.wax-seal-btn {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 32% 30%, #AE6450 0%, #8C4A38 58%, #673122 100%);
  color: #FFF7EA;
  box-shadow:
    0 12px 28px rgba(110, 54, 39, 0.36),
    inset 0 2px 6px rgba(255, 240, 220, 0.35),
    inset 0 -4px 8px rgba(58, 24, 16, 0.45);
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.wax-seal-btn::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 232, 0.42);
}

.wax-seal-btn:hover {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 16px 34px rgba(110, 54, 39, 0.44);
}

.wax-seal-btn span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.14em;
  transform: translateX(-2px);
}

.wax-seal-btn i {
  font-style: italic;
  font-size: 32px;
}

.gate-title {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 8px;
}

.gate-names {
  margin-bottom: 20px;
}

.gate-names .main {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  line-height: 1.05;
}

.gate-names .script {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 40px;
  color: var(--terracotta-light);
  margin-top: -8px;
}

.gate-guest-box {
  background: rgba(243, 237, 224, 0.72);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 22px;
  border: 1px dashed rgba(140, 74, 56, 0.28);
}

.gate-guest-box small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 4px;
}

.gate-guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.25;
}

.btn-open-gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: #FFFDF8;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(140, 74, 56, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-open-gate:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(140, 74, 56, 0.36);
}

/* =============== MAIN SHELL & PETALS =============== */
.page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 16px 100px;
  position: relative;
}

.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  border-radius: 60% 40% 60% 40%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF, rgba(203, 210, 220, 0.72));
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.65; }
  85% { opacity: 0.45; }
  100% { transform: translateY(108vh) translateX(40px) rotate(320deg); opacity: 0; }
}

.paper-section {
  position: relative;
  background: var(--bg-paper);
  border-radius: var(--radius-lg);
  padding: 48px 34px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(140, 74, 56, 0.12);
  overflow: hidden;
}

.paper-section::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(140, 74, 56, 0.09);
  pointer-events: none;
}

.lily-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.46;
  z-index: 0;
}

.lily-top-right { top: -8px; right: -16px; width: 230px; }
.lily-bottom-left { bottom: -16px; left: -20px; width: 210px; transform: scaleX(-1); }

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

/* =============== MONOGRAM & HERO =============== */
.monogram-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  position: relative;
  display: grid;
  place-items: center;
}

.monogram-ring { position: absolute; inset: 0; }

.monogram-letters {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: -0.14em;
  transform: translateX(-2px);
  line-height: 1;
}

.monogram-letters span {
  font-style: italic;
  font-size: 34px;
  opacity: 0.92;
}

.hero {
  text-align: center;
  padding: 54px 30px 48px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 4px;
}

.vertical-date {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vertical-date .nums {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--slate);
  line-height: 1.05;
}

.vertical-date .nums .big { font-size: 26px; font-weight: 600; }
.vertical-date .nums .line { width: 22px; height: 1px; background: var(--slate); margin: 4px 0; opacity: 0.45; }
.vertical-date .nums .yr { font-size: 12px; letter-spacing: 0.14em; margin-top: 3px; }
.vertical-date .save-text {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-muted);
}

.side-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(140, 74, 56, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 74, 56, 0.18);
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 8px;
}

.hero-ceremony {
  font-family: 'Dancing Script', cursive;
  font-size: 46px;
  color: var(--terracotta);
  margin-bottom: 14px;
  line-height: 1.15;
}

.hero-couple { margin: 8px 0 24px; }

.hero-couple .name-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 8vw, 62px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  line-height: 1.05;
}

.hero-couple .amp {
  display: inline-block;
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  color: var(--terracotta-light);
  margin: 2px 10px;
}

.hero-couple .name-secondary {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(44px, 8.5vw, 64px);
  color: var(--terracotta-light);
  line-height: 1.1;
}

.hero-guest-banner {
  margin: 22px auto 22px;
  max-width: 460px;
  padding: 15px 20px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.hero-guest-banner .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate-muted);
}

.hero-guest-banner .guest-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  font-weight: 600;
  color: var(--slate);
  margin-top: 4px;
}

.hero-date-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  color: var(--terracotta);
}

.hero-date-strip .item {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-date-strip .date-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0 14px;
  border-left: 1px solid var(--gold-line);
  border-right: 1px solid var(--gold-line);
  line-height: 1;
}

.lunar-date {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate-muted);
}

/* =============== SECTIONS COMMON =============== */
.section-kicker {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 24px;
  line-height: 1.2;
}

/* =============== FAMILIES & VENUE =============== */
.families-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 28px;
}

.family-box {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(250, 247, 240, 0.78);
}

.family-role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}

.family-parents {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 8px;
}

.family-address {
  font-size: 12.5px;
  color: var(--slate-muted);
  line-height: 1.55;
}

.invite-body { text-align: center; }

.invite-lead {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 16px;
}

.couple-formal { margin: 12px 0 22px; }

.couple-formal .person-1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6.5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  line-height: 1.1;
}

.couple-formal .ranks {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin: 6px 0;
}

.couple-formal .person-2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(40px, 7.5vw, 54px);
  color: var(--terracotta-light);
  line-height: 1.15;
}

.venue-card {
  margin: 24px auto 0;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(243, 237, 224, 0.65) 0%, rgba(250, 247, 240, 0.92) 100%);
  border: 1px solid rgba(140, 74, 56, 0.18);
  border-radius: 20px;
  padding: 24px 22px;
}

.venue-card .at-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 6px;
}

.venue-card .venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.venue-card .venue-addr {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
}

.map-embed-wrap {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(140, 74, 56, 0.16);
  margin-bottom: 16px;
  background: #EFECE6;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.btn-primary {
  background: var(--terracotta);
  color: #FFFDF8;
  box-shadow: 0 8px 20px rgba(140, 74, 56, 0.22);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: rgba(140, 74, 56, 0.35);
}

.btn-outline:hover {
  background: rgba(140, 74, 56, 0.07);
}

/* =============== TIMELINE & CALENDAR =============== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.timeline-box,
.calendar-box {
  background: rgba(250, 247, 240, 0.8);
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid rgba(140, 74, 56, 0.12);
}

.timeline-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 1px solid rgba(140, 74, 56, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.timeline-text .time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.timeline-text .desc {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}

.timeline-text .sub {
  font-size: 12px;
  color: var(--slate-muted);
}

.calendar-box { text-align: center; }

.cal-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 12.5px;
}

.cal-dow { font-weight: 600; color: var(--slate-muted); padding-bottom: 6px; font-size: 11px; }

.cal-day {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--slate);
}

.cal-day.muted { opacity: 0.28; }

.cal-day.is-wedding {
  background: var(--terracotta);
  color: #FFFDF8;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(140, 74, 56, 0.32);
  animation: pulse-heart 2.4s ease-in-out infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

/* =============== ALBUM ẢNH CƯỚI (BENTO + LIGHTBOX) =============== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 175px;
  gap: 14px;
}

.photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(140, 74, 56, 0.16);
  background: linear-gradient(145deg, #F6F1E6 0%, #EDE4D4 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(68, 45, 36, 0.12);
}

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

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

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: var(--terracotta);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(145deg, #F8F4EA 0%, #ECE3D4 100%);
}

.photo-placeholder svg {
  opacity: 0.55;
  margin-bottom: 10px;
}

.photo-placeholder .ph-tag {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 4px;
}

.photo-placeholder .ph-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--slate);
}

.photo-caption-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(45, 30, 24, 0.65) 100%);
  color: #FFFDF8;
  font-size: 12.5px;
}

.gallery-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--slate-muted);
  margin-top: 14px;
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(24, 18, 16, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open { display: flex; }

.lightbox-inner {
  max-width: 860px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  color: #F6F1E6;
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
}

.lb-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* =============== LOVE STORY & DRESSCODE =============== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.story-card {
  background: rgba(250, 247, 240, 0.85);
  border: 1px solid rgba(140, 74, 56, 0.14);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
}

.story-year {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(140, 74, 56, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.story-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--slate);
  margin-bottom: 8px;
}

.story-card p {
  font-size: 13px;
  color: var(--slate-muted);
  line-height: 1.6;
}

.dresscode-wrap {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 18px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(68, 45, 36, 0.14);
}

.swatch span {
  font-size: 12px;
  color: var(--slate);
}

.weather-note {
  font-size: 13.5px;
  color: var(--slate-muted);
  background: rgba(243, 237, 224, 0.65);
  padding: 12px 18px;
  border-radius: 14px;
  display: inline-block;
}

/* =============== COUNTDOWN =============== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.cd-card {
  background: rgba(250, 247, 240, 0.9);
  border: 1px solid rgba(140, 74, 56, 0.15);
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

.cd-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-top: 6px;
}

/* =============== RSVP TRỰC QUAN =============== */
.rsvp-banner {
  max-width: 560px;
  margin: 0 auto 18px;
  background: rgba(140, 74, 56, 0.08);
  border: 1px solid rgba(140, 74, 56, 0.22);
  color: var(--terracotta-dark);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  text-align: center;
  display: none;
}

.rsvp-banner.show { display: block; }

.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.form-group label.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(140, 74, 56, 0.22);
  background: #FFFFFF;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  color: var(--slate);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(140, 74, 56, 0.1);
}

/* Thẻ chọn trạng thái RSVP trực quan */
.rsvp-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-card input { display: none; }

.status-card-body {
  border: 1.5px solid rgba(140, 74, 56, 0.2);
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-card-body .icon {
  font-size: 22px;
  line-height: 1;
}

.status-card-body .txt {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate);
}

.status-card input:checked + .status-card-body {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  border-color: var(--terracotta);
  box-shadow: 0 10px 22px rgba(140, 74, 56, 0.24);
  transform: translateY(-2px);
}

.status-card input:checked + .status-card-body .txt {
  color: #FFFDF8;
}

/* Bộ đếm số người +/- */
.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid rgba(140, 74, 56, 0.22);
  border-radius: 14px;
  padding: 8px 14px;
}

.stepper-info {
  font-size: 13.5px;
  color: var(--slate);
}

.stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(140, 74, 56, 0.3);
  background: var(--bg-ivory);
  color: var(--terracotta);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.stepper-btn:hover {
  background: var(--terracotta);
  color: #FFFDF8;
}

.stepper-val {
  min-width: 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--terracotta);
}

/* Tag chips ghi chú nhanh */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip input { display: none; }

.tag-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 74, 56, 0.24);
  background: #FFFFFF;
  font-size: 12.5px;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip input:checked + span {
  background: rgba(140, 74, 56, 0.12);
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
  font-weight: 500;
}

/* Wishes list */
.wishes-list {
  max-width: 560px;
  margin: 26px auto 0;
  display: grid;
  gap: 12px;
}

.wish-item {
  background: rgba(250, 247, 240, 0.88);
  border-left: 3px solid var(--terracotta-light);
  padding: 14px 16px;
  border-radius: 12px;
}

.wish-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.wish-name { font-weight: 600; color: var(--terracotta); }

.wish-tag {
  font-size: 11px;
  color: var(--slate-muted);
  background: rgba(140, 74, 56, 0.08);
  padding: 2px 9px;
  border-radius: 999px;
}

.wish-msg { font-size: 13.5px; color: var(--slate); }

/* =============== HỘP MỪNG CƯỚI (VIETQR MODAL) =============== */
.gift-section-card {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.gift-desc {
  font-size: 14px;
  color: var(--slate-muted);
  margin-bottom: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(34, 24, 20, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open { display: flex; }

.modal-box {
  background: var(--bg-paper);
  width: min(440px, 100%);
  border-radius: 26px;
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(140, 74, 56, 0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(140, 74, 56, 0.2);
  background: var(--bg-ivory);
  color: var(--slate);
  font-size: 18px;
  cursor: pointer;
}

.qr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: 999px;
  margin: 14px 0 18px;
}

.qr-tab {
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-muted);
  cursor: pointer;
}

.qr-tab.active {
  background: var(--terracotta);
  color: #FFFDF8;
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid rgba(140, 74, 56, 0.16);
  display: grid;
  place-items: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.bank-info {
  background: rgba(250, 247, 240, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.bank-info strong {
  display: block;
  color: var(--terracotta);
  font-size: 15px;
  margin-bottom: 2px;
}

/* =============== FLOATING ACTIONS =============== */
.fab-group {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 251, 246, 0.95);
  backdrop-filter: blur(8px);
  color: var(--terracotta);
  border: 1px solid rgba(140, 74, 56, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(68, 45, 36, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fab-pill:hover { transform: translateY(-2px); }

.fab-gift {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: #FFFDF8;
  border-color: transparent;
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.music-bars span {
  width: 2.5px;
  background: var(--terracotta);
  border-radius: 2px;
  height: 5px;
}

.fab-pill.is-playing .music-bars span:nth-child(1) { animation: bar 0.8s ease-in-out infinite; }
.fab-pill.is-playing .music-bars span:nth-child(2) { animation: bar 0.8s ease-in-out 0.2s infinite; }
.fab-pill.is-playing .music-bars span:nth-child(3) { animation: bar 0.8s ease-in-out 0.4s infinite; }

@keyframes bar {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

/* Footer & Reveal & Toast */
.closing-note { text-align: center; padding: 36px 26px; }

.closing-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--terracotta);
  max-width: 520px;
  margin: 0 auto 10px;
}

.closing-sub { font-size: 13.5px; color: var(--slate-muted); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--slate);
  color: #FFFDF8;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1600;
  text-align: center;
  max-width: calc(100% - 32px);
}

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

@media (max-width: 720px) {
  .paper-section { padding: 34px 18px; }
  .families-grid, .split-grid, .story-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .photo-card.is-featured { grid-column: span 2; grid-row: span 1; height: 220px; }
  .rsvp-status-grid { grid-template-columns: 1fr; }
  .countdown-grid { gap: 8px; }
  .cd-num { font-size: 30px; }
  .hero-date-strip .date-big { font-size: 28px; }
}
