/* ==========================================================================
   XUÂN SUM VẦY — MAI ĐÀO (theme chính của thiệp 22)
   Nền kem, đỏ thắm, vàng mai, hồng đào; cành mai đào hai góc,
   cặp bông mai/đào trên mỗi tiêu đề khối. Theo thiết kế "Truyền thống · Xuân sum vầy".
   Cơ chế bìa / modal / lightbox / nút nổi nằm ở theme-core.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NỀN & BỐ CỤC CHUNG
   -------------------------------------------------------------------------- */
:root {
  --vn-card-max: 900px;
  --vn-content-max: 560px;
  --vn-gutter: 24px;
  --vn-inline-pad: max(var(--vn-gutter), (100% - var(--vn-content-max)) / 2);
  --vn-section-gap: 72px;
}

body {
  background: var(--vn-outside);
  background-image: none;
  color: var(--vn-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

::selection { background: var(--vn-red); color: var(--vn-paper); }

:focus-visible {
  outline: 2px solid var(--vn-gold-text) !important;
  outline-offset: 3px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-container {
  width: min(var(--vn-card-max), 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  background: var(--vn-paper);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.vn-section {
  margin: var(--vn-section-gap) 0 0;
  padding: 0 var(--vn-inline-pad);
}
.reveal-section { margin-bottom: 0; }

/* Cành mai (vàng) / đào (hồng) và bông lẻ */
.xs-mai { --petal: var(--vn-gold); --pistil: var(--vn-pistil-mai); }
.xs-dao { --petal: var(--vn-pink); --pistil: var(--vn-pistil-dao); }
.xs-branch {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 220 / 120;
  overflow: visible;
  pointer-events: none;
}
.xs-flip { transform: scaleX(-1); }

.xs-flowers { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.xs-bloom { display: block; width: 22px; height: 22px; overflow: visible; flex: none; }

/* Tiêu đề khối: cặp hoa + nhãn in hoa + tiêu đề Lora đỏ */
.xs-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vn-kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--vn-gold-text);
}
.vn-title,
.xs-head .vn-title.card-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
  color: var(--vn-red);
  overflow-wrap: anywhere;
}

/* Nút dùng chung: vuông, chữ đậm */
.vn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease;
}
.vn-btn:hover { filter: brightness(1.06); }
.vn-btn svg { flex: none; }
.vn-btn[hidden] { display: none; }
.vn-btn--gold { background: var(--vn-gold); color: var(--vn-ink); }
.vn-btn--red { background: var(--vn-red); color: var(--vn-paper); }

/* --------------------------------------------------------------------------
   2. BÌA: CÀNH MAI ĐÀO + CON DẤU "LỄ THÀNH HÔN"
   -------------------------------------------------------------------------- */
.envelope-screen { background: var(--vn-outside); }
/* Bìa gọn: bỏ dòng "tới chung vui…" và ngày dương/âm */
.xs-cover .cover-line,
.xs-cover .envelope-date,
.xs-cover .envelope-lunar { display: none !important; }

.xs-cover {
  position: relative;
  flex: 0 1 var(--vn-card-max);
  max-width: 100%;
  box-sizing: border-box;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(56px, calc(env(safe-area-inset-top) + 40px)) max(30px, (100% - var(--vn-content-max)) / 2) max(56px, calc(env(safe-area-inset-bottom) + 40px));
  background: radial-gradient(circle at 50% 45%, #FFFFFF, var(--vn-paper) 65%);
  color: var(--vn-ink);
  text-align: center;
  cursor: pointer;
}
/* Bìa giữ khổ thiệp 560px kể cả trên desktop để cành hoa cân với khung */
.envelope-box { width: min(560px, 100%); }
.xs-cover > :not(.xs-branch) { position: relative; }
.xs-cover-branch { width: min(260px, 66vw); }
.xs-cover-branch--top { top: max(10px, env(safe-area-inset-top)); left: -20px; }
.xs-cover-branch--bottom { bottom: max(10px, env(safe-area-inset-bottom)); right: -20px; }

.xs-seal {
  flex: none;
  width: clamp(96px, 15vh, 120px);
  height: clamp(96px, 15vh, 120px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--vn-red);
  color: var(--vn-paper);
  box-shadow: 0 0 0 5px var(--vn-paper), 0 0 0 6.5px var(--vn-gold);
}
.xs-seal-top { font-size: 11px; letter-spacing: 3px; line-height: 1.4; }
.xs-seal-main {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vh, 24px);
  font-weight: 700;
  line-height: 1.1;
}

.cover-kicker {
  margin: clamp(26px, 4vh, 36px) 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--vn-gold-text);
}
.envelope-invite-text {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--vn-ink);
  overflow-wrap: anywhere;
}
.cover-line {
  margin: 8px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vn-ink);
}

