/* ==========================================================================
   AIRMAIL POSTCARD THEME (BƯU THIẾP MÁY BAY)
   Exact match to Claude Artifact Design (P5BuuThiep.dc.html)
   ========================================================================== */

/* ---------------- GLOBAL RESET & BODY ---------------- */
html {
  background-color: #E7E1D3;
  color: #1E2430;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  background: #E7E1D3 !important;
  background-color: #E7E1D3 !important;
  background-image: none !important;
  color: #1E2430;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  /* Không overflow trên body — scroll chỉ ở html (mép ngoài trình duyệt) */
}

/* Ẩn các hình hoa sen nền & giả lập trang trí cũ */
.lotus-bg-layers,
.falling-lotus-container,
.card-flower-lotus-wrap,
.envelope-flower-left,
.hero-peony-deco,
.gift-flower-right,
#reception::before,
#reception::after,
#countdown::before,
#countdown::after,
#venue::before,
#venue::after,
#hero::before,
#hero::after,
#wedding-info::before,
#wedding-info::after,
#gallery::before,
#gallery::after,
#guestbook::before,
#guestbook::after,
#gift::before,
#gift::after {
  content: none !important;
  display: none !important;
}
.gift-flower-right {
  display: none !important;
}

/* ==========================================================================
   HIỆU ỨNG CUỘN 4S CHO CẢ CÁC KHỐI & TEXT (KHÔNG BỊ NHÂN CHỒNG OPACITY GÂY TRỄ)
   ========================================================================== */
:root {
  --reveal-duration: 4s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slide-distance-wide: 28px;
  --slide-distance-medium: 22px;
}

