/* ========================================================
   11. MINIMALISM DARK RED — VISUAL REFINEMENT
   ======================================================== */
:root {
  --red-primary: #5a121a;
  --red-dark: #3c0910;
  --red-light: #7b2e36;
  --red-card: #551119;
  --gold: #c09a45;
  --gold-light: #e2c987;
  --paper-bg: #fbf8f1;
  --paper-card: #fffaf4;
  --ink: #351719;
  --muted: #806366;
  --shadow-card: 0 5px 10px rgba(55, 22, 19, .28);
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
}

body {
  background: #e4dcce url("../assets/rough-paper.png") center top / auto repeat;
  font-family: var(--font-body);
  line-height: 1.45;
}

.app-container {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 0 28px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper-bg);
  background-image: url("../assets/rough-paper.png");
  background-size: 100% auto;
  background-repeat: repeat-y;
  box-shadow: 0 0 30px rgba(44, 26, 20, .12);
  transition: opacity 2.2s ease, transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.invite-opening .app-container,
body.invite-open .app-container {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.app-container::before {
  display: none !important;
}

/* Nền hoa sen chìm nghệ thuật (Thay thế nền ngôi nhà) */
.lotus-bg-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lotus-bg-img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* 1. Hoa sen nét mảnh góc trên bên trái */
.lotus-bg-top-left {
  top: 10px;
  left: -20px;
  width: clamp(210px, 48vw, 300px);
  height: auto;
  opacity: 0.28;
}

/* 2. Cành sen nở góc dưới bên trái */
.lotus-bg-bottom-left {
  top: 540px;
  left: -35px;
  width: clamp(190px, 44vw, 280px);
  height: auto;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 95%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 95%);
}

/* 3. Búp sen sóng nước góc bên phải */
.lotus-bg-right {
  top: 300px;
  right: -70px;
  width: clamp(190px, 45vw, 290px);
  height: auto;
  opacity: 0.28;
}

.reveal-section {
  width: 88%;
  max-width: 420px;
  margin: 0 auto 16px;
  transform: translateY(16px);
  transition-duration: .7s;
}

.floating-music {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #681720 0%, #450c12 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(35, 8, 12, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-music .music-inner-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.floating-music .music-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

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

.floating-music:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(35, 8, 12, 0.55);
}

/* Hero Theme Refinement */
.hero-section {
  width: 100%;
  max-width: none;
  min-height: auto;
  padding-top: 48px;
  padding-bottom: 24px;
  margin-bottom: 0;
  position: relative;
}

.hero-kicker {
  margin-top: -18px;
  margin-bottom: 73px; /* 55 + 18: chữ lên, phong bì giữ chỗ */
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  letter-spacing: .25em;
  font-weight: 700;
}

.envelope-stage {
  width: min(315px, 78vw);
  height: 365px;
  margin: 0 auto 0;
}

.envelope-back {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: url("../assets/envelope-background.webp") center / 100% 100% no-repeat;
  box-shadow: none;
}

.envelope-back::before { display: none; }

.envelope-photo-wrap {
  position: absolute;
  top: 2%;
  left: 26%;
  right: auto;
  width: 58%;
  height: 68%;
  z-index: 2 !important;
  transform: rotate(7deg);
  transform-origin: 50% 85%;
  animation: heroPhotoFloat 6s ease-in-out infinite;
}

.envelope-photo-wrap:hover {
  animation-play-state: paused;
  transform: rotate(5deg) scale(1.02);
}

.photo-frame {
  padding: 6px 6px 21px;
  border-radius: 0;
  box-shadow: 0 7px 13px rgba(0,0,0,.2);
}

.hero-peony-deco {
  position: absolute;
  top: 1%;
  left: -1%;
  width: 46%;
  height: 72%;
  z-index: 46!important;
  pointer-events: none;
  object-fit: contain;
  transform: rotate(-10deg);
  transform-origin: 30% 90%;
  mix-blend-mode: normal;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,.25));
  animation: heroFlowerSway 5.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 89%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 89%);
}

@keyframes heroPhotoFloat {
  0%, 100% {
    transform: rotate(7deg) translateY(0);
  }
  40% {
    transform: rotate(5.2deg) translateY(-5px) scale(1.012);
  }
  75% {
    transform: rotate(8.2deg) translateY(-2px) scale(0.995);
  }
}

