/* ==========================================================================
   THIỆP CƯỚI 15 — THEME OLIVE · BƠ
   Tối giản kiểu tạp chí: nền kem, khối vàng bơ, chữ ô liu đậm, một điểm nhấn
   đỏ anh đào. Không dùng ảnh trang trí. Một file duy nhất thay cho bộ CSS cũ.
   ========================================================================== */

/* Hiệu ứng cuộn chung — import theo đường dẫn file CSS (ổn định hơn <base href>) */
@import url('scroll-animations.css?v=olive13');

:root {
  --bg: #F3F0E4;
  --block: #EDE3B9;
  --ink: #2D3423;
  --soft: #565B48;
  --line: #CFCBB4;
  --accent: #A23B2E;
  --outer: #E4E0CF;
  --white: #FBFAF4;
  --overlay: rgba(45, 52, 35, 0.55);

  --f-script: "Great Vibes", "Noto Serif SC", cursive;
  --f-display: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --f-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --page-w: 900px;
  --content-w: 560px;
  --gutter: 28px;
  /* Lề trong: tối thiểu --gutter, cột nội dung tối đa --content-w nằm giữa khung */
  --inset: max(var(--gutter), calc((100% - var(--content-w)) / 2));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Scroll reveal nhanh hơn mặc định chung (3.5s thay vì 5s) */
  --reveal-duration: 3.5s;
}

/* --------------------------------------------------------------------------
   1. NỀN TẢNG
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--outer);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body:not(.invite-open) { overflow: hidden; }

h1, h2, h3, h4, p, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: var(--block); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* WebView Zalo / Messenger: tránh auto-zoom khi focus */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input:not([type]), textarea, select {
  font-size: 16px !important;
  touch-action: manipulation;
}
input, textarea { -webkit-user-select: auto !important; user-select: auto !important; }
html.input-focused, html.input-focused body {
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

/* Theme tối giản: tắt lớp cánh hoa rơi */
.falling-lotus-container, .ambient-particles, .lotus-petal { display: none !important; }

/* --------------------------------------------------------------------------
   2. THÀNH PHẦN DÙNG CHUNG
   -------------------------------------------------------------------------- */
.app-container {
  position: relative;
  width: min(var(--page-w), 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 0;
  background: var(--bg);
  counter-reset: sec;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

body:not(.invite-open):not(.invite-opening) .app-container {
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
}

.olive-section { padding: 64px var(--inset) 0; }

.olive-eyebrow {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--accent);
}
.olive-eyebrow::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " / ";
}

.olive-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--ink);
}
.olive-display em { font-style: italic; }

.olive-band {
  margin-top: 64px;
  padding: 40px var(--inset) 38px;
  background: var(--block);
}

/* Nút viên thuốc */
.btn-gold-outline, .btn-cream-solid, .venue-direction-btn, .rb-direction,
.gift-envelope-trigger, .story-link, .btn-submit-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.btn-gold-outline, .venue-direction-btn, .rb-direction, .story-link {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-gold-outline:hover, .venue-direction-btn:hover, .rb-direction:hover, .story-link:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-cream-solid, .gift-envelope-trigger, .btn-submit-wish {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.btn-cream-solid:hover, .gift-envelope-trigger:hover, .btn-submit-wish:hover { opacity: .88; }

/* Hiệu ứng cuộn: dùng chung css/scroll-animations.css (giống các thiệp khác) */

/* --------------------------------------------------------------------------
   3. BÌA THIỆP
   -------------------------------------------------------------------------- */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--block);
  transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease);
  /* Bìa giữ đúng tỉ lệ poster 390×844; fallback vh trước rồi mới dvh */
  --cover-w: min(100vw, var(--page-w), calc(100vh * 390 / 844));
  --u: calc(var(--cover-w) / 390);
}
@supports (height: 100dvh) {
  .envelope-screen {
    --cover-w: min(100vw, var(--page-w), calc(100dvh * 390 / 844));
    --u: calc(var(--cover-w) / 390);
  }
}
.invite-opening .envelope-screen,
.invite-open .envelope-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-box {
  position: relative;
  width: var(--cover-w, min(100vw, 390px));
  height: calc(var(--cover-w, min(100vw, 390px)) * 844 / 390);
  background: var(--block);
}

