/* =====================================================================
   THIỆP CƯỚI ONLINE - PHONG CÁCH AURORA WEDDING (CHUẨN VIDEO FULL)
   Tông màu: Xanh rêu đậm (#27321C / #013E15) & Giấy kem vân nổi (#F5F4F0)
   ===================================================================== */

:root {
  --card-width: 420px;
  --olive-dark: #27321c;
  --emerald-deep: #013e15;
  --forest-gallery: rgba(20, 45, 21, 0.86);
  --sage-accent: #4e6437;
  --paper-bg: #f5f4f0;
  --paper-text: #223522;
  --white: #ffffff;
  --muted-light: #dedede;
  --gift-btn: #444242;
  --thankyou-band: rgba(158, 158, 158, 0.86);
  --footer-bg: #dcdcdc;

  --font-script: "Dancing Script", cursive;
  --font-script-vi: "Dancing Script", cursive;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-noto-serif: "Noto Serif", Georgia, serif;
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-quicksand: "Quicksand", sans-serif;
  --font-condensed: "Barlow Condensed", sans-serif;
  --font-baloo: "Baloo Bhaina 2", sans-serif;
  --font-slab: "Roboto Slab", serif;
  --font-philosopher: "Philosopher", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #ffffff;
  color: #1f2a1d;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================================================================
   KHUNG CỘT 420PX CĂN GIỮA CHUẨN MOBILE-CARD
   ===================================================================== */
.invitation-wrapper {
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.section-paper {
  background-color: var(--paper-bg);
  background-image:
    radial-gradient(rgba(39, 50, 28, 0.03) 1px, transparent 0),
    radial-gradient(rgba(39, 50, 28, 0.025) 1px, transparent 0),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(235, 233, 226, 0.35) 100%);
  background-size: 24px 24px, 16px 16px, 100% 100%;
  background-position: 0 0, 8px 8px, 0 0;
}

/* =====================================================================
   0. MÀN RÈM MỞ ĐẦU (#curtain)
   ===================================================================== */
#curtain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: transform 2.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  display: flex;
  align-items: center;
}

.curtain-left {
  left: 0;
  width: 51vw;
  justify-content: flex-end;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 8px
    ),
    radial-gradient(circle at 30% 30%, #d4dcc6 0%, #c1cbb2 60%, #b5c0a4 100%);
  box-shadow: inset -6px 0 18px rgba(0, 0, 0, 0.08);
}

.curtain-right {
  right: 0;
  width: 51vw;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 70% 25%, rgba(74, 100, 56, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 30% 75%, rgba(20, 35, 16, 0.55) 0%, transparent 60%),
    linear-gradient(155deg, #334829 0%, #26381e 50%, #1f2f18 100%);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.28);
}

.curtain-lace {
  width: min(210px, 44vw);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.lace-left { margin-right: -8px; }
.lace-right { margin-left: -8px; }

#curtain.open .curtain-left { transform: translateX(-104%); }
#curtain.open .curtain-right { transform: translateX(104%); }

/* =====================================================================
   1. HERO / COVER
   ===================================================================== */
.section-hero {
  position: relative;
  width: 100%;
  height: 654px;
  overflow: hidden;
  background: #182114;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroKenBurns 14s ease-out forwards;
}

.hero-floral-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.hero-floral-img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: top center;
  opacity: 0.94;
  animation: heroFloralSway 8s ease-in-out infinite;
}

@keyframes heroFloralSway {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(2px) scale(1.012); }
}

@keyframes heroKenBurns {
  0% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 295px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 85%, #000000 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  text-align: center;
  color: var(--white);
  padding: 0 18px;
  z-index: 2;
}

.hero-script {
  font-family: var(--font-script-vi);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.65));
}