.envelope-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vn-red);
}
.envelope-name-line {
  font-size: clamp(32px, 5vh, 40px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.envelope-name-amp {
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.8;
  color: var(--vn-gold-text);
}

.envelope-date {
  margin: clamp(10px, 1.8vh, 14px) 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.envelope-date:empty { display: none; }
.envelope-lunar { margin: 0; font-size: 13px; font-style: italic; }
.envelope-lunar[hidden] { display: none; }

.btn-open {
  flex: none;
  margin-top: clamp(28px, 4.5vh, 40px);
  min-height: 50px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: var(--vn-red);
  color: var(--vn-paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.btn-open:hover { background: var(--vn-red-deep); }
.btn-open:disabled { opacity: .5; cursor: progress; }

#envelope-screen .cover-loading-overlay { background: var(--vn-paper); }
.cover-loading-spinner { border-color: var(--vn-gold-tint); border-top-color: var(--vn-red); }

@media (max-height: 700px) {
  .xs-cover { padding-top: max(40px, calc(env(safe-area-inset-top) + 28px)); padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 28px)); }
  .xs-cover-branch { width: min(200px, 52vw); }
  .envelope-invite-text { font-size: 21px; }
  .envelope-name-line { font-size: 30px; }
  .btn-open { min-height: 46px; }
}

/* --------------------------------------------------------------------------
   3. SAVE THE DATE
   -------------------------------------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 56px !important;
  padding-top: 0;
  text-align: center;
}
.envelope-stage { width: 100%; margin-top: 10px; }
.hero-frame {
  padding: 10px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 2px var(--vn-red), var(--vn-frame-shadow);
}
.photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vn-paper-mat);
  outline: none;
  box-shadow: none;
  cursor: zoom-in;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.photo-frame:hover img { transform: scale(1.02); }

.hero-title-box { margin-top: 12px; }
.hero-names {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vn-ink);
  overflow-wrap: anywhere;
}
.hero-names .amp { color: var(--vn-ink); }
.hero-invite-guest {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-gold-text);
}
.hero-quote {
  margin: 0;
  max-width: 310px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--vn-ink);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   4. HAI GIA ĐÌNH
   -------------------------------------------------------------------------- */
#wedding-info { padding: 0; }
.red-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--vn-inline-pad);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.family-side {
  --party: var(--vn-red);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 0;
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--vn-line);
  text-align: center;
}
.family-side[data-party="bride"] { --party: var(--vn-pink-deep); }
.family-side small {
  display: block;
  padding: 7px;
  background: var(--party);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-paper);
}
.family-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 16px;
}
.family-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--vn-paper-mat);
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4.5px var(--vn-line);
}
.family-portrait[hidden] { display: none; }
.family-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.family-side h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11.5px, 3.3vw, 13px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--vn-ink);
  white-space: nowrap;
  overflow-wrap: normal;
  /* Luôn giữ chỗ 2 dòng: thiếu bố hoặc mẹ thì địa chỉ hai bên vẫn thẳng hàng */
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: calc(2 * 1.6em);
}
.family-side p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--vn-ink);
  overflow-wrap: anywhere;
}
.family-side .groom-name,
.family-side .bride-name {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--party);
  overflow-wrap: anywhere;
}
.family-side .role-badge {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-ink-muted);
}
.family-side .role-badge:empty { display: none; }

.families-note {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: var(--vn-ink);
}

/* --------------------------------------------------------------------------
   5. LỄ THÀNH HÔN: DẢI ĐỎ TRÀN VIỀN, CÀNH MAI ĐÀO HAI GÓC
   -------------------------------------------------------------------------- */