.envelope-card {
  position: absolute;
  inset: 0;
  color: var(--ink);
  transition: transform 1.2s var(--ease);
}
.invite-opening .envelope-card { transform: translateY(-40px); }

.cover-frame {
  position: absolute;
  inset: calc(14 * var(--u));
  border: 1px solid rgba(45, 52, 35, 0.35);
  pointer-events: none;
}

.cover-top {
  position: absolute;
  top: max(60px, calc(60 * var(--u)));
  left: calc(36 * var(--u));
  right: calc(36 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cover-kicker {
  font-size: max(9px, calc(10 * var(--u)));
  font-weight: 500;
  letter-spacing: calc(4 * var(--u));
  text-transform: uppercase;
}
.envelope-seal {
  width: max(36px, calc(40 * var(--u)));
  height: max(36px, calc(40 * var(--u)));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--block);
  font-family: var(--f-display);
  font-size: calc(20 * var(--u));
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}
.envelope-seal:not(:disabled):hover { transform: rotate(-8deg); }

.cover-date-stack {
  position: absolute;
  top: calc(84 * var(--u));
  left: calc(32 * var(--u));
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-style: italic;
  font-size: calc(148 * var(--u));
  line-height: .86;
  letter-spacing: calc(-4 * var(--u));
}
.cover-date-stack span:empty { display: none; }
.cds-month { padding-left: calc(70 * var(--u)); }
.cds-year { padding-left: calc(140 * var(--u)); color: var(--accent); }

.cover-side-note {
  position: absolute;
  top: calc(132 * var(--u));
  right: calc(30 * var(--u));
  writing-mode: vertical-rl;
  font-size: max(9px, calc(10 * var(--u)));
  font-weight: 500;
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
}

.envelope-names {
  position: absolute;
  top: calc(496 * var(--u));
  left: calc(36 * var(--u));
  right: calc(36 * var(--u));
  display: flex;
  flex-direction: column;
}
.envelope-name-line {
  font-family: var(--f-script);
  font-size: calc(58 * var(--u));
  line-height: 1;
  min-height: 1em;
  white-space: nowrap;
}
.envelope-name-line:last-child { text-align: right; }
.envelope-name-amp {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  margin: calc(2 * var(--u)) 0 calc(2 * var(--u)) calc(140 * var(--u));
}
.amp-rule { display: none; }
.amp-word { font-family: var(--f-display); font-style: italic; font-size: calc(22 * var(--u)); }

.cover-bottom {
  position: absolute;
  left: calc(36 * var(--u));
  right: calc(36 * var(--u));
  bottom: calc(44 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(16 * var(--u));
}
.cover-guest { width: 100%; min-width: 0; text-align: center; }
.cover-guest-label {
  font-size: max(9px, calc(10 * var(--u)));
  letter-spacing: calc(2.5 * var(--u));
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}
.cover-guest-name {
  margin-top: calc(6 * var(--u));
  font-family: var(--f-display);
  font-size: calc(20 * var(--u));
  line-height: 1.25;
  white-space: nowrap;
}
.envelope-date, .envelope-invite-text { display: none !important; }

.btn-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  height: max(44px, calc(48 * var(--u)));
  padding: 0 calc(22 * var(--u));
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--block);
  font-size: max(11px, calc(12 * var(--u)));
  font-weight: 500;
  letter-spacing: calc(3 * var(--u));
  text-transform: uppercase;
  transition: opacity .25s ease, transform .25s ease;
}
.btn-open svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.btn-open:disabled { opacity: .45; }
.btn-open:not(:disabled):hover { transform: translateX(3px); }