/* Reset các wrapper trung gian để tránh nhân chồng 3-4 lớp opacity: 0 làm ẩn khối lâu */
.parents-grid,
.postcard-parents-grid,
.family-side,
.family-side:first-child,
.family-side:last-child,
.postcard-family-col,
.airmail-ticket-content,
.stamp-album-grid,
.reception-two-boxes,
.reception-buttons-row,
.bride-reception-card,
.postmark-stamps-grid,
.timeline-list,
.dresscode-palettes,
.guestbook-card-inner,
.guestbook-card,
.guestbook-form,
.wishes-list,
.gift-wrapper {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* 1. Khối thẻ bưu thiếp lớn (.reveal-section, footer) lướt mượt 4s */
.reveal-section,
footer {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity 0.65s ease-out 0s,
              transform var(--reveal-duration) var(--reveal-ease) 0s !important;
}

.reveal-section.visible,
.visible.reveal-section,
footer.visible,
.visible footer {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 2. Các khối con (khung ảnh, tem chân dung cô dâu chú rể, ô giờ, lịch, bản đồ, nút bấm, tem màu, ô nhập) + TEXT:
      Trượt từ TRÁI sang trong 4s */
.postcard-head-strip > span:first-child,
.airmail-ticket-header > span:first-child,
.family-side:first-child .stamp-portrait-wrap,
.family-side:first-child .family-person-cursive,
.family-side:first-child .family-details-mono,
.time-box-item:first-child .lbl,
.time-box-item:first-child .val,
.stamp-album-item:nth-child(3n+1),
.reception-cursive-heading,
.rec-time-box:first-child,
.reception-actions #btn-add-calendar,
.venue-name-mono,
.timeline-item:nth-child(odd),
.timeline-time,
.dresscode-note-airmail,
.dresscode-item:nth-child(1),
.dresscode-item:nth-child(2),
.guestbook-form .airmail-field:first-child,
.wishes-list .wish-item:nth-child(odd) {
  opacity: 0 !important;
  transform: translateX(calc(-1 * var(--slide-distance-wide))) scale(0.96) !important;
  transition: opacity 0.85s ease-out 0s,
              transform var(--reveal-duration) var(--reveal-ease) 0s !important;
}

/* 3. Các khối con + TEXT: Trượt từ PHẢI sang trong 4s */
.postcard-head-strip > span:last-child,
.airmail-ticket-header > span:last-child,
.family-side:last-child .stamp-portrait-wrap,
.family-side:last-child .family-person-cursive,
.family-side:last-child .family-details-mono,
.time-box-item:last-child .lbl,
.time-box-item:last-child .val,
.stamp-album-item:nth-child(3n),
.reception-solar-desc,
.rec-time-box:last-child,
.reception-actions #btn-trigger-rsvp,
.venue-addr-mono,
.timeline-item:nth-child(even),
.timeline-text,
.dresscode-item:nth-child(3),
.dresscode-item:nth-child(4),
.guestbook-form .airmail-field:nth-child(2),
.wishes-list .wish-item:nth-child(even) {
  opacity: 0 !important;
  transform: translateX(var(--slide-distance-wide)) scale(0.96) !important;
  transition: opacity 0.85s ease-out 0s,
              transform var(--reveal-duration) var(--reveal-ease) 0s !important;
}

/* 4. Các khối con + TEXT: Trượt từ DƯỚI lên / phóng nhẹ trong 4s */
.postcard-hero-photo,
.postcard-couple-names,
.postcard-guest-tag,
.postcard-quote,
.airmail-time-boxes-row,
.time-box-item:nth-child(2) .lbl,
.time-box-item:nth-child(2) .val,
.ceremony-details-mono,
.btn-ceremony-direction,
.stamp-album-item:nth-child(3n+2),
.postcard-stamp-album-quote,
.calendar-airmail-wrap,
.calendar-paper-title,
.calendar-grid-header span,
.calendar-grid-days span,
.map-embed-wrapper,
#venue .venue-direction-btn,
.rb-heading,
.rb-lead,
.rb-weekday,
.rb-date,
.rb-lunar,
.rb-times,
.rb-venue-label,
.rb-venue-name-row,
.rb-venue-address,
#reception-bride .rb-direction,
.postmark-countdown-kicker,
.dresscode-name,
.airmail-guestbook-actions,
.gift-cursive-title,
.gift-desc-text,
.btn-open-gift-airmail,
.footer-cursive-thanks,
.footer-couple-date,
.footer-brand-label {
  opacity: 0 !important;
  transform: translateY(var(--slide-distance-medium)) scale(0.96) !important;
  transition: opacity 0.85s ease-out 0s,
              transform var(--reveal-duration) var(--reveal-ease) 0s !important;
}

/* 5. Khối 4 vòng tròn dấu bưu điện đếm ngược: giữ nguyên góc xoay inline, trượt 4s bằng translate/scale */
.postmark-stamps-grid .postmark-circle {
  opacity: 0 !important;
  scale: 0.86;
  transition: opacity 0.85s ease-out 0s,
              translate var(--reveal-duration) var(--reveal-ease) 0s,
              scale var(--reveal-duration) var(--reveal-ease) 0s !important;
}
.postmark-stamps-grid .postmark-circle:nth-child(1),
.postmark-stamps-grid .postmark-circle:nth-child(2) {
  translate: calc(-1 * var(--slide-distance-wide)) 14px;
}
.postmark-stamps-grid .postmark-circle:nth-child(3),
.postmark-stamps-grid .postmark-circle:nth-child(4) {
  translate: var(--slide-distance-wide) 14px;
}
.visible .postmark-stamps-grid .postmark-circle,
#countdown.visible .postmark-circle {
  opacity: 1 !important;
  translate: 0 0;
  scale: 1;
}

/* Kích hoạt hiện toàn bộ khối con + text trong 4s khi cuộn tới */
.visible .postcard-head-strip > span:first-child,
.visible .airmail-ticket-header > span:first-child,
.visible .family-side:first-child .stamp-portrait-wrap,
.visible .family-side:first-child .family-person-cursive,
.visible .family-side:first-child .family-details-mono,
.visible .time-box-item:first-child .lbl,
.visible .time-box-item:first-child .val,
.visible .stamp-album-item:nth-child(3n+1),
.visible .reception-cursive-heading,
.visible .rec-time-box:first-child,
.visible .reception-actions #btn-add-calendar,
.visible .venue-name-mono,
.visible .timeline-item:nth-child(odd),
.visible .timeline-time,
.visible .dresscode-note-airmail,
.visible .dresscode-item:nth-child(1),
.visible .dresscode-item:nth-child(2),
.visible .guestbook-form .airmail-field:first-child,
.visible .wishes-list .wish-item:nth-child(odd),
.wishes-list.visible .wish-item:nth-child(odd),
.visible .postcard-head-strip > span:last-child,
.visible .airmail-ticket-header > span:last-child,
.visible .family-side:last-child .stamp-portrait-wrap,
.visible .family-side:last-child .family-person-cursive,
.visible .family-side:last-child .family-details-mono,
.visible .time-box-item:last-child .lbl,
.visible .time-box-item:last-child .val,
.visible .stamp-album-item:nth-child(3n),
.visible .reception-solar-desc,
.visible .rec-time-box:last-child,
.visible .reception-actions #btn-trigger-rsvp,
.visible .venue-addr-mono,
.visible .timeline-item:nth-child(even),
.visible .timeline-text,
.visible .dresscode-item:nth-child(3),
.visible .dresscode-item:nth-child(4),
.visible .guestbook-form .airmail-field:nth-child(2),
.visible .wishes-list .wish-item:nth-child(even),
.wishes-list.visible .wish-item:nth-child(even),
.wish-item.visible,
.visible .postcard-hero-photo,
.visible .postcard-couple-names,
.visible .postcard-guest-tag,
.visible .postcard-quote,
.visible .airmail-time-boxes-row,
.visible .time-box-item:nth-child(2) .lbl,
.visible .time-box-item:nth-child(2) .val,
.visible .ceremony-details-mono,
.visible .btn-ceremony-direction,
.visible .stamp-album-item:nth-child(3n+2),
.visible .postcard-stamp-album-quote,
.visible .calendar-airmail-wrap,
.visible .calendar-paper-title,
.visible .calendar-grid-header span,
.visible .calendar-grid-days span,
.visible .map-embed-wrapper,
#venue.visible .venue-direction-btn,
.visible .rb-heading,
.visible .rb-lead,
.visible .rb-weekday,
.visible .rb-date,
.visible .rb-lunar,
.visible .rb-times,
.visible .rb-venue-label,
.visible .rb-venue-name-row,
.visible .rb-venue-address,
#reception-bride.visible .rb-direction,
.visible .postmark-countdown-kicker,
.visible .dresscode-name,
.visible .airmail-guestbook-actions,
.visible .gift-cursive-title,
.visible .gift-desc-text,
.visible .btn-open-gift-airmail,
footer.visible .footer-cursive-thanks,
footer.visible .footer-couple-date,
footer.visible .footer-brand-label,
.visible .footer-cursive-thanks,
.visible .footer-couple-date,
.visible .footer-brand-label {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Mẫu bưu thiếp không có khối "Chuyện chúng mình" */
#love-story {
  display: none !important;
}

/* Container chính của thiệp: max-width 900px */
.app-container {
  width: 100%;
  max-width: 900px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 32px 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 28px !important;
  position: relative !important;
  z-index: 2 !important;
  border-inline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  /* Tránh nested scrollport — thanh scroll lệch vào trong khung thiệp */
  overflow: visible !important;
}

/* Khoảng cách giữa các khối chỉ do gap của container quyết định */
.app-container > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Nội dung bên trong: max-width 560px căn giữa */
.reveal-section,
.postcard-card,
.airmail-ticket-frame,
.countdown-postmark-wrap,
footer,
#hero,
#wedding-info,
#ceremony-info,
#gallery,
#reception,
#venue,
#countdown,
#timeline,
#dresscode,
#love-story,
#guestbook,
#gift,
#reception-bride {
  width: 100% !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   1. MÀN HÌNH MỞ THIỆP / BÌA MẶT SAU BƯU THIẾP (AIRMAIL COVER)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #E7E1D3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  box-sizing: border-box;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.8s ease;
  overflow-y: auto;
}