.hero-script span {
  display: inline-block;
  padding: 0 2px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-script .hw-1 {
  background-image: linear-gradient(135deg, #ffd6cc 0%, #f598a8 52%, #e06384 100%);
}

.hero-script .hw-2 {
  background-image: linear-gradient(135deg, #fff5b8 0%, #f4c653 52%, #d4921e 100%);
}

.hero-script .hw-3 {
  background-image: linear-gradient(135deg, #c9f7d6 0%, #6ce09a 52%, #29b36b 100%);
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(23px, 6.4vw, 29px);
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.name-with-saint {
  position: relative;
  display: inline-block;
  padding-top: 14px;
}

.saint-tag {
  position: absolute;
  top: 0;
  left: 1px;
  font-family: var(--font-script-vi);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  text-transform: none;
  color: #f3d78e;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.portrait-name-wrap {
  padding-top: 15px;
}

.portrait-name-wrap .saint-tag {
  font-size: 16px;
  left: 2px;
}

.footer-name-wrap {
  padding-top: 10px;
}

.footer-name-wrap .saint-tag {
  font-size: 10.5px;
  color: #3f5734;
  text-shadow: none;
  left: 0;
}

.hero-date {
  font-family: var(--font-noto-serif);
  font-size: 21px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.95);
}

/* =====================================================================
   2. COUPLE INTRODUCTION (#27321C)
   ===================================================================== */
.section-couple {
  position: relative;
  background: var(--olive-dark);
  color: var(--white);
  padding: 62px 32px 58px;
  overflow: visible;
}

.floral-corner {
  position: absolute;
  top: -78px;
  right: -12px;
  width: 245px;
  height: auto;
  pointer-events: none;
  z-index: 3;
}

.couple-quote {
  text-align: center;
  position: relative;
  z-index: 4;
  margin-bottom: 40px;
}

.quote-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.quote-divider {
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, 0.8);
  margin: 14px auto 16px;
}

.quote-sub {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.portrait-card {
  position: relative;
  width: 100%;
  height: 452px;
  border-radius: 44px;
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.portrait-card:last-child { margin-bottom: 0; }

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.9s ease;
}

.portrait-card img.groom-solo-crop {
  object-position: center 34%;
  transform: scale(1.16);
}

.portrait-card:hover img.groom-solo-crop {
  transform: scale(1.2);
}

.portrait-card:hover img { transform: scale(1.03); }

.portrait-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.86) 85%, #000000 100%);
}

.portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.portrait-role {
  display: block;
  font-family: var(--font-script-vi);
  font-size: 46px;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 2px;
}

.portrait-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================================================================
   3. THÔNG TIN LỄ CƯỚI & LỄ THÀNH HÔN (Y CHANG MẪU index_backup.html)
   ===================================================================== */
.section-formal-backup {
  background: #faf6ee;
  color: #222222;
  font-family: "Montserrat", sans-serif;
  padding-top: 28px;
}

.hero-info-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 84%;
  margin: 0 auto 18px;
}

.hero-info-divider span {
  flex: 1;
  height: 1px;
  background: rgba(7, 50, 30, 0.28);
}

.hero-info-divider p {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #07321e;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 18px;
  position: relative;
  text-align: center;
}

.parents-grid::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  background: rgba(7, 50, 30, 0.45);
}

.family-box p {
  font-size: 11.5px;
  color: #222222;
  line-height: 1.55;
}

.family-box .addr {
  font-size: 10.5px;
  color: #444444;
  margin-top: 5px;
  line-height: 1.45;
}

.small-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 14px;
  width: 48%;
}

.small-ornament span {
  flex: 1;
  height: 1px;
  background: rgba(7, 50, 30, 0.4);
}

.small-ornament i {
  font-size: 10px;
  color: #07321e;
}

.formal-section {
  padding: 8px 22px 30px;
  text-align: center;
}

.formal-kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.55;
  color: #07321e;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.formal-person-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  font-weight: 700;
  color: #731e2d;
  line-height: 1.15;
  position: relative;
  display: inline-block;
}

.saint-name {
  position: absolute;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 700;
  color: #731e2d;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.saint-left {
  top: -10px;
  left: -26px;
}

.saint-right {
  top: -10px;
  right: -26px;
}

.formal-person-role {
  font-size: 11px;
  color: #222222;
  font-weight: 600;
  margin-top: 2px;
}

.formal-amp {
  font-family: "Bonheur Royale", cursive;
  font-size: 28px;
  color: #07321e;
  margin: 8px 0;
}

.ceremony-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: #07321e;
  text-transform: uppercase;
  margin: 22px 0 12px;
}

.reception-time-big {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: #07321e;
  margin-bottom: 10px;
}

.date-triplet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.date-triplet .side {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #07321e;
  text-transform: uppercase;
}