/* Loading bảo vệ: phủ kính mờ lên bìa khi đang tải dữ liệu (giống các thiệp khác) */
#envelope-screen .cover-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--block) 72%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: wait;
  pointer-events: auto;
}
#envelope-screen .cover-loading-overlay[hidden] { display: none; }
#envelope-screen .cover-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: olive-spin 0.9s linear infinite;
}
@keyframes olive-spin { to { transform: rotate(360deg); } }
#envelope-screen[aria-busy="true"] { cursor: wait; }
#envelope-screen button:disabled { cursor: wait; }

/* --------------------------------------------------------------------------
   4. SAVE THE DATE (HERO)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 72px var(--inset) 0 calc(var(--inset) + 28px);
}
.hero-spine {
  position: absolute;
  top: 72px;
  left: calc(var(--inset) - 10px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}

.hero-photo {
  position: relative;
  margin-top: 36px;
}
.photo-frame {
  aspect-ratio: 3 / 4.3;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--block);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame img:not([src]) { visibility: hidden; }

.hero-date-tag {
  position: absolute;
  left: -40px;
  bottom: -22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
}
.hdt-weekday { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: .82; }
.hdt-date { font-family: var(--f-display); font-style: italic; font-size: 26px; line-height: 1; }

.hero-title-box {
  margin: 64px 0 0 -28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-names {
  display: flex;
  flex-direction: column;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(46px, 14vw, 58px);
  line-height: 1.05;
}
.hn-1, .hn-2 { display: block; line-height: 1.15; }
.hn-2 {
  text-align: right;
  /* Script font có nét bay lên — cần khoảng trống rõ dưới hàng 囍 */
  margin-top: 18px;
  padding-top: 4px;
}
.hn-amp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 0;
  font-size: 0;
}
.hn-amp i { flex: 1; height: 1px; background: var(--line); }
.hn-amp b {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-names .amp { font-family: var(--f-display); font-style: italic; font-size: 24px; }

.hero-invite-guest {
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
}
.hero-quote {
  margin-top: 8px;
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   5. LỄ CƯỚI & HAI GIA ĐÌNH
   -------------------------------------------------------------------------- */
.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.family-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px 22px 0;
  min-height: 100%;
}
.family-side + .family-side {
  padding: 22px 0 22px 14px;
  border-left: 1px solid var(--line);
}
.family-side small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.family-side h4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(11px, 3.2vw, 13.5px);
  font-weight: 400;
  line-height: 1.7;
  /* Luôn chỗ ~2 dòng → địa chỉ hai bên bắt đầu cùng hàng; 1 tên vẫn dóng giữa */
  min-height: calc(1.7em * 2);
  text-align: center;
  /* Mỗi tên (Ông/Bà …) giữ 1 dòng; <br> giữa bố/mẹ vẫn tách dòng */
  white-space: nowrap;
}
.family-side:not(.has-parent-names) h4 {
  visibility: hidden;
  color: transparent;
}
.family-side p {
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
  color: var(--soft);
  text-align: center;
}

.ceremony-block {
  margin: 48px -8px 0;
  padding: 36px 24px 32px;
  background: var(--block);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
/* Đồng nhất kicker như “TIỆC CƯỚI SẼ DIỄN RA VÀO LÚC” (ảnh 2) */
.announcement-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--soft);
  max-width: 340px;
}