body.invite-opening .envelope-screen {
  transform: translateY(-100%);
  opacity: 0.9;
  /* envelope.css đặt visibility:hidden khiến bìa biến mất ngay lập tức, không kịp trượt */
  visibility: visible;
  pointer-events: none;
}

body.invite-open .envelope-screen {
  display: none !important;
}

.airmail-cover-card {
  width: 100%;
  max-width: 560px !important;
  height: min(764px, calc(100dvh - 80px));
  min-height: 560px;
  box-sizing: border-box;
  padding: 10px;
  background: repeating-linear-gradient(-45deg, #C8333A 0 14px, #FBF7EE 14px 22px, #1E3A6E 22px 36px, #FBF7EE 36px 44px);
  margin: auto;
  flex: none;
}

.airmail-card-inner {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  background: #FBF7EE;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.airmail-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.airmail-brand-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.4;
  color: #1E3A6E;
  text-transform: uppercase;
}

/* Con tem bưu chính (Stamp) */
.stamp-postage-wrap {
  position: relative;
  width: 104px;
  padding: 7px;
  background: radial-gradient(circle at 5px 5px, transparent 3px, #FFFFFF 3.5px) -5px -5px / 10px 10px;
  flex: none;
}

.stamp-inner-photo {
  aspect-ratio: 4 / 5;
  background: #D9D1C1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  box-sizing: border-box;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #1E2430;
  position: relative;
  overflow: hidden;
}

.stamp-inner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nhãn "ẢNH CẶP ĐÔI" chỉ là chỗ giữ ảnh: ẩn khi đã có ảnh thật */
.stamp-inner-photo img:not([hidden]) + .stamp-caption {
  display: none;
}

.stamp-inner-photo .stamp-caption {
  position: relative;
  z-index: 2;
  background: rgba(251, 247, 238, 0.85);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* Dấu đóng bưu điện (Postmark stamp) */
.airmail-postmark-seal {
  position: absolute;
  left: -46px;
  bottom: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(30, 58, 110, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(30, 58, 110, 0.9);
  transform: rotate(-14deg);
  box-sizing: border-box;
  padding: 0 6px;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
  z-index: 3;
}

/* Thông tin người gửi / người nhận */
.airmail-meta-list {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.airmail-meta-row {
  border-bottom: 1px solid #1E2430;
  padding-bottom: 4px;
  display: flex;
  gap: 8px;
}

.airmail-meta-row .meta-lbl {
  color: #4E5563;
  font-weight: 500;
  flex-shrink: 0;
}

.airmail-meta-row .meta-val,
.airmail-meta-row .envelope-names,
.airmail-meta-row .envelope-name-line,
.airmail-meta-row .envelope-date,
.airmail-meta-row .envelope-invite-text {
  display: inline;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0;
  color: #1E2430;
}

/* Nút MỞ BƯU THIẾP */
.btn-open-airmail {
  margin-top: 20px;
  min-height: 52px;
  border: 0;
  background: #1E3A6E;
  color: #FBF7EE;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-open-airmail:hover:not(:disabled) {
  background: #152A50;
  transform: translateY(-1px);
}

.btn-open-airmail:active:not(:disabled) {
  transform: translateY(0);
}

.btn-open-airmail:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   2. BƯU THIẾP CARDS (POSTCARD SECTIONS STANDARD)
   ========================================================================== */
.postcard-card {
  background: #FBF7EE;
  padding: 18px;
  box-shadow: 0 6px 14px rgba(30, 36, 48, 0.12);
  box-sizing: border-box;
  border-radius: 2px;
  position: relative;
}

.postcard-head-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1E3A6E;
  text-transform: uppercase;
}

.postcard-head-strip .head-strip-title,
.postcard-head-strip h1,
.postcard-head-strip h2,
.postcard-head-strip h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* ---------------- BƯU THIẾP 01: SAVE THE DATE (HERO) ---------------- */
#hero.postcard-card {
  padding: 18px;
}

.postcard-hero-photo {
  margin-top: 10px;
  aspect-ratio: 4 / 5;
  background: #D9D1C1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  border-radius: 2px;
}

.postcard-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.postcard-couple-names {
  margin: 12px 0 0;
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #1E2430;
  white-space: normal;
}

.postcard-couple-names .amp {
  color: inherit;
  font: inherit;
}

.postcard-quote {
  margin: 6px 0 0;
  text-align: center;
  font-style: italic;
  color: #3A4150;
  font-size: 14px;
  line-height: 1.65;
}

.postcard-guest-tag {
  text-align: center;
  margin: 8px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #1E3A6E;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------------- BƯU THIẾP 02: HAI GIA ĐÌNH ---------------- */
.postcard-announcement {
  margin: 12px 0 6px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #4E5563;
  letter-spacing: 0.5px;
}

.postcard-parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.postcard-family-col {
  display: flex;
  flex-direction: column;
}

.stamp-portrait-wrap {
  padding: 6px;
  background: radial-gradient(circle at 5px 5px, transparent 3px, #FFFFFF 3.5px) -5px -5px / 10px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stamp-portrait-inner {
  aspect-ratio: 3 / 4;
  background: #D9D1C1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.stamp-portrait-inner img[hidden] {
  display: none;
}

.stamp-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-person-cursive {
  margin: 8px 0 0;
  font-family: 'Dancing Script', cursive;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #1E2430;
}

.family-details-mono {
  margin: 2px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #1E2430;
}

.family-details-mono small,
.family-details-mono h4,
.family-details-mono p {
  display: block;
  margin: 0;
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   3. BƯU THIẾP 03: LỄ THÀNH HÔN (VÉ LƯU TRÚ SỌC AIRMAIL)
   ========================================================================== */
.airmail-ticket-frame {
  padding: 8px;
  background: repeating-linear-gradient(-45deg, #C8333A 0 10px, #FBF7EE 10px 16px, #1E3A6E 16px 26px, #FBF7EE 26px 32px);
  box-shadow: 0 6px 14px rgba(30, 36, 48, 0.12);
  border-radius: 2px;
}

.airmail-ticket-content {
  background: #FBF7EE;
  padding: 18px;
}

.airmail-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #C8333A;
  text-transform: uppercase;
}

.airmail-time-boxes-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px dashed #1E2430;
  border-bottom: 1px dashed #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
}

.time-box-item {
  padding: 10px 0;
}

.time-box-item.center-col {
  border-left: 1px dashed #1E2430;
  border-right: 1px dashed #1E2430;
}

.time-box-item .lbl {
  font-size: 10px;
  color: #4E5563;
  letter-spacing: 0.5px;
}

.time-box-item .val {
  font-size: 20px;
  font-weight: 600;
  color: #1E2430;
}

.ceremony-details-mono {
  margin: 10px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1E2430;
}

.btn-ceremony-direction {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  min-height: 46px;
  border: 2px solid #1E3A6E;
  color: #1E3A6E;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-ceremony-direction:hover {
  background: #1E3A6E;
  color: #FBF7EE;
}

/* ==========================================================================
   5. BƯU THIẾP 04: ALBUM ẢNH CƯỚI (STAMP COLLECTION)
   ========================================================================== */
.stamp-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stamp-album-item {
  display: block;
  padding: 5px;
  border: 0;
  background: radial-gradient(circle at 4px 4px, transparent 2.5px, #FFFFFF 3px) -4px -4px / 8px 8px;
  cursor: pointer;
}

.stamp-album-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #D9D1C1;
  overflow: hidden;
}

.stamp-album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stamp-album-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 110, 0.86);
  color: #FBF7EE;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 16px;
}

.stamp-album-item:focus-visible {
  outline: 2px solid #1E3A6E;
  outline-offset: 2px;
}

.postcard-stamp-album-quote {
  margin: 8px 0 0;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: #1E2430;
}

/* ==========================================================================
   6. BƯU THIẾP 05: TIỆC CƯỚI & TỜ LỊCH THÁNG MINI
   ========================================================================== */
.reception-cursive-heading {
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0;
  color: #1E2430;
}

.reception-solar-desc {
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #1E2430;
}

.reception-two-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.rec-time-box {
  border: 2px solid #1E2430;
  padding: 8px 10px;
  box-sizing: border-box;
}

.rec-time-box.dark {
  background: #1E2430;
  color: #FBF7EE;
}

.rec-time-box .box-lbl {
  font-size: 11px;
  color: #4E5563;
  text-transform: uppercase;
}

.rec-time-box.dark .box-lbl {
  color: #FBF7EE;
}

.rec-time-box .box-val {
  font-size: 24px;
  font-weight: 600;
  display: block;
}

/* Tờ lịch tháng mini */
.calendar-airmail-wrap {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  transform: none;
}

.calendar-paper-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #1E2430;
  padding-bottom: 4px;
  color: #1E2430;
  text-transform: uppercase;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #4E5563;
  text-align: center;
  margin-top: 4px;
}

.calendar-grid-header span {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-align: center;
  color: #1E2430;
}

.calendar-grid-days span {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-grid-days span.wedding-day,
.calendar-grid-days span.active {
  border: 2px solid #C8333A !important;
  border-radius: 50% !important;
  color: #C8333A !important;
  font-weight: 600 !important;
}

.reception-buttons-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-cal-action {
  flex: 1;
  min-height: 48px;
  border: 2px solid #1E2430;
  background: transparent;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cal-action:hover {
  background: rgba(30, 36, 48, 0.08);
}

.btn-rsvp-action {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: #C8333A;
  color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-rsvp-action:hover {
  background: #B02A30;
}

/* ==========================================================================
   7. BƯU THIẾP 06: ĐỊA ĐIỂM & BẢN ĐỒ (ĐỊA CHỈ NHẬN)
   ========================================================================== */
.venue-name-mono {
  margin: 10px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #1E2430;
}

.venue-addr-mono {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #1E2430;
}

.map-embed-wrapper {
  margin-top: 12px;
  height: 190px;
  background: #D9D1C1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
  /* Mặc định chặn iframe cướp gesture scroll; bật lại khi chạm */
  cursor: pointer;
}

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

.map-embed-wrapper.is-map-active iframe {
  pointer-events: auto;
}

.venue-direction-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  min-height: 46px;
  background: #1E3A6E;
  color: #FBF7EE !important;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.venue-direction-btn:hover {
  background: #152A50;
}

/* ==========================================================================
   8. ĐẾM NGƯỢC: DẤU BƯU ĐIỆN XOAY GÓC (POSTMARK COUNTDOWN)
   ========================================================================== */
.countdown-postmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.postmark-countdown-kicker {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1E3A6E;
  text-transform: uppercase;
}

.postmark-stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.postmark-circle {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #1E3A6E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  color: #1E3A6E;
  background: transparent;
  box-sizing: border-box;
  position: relative;
}

.postmark-circle .num {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.postmark-circle .lbl {
  font-size: 10px;
  font-weight: 400;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

/* ==========================================================================
   9. BƯU THIẾP 07: LỊCH TRÌNH (TIMELINE - LỘ TRÌNH BAY)
   ========================================================================== */
.timeline-list {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
}

.timeline-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px dashed #1E2430 !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  align-items: center !important;
}

.timeline-line-col,
.timeline-dot {
  display: none !important;
}

.timeline-left {
  padding: 0 !important;
  margin: 0 !important;
}

.timeline-time {
  font-weight: 600 !important;
  color: #C8333A !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
}

.timeline-right {
  padding: 0 !important;
  margin: 0 !important;
}

.timeline-text {
  color: #1E2430 !important;
  font-size: 13px !important;
}

/* ==========================================================================
   10. BƯU THIẾP 08: TRANG PHỤC (DRESS CODE - BẢNG MÀU TEM)
   ========================================================================== */
.dresscode-note,
.dresscode-note-airmail {
  margin: 8px 0 0 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  color: #1E2430 !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

#dresscode-palettes,
.dresscode-palettes {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding: 0 !important;
  background: transparent !important;
}

.dresscode-item {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dresscode-stamp {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  background: radial-gradient(circle at 4px 4px, transparent 2.5px, #FFFFFF 3px) -4px -4px / 8px 8px;
}

.dresscode-swatch {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 !important;
  box-sizing: border-box !important;
  border: 1px solid #D9D1C1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.dresscode-name {
  margin-top: 4px !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important;
  color: #1E2430 !important;
  font-weight: 400 !important;
}

/* ==========================================================================
   11. BƯU THIẾP 09: SỔ LƯU BÚT (BƯU THIẾP LỜI CHÚC)
   ========================================================================== */
.guestbook-card-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.airmail-input-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #1E2430;
  margin: 0;
  display: block;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Label + ô nhập: khoảng cách đều giữa Tên và Lời chúc */
.guestbook-form .airmail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guestbook-form .airmail-mono-input {
  width: 100%;
  min-height: 0;
  height: auto;
  border: 0;
  border-bottom: 1px solid #1E2430;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-family: 'Dancing Script', cursive;
  font-size: 18px !important;
  line-height: 1.3;
  color: #1E2430;
  box-sizing: border-box;
  padding: 2px 0 4px;
  outline: none;
}

.guestbook-form .airmail-mono-input::placeholder {
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  color: #8A8490;
  opacity: 1;
}

/* Ô lời chúc: chữ viết tay, đồng bộ với lời chúc hiển thị */
.guestbook-form .airmail-lined-textarea {
  width: 100%;
  min-height: 0;
  border: 1px solid #1E2430;
  box-shadow: none;
  background-color: transparent;
  padding: 4px 10px;
  font-family: 'Dancing Script', cursive;
  font-size: 18px !important;
  line-height: 26px !important;
  resize: none;
  background-image: repeating-linear-gradient(transparent 0 25px, #D9D1C1 25px 26px);
  color: #1E2430;
  box-sizing: border-box;
  outline: none;
  border-radius: 0;
}

.guestbook-form .airmail-lined-textarea::placeholder {
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  color: #8A8490;
  opacity: 1;
}

.guestbook-form .airmail-mono-input:focus,
.guestbook-form .airmail-lined-textarea:focus {
  border-color: #1E3A6E;
  box-shadow: none;
}

.airmail-guestbook-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-wish-suggestion-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #1E2430;
  background: transparent;
  color: #1E2430;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}

.btn-submit-airmail-wish {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: #1E3A6E;
  color: #FBF7EE;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-submit-airmail-wish:hover {
  background: #152A50;
}

.wishes-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Bỏ nested scroll — overflow-y:auto + max-height dễ "nuốt" gesture khiến trang bị mắc */
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
}

.wishes-list .wish-item {
  border: 0;
  border-left: 3px solid #1E3A6E;
  padding: 0 0 0 10px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.wishes-list .wish-item.wish-item-tnd {
  border-left-color: #C8333A;
}

.wishes-list .wish-item-header {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #4E5563;
  margin: 0;
}

.wishes-list .wish-author,
.wishes-list .wish-time {
  font: inherit;
  color: inherit;
}

.wishes-list .wish-author::after {
  content: ' · ';
}

.wishes-list .wish-message {
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  line-height: 1.35;
  color: #1E2430;
}

/* ==========================================================================
   12. BƯU THIẾP 10: HỘP QUÀ MỪNG (BƯU PHẨM)
   ========================================================================== */
#gift.postcard-card {
  text-align: center;
}

.gift-cursive-title {
  margin: 10px 0 0;
  font-family: 'Dancing Script', cursive;
  font-size: 30px;
  font-weight: 700;
  color: #1E2430;
}

.gift-section .gift-desc-text {
  margin: 2px 0 0;
  color: #1E2430;
  font-size: 14px;
  line-height: 1.65;
}

.btn-open-gift-airmail {
  margin-top: 10px;
  text-transform: uppercase;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid #1E2430;
  background: transparent;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-open-gift-airmail:hover {
  background: #1E2430;
  color: #FBF7EE;
}

/* Tiệc nhà gái: cùng ngôn ngữ bưu thiếp */
#reception-bride.postcard-card {
  padding: 18px !important;
  background: #FBF7EE;
  border: 0;
  border-radius: 0;
  box-shadow: 0 6px 14px rgba(30, 36, 48, 0.12);
}

#reception-bride .rb-venue-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
}

#reception-bride .rb-venue-name-row .rb-venue-name {
  margin: 0;
}

#reception-bride .bride-reception-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 !important;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  color: #1E2430;
}

#reception-bride .rb-heading {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1E3A6E;
  text-transform: uppercase;
}

#reception-bride .rb-lead,
#reception-bride .rb-venue-label,
#reception-bride .rb-weekday,
#reception-bride .rb-lunar,
#reception-bride .rb-venue-address {
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: #1E2430;
}

#reception-bride .rb-date {
  justify-content: flex-start;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  color: #1E2430;
}

#reception-bride .rb-day,
#reception-bride .rb-month,
#reception-bride .rb-year {
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  color: #1E2430;
}

#reception-bride .rb-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

#reception-bride .rb-time-col {
  border: 2px solid #1E2430;
  padding: 8px 10px;
  text-align: left;
}