.date-triplet .big-day {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  color: #07321e;
  padding: 0 14px;
  border-left: 1px solid rgba(7, 50, 30, 0.5);
  border-right: 1px solid rgba(7, 50, 30, 0.5);
  line-height: 1;
}

.lunar-note {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: #222222;
  margin-bottom: 16px;
}

.venue-big {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #07321e;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.venue-addr-line {
  font-size: 11.5px;
  color: #222222;
  margin-bottom: 16px;
}

.formal-map-box {
  width: 94%;
  max-width: 340px;
  margin: 14px auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d9d0c1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* =====================================================================
   3. (Cũ - giữ dự phòng) THÔNG TIN HAI HỌ, LỜI MỜI & LỄ THÀNH HÔN + CHỈ ĐƯỜNG
   ===================================================================== */
.section-invitation {
  padding: 46px 20px 38px;
  text-align: center;
  color: var(--paper-text);
}

.families-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.family-col {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.6;
  color: #2f3e2d;
}

.family-heading {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: inline-block;
  background-image: linear-gradient(135deg, #8a5a10 0%, #d49b35 45%, #e6b84c 62%, #7d4e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.family-city {
  margin-top: 2px;
  font-size: 11px;
  color: #4f5f4c;
}

.monogram-wrap {
  position: relative;
  width: 116px;
  height: 156px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-svg { width: 100%; height: 100%; }

.monogram-letters {
  position: absolute;
  inset: 0;
  font-family: var(--font-serif);
  color: #263d26;
  pointer-events: none;
}

.mono-left {
  position: absolute;
  top: 40px;
  left: 34px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.mono-right {
  position: absolute;
  bottom: 42px;
  right: 32px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.invite-text-block { margin-bottom: 20px; }

.invite-prefix {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: #3d4d3a;
  margin-bottom: 4px;
}

.invite-guest {
  font-family: var(--font-script-vi);
  font-size: 36px;
  font-weight: 600;
  color: #1f361f;
  line-height: 1.15;
  margin-bottom: 6px;
}

.invite-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: #3d4d3a;
}

.invite-couple-names {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite-person {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.invite-saint {
  font-family: var(--font-script-vi);
  font-size: 16px;
  font-weight: 600;
  color: #4a633d;
  line-height: 1;
  margin-bottom: 1px;
  padding-left: 2px;
  letter-spacing: 0.3px;
}

.invite-fullname {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  background-image: linear-gradient(135deg, #8a5a10 0%, #c9922c 50%, #7d4e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.invite-and {
  font-family: var(--font-script);
  font-size: 30px;
  color: #5a6c54;
  line-height: 0.9;
  margin: 2px 0;
}

/* Khối ngày giờ 3 tầng (20 / 12 / 26) giống video 00:21 */
.invite-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 310px;
  margin: 0 auto 20px;
}

.dt-side {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #213721;
  min-width: 88px;
}

.dt-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 18px;
  border-left: 1.5px solid rgba(39, 50, 28, 0.45);
  border-right: 1.5px solid rgba(39, 50, 28, 0.45);
  line-height: 1.05;
  gap: 2px;
}

.dt-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: #213721;
}

.dt-num-main {
  font-size: 30px;
  font-weight: 600;
  color: var(--emerald-deep);
}

/* Khối LỄ THÀNH HÔN + CHỈ ĐƯỜNG (00:22 trong video) */
.invite-ceremony {
  padding-top: 4px;
}

.ceremony-lunar {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: #465744;
  margin-bottom: 14px;
}

.ceremony-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1c351d;
  margin-bottom: 4px;
}

.ceremony-at {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #3d4d3a;
  margin-bottom: 8px;
}

.ceremony-venue {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.4;
  margin-bottom: 6px;
}

.ceremony-addr {
  font-family: var(--font-serif);
  font-size: 12px;
  color: #3d4d3a;
  line-height: 1.5;
  max-width: 310px;
  margin: 0 auto 14px;
}

.ceremony-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #162e17;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 99px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ceremony-map-btn:hover {
  background: rgba(1, 62, 21, 0.08);
  transform: translateY(-1px);
}

/* =====================================================================
   3B. ẢNH CHUYỂN TIẾP "Just MARRIED" (00:27 trong video)
   ===================================================================== */
.section-just-married {
  position: relative;
  width: 100%;
  height: 245px;
  overflow: hidden;
  background: #1a2417;
}

.just-married-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.just-married-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
}

.just-married-caption {
  position: absolute;
  left: 20px;
  bottom: 14px;
  color: var(--white);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}

.jm-just {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--white);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: -4px;
}