.couple-highlight-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.groom-name, .bride-name {
  font-family: var(--f-script);
  font-size: 42px;
  line-height: 1.15;
}
.couple-highlight-names .role-badge {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
}
.couple-highlight-names .role-badge:empty { display: none; }
.couple-highlight-names .amp {
  width: 30px;
  height: 30px;
  margin: 10px 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceremony-time-badge {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.date-trio {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 4px 0 6px;
}
.dt-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.dt-side small:empty { display: none; }
.dt-side small { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }
.dt-side b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.dt-day {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
}
.date-trio:not([hidden]) + .date-big { display: none; }
.date-big { font-family: var(--f-display); font-style: italic; font-size: 34px; color: var(--accent); }
.ceremony-time-badge .time { font-family: var(--f-display); font-size: 19px; }
.ceremony-time-badge .lunar { font-size: 12px; color: var(--soft); }
.ceremony-note { font-size: 13px; line-height: 1.7; }
/* Địa điểm lễ — cùng format tiệc nhà gái (ảnh 1): kicker + tên lớn */
.ceremony-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  text-align: center;
}
.ceremony-venue-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
}
.ceremony-venue-name {
  margin: 0;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   6. ALBUM ẢNH (COVERFLOW)
   -------------------------------------------------------------------------- */
.section-header { display: flex; flex-direction: column; gap: 10px; }
.section-header p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--soft);
}

.gallery-carousel {
  position: relative;
  height: clamp(340px, 100vw, 440px);
  margin: 28px 0 0;
  perspective: 1000px;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 68%;
  height: 100%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--block);
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(45, 52, 35, .65), transparent);
  color: var(--white);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  text-align: center;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(243, 240, 228, .92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.carousel-dot {
  width: 14px;
  height: 2px;
  background: var(--line);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.carousel-dot.active { width: 28px; background: var(--ink); }

/* Lưới album kiểu tạp chí: 1 ảnh vòm lớn + 2 ô nhỏ, ô cuối "+N" */
#gallery.has-olive-album .gallery-carousel,
#gallery.has-olive-album .carousel-dots { display: none; }
.olive-album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  aspect-ratio: 326 / 328;
}
.olive-album[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); aspect-ratio: 3 / 4; }
.olive-album[data-count="2"] .album-tile-2 { grid-row: span 2; }
.album-tile {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--block);
  cursor: pointer;
}
.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.album-tile:hover img { transform: scale(1.04); }
.album-tile-1 { grid-row: span 2; border-radius: 999px 999px 0 0; }
.album-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(45, 52, 35, .55);
  color: var(--bg);
}
.album-more b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.1; }
.album-more small { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; }

/* --------------------------------------------------------------------------
   7. TIỆC CƯỚI — VÉ MỜI & LỊCH
   -------------------------------------------------------------------------- */
.reception-card { display: flex; flex-direction: column; }
.reception-title { margin-top: 10px; }