@keyframes heroFlowerSway {
  0%, 100% {
    transform: rotate(-12deg) translateY(0) scale(1);
  }
  45% {
    transform: rotate(-8.5deg) translateY(-3px) scale(1.02);
  }
  80% {
    transform: rotate(-14.5deg) translateY(2px) scale(0.99);
  }
}

.envelope-front-flaps {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: url("../assets/envelope-cover.webp") bottom center / 100% 100% no-repeat;
  z-index: 5 !important;
  pointer-events: none;
}

.envelope-front-flaps::before,
.envelope-front-flaps::after { display: none; }


.hero-title-box { margin: 34px auto 38px; }

.hero-invite-guest {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #481015;
  text-align: center;
  margin: 14px auto 0;
  line-height: 1.4;
}

.hero-names {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 6.2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.015em;
  color: #481015;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-names .amp {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 4.2vw, 2.15rem);
  font-weight: 400;
  color: #481015;
  line-height: 1.15;
  margin: 2px 0 3px;
  display: block;
}

.hero-quote { display: none; }

/* Shared Burgundy Paper Cards */
.red-card,
.reception-card,
.timeline-card {
  border: 0;
  border-radius: 10px;
  color: #fff9ef;
  background: #551119 url("../assets/rough-paper.png") center / cover;
  background-blend-mode: multiply;
  box-shadow: var(--shadow-card);
}

.card-flower-right,
.card-flower-left {
  display: none !important;
}

.card-flower-lotus-wrap {
  position: absolute;
  top: 30%;
  right: -48px;
  width: 185px;
  max-width: 48vw;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.card-flower-lotus-right {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(4px 8px 18px rgba(35, 10, 15, 0.4));
  transform-origin: 65% 90%;
  animation: lotusBouquetSway 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes lotusBouquetSway {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-6px) rotate(2.5deg) scale(1.02);
  }
  50% {
    transform: translateY(-2px) rotate(-1.8deg) scale(1.01);
  }
  75% {
    transform: translateY(-8px) rotate(1.8deg) scale(1.025);
  }
}

.red-card { min-height: 786px; padding: 34px 22px 30px; overflow: visible; position: relative; }
.red-card > *:not(.card-flower-lotus-wrap):not(img) { position: relative; z-index: 1; }

.card-heading {
  margin-bottom: 26px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #d6bfa8;
}

.card-heading::after { display: none; }

.parents-grid {
  gap: 18px;
  min-height: auto;
  padding: 0 4px 18px;
  margin-bottom: 24px;
  border-bottom: none;
  align-items: stretch;
}

.parents-grid::after { background: rgba(214, 191, 168, 0.2); }

.family-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.family-side small {
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: .75rem;
  letter-spacing: .04em;
  color: #caa58a;
  text-transform: uppercase;
}

.family-side h4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  font-size: clamp(0.78rem, 3.35vw, 0.9rem);
  line-height: 1.45;
  font-weight: 600;
  color: #d6bfa8;
  text-align: center;
  min-height: calc(1.45em * 2); /* luôn chỗ 2 dòng → địa chỉ bắt đầu cùng hàng */
  white-space: nowrap;
}

.family-side p {
  margin-top: 7px;
  width: 100%;
  font-size: .8rem;
  line-height: 1.35;
  color: #caa58a;
  text-align: center;
}

.family-side h4:empty,
.family-side p:empty {
  display: none;
}

.family-side:not(.has-parent-names) h4 {
  visibility: hidden; /* giữ chiều cao, không hiện chữ */
  color: transparent;
}

.announcement-text {
  max-width: 330px;
  margin: 0 auto 26px;
  font-size: .95rem;
  line-height: 1.55;
  letter-spacing: .05em;
  color: #dfcaa9;
  font-weight: 600;
}