.jm-married {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* =====================================================================
   4. LỊCH THÁNG (KHOANH TRÁI TIM) & ĐẾM NGƯỢC
   ===================================================================== */
.section-calendar {
  padding: 36px 24px 46px;
  text-align: center;
  color: #1c3b22;
}

.calendar-header {
  position: relative;
  margin-bottom: 22px;
}

.cal-year {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  color: #1b3c21;
}

.cal-month {
  font-family: var(--font-script);
  font-size: 48px;
  line-height: 0.9;
  color: #2f4b32;
  margin-top: -12px;
  display: inline-block;
}

.calendar-grid-wrap {
  max-width: 344px;
  margin: 0 auto 30px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: #1e331f;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: #2f3e2d;
}

.cal-day-cell {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-cell.is-wedding {
  font-weight: 700;
  color: #d9384a;
}

.cal-day-cell.is-groom-wedding {
  font-weight: 700;
  color: #0e7a44;
}

.cal-heart-groom {
  animation-delay: 0.45s;
}

.cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  color: #3a4c38;
}

.cal-legend-heart {
  font-style: normal;
  font-size: 12px;
  margin-right: 2px;
}

.cal-legend-heart.groom {
  color: #169458;
}

.cal-legend-heart.bride {
  color: #f04465;
}

.cal-legend-sep {
  opacity: 0.45;
}

.cal-heart-svg {
  position: absolute;
  width: 36px;
  height: 34px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  pointer-events: none;
  animation: heartPulse 2.2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: translate(-50%, -48%) scale(1); }
  50% { transform: translate(-50%, -48%) scale(1.09); }
}

.countdown-block { padding-top: 6px; }

.countdown-caption {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: #2d422d;
  margin-bottom: 18px;
}

.countdown-row {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: #1c3b22;
  line-height: 1.1;
  min-width: 44px;
}

.cd-label {
  font-family: var(--font-serif);
  font-size: 11px;
  color: #5b6d58;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* =====================================================================
   5. TIMELINE (Đã bỏ Dress code theo yêu cầu)
   ===================================================================== */
.section-timeline {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: center;
}

.timeline-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.timeline-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.timeline-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 44px 26px 52px;
}

.timeline-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.timeline-heading {
  font-family: var(--font-script);
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
  color: var(--white);
  display: inline-block;
}

.timeline-nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.timeline-slide-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #f6df9d;
  text-align: center;
  flex: 1;
}

.timeline-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.timeline-nav-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.06);
}

.timeline-viewport {
  width: 100%;
  overflow: hidden;
}