.reception-ticket {
  margin: 32px -8px 0;
  background: var(--ink);
  color: var(--bg);
}
.reception-header { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.reception-lead {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .78;
}
.reception-day-time span {
  font-family: var(--f-display);
  font-size: 18px;
  text-transform: capitalize;
}
.reception-date-block { display: flex; align-items: center; gap: 16px; }
.reception-date-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 68px;
  line-height: 1;
  color: var(--block);
}
.reception-date-divider { width: 1px; height: 52px; background: rgba(243, 240, 228, .4); }
.reception-date-month-year { display: flex; flex-direction: column; gap: 2px; }
.reception-date-month-year span { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; opacity: .82; }
.reception-date-month-year strong { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.reception-lunar { font-size: 12px; opacity: .8; }

.ticket-perforation {
  position: relative;
  height: 0;
  margin: 0 14px;
  border-top: 1px dashed rgba(243, 240, 228, .45);
}
.ticket-perforation::before, .ticket-perforation::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket-perforation::before { left: -25px; }
.ticket-perforation::after { right: -25px; }

.reception-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 20px 24px 24px;
}
.reception-time-col { display: flex; flex-direction: column; gap: 4px; }
.reception-time-col + .reception-time-col { text-align: right; }
.reception-time-col small { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
.reception-time-col strong { font-family: var(--f-display); font-size: 26px; font-weight: 400; }

.calendar-paper { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.calendar-paper-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-display);
  font-size: 24px;
}
.calendar-grid-header, .calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.calendar-grid-header span { font-size: 10px; letter-spacing: 1px; color: var(--soft); }
.calendar-grid-days { row-gap: 4px; }
.calendar-grid-days span {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.calendar-grid-days .wedding-day {
  width: 38px;
  height: 38px;
  margin: 1px auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
}

.reception-actions { display: flex; gap: 10px; margin-top: 24px; }
.reception-actions > * {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.reception-actions > * span { white-space: nowrap; }

/* --------------------------------------------------------------------------
   8. ĐỊA ĐIỂM & TIỆC NHÀ GÁI
   -------------------------------------------------------------------------- */
.venue-card { display: flex; flex-direction: column; gap: 10px; }
.venue-lead {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
}
.venue-name { font-family: var(--f-display); font-size: 28px; font-weight: 400; line-height: 1.2; }
.venue-address { font-size: 13px; line-height: 1.7; color: var(--soft); }
.map-embed-wrapper {
  height: 230px;
  margin: 18px 0 8px;
  background: var(--block);
  overflow: hidden;
}
.map-embed-wrapper iframe { width: 100%; height: 100%; filter: grayscale(.35) sepia(.1); }
.venue-direction-btn { align-self: flex-start; }

.bride-reception-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 4px;
}
.rb-lead {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soft);
}
.rb-weekday { font-family: var(--f-display); font-size: 18px; text-transform: capitalize; }
.rb-date { display: flex; align-items: center; gap: 16px; }
.rb-day { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 64px; line-height: 1; color: var(--accent); }
.rb-month-year { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--ink); }
.rb-month { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.rb-year { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.rb-lunar { font-size: 12px; color: var(--soft); }
.rb-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.rb-time-col { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.rb-time-col small { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--soft); }
.rb-time-col strong { font-family: var(--f-display); font-size: 24px; font-weight: 400; }
.rb-venue { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.rb-venue-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--soft); }
.rb-venue-name { font-family: var(--f-display); font-size: 24px; font-weight: 400; }
.rb-venue-address { font-size: 13px; color: var(--soft); }
.rb-direction { align-self: flex-start; margin-top: 8px; }

/* --------------------------------------------------------------------------
   9. ĐẾM NGƯỢC
   -------------------------------------------------------------------------- */
.countdown-card { display: flex; flex-direction: column; gap: 10px; }
.countdown-card .card-heading {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.countdown-subtitle { font-size: 13px; color: var(--soft); }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}
.count-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--ink);
}
.count-box .num { font-family: var(--f-display); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.count-box .lbl { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.countdown-quote {
  margin-top: 18px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   10. LỊCH TRÌNH
   -------------------------------------------------------------------------- */
.timeline-list { margin-top: 14px; counter-reset: tl; }
.timeline-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item::after {
  counter-increment: tl;
  content: counter(tl, decimal-leading-zero);
  font-size: 10px;
  color: var(--soft);
}
.timeline-line-col { display: none; }
.timeline-time { font-family: var(--f-display); font-style: italic; font-size: 20px; }
.timeline-text { font-size: 14px; }

/* --------------------------------------------------------------------------
   11. TRANG PHỤC
   -------------------------------------------------------------------------- */
.dresscode-card { display: flex; flex-direction: column; gap: 12px; }
.dresscode-subtitle { margin-top: 4px; font-family: var(--f-display); font-size: 24px; line-height: 1.25; }
.dresscode-note { font-size: 13px; line-height: 1.7; color: var(--soft); }
.dresscode-palettes { display: flex; margin-top: 8px; }
.dresscode-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dresscode-swatch { height: 76px; box-shadow: inset 0 0 0 1px rgba(45, 52, 35, .08); }
.dresscode-name { font-size: 10px; letter-spacing: 1px; padding-right: 6px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   12. CHUYỆN CHÚNG MÌNH
   -------------------------------------------------------------------------- */
.story-banner { display: flex; flex-direction: column; gap: 14px; }
.story-banner blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
}
.story-banner p:not(.olive-eyebrow) { font-size: 13px; line-height: 1.7; color: var(--soft); }
.story-link { align-self: flex-start; margin-top: 4px; }

/* --------------------------------------------------------------------------
   13. SỔ LƯU BÚT
   -------------------------------------------------------------------------- */
.guestbook-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.form-input, .form-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-textarea {
  min-height: 108px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  resize: vertical;
  line-height: 1.6;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: #7C806E; }

.guestbook-actions { display: flex; gap: 10px; }
.btn-wish-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-submit-wish { flex: 1; }
.btn-submit-wish.is-submitting { opacity: .6; pointer-events: none; }

.wishes-list {
  max-height: 440px;
  overflow-y: auto;
  margin-top: 28px;
  border-top: 1px solid var(--ink);
  overscroll-behavior: contain;
}
.wish-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.wish-item-header { display: flex; justify-content: space-between; gap: 12px; }
.wish-author { font-size: 12px; font-weight: 600; }
.wish-time { font-size: 11px; color: var(--soft); white-space: nowrap; }
.wish-message {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   14. HỘP QUÀ & FOOTER
   -------------------------------------------------------------------------- */
.gift-wrapper { display: flex; flex-direction: column; gap: 16px; }
.gift-note { font-size: 13px; line-height: 1.7; }
.gift-envelope-trigger { align-self: stretch; margin-top: 4px; }

.olive-footer {
  margin-top: 0;
  padding: 60px var(--inset) calc(48px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.olive-band + .olive-footer { margin-top: 0; }
.footer-kicker { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; opacity: .8; }
.footer-names { font-family: var(--f-script); font-size: clamp(38px, 11vw, 48px); line-height: 1.15; text-wrap: balance; }
.footer-names:empty { display: none; }
.footer-date { font-family: var(--f-display); font-style: italic; font-size: 15px; opacity: .88; }
.gift-thankyou-text { max-width: 320px; margin-top: 10px; font-size: 12px; line-height: 1.7; opacity: .78; }
.gift-brand-footer { margin-top: 18px; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; opacity: .6; }

/* Khoảng thở trước footer khi khối quà bị tắt */
.olive-section:last-of-type { padding-bottom: 0; }
#guestbook { padding-bottom: 64px; }
#gift { margin-top: 0; }

/* --------------------------------------------------------------------------
   15. NÚT NỔI: NGÔN NGỮ & NHẠC
   -------------------------------------------------------------------------- */
.floating-lang {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  /* Mobile: mép màn hình. Desktop: nằm ngoài khung thiệp (lề --outer) */
  right: max(16px, env(safe-area-inset-right));
  z-index: 1100;
}
.lang-trigger-btn {
  height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 240, 228, .94);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang-trigger-chevron { transition: transform .25s ease; }
.floating-lang.is-open .lang-trigger-chevron { transform: rotate(180deg); }
.floating-lang.is-open .lang-trigger-btn { border-color: var(--ink); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 92px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.lang-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-align: left;
}
.lang-btn.active { background: var(--block); }

.floating-music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1100;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-icon { display: flex; }
body:not(.invite-opening):not(.invite-open) .floating-music { opacity: 0; visibility: hidden; }
.floating-music { transition: opacity .6s ease, visibility .6s ease; }
.floating-music.playing .music-icon { animation: olive-spin 6s linear infinite; }

/* --------------------------------------------------------------------------
   16. MODAL: QUÀ, RSVP, GỢI Ý LỜI CHÚC, LIGHTBOX, TOAST
   -------------------------------------------------------------------------- */
.modal-overlay, .wish-suggestions-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open, .wish-suggestions-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-box, .gift-modal-box, .wish-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 30px 24px 26px;
  background: var(--bg);
  color: var(--ink);
  transform: translateY(16px);
  transition: transform .35s var(--ease);
}
.modal-overlay.open .modal-box,
.modal-overlay.open .gift-modal-box,
.wish-suggestions-modal.open .wish-modal-card { transform: none; }

.modal-close, .gift-modal-close, .wish-modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close { position: absolute; top: 10px; right: 10px; }

.modal-title, .gift-modal-title, .wish-modal-title h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}
.modal-subtitle { margin-top: 6px; font-size: 13px; color: var(--soft); }

/* Gift */
.gift-modal-header { display: flex; justify-content: space-between; align-items: center; margin: -10px -10px 16px 0; }
.gift-cols-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-cols-container.single-col { grid-template-columns: minmax(0, 1fr); max-width: 260px; margin: 0 auto; }
.gift-person-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--block);
}
.gift-person-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5; }
.gift-qr-card { background: var(--white); padding: 8px; }
.gift-qr-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gift-bank-info { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.gift-bank-number { font-family: var(--f-display); font-size: 16px; }
.gift-bank-owner { color: var(--soft); }
.gift-actions-row { display: flex; flex-direction: column; gap: 6px; }
.btn-copy-acc, .btn-save-qr {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-copy-acc { background: var(--ink); color: var(--bg); }

/* RSVP */
#rsvp-modal-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.rsvp-form-group { display: flex; flex-direction: column; gap: 6px; }
.rsvp-form-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
select.form-input {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D3423' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.rsvp-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rsvp-radio-label {
  position: relative;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.rsvp-radio-label input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-radio-label:has(input:checked) { background: var(--ink); color: var(--bg); }
.rsvp-radio-label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.rsvp-btn-submit {
  position: relative;
  min-height: 50px;
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}
.rsvp-btn-submit.is-submitting { opacity: .7; pointer-events: none; }
.rsvp-btn-submit.is-submitting::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: olive-spin .8s linear infinite;
}
#rsvp-modal.is-submitting #rsvp-modal-close { opacity: .4; pointer-events: none; }

/* Wish suggestions */
.wish-modal-header { display: flex; justify-content: space-between; align-items: center; margin: -10px -10px 0 0; }
.wish-modal-subtitle { margin-top: 6px; font-size: 13px; color: var(--soft); }
.wish-suggestions-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.wish-suggestion-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
  transition: color .2s ease;
}
.wish-suggestion-item:hover { color: var(--accent); }
.wish-modal-footer { display: flex; gap: 10px; margin-top: 18px; }
.btn-modal-refresh, .btn-modal-cancel {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.btn-modal-refresh { background: var(--ink); color: var(--bg); }

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 28, 18, .94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
#lightbox-img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 1px solid rgba(243, 240, 228, .5);
  border-radius: 50%;
  background: rgba(24, 28, 18, .4);
  color: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: none;
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 3px;
  text-align: center;
}
.lightbox-modal[data-olive-nav="on"] .lightbox-nav { display: flex; }
.lightbox-modal[data-olive-nav] .lightbox-counter { display: block; }
.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 240, 228, .5);
  border-radius: 50%;
  background: transparent;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 3000;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   17. MÀN HÌNH LỖI
   -------------------------------------------------------------------------- */
.not-found-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.not-found-card {
  width: min(380px, 100%);
  padding: 36px 28px;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.not-found-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--block);
  font-family: var(--f-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found-title { font-family: var(--f-display); font-size: 24px; font-weight: 400; }
.not-found-desc { font-size: 13px; line-height: 1.7; color: var(--soft); }

/* --------------------------------------------------------------------------
   18. MÀN HÌNH LỚN & GIẢM CHUYỂN ĐỘNG
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .app-container { box-shadow: 0 0 0 1px var(--line); }
  .envelope-screen { background: var(--outer); }
  .envelope-box { background: var(--block); }
}

/* --------------------------------------------------------------------------
   19. HIỆU ỨNG CUỘN — bổ sung phần tử riêng theme Olive
   (scroll-animations.css đã @import ở đầu file)
   -------------------------------------------------------------------------- */

/* An toàn: ẩn section trước khi có .visible (kể cả khi import chung lỗi cache) */
.reveal-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1));
  will-change: opacity, transform;
}
.reveal-section.visible {
  opacity: 1;
  transform: none;
}