#reception-bride .rb-time-col:last-child {
  background: #1E2430;
  color: #FBF7EE;
}

#reception-bride .rb-time-col small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-style: normal;
  color: inherit;
  text-transform: uppercase;
}

#reception-bride .rb-time-col strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  font-style: normal;
  color: inherit;
}

#reception-bride .rb-venue {
  margin-top: 14px;
  padding: 0;
  border: 0;
  text-align: left;
}

#reception-bride .rb-direction {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #1E3A6E;
  box-shadow: none;
  color: #FBF7EE;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

#reception-bride .rb-direction[hidden] {
  display: none;
}

#reception-bride .rb-direction:hover {
  background: #152A50;
  filter: none;
}

#reception-bride .rb-venue-name {
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  color: #1E2430;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 16px 0 8px;
}

.footer-cursive-thanks {
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  color: #1E2430;
}

.footer-couple-date {
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #1E2430;
}

.footer-brand-label {
  margin: 12px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #4E5563;
  text-transform: uppercase;
}

/* ==========================================================================
   14. MODALS (GIFT MODAL & RSVP MODAL STYLED AS PARCEL & PASS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 36, 48, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex;
}

.gift-modal-box,
.rsvp-modal-box {
  width: 100%;
  max-width: 400px;
  background: #FBF7EE;
  border: 2px solid #1E2430;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 4px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.gift-modal-header,
.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E2430;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.gift-modal-title,
.modal-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1E3A6E;
  margin: 0;
  text-transform: uppercase;
}

.gift-modal-close,
.modal-close {
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #1E2430;
}

.gift-cols-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-person-card {
  background: #FFFFFF;
  border: 1px solid #D9D1C1;
  padding: 14px;
  border-radius: 4px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}

.gift-person-title {
  font-weight: 600;
  font-size: 13px;
  color: #1E3A6E;
  margin-bottom: 8px;
}

.gift-qr-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border: 1px solid #E7E1D3;
}

.gift-bank-info {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.gift-bank-number {
  font-weight: 600;
  font-size: 14px;
  color: #C8333A;
  margin: 2px 0;
}

.gift-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-copy-acc,
.btn-save-qr {
  flex: 1;
  min-height: 38px;
  border: 1px solid #1E2430;
  background: transparent;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}

.btn-copy-acc:hover,
.btn-save-qr:hover {
  background: #1E2430;
  color: #FBF7EE;
}

/* Icon vẽ bằng SVG mask (không dùng ký tự chữ: thiết bị thật sẽ vẽ thành emoji khác) */
.venue-direction-btn::after,
.btn-ceremony-direction::after,
#reception-bride .rb-direction::after,
.btn-open-airmail::after {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%2017L17%207M8%207h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%2017L17%207M8%207h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-open-airmail::after {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14M13%206l6%206-6%206'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14M13%206l6%206-6%206'/%3E%3C/svg%3E");
}

.pin-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: #C8333A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.1-7-11a7%207%200%200%201%2014%200c0%204.9-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.1-7-11a7%207%200%200%201%2014%200c0%204.9-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.venue-name-mono {
  display: flex;
  align-items: center;
}