.couple-highlight-names {
  display: flex;
  min-height: 235px;
  margin-bottom: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.groom-name,
.bride-name { 
  font-size: 2rem; 
  font-weight: 400; 
  color: #d6bfa8; 
}

.role-badge {
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: .74rem;
  letter-spacing: .06em;
  color: #caa58a;
}

.couple-highlight-names .amp {
  margin: 8px 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #caa58a;
}

.ceremony-note {
  max-width: 330px;
  margin: 0 auto 14px;
  font-size: .95rem;
  line-height: 1.5;
  letter-spacing: .05em;
  color: #dfcaa9;
  font-weight: 600;
}

.ceremony-time-badge {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 6px;
}

.ceremony-time-badge .time {
  font-family: var(--font-title);
  font-size: .95rem;
  letter-spacing: .06em;
  color: #dfcaa9;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.ceremony-time-badge .date-big {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 7px 0;
  color: #d6bfa8;
  letter-spacing: .04em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.ceremony-time-badge .lunar {
  font-size: .86rem;
  font-style: normal;
  color: #d6bea7;
}

/* Gallery Section Refinement */
#gallery {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 458px;
  padding-top: 34px;
  overflow: hidden;
  background: transparent;
}



#gallery > * {
  position: relative;
  z-index: 1;
}



.section-header { margin-bottom: 23px; }
.section-header h2 { font-size: 18px; letter-spacing: .08em; }
.section-header p { display: none; }

.gallery-carousel {
  position: relative;
  width: 100%;
  height: 350px;
  perspective: 900px;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  margin: 15px 0 10px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: block;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(210px, 56vw);
  height: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(35, 8, 12, 0.28);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease, filter 0.55s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
}

.slide-caption { display: none; }

.carousel-btn {
  display: flex !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 8, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  z-index: 25;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(85, 17, 25, 0.95);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

.carousel-dots { gap: 6px; margin-top: 14px; }
.carousel-dot { width: 6px; height: 6px; background: rgba(90,18,26,.25); }
.carousel-dot.active { width: 18px; background: var(--red-primary); }

/* Reception Section Refinement */
#reception {
  margin-bottom: 16px;
  position: relative;
}

#reception::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -110px;
  width: clamp(240px, 55vw, 360px);
  height: 560px;
  z-index: 0;
  opacity: .24;
  background: url("../assets/25920b9a-3e81-4e3c-9fc1-eff6a3847b35.png") right center / contain no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0) 95%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0) 95%);
  pointer-events: none;
}

.reception-card {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 38px 24px 34px;
  overflow: visible;
}

.reception-card::before {
  content: none !important;
  display: none !important;
}

.reception-card > *:not(img) {
  position: relative;
  z-index: 6;
}

.reception-header small { display: none; }
.reception-header h3 {
  margin-bottom: 22px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d6bfa8;
}

.reception-lead {
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #caa58a;
}

.reception-day-time {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto 8px;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #caa58a;
  text-transform: uppercase;
}

.reception-date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 8px;
}

.reception-date-num {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 2.9rem;
  font-weight: 500;
  line-height: 1;
  color: #d6bfa8;
}

.reception-date-divider {
  width: 1px;
  height: 38px;
  background: rgba(214, 191, 168, 0.25);
}

.reception-date-month-year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.reception-date-month-year span {
  font-family: var(--font-title);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #caa58a;
}

.reception-date-month-year strong {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: #d6bfa8;
}

.reception-lunar {
  margin: 10px auto 22px;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #caa58a;
}

.reception-times {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.reception-time-col small {
  display: block;
  font-family: var(--font-title);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #caa58a;
  margin-bottom: 4px;
}

.reception-time-col strong {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: #d6bfa8;
}

/* Tờ Lịch Giấy Kem Mini */
.calendar-paper {
  max-width: 295px;
  min-height: auto;
  margin: 0 auto 20px;
  padding: 16px 18px 16px;
  border: 0;
  border-radius: 12px;
  background: #ede6d8;
  background-image: url("../assets/rough-paper.png");
  background-size: cover;
  box-shadow: 0 8px 24px rgba(25, 4, 7, 0.35);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.calendar-paper-title {
  font-family: "Playfair Display", "Cormorant Garamond", cursive, Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #561118;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(86, 17, 24, 0.2);
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: .68rem;
  font-weight: 600;
  color: #724d52;
  margin-bottom: 6px;
  padding-bottom: 0;
  border: none;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}

.calendar-grid-days span {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: .75rem;
  color: #3b2326;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-grid-days .wedding-day {
  background: #460c12;
  color: #ffffff !important;
  border-radius: 50%;
  font-weight: 700;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.calendar-grid-days .wedding-day::after {
  content: "♥";
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 8px;
  color: #c9a24a;
}

.countdown-container { display: none; }

.reception-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.btn-gold-outline {
  padding: 0;
  border: 0;
  border-radius: 0;
  font-family: var(--font-title);
  font-size: .8rem;
  color: #f7ede2;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

.btn-gold-outline:hover {
  color: #ffffff;
}

.btn-cream-solid {
  padding: 11px 32px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f7ede2 !important;
  color: #5a121a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cream-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Venue Section Refinement */
#venue {
  position: relative;
  width: 88%;
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 38px 0 25px;
  overflow: visible;
  background: transparent;
}



#venue > * {
  position: relative;
  z-index: 1;
}

.venue-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.venue-heading {
  display: block;
  margin: 0 auto 12px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #511419;
}

.venue-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto 6px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  color: #511419;
  text-align: center;
}

.venue-address {
  display: block;
  max-width: 480px;
  margin: 0 auto 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: #6b4f4f;
  text-align: center;
}

.venue-location-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #7b1822;
  stroke: #7b1822;
  stroke-width: 2.2px;
  margin-top: -2px;
}

.map-embed-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 310px;
  margin: 0 auto 22px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(35, 10, 15, 0.22);
  border: 1px solid rgba(90, 18, 26, 0.15);
  background: #eae4da;
}

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