/* Tiệc nhà gái — cùng kiểu reveal với reception-card */
.bride-reception-card {
  opacity: 0;
  transform: translateY(45px) scale(0.95);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.1s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.1s;
  will-change: opacity, transform;
}
.bride-reception-card.visible,
.visible .bride-reception-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.rb-weekday,
.rb-date,
.rb-lunar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.rb-weekday { transition-delay: 0.2s; }
.rb-date { transition-delay: 0.32s; }
.rb-lunar { transition-delay: 0.42s; }
.rb-time-col:first-child {
  opacity: 0;
  transform: translateX(calc(-1 * var(--slide-distance-medium, 70px))) scale(0.9);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.5s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.5s;
}
.rb-time-col:last-child {
  opacity: 0;
  transform: translateX(var(--slide-distance-medium, 70px)) scale(0.9);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.5s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.5s;
}
.rb-venue {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.65s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.65s;
}
.rb-direction {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.8s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.8s;
}
.visible .rb-weekday,
.visible .rb-date,
.visible .rb-lunar,
.visible .rb-time-col:first-child,
.visible .rb-time-col:last-child,
.visible .rb-venue,
.visible .rb-direction,
.bride-reception-card.visible .rb-weekday,
.bride-reception-card.visible .rb-date,
.bride-reception-card.visible .rb-lunar,
.bride-reception-card.visible .rb-time-col:first-child,
.bride-reception-card.visible .rb-time-col:last-child,
.bride-reception-card.visible .rb-venue,
.bride-reception-card.visible .rb-direction {
  opacity: 1;
  transform: translate(0) scale(1);
}