/* Hộp quà mừng: bưu phẩm. Gắn #gift-modal để thắng gift.css (header đỏ, nút viên thuốc) */
#gift-modal .gift-modal-box {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FBF7EE;
  border: 2px solid #1E2430;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

#gift-modal .gift-modal-header {
  position: relative;
  flex-shrink: 0;
  margin: 0 18px;
  padding: 16px 32px 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #1E2430;
  text-align: left;
}

#gift-modal .gift-modal-title {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1E3A6E;
  text-transform: uppercase;
}

#gift-modal .gift-modal-close {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1E2430;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#gift-modal .gift-modal-close:hover {
  background: transparent;
  color: #C8333A;
}

#gift-modal .gift-modal-body {
  padding: 16px 18px 18px;
  background: transparent;
  overflow-y: auto;
}

#gift-modal .gift-cols-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}

#gift-modal .gift-cols-container.single-col {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

#gift-modal .gift-cols-container.single-col .gift-person-card {
  width: 100%;
  max-width: 320px;
}

#gift-modal .gift-person-card {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #D9D1C1;
  border-radius: 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}

/* QR in trong khung tem răng cưa */
#gift-modal .gift-qr-card {
  width: 148px;
  height: 148px;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(circle at 5px 5px, transparent 3px, #FBF7EE 3.5px) -5px -5px / 10px 10px;
}