.timeline-track {
  display: flex;
  width: 100%;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.timeline-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.timeline-list {
  position: relative;
  width: 100%;
  padding: 12px 0;
}

.timeline-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.timeline-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.timeline-dot-indicator.active {
  width: 24px;
  background: #f6df9d;
}

.timeline-line {
  position: absolute;
  left: 116px;
  top: 26px;
  bottom: 26px;
  width: 2.5px;
  background: rgba(255, 255, 255, 0.85);
}

.timeline-item {
  display: grid;
  grid-template-columns: 98px 36px 1fr;
  align-items: center;
  margin-bottom: 38px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-icon {
  display: flex;
  justify-content: flex-end;
  padding-right: 10px;
}

.timeline-icon svg {
  width: 72px;
  height: 72px;
  opacity: 0.92;
}

.timeline-dot-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  display: inline-block;
}

.timeline-text { padding-left: 14px; }

.timeline-time {
  font-family: var(--font-noto-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
}

.timeline-label {
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
}

/* =====================================================================
   6. TIỆC CƯỚI VÀ LỄ THÀNH HÔN
   ===================================================================== */
.section-events {
  padding: 44px 16px 50px;
}

.events-heading {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--emerald-deep);
  text-align: center;
  margin-bottom: 36px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.event-card {
  position: relative;
  background: var(--emerald-deep);
  color: var(--white);
  border-radius: 6px;
  padding: 20px 16px 16px;
  box-shadow: 0 10px 24px rgba(1, 62, 21, 0.2);
}

.event-thumb {
  position: absolute;
  top: -22px;
  right: 16px;
  width: 132px;
  height: 94px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.event-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 12px;
  max-width: 215px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-light);
}

.event-meta-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.event-meta-row.has-thumb-clearance { max-width: calc(100% - 144px); }

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 4px;
  background: var(--white);
  color: var(--emerald-deep);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.event-btn:hover {
  background: #edf4ee;
  transform: translateY(-1px);
}

/* =====================================================================
   7. OUR MEMORIES & ALBUM ẢNH
   ===================================================================== */
.section-gallery { background: #3d513d; }

.memories-top { padding: 18px 8px 20px; }

.memories-trio {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
}

.trio-item {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.trio-left, .trio-right { height: 196px; }
.trio-center { height: 254px; }

.trio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.memories-script {
  font-family: var(--font-script-vi);
  font-size: 46px;
  font-weight: 600;
  color: var(--sage-accent);
  text-align: center;
  line-height: 1.15;
}

.golden-hour-banner {
  background: #364936;
  color: var(--white);
  padding: 22px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gh-title-wrap { max-width: 340px; margin: 0 auto 12px; }

.gh-right-row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  padding-right: 16px;
  margin-bottom: -6px;
}

.gh-of {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 46px;
  line-height: 0.9;
}

.gh-love {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 1px;
}

.gh-golden {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.8px;
  text-align: left;
  padding-left: 4px;
}

.gh-desc {
  font-family: var(--font-quicksand);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.gallery-grid {
  padding: 14px 12px 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  background: #405340;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: #2b3a2b;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.gal-item:hover img { transform: scale(1.05); }

.gal-item:nth-child(1) { grid-column: span 12; height: 248px; }
.gal-item:nth-child(2) { grid-column: span 7; grid-row: span 2; height: 454px; }
.gal-item:nth-child(3) { grid-column: span 5; height: 222px; }
.gal-item:nth-child(4) { grid-column: span 5; height: 222px; }
.gal-item:nth-child(5),
.gal-item:nth-child(6),
.gal-item:nth-child(7),
.gal-item:nth-child(8) { grid-column: span 6; height: 256px; }

.gallery-more-btn {
  width: 100%;
  padding: 14px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white);
  background: #405340;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 500;
}

.chevron-bounce { animation: bounceDown 1.6s infinite; }

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* =====================================================================
   8. SỔ LƯU BÚT (Trước Hộp mừng cưới - chuẩn video 00:47–00:56)
   ===================================================================== */
.section-guestbook {
  padding: 44px 22px 46px;
  text-align: center;
}

.guestbook-script,
.rsvp-script {
  font-family: var(--font-script-vi);
  font-size: 52px;
  font-weight: 600;
  color: #1f3320;
  line-height: 1.1;
  margin-bottom: 10px;
}

.guestbook-desc,
.rsvp-desc {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #3d4d3a;
  margin-bottom: 22px;
  line-height: 1.55;
  padding: 0 6px;
}

.guestbook-form,
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guestbook-form input,
.guestbook-form textarea,
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1px solid rgba(39, 50, 28, 0.32);
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 13px;
  color: #1f2e1e;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--emerald-deep);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 62, 21, 0.1);
}

.primary-emerald-btn {
  padding: 13px 18px;
  border-radius: 6px;
  background: var(--emerald-deep);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.primary-emerald-btn:hover:not(:disabled) {
  background: #02541d;
  transform: translateY(-1px);
}

.primary-emerald-btn:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  transform: none;
}

.is-submitting input,
.is-submitting select,
.is-submitting textarea {
  opacity: 0.65;
  pointer-events: none;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: btnSpin 0.75s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.wishes-list-wrap {
  margin-top: 22px;
  text-align: left;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(39, 50, 28, 0.12);
  border-left: 3px solid var(--emerald-deep);
  border-radius: 6px;
  padding: 10px 12px;
}

.wish-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wish-author strong { font-size: 13px; color: #1e331f; }

.wish-badge {
  font-size: 10.5px;
  color: var(--emerald-deep);
  background: #e6f0e8;
  padding: 2px 7px;
  border-radius: 99px;
}

.wish-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #3c4a3a;
}

/* =====================================================================
   9. HỘP MỪNG CƯỚI
   ===================================================================== */
.section-gift {
  position: relative;
  height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.gift-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.gift-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.gift-script {
  font-family: var(--font-script-vi);
  font-size: 66px;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 10px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.gift-subtitle {
  font-family: var(--font-serif);
  font-size: 14.5px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.95);
}

.gift-box-btn {
  width: 138px;
  height: 104px;
  border-radius: 15px;
  background: var(--gift-btn);
  border: 1.5px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  animation: giftTada 2.4s ease-in-out infinite;
  transition: background 0.25s ease;
}

.gift-box-btn:hover { background: var(--emerald-deep); }

@keyframes giftTada {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10%, 20% { transform: scale(0.95) rotate(-3deg); }
  30%, 50%, 70% { transform: scale(1.05) rotate(3deg); }
  40%, 60% { transform: scale(1.05) rotate(-3deg); }
  80% { transform: scale(1) rotate(0deg); }
}

/* =====================================================================
   10. BẠN SẼ THAM DỰ CHỨ? (Sau Hộp mừng cưới - chuẩn video 01:01–01:09)
   ===================================================================== */
.section-rsvp {
  padding: 44px 20px 46px;
  text-align: center;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rsvp-radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  border: 1px solid rgba(39, 50, 28, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  color: #1f2e1e;
  cursor: pointer;
  text-align: left;
}

.radio-box input[type="radio"] {
  width: auto;
  accent-color: var(--emerald-deep);
}

/* =====================================================================
   11. THANK YOU & FOOTER
   ===================================================================== */
.section-thankyou {
  position: relative;
  height: 466px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.thankyou-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.thankyou-band {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(20, 28, 20, 0.34) 0%,
    rgba(20, 28, 20, 0.16) 65%,
    rgba(20, 28, 20, 0) 100%
  );
  color: var(--white);
  text-align: center;
  padding: 26px 24px 16px;
  margin-bottom: 0;
}

.thankyou-title {
  font-family: var(--font-condensed);
  font-style: italic;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.thankyou-msg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.footer-bar {
  position: relative;
  z-index: 2;
  min-height: 44px;
  padding: 4px 10px;
  background: var(--footer-bg);
  color: #000000;
  font-family: var(--font-philosopher);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================================
   NÚT NỔI: PHÁT NHẠC & LÊN ĐẦU TRANG
   ===================================================================== */
.floating-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: #111111;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: transform 0.2s ease;
}

.floating-music:hover { transform: scale(1.06); }
.floating-music.playing .music-icon { animation: spinMusic 4s linear infinite; }

.floating-music.playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(1, 62, 21, 0.35);
  animation: musicRipple 1.8s ease-out infinite;
}

@keyframes spinMusic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes musicRipple {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

.floating-top {
  position: fixed;
  right: max(16px, calc(50vw - 210px + 12px));
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(155, 155, 155, 0.9);
  border: 2px solid #ae6214;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-top.visible {
  opacity: 1;
  pointer-events: auto;
  animation: floatBounce 2.2s infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =====================================================================
   MODALS: HỘP MỪNG CƯỚI & LIGHTBOX ALBUM
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.gift-modal-card {
  position: relative;
  width: 100%;
  max-width: 406px;
  background: var(--white);
  border-radius: 10px;
  padding: 26px 12px 22px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s ease;
}

.modal-backdrop.open .gift-modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 30px;
  line-height: 1;
  color: #333333;
  padding: 4px;
}

.gift-modal-title {
  font-family: var(--font-script-vi);
  font-size: 40px;
  font-weight: 700;
  color: #111111;
  line-height: 1.1;
  margin-bottom: 6px;
}

.gift-modal-sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #333333;
  margin-bottom: 18px;
  padding: 0 10px;
}

.gift-qr-single {
  max-width: 260px;
  margin: 0 auto;
}

.gift-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.gift-qr-col {
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-qr-heading {
  font-family: var(--font-baloo);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #111111;
  margin-bottom: 10px;
}

.qr-frame {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 8px 6px;
  margin-bottom: 10px;
  background: #fafafa;
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: 4px;
  background: var(--white);
}

.qr-bank-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  color: #333333;
}

.qr-bank-meta strong { color: var(--emerald-deep); }
.qr-bank-meta small { font-size: 9.5px; color: #666666; }

.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }

.qr-pill-btn {
  font-family: var(--font-slab);
  font-size: 10px;
  padding: 6px 4px;
  border-radius: 15px;
  background: #dedede;
  color: #111111;
  transition: background 0.2s ease, color 0.2s ease;
}

.qr-pill-btn:hover { background: var(--emerald-deep); color: var(--white); }

.lightbox-backdrop { background: rgba(0, 0, 0, 0.9); }

.lightbox-stage {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.lightbox-counter { color: rgba(255, 255, 255, 0.65); font-size: 12px; margin-top: 4px; }

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  font-size: 38px;
  color: var(--white);
  line-height: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* =====================================================================
   BỘ ANIMATION CHUẨN AURORA / ANIMATE.CSS THEO ĐÚNG VIDEO
   ===================================================================== */
.anim {
  opacity: 0;
  will-change: opacity, transform;
}

.anim.is-visible {
  animation-fill-mode: both;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.is-visible[data-anim="fadeInUp"] { animation-name: kfFadeInUp; }
.anim.is-visible[data-anim="fadeInDown"] { animation-name: kfFadeInDown; }
.anim.is-visible[data-anim="fadeInLeft"] { animation-name: kfFadeInLeft; }
.anim.is-visible[data-anim="fadeInRight"] { animation-name: kfFadeInRight; }
.anim.is-visible[data-anim="fadeInRightBig"] { animation-name: kfFadeInRightBig; animation-duration: 1.15s; }
.anim.is-visible[data-anim="fadeInLeftBig"] { animation-name: kfFadeInLeftBig; animation-duration: 1.15s; }
.anim.is-visible[data-anim="rotateIn"] { animation-name: kfRotateIn; animation-duration: 1.05s; }
.anim.is-visible[data-anim="bounceIn"] { animation-name: kfBounceIn; animation-duration: 0.95s; }
.anim.is-visible[data-anim="bounceInRight"] { animation-name: kfBounceInRight; animation-duration: 1s; }
.anim.is-visible[data-anim="zoomIn"] { animation-name: kfZoomIn; animation-duration: 0.9s; }

@keyframes kfFadeInUp {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfFadeInDown {
  from { opacity: 0; transform: translate3d(0, -32px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfFadeInLeft {
  from { opacity: 0; transform: translate3d(-44px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfFadeInRight {
  from { opacity: 0; transform: translate3d(44px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfFadeInRightBig {
  from { opacity: 0; transform: translate3d(110px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfFadeInLeftBig {
  from { opacity: 0; transform: translate3d(-110px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfRotateIn {
  from { opacity: 0; transform: rotate(-110deg) scale(0.75); transform-origin: center; }
  to { opacity: 1; transform: rotate(0deg) scale(1); transform-origin: center; }
}

@keyframes kfBounceIn {
  0% { opacity: 0; transform: scale3d(0.45, 0.45, 0.45); }
  45% { opacity: 1; transform: scale3d(1.08, 1.08, 1.08); }
  70% { transform: scale3d(0.95, 0.95, 0.95); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes kfBounceInRight {
  0% { opacity: 0; transform: translate3d(90px, 0, 0); }
  60% { opacity: 1; transform: translate3d(-10px, 0, 0); }
  80% { transform: translate3d(4px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kfZoomIn {
  from { opacity: 0; transform: scale3d(0.8, 0.8, 0.8); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* =====================================================================
   TOAST NOTIFICATION
   ===================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(1, 62, 21, 0.94);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

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

/* =====================================================================
   OVERLAY TIẾN TRÌNH ĐANG LƯU (CHỐNG BẤM TRÙNG DÒNG)
   ===================================================================== */
.saving-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 14, 0.58);
  backdrop-filter: blur(3px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.saving-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.saving-card {
  width: 100%;
  max-width: 290px;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  transform: scale(0.94);
  transition: transform 0.22s ease;
}

.saving-overlay.open .saving-card {
  transform: scale(1);
}

.saving-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 3.5px solid rgba(1, 62, 21, 0.16);
  border-top-color: var(--emerald-deep);
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

.saving-check {
  display: none;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--emerald-deep);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  animation: kfBounceIn 0.45s ease both;
}

.saving-overlay.is-done .saving-spinner {
  display: none;
}

.saving-overlay.is-done .saving-check {
  display: flex;
}

.saving-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 6px;
}

.saving-sub {
  font-size: 12px;
  line-height: 1.45;
  color: #556355;
}