.hero-headline,
.olive-display.reception-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.1s,
              transform var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.1s;
  will-change: opacity, transform;
}
.hero-section.visible .hero-headline,
.visible .hero-headline,
.visible .olive-display.reception-title,
.reception-card.visible .olive-display.reception-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-photo {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 2s ease-out 0.12s,
              transform 2.7s var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.12s;
  will-change: opacity, transform;
}
.hero-section.visible .hero-photo,
.visible .hero-photo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Album: chỉ hiện khi .olive-album.visible (observer riêng) —
   không gắn theo #gallery.visible kẻo animation chạy xong lúc lưới ảnh còn dưới màn hình */
@keyframes olive-album-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes olive-tile-in {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.olive-album:not([hidden]) {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  will-change: opacity, transform;
}
.olive-album:not([hidden]):not(.visible) .album-tile {
  opacity: 0;
  transform: translateY(32px) scale(0.94);
  will-change: opacity, transform;
}
.olive-album.visible {
  animation: olive-album-in var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.olive-album.visible .album-tile {
  animation: olive-tile-in var(--reveal-duration, 3.5s) var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.olive-album.visible .album-tile:nth-child(1) { animation-delay: 0.12s; }
.olive-album.visible .album-tile:nth-child(2) { animation-delay: 0.28s; }
.olive-album.visible .album-tile:nth-child(3) { animation-delay: 0.44s; }

@media (max-width: 359px) {
  :root { --gutter: 22px; }
  .reception-actions { flex-direction: column; }
}

/* Dòng mô tả dưới tiêu đề mục: đồng bộ theo kiểu "Mời bạn nâng ly cùng chúng mình" */
.section-header p,
.countdown-subtitle,
.dresscode-subtitle,
.olive-display.reception-title {
  margin-top: 10px;
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
}
.section-header p { margin-top: 0; }

/* Kicker "Trân trọng báo tin…" / "Tiệc cưới sẽ diễn ra vào lúc:" — cùng một format */
.announcement-text,
.reception-lead,
.rb-lead {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.65;
  text-transform: uppercase;
}
.announcement-text { margin-bottom: 8px; }