#gift-modal .gift-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: 0;
  background: #FFFFFF;
}

#gift-modal .gift-bank-info {
  margin: 0 0 12px;
  line-height: 1.5;
}

#gift-modal .gift-bank-name {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #4E5563;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#gift-modal .gift-bank-number {
  margin: 2px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #C8333A;
}

#gift-modal .gift-bank-owner {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1E2430;
  text-transform: uppercase;
}

#gift-modal .gift-actions-row {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#gift-modal .btn-copy-acc,
#gift-modal .btn-save-qr {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #1E2430;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  transform: none;
}

#gift-modal .btn-save-qr {
  border-color: #1E3A6E;
  background: #1E3A6E;
  color: #FBF7EE;
}

#gift-modal .btn-copy-acc:hover {
  background: #1E2430;
  color: #FBF7EE;
  transform: none;
}

#gift-modal .btn-save-qr:hover {
  background: #152A50;
  border-color: #152A50;
  color: #FBF7EE;
  transform: none;
}

/* Xác nhận tham dự + gợi ý lời chúc: bưu thiếp (gắn id để thắng modal cũ) */
#rsvp-modal .rsvp-modal-box,
#wish-suggestions-modal .wish-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 0 18px 18px;
  overflow-y: auto;
  background: #FBF7EE;
  border: 2px solid #1E2430;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: none;
  font-family: 'IBM Plex Mono', monospace;
}