.xs-band { position: relative; overflow: hidden; }
.ceremony-card {
  margin-top: var(--vn-section-gap);
  padding: 104px var(--vn-inline-pad) 100px;
  background: var(--vn-red);
  color: var(--vn-paper);
  text-align: center;
  box-shadow: none;
}
.xs-band-branch { width: 200px; opacity: .95; }
.xs-band-branch--top { top: -6px; left: -40px; }
.xs-band-branch--bottom { bottom: -10px; right: -40px; }

.ceremony-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.ceremony-card .vn-kicker { color: var(--vn-gold-light); }
.ceremony-card .vn-title { color: inherit; }

.ceremony-time-badge { width: 100%; margin-top: 14px; }
.ceremony-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.ceremony-dow,
.ceremony-month {
  padding: 6px 0;
  border-top: 1.5px solid var(--vn-gold);
  border-bottom: 1.5px solid var(--vn-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-transform: uppercase;
}
.ceremony-time-badge .ceremony-day {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vn-gold);
  color: var(--vn-red);
  box-shadow: 0 0 0 4px var(--vn-red), 0 0 0 5.5px var(--vn-gold);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.ceremony-time-badge .ceremony-day:empty { display: none; }
.ceremony-time { margin: 26px 0 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
.ceremony-time:empty { display: none; }
.ceremony-time-badge .lunar { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.ceremony-time-badge .lunar:empty { display: none; }

.ceremony-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.ceremony-note-label { font-size: 14px; }
.ceremony-note-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ceremony-note-place .venue-location-icon { width: 16px; height: 16px; color: var(--vn-gold); }
.ceremony-direction { margin-top: 28px; }

/* --------------------------------------------------------------------------
   6. ALBUM ẢNH CƯỚI: 3 ẢNH ĐỨNG + 1 ẢNH NGANG + Ô "XEM THÊM"
   -------------------------------------------------------------------------- */
#gallery { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.artwork-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.artwork-wall:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artwork-item {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--vn-paper-mat);
  box-shadow: inset 0 0 0 1.5px var(--vn-line);
  cursor: zoom-in;
}
.artwork-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.artwork-item:hover img { transform: scale(1.04); }
.artwork-item:nth-child(4):not(:last-child) { grid-column: span 2; aspect-ratio: auto; }
.artwork-item:nth-child(4):not(:last-child) img { position: absolute; inset: 0; }
.artwork-item:nth-child(4):last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.artwork-wall.is-single .artwork-item { grid-column: 1 / -1; aspect-ratio: 4 / 5; }

.artwork-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--vn-red);
  color: var(--vn-paper);
  font-size: 12px;
}
.artwork-more b {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   7. TIỆC CƯỚI: DẢI KEM TRÀN VIỀN
   -------------------------------------------------------------------------- */
#reception { padding: 0; }
.reception-card {
  padding: 100px var(--vn-inline-pad) 48px;
  background: var(--vn-band);
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  color: var(--vn-ink);
  text-align: center;
}
.xs-band-branch--corner { top: 6px; right: -30px; width: 170px; opacity: .9; }
.reception-inner { position: relative; }
.reception-header { display: flex; flex-direction: column; align-items: center; }
#reception .reception-header .vn-kicker { text-wrap: balance; }
.reception-card .vn-title { color: var(--vn-ink); }
.reception-date-text { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.reception-date-text:empty { display: none; }
.reception-lunar { margin: 0; font-size: 13px; font-style: italic; line-height: 1.6; color: var(--vn-ink-muted); }
.reception-lunar:empty { display: none; }

.reception-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.reception-time-col {
  min-width: 0;
  padding: 10px;
  background: var(--vn-red);
  color: var(--vn-paper);
}
.reception-time-col small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: inherit;
}
.reception-time-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.calendar-paper {
  margin-top: 16px;
  padding: 14px 10px;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--vn-ink);
}
.calendar-paper-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.calendar-grid-header,
.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 13px;
  text-align: center;
}
.calendar-grid-header { margin-top: 4px; }
.calendar-grid-header span,
.calendar-grid-days span {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-grid-header span { font-size: 11px; font-weight: 700; color: var(--vn-red); }
.calendar-grid-days .wedding-day {
  width: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--vn-red);
  color: var(--vn-paper);
  font-weight: 700;
  box-shadow: none;
}