.venue-direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: #511419 !important;
  color: #f7ede2 !important;
  border: 1px solid #511419 !important;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(81, 20, 25, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.venue-direction-btn .direction-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.venue-direction-btn:hover {
  background: #6b1c24 !important;
  color: #ffffff !important;
  border-color: #6b1c24 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(81, 20, 25, 0.32);
  text-decoration: none !important;
}

.venue-direction-btn:hover .direction-icon {
  stroke: currentColor;
  transform: translate(2px, -2px);
}

/* Dress Code Refinement */
#dresscode {
  position: relative;
  min-height: 180px;
  margin-bottom: 28px;
  padding-top: 24px;
  overflow: visible;
  background: transparent;
}

#dresscode::before {
  display: none !important;
}

#dresscode > * {
  position: relative;
  z-index: 1;
}

#dresscode .section-header { margin-bottom: 16px; }
#dresscode .section-header h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #511419;
  margin-bottom: 4px;
}
#dresscode .section-header p {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .98rem;
  font-weight: 500;
  color: #511419;
  margin-top: 0;
}
.color-swatches { gap: 14px; margin-top: 14px; }
.swatch-circle { width: 36px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.9); box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.swatch-item span { display: none; }

/* Timeline Refinement */
#timeline {
  position: relative;
}

#timeline::before {
  display: none !important;
}

.timeline-card {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 40px 24px 36px;
  overflow: visible;
}

.timeline-card::before {
  display: none !important;
}

.timeline-card > * {
  position: relative;
  z-index: 6;
}

.timeline-card .card-heading {
  text-align: center;
  margin-bottom: 28px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e5d1bd;
}

.timeline-list {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(214, 191, 168, 0.25);
  transform: translateX(-50%);
  z-index: 1;
  display: block;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.timeline-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
}

.timeline-time {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #caa58a;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  white-space: nowrap;
}

.timeline-line-col {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.timeline-dot {
  position: static;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #caa58a;
  box-shadow: 0 0 0 2px rgba(202, 165, 138, 0.25);
  display: block;
}

.timeline-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 18px;
}

.timeline-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.04rem;
  font-weight: 500;
  color: #caa58a;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}

/* Countdown Section Refinement */
#countdown {
  position: relative;
  overflow: visible;
}

#countdown::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -40px;
  width: clamp(210px, 48vw, 310px);
  height: 600px;
  z-index: 0;
  opacity: 0.28;
  background: url("../assets/61db62d4-a721-49b5-a350-f8d196bb596c.png") left top / contain no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 98%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 98%);
  pointer-events: none;
}

#countdown > * {
  position: relative;
  z-index: 1;
}

#love-story { display: none; }

/* Guestbook Refinement */
#guestbook {
  position: relative;
  width: 88%;
  max-width: 440px;
  margin: 0 auto 34px;
  padding: 20px 0 10px;
  overflow: visible;
  background: transparent;
  min-height: auto;
}

#guestbook::before { display: none; }

.guestbook-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 24px;
  background: #f7f1e6;
  border-radius: 20px;
  padding: 26px 18px 20px;
  border: 1px solid rgba(81, 20, 25, 0.14);
  box-shadow: 0 10px 28px rgba(48, 23, 20, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: visible;
}

.guestbook-card::before { display: none; }

.guestbook-flower-left { display: none !important; }