#rsvp-modal .modal-title-row,
#wish-suggestions-modal .wish-modal-header {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 12px;
  padding: 16px 40px 10px 0;
  border-bottom: 1px solid #1E2430;
}

#rsvp-modal .modal-title,
#wish-suggestions-modal .gift-modal-title {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1E3A6E;
  text-align: left;
  text-transform: uppercase;
}

#rsvp-modal .modal-close,
#wish-suggestions-modal .wish-modal-close {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1E2430;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#rsvp-modal .modal-close:hover,
#wish-suggestions-modal .wish-modal-close:hover {
  background: transparent;
  color: #C8333A;
}

#rsvp-modal .modal-subtitle,
#wish-suggestions-modal .wish-modal-subtitle {
  margin: 0 0 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #1E2430;
  text-align: left;
}

#rsvp-modal .rsvp-form-group {
  margin: 0 0 12px;
}

#rsvp-modal .rsvp-form-label {
  display: block;
  margin: 0 0 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: #1E2430;
  text-transform: uppercase;
}

#rsvp-modal .rsvp-input,
#rsvp-modal .rsvp-textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #1E2430;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  outline: none;
}

#rsvp-modal select.rsvp-input {
  border: 1px solid #1E2430;
  background: #FBF7EE;
}

#rsvp-modal .rsvp-textarea {
  height: auto;
  min-height: 104px;
  padding: 4px 10px;
  border: 1px solid #1E2430;
  font-family: 'Dancing Script', cursive;
  font-size: 26px !important;
  line-height: 34px !important;
  resize: none;
  background-image: repeating-linear-gradient(transparent 0 33px, #D9D1C1 33px 34px);
}