.reception-actions { display: flex; gap: 10px; margin-top: 16px; }
.reception-actions button {
  flex: 1;
  min-height: 48px;
  padding: 0 8px;
  border: 1.5px solid var(--vn-ink);
  border-radius: 0;
  background: transparent;
  color: var(--vn-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.reception-actions .btn-gold-outline:hover { background: rgba(74, 42, 28, .06); }
.reception-actions .btn-cream-solid { border-color: var(--vn-red); background: var(--vn-red); color: var(--vn-paper); }
.reception-actions .btn-cream-solid:hover { background: var(--vn-red-deep); border-color: var(--vn-red-deep); }

/* --------------------------------------------------------------------------
   8. ĐỊA ĐIỂM
   -------------------------------------------------------------------------- */
.venue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.venue-card .venue-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--vn-ink);
}
.venue-address { margin: 0; font-size: 14px; line-height: 1.6; color: var(--vn-ink); }
.venue-location-icon { flex: none; width: 16px; height: 16px; color: var(--vn-red); }

.map-embed-wrapper {
  width: 100%;
  height: 220px;
  margin-top: 12px;
  padding: 10px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--vn-red), var(--vn-frame-shadow);
}
.map-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--vn-paper-mat);
}
.venue-direction-btn { margin-top: 14px; }

/* Tiệc nhà gái (side = both): dải kem như tiệc nhà trai */
#reception-bride {
  --rb-ink: var(--vn-ink);
  --rb-muted: var(--vn-ink-muted);
  --rb-paper: transparent;
  --rb-border: var(--vn-line);
  max-width: none;
  margin: var(--vn-section-gap) 0 0;
  padding: 0;
  font-family: var(--font-body);
  text-align: center;
}
#reception-bride .bride-reception-card {
  padding: 56px var(--vn-inline-pad) 48px;
  background: var(--vn-band);
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
}
#reception-bride .rb-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--vn-gold-text);
}
#reception-bride .rb-title { color: var(--vn-ink); }
/* Đồng bộ với tiệc nhà trai: không có dòng dẫn "Tiệc cưới sẽ diễn ra vào lúc" */
#reception-bride .rb-lead { display: none !important; }
#reception-bride .rb-lead,
#reception-bride .rb-venue-label {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-gold-text);
}
#reception-bride .rb-weekday { margin: 4px 0 0; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
#reception-bride .rb-date { justify-content: center; }
#reception-bride .rb-day { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--vn-red); }
#reception-bride .rb-month { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--vn-ink); }
#reception-bride .rb-year { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; }
#reception-bride .rb-lunar { margin: 4px 0 0; font-size: 13px; font-style: italic; text-transform: none; color: var(--vn-ink-muted); }
#reception-bride .rb-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
#reception-bride .rb-time-col { padding: 10px; background: var(--vn-red); color: var(--vn-paper); }
#reception-bride .rb-time-col small { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: inherit; }
#reception-bride .rb-time-col strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.3; color: inherit; }
#reception-bride .rb-venue { margin-top: 18px; }
#reception-bride .rb-venue-name-row { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; }
#reception-bride .rb-venue-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--vn-ink); }
#reception-bride .rb-venue-address { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--vn-ink); }
#reception-bride .rb-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--vn-red);
  color: var(--vn-paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
}
#reception-bride .rb-direction:hover { background: var(--vn-red-deep); }
#reception-bride .rb-direction[hidden] { display: none; }

/* --------------------------------------------------------------------------
   9. ĐẾM NGƯỢC: BỐN Ô TRÒN VIỀN VÀNG MAI
   -------------------------------------------------------------------------- */
#countdown { padding: 0 max(22px, (100% - var(--vn-content-max)) / 2); }
.countdown-card { padding: 0; background: none; border: 0; box-shadow: none; text-align: center; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 0;
}
.count-box {
  box-sizing: border-box;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--vn-red);
  box-shadow: inset 0 0 0 2px var(--vn-gold), 0 4px 10px rgba(179, 38, 44, .1);
}
.count-box .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.count-box .lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   10. TRÌNH TỰ HÔN LỄ
   -------------------------------------------------------------------------- */