.guestbook-heading {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #511419;
  text-align: center;
  margin: 0 0 16px;
}

.guestbook-form {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  max-width: 100%;
}

.guestbook-form .form-input,
.guestbook-form .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.2px solid #511419;
  background: #fbf7ef;
  font-family: "Lora", "Cormorant Garamond", Georgia, serif;
  font-size: 16px; /* >=16px: Safari iOS không auto-zoom khi focus */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
  color: #3b1318;
  outline: none;
  transition: all 0.2s ease;
}

.guestbook-form .form-input::placeholder,
.guestbook-form .form-textarea::placeholder {
  color: rgba(81, 20, 25, 0.52);
  font-style: italic;
  font-family: "Lora", "Cormorant Garamond", Georgia, serif;
  font-size: 16px; /* giữ >=16px để WebView không zoom khi hiện placeholder */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.guestbook-form .form-input:focus,
.guestbook-form .form-textarea:focus {
  border-color: #511419;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(81, 20, 25, 0.1);
}

.guestbook-form .form-textarea {
  min-height: 80px;
  resize: vertical;
}

.guestbook-actions {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.btn-wish-icon {
  position: relative;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #decbb8;
  background: #ebe0d2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #511419;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.btn-wish-icon:hover {
  background: #decbb8;
  color: #511419;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(81, 20, 25, 0.15);
}

.btn-submit-wish {
  padding: 8px 24px;
  border-radius: 999px;
  background: #511419;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(81, 20, 25, 0.25);
  transition: all 0.2s ease;
}

.btn-submit-wish:hover {
  background: #3e0c10;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(81, 20, 25, 0.35);
}

.wishes-list {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.wishes-list::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

.wishes-list::-webkit-scrollbar:horizontal {
  display: none;
  height: 0px;
}

.wishes-list::-webkit-scrollbar-track {
  background: rgba(81, 20, 25, 0.06);
  border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(142, 56, 65, 0.55);
  border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
  background: #511419;
}

.wish-item {
  background: #faf4eb;
  border: 1px solid rgba(81, 20, 25, 0.12);
  border-radius: 9px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(81, 20, 25, 0.03);
  animation: fadeIn 0.4s ease;
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.wish-author {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: #511419;
}

.wish-time {
  font-family: "Playfair Display", "Lora", serif;
  font-size: 0.74rem;
  color: #8a6c6e;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
}

.wish-message {
  font-family: var(--font-body), "Lora", "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #3b1318;
  line-height: 1.5;
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Modal Gợi Ý Lời Chúc */
.wish-suggestions-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.wish-modal-card {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.25s ease;
}

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

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

.wish-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wish-modal-icon {
  font-size: 1.15rem;
}

.wish-modal-title h3 {
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.wish-modal-close {
  background: none;
  border: 0;
  font-size: 1.25rem;
  color: #888888;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.wish-modal-close:hover {
  color: #111111;
}

.wish-modal-subtitle {
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  color: #666666;
  margin: 0 0 14px;
  line-height: 1.4;
}

.wish-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-suggestion-item {
  padding: 11px 13px;
  background: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 8px;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.84rem;
  color: #333333;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wish-suggestion-item:hover {
  border-color: #511419;
  background: #fffaf5;
  color: #511419;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(81, 20, 25, 0.08);
}

.wish-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn-modal-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #d4d8de;
  background: #ffffff;
  color: #333333;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-refresh:hover {
  border-color: #511419;
  color: #511419;
  background: #fffaf5;
}

.btn-modal-cancel {
  padding: 8px 24px;
  border-radius: 6px;
  border: 0;
  background: #e8ecf1;
  color: #4a5568;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #dde2e8;
  color: #1a202c;
}

/* Gift Section Refinement */
#gift {
  position: relative;
  width: 88%;
  max-width: 420px;
  min-height: auto;
  margin: 0 auto 8px;
  padding: 30px 20px 16px;
  overflow: visible;
  background: transparent;
}

#gift .gift-flower-right {
  position: absolute !important;
  top: 50px;
  right: -100px;
  width: clamp(180px, 42vw, 250px);
  height: auto;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 96%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 96%);
  object-fit: contain;
  pointer-events: none;
}

#gift > *:not(.gift-flower-right) {
  position: relative;
  z-index: 1;
}

footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 8px 20px 28px;
  border-top: none;
  background: transparent;
}