#rsvp-modal .rsvp-input:focus,
#rsvp-modal .rsvp-textarea:focus {
  border-color: #1E3A6E;
  box-shadow: none;
}

/* Placeholder đồng nhất: cùng font, cỡ chữ, màu cho mọi ô nhập */
#rsvp-modal .rsvp-input::placeholder,
#rsvp-modal .rsvp-textarea::placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: inherit;
  color: #8A8490;
  opacity: 1;
}

#rsvp-modal .rsvp-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

#rsvp-modal .rsvp-radio-label {
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #1E2430;
  border-radius: 0;
  background: transparent;
  color: #1E2430;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

#rsvp-modal .rsvp-radio-label:has(input:checked) {
  background: #1E2430;
  color: #FBF7EE;
  font-weight: 600;
}

#rsvp-modal .rsvp-radio-label input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #C8333A;
}

#rsvp-modal .rsvp-btn-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #1E3A6E;
  box-shadow: none;
  color: #FBF7EE;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#rsvp-modal .rsvp-btn-submit:hover {
  background: #152A50;
}

#rsvp-modal .rsvp-btn-submit.is-submitting {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

#wish-suggestions-modal .btn-rsvp-action {
  background: #1E3A6E;
  color: #FBF7EE;
}

#wish-suggestions-modal .btn-rsvp-action:hover {
  background: #152A50;
}

#wish-suggestions-modal .wish-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  margin: 0;
  overflow-y: auto;
}

#wish-suggestions-modal .wish-suggestion-item {
  padding: 10px 12px;
  border: 1px solid #D9D1C1;
  border-left: 3px solid #1E3A6E;
  border-radius: 0;
  background: #FFFFFF;
  color: #1E2430;
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  line-height: 1.25;
  cursor: pointer;
}

#wish-suggestions-modal .wish-suggestion-item:hover {
  border-left-color: #C8333A;
  background: #FFFFFF;
  box-shadow: none;
  transform: none;
  color: #1E2430;
}

/* RSVP Modal Fields */
.rsvp-form-group {
  margin-bottom: 12px;
}

.rsvp-form-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #4E5563;
  margin-bottom: 4px;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #1E2430;
  background: transparent;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #1E2430;
  border-radius: 2px;
}

.rsvp-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.rsvp-btn-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: #C8333A;
  color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 10px;
}

/* Floating controls (Music & Lang) */
.floating-music,
.floating-lang {
  z-index: 999;
}

.floating-music {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #1E3A6E !important;
  color: #FBF7EE !important;
  border: 2px solid #FBF7EE !important;
  box-shadow: 0 4px 12px rgba(30, 58, 110, 0.3) !important;
}

.floating-music .music-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-music.playing .music-icon {
  animation: airmail-spin 4s linear infinite;
}

@keyframes airmail-spin {
  to { transform: rotate(360deg); }
}

.lang-trigger-btn {
  background: #FBF7EE !important;
  color: #1E3A6E !important;
  border: 1.5px solid #1E3A6E !important;
  font-family: 'IBM Plex Mono', monospace !important;
}

.lang-dropdown {
  background: #FBF7EE !important;
  border: 1.5px solid #1E3A6E !important;
  font-family: 'IBM Plex Mono', monospace !important;
}

.lang-btn {
  color: #1E3A6E !important;
}

.lang-btn.active {
  background: #1E3A6E !important;
  color: #FBF7EE !important;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.lightbox-modal img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border: 4px solid #FBF7EE;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 247, 238, 0.9);
  color: #1E2430;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

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

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

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FBF7EE;
  color: #1E2430;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* ==========================================================================
   DESKTOP VIEWPORT: MAX-WIDTH 900PX, CONTENT MAX 560PX
   ========================================================================== */
@media (min-width: 768px) {
  /* Desktop: nền ngoài kraft đậm, khung thiệp giữ màu giấy kraft */
  html,
  body {
    background: #D9D1C1 !important;
    background-image: none !important;
  }

  .app-container {
    max-width: 900px !important;
    gap: 40px !important;
    padding: 48px 24px 32px !important;
    border-inline: 1px solid rgba(30, 36, 48, 0.13) !important;
    min-height: 100vh;
    background: #E7E1D3 !important;
  }

  .airmail-cover-card,
  .reveal-section,
  .postcard-card,
  .airmail-ticket-frame,
  .countdown-postmark-wrap,
  #hero,
  #wedding-info,
  #ceremony-info,
  #gallery,
  #reception,
  #venue,
  #countdown,
  #timeline,
  #dresscode,
  #love-story,
  #guestbook,
  #gift,
  #reception-bride,
  footer {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