#timeline { padding: 0 max(28px, (100% - var(--vn-content-max)) / 2); }
.timeline-card { padding: 0; background: none; border: 0; box-shadow: none; }
.timeline-list { margin-top: 10px; padding: 0; background: none; border: 0; }
.timeline-list:empty { display: none; }
.timeline-item {
  display: grid;
  grid-template-columns: 26px 76px minmax(0, 1fr);
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--vn-line);
}
.timeline-line-col {
  grid-column: 1;
  grid-row: 1;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%23F2C230'%3E%3Cellipse cx='15' cy='6.9' rx='6.2' ry='7.8'/%3E%3Cellipse cx='15' cy='6.9' rx='6.2' ry='7.8' transform='rotate(72 15 15)'/%3E%3Cellipse cx='15' cy='6.9' rx='6.2' ry='7.8' transform='rotate(144 15 15)'/%3E%3Cellipse cx='15' cy='6.9' rx='6.2' ry='7.8' transform='rotate(216 15 15)'/%3E%3Cellipse cx='15' cy='6.9' rx='6.2' ry='7.8' transform='rotate(288 15 15)'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='3.6' fill='%23C0392B'/%3E%3C/svg%3E") center / contain no-repeat;
}
.timeline-dot { display: none; }
.timeline-left { grid-column: 2; grid-row: 1; }
.timeline-time {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--vn-red);
}
.timeline-right { grid-column: 3; grid-row: 1; min-width: 0; }
.timeline-text { font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--vn-ink); }

/* --------------------------------------------------------------------------
   11. TRANG PHỤC
   -------------------------------------------------------------------------- */
.dresscode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  overflow: visible;
}
.dresscode-note {
  margin: 0 auto;
  max-width: 300px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--vn-ink);
}
.dresscode-palettes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.dresscode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 64px;
  max-width: none;
}
.dresscode-item:hover { transform: none; }
.dresscode-swatch {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--vn-paper), 0 0 0 4.5px var(--vn-gold);
  transform: none !important;
}
.dresscode-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: normal;
  color: var(--vn-ink);
}

/* --------------------------------------------------------------------------
   12. SỔ LƯU BÚT
   -------------------------------------------------------------------------- */
.guestbook-card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.guestbook-sub {
  margin: 8px 0 4px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: var(--vn-ink);
}
.guestbook-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-ink);
}
.form-input,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--vn-input-border);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--vn-ink);
  font-family: var(--font-body);
  font-size: 16px;
  box-shadow: none;
}
.form-textarea { min-height: 112px; resize: none; }
.form-input::placeholder,
.form-textarea::placeholder { color: #8F7465; }
.form-input:focus,
.form-textarea:focus { border-color: var(--vn-red); box-shadow: 0 0 0 2px var(--vn-red-tint); }

.guestbook-actions { display: flex; gap: 10px; }
.btn-wish-icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--vn-ink);
  border-radius: 0;
  background: transparent;
  color: var(--vn-ink);
}
.btn-wish-icon:hover { background: rgba(74, 42, 28, .06); }

.btn-submit-wish,
.rsvp-btn-submit,
.btn-modal-refresh {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--vn-red);
  color: var(--vn-paper);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.btn-submit-wish:hover,
.rsvp-btn-submit:hover,
.btn-modal-refresh:hover { background: var(--vn-red-deep); }
.btn-submit-wish { flex: 1; }
.btn-submit-wish.is-submitting,
.rsvp-btn-submit.is-submitting { opacity: .6; cursor: progress; }

.wishes-list {
  margin-top: 20px;
  max-height: 460px;
  padding-right: 4px;
  gap: 10px;
}
.wishes-list::-webkit-scrollbar-thumb { background: var(--vn-line); border-radius: 0; }
.wish-item {
  padding: 12px 16px;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: inset 3px 0 0 var(--vn-red), inset 0 0 0 1px var(--vn-line);
}
.wish-item:nth-child(even) { box-shadow: inset 3px 0 0 var(--vn-gold), inset 0 0 0 1px var(--vn-line); }
.wish-item-header { gap: 12px; margin-bottom: 2px; font-size: 12px; }
.wish-author {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-red);
  overflow-wrap: anywhere;
}
.wish-time { flex: none; font-size: 12px; color: var(--vn-ink); }
.wish-message {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--vn-ink);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   13. HỘP QUÀ MỪNG
   -------------------------------------------------------------------------- */
.gift-section { padding-top: 0; padding-bottom: 0; text-align: center; }
.gift-wrapper { display: flex; flex-direction: column; align-items: center; max-width: none; }
.xs-giftbox {
  width: 150px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  background: var(--vn-red);
  box-shadow: inset 0 0 0 3px var(--vn-red), inset 0 0 0 4px var(--vn-gold);
}
.xs-giftbox .xs-bloom { width: 34px; height: 34px; }
.gift-heading { margin-top: 16px; }
.gift-note { margin: 4px 0 0; max-width: 320px; font-size: 14px; line-height: 1.7; color: var(--vn-ink); }

.gift-envelope-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--vn-red);
  color: var(--vn-paper);
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease;
}
.gift-envelope-trigger:hover { background: var(--vn-red-deep); }
.gift-hint-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}
.gift-envelope-trigger:hover .gift-hint-text { color: inherit; transform: none; }

/* --------------------------------------------------------------------------
   14. CẢM ƠN (FOOTER)
   -------------------------------------------------------------------------- */
.exit-room {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--vn-section-gap);
  padding: 64px var(--vn-inline-pad) max(64px, calc(env(safe-area-inset-bottom) + 48px));
  overflow: hidden;
  background: var(--vn-red);
  color: var(--vn-paper);
  text-align: center;
}
.exit-room > :not(.xs-branch) { position: relative; }
.xs-exit-branch { width: 180px; opacity: .9; }
.xs-exit-branch--top { top: 0; left: -30px; }
.xs-exit-branch--bottom { bottom: 0; right: -30px; }
.exit-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vn-gold-light);
}
.exit-lead { margin: 0; font-size: 14px; line-height: 1.7; }
.exit-names {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.exit-names:empty { display: none; }
.exit-room .gift-brand-footer {
  margin-top: 12px;
  opacity: .75;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: inherit;
}

/* --------------------------------------------------------------------------
   15. MÀN HÌNH LỖI, MODAL (chỉ chỉnh chi tiết riêng của theme này)
   -------------------------------------------------------------------------- */
.not-found-screen { background: var(--vn-paper); }
.not-found-card { border-color: var(--vn-red); outline-color: var(--vn-gold); }
.not-found-icon { gap: 6px; }
.not-found-icon .xs-bloom { width: 30px; height: 30px; }

.modal-box,
.wish-modal-card,
.gift-modal-box { outline: 0; border: 0; box-shadow: inset 0 0 0 2px var(--vn-red); }
.modal-title,
.wish-modal-title h3,
.gift-modal-title { font-family: var(--font-display); }
.gift-person-card { background: var(--vn-paper); border-color: var(--vn-line); }
.gift-person-title { color: var(--vn-red); }
.gift-qr-card { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--vn-red); }
.floating-music { border-color: var(--vn-red); background: #FFFFFF; }
.floating-music.playing { background: var(--vn-red); color: var(--vn-gold-light); border-color: var(--vn-red); }
.lang-trigger-btn,
.lang-dropdown { border-color: var(--vn-red); }
.lang-btn.active { color: var(--vn-ink); }
.lightbox-modal img { border-color: #FFFFFF; outline: 0; }
.lightbox-close,
.lightbox-nav { border-color: var(--vn-gold); color: var(--vn-gold-light); }

/* --------------------------------------------------------------------------
   16. MÀN HÌNH NHỎ / RỘNG
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .app-container { box-shadow: 0 0 0 1px var(--vn-line); }
}

@media (max-width: 360px) {
  :root { --vn-gutter: 18px; }
  .vn-title { font-size: 26px; }
  .envelope-name-line { font-size: 32px; }
  .ceremony-time-badge .ceremony-day { width: 72px; height: 72px; font-size: 34px; }
  .count-box .num { font-size: 22px; }
  .timeline-item { grid-template-columns: 24px 64px minmax(0, 1fr); }
  .reception-actions { flex-direction: column; }
  .family-side .groom-name,
  .family-side .bride-name { font-size: 19px; }
}
