/* ==========================================================================
   0. LOCAL FAST-LOAD FONTS (PREVENTS FOUT & LAYOUT SHIFT)
   ========================================================================== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/cormorant-garamond-v21-vietnamese-400.woff2') format('woff2'),
       url('../assets/fonts/cormorant-garamond-v21-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/cormorant-garamond-v21-vietnamese-italic-400.woff2') format('woff2'),
       url('../assets/fonts/cormorant-garamond-v21-latin-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('../assets/fonts/cormorant-garamond-v21-vietnamese-600.woff2') format('woff2'),
       url('../assets/fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Alex Brush';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/alex-brush-v23-vietnamese-400.woff2') format('woff2'),
       url('../assets/fonts/alex-brush-v23-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --theme-bg: #f7f4ed;
  --theme-card-bg: #ffffff;
  --theme-paper-tint: #f5eee4;
  --theme-paper-warm: #fcfaf7;
  --theme-primary: #4e3626;
  --theme-primary-hover: #382417;
  --theme-text-dark: #24160c;
  --theme-text-medium: #453022;
  --theme-text-muted: #664d3c;
  --theme-border: rgba(120, 95, 78, 0.22);
  --theme-border-light: rgba(120, 95, 78, 0.12);
  
  --font-title: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Alex Brush", "Great Vibes", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(60, 40, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(60, 40, 28, 0.1);
  --shadow-polaroid: 0 10px 28px rgba(50, 32, 22, 0.14), 0 2px 6px rgba(50, 32, 22, 0.06);
  --shadow-wax: 0 6px 16px rgba(45, 26, 16, 0.28);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: #ede5da;
  background-image: radial-gradient(#dfd4c5 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--theme-text-dark);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Safari iOS: font-size < 16px trên input/textarea/select sẽ auto-zoom khi focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
input:not([type]),
textarea,
select {
  font-size: 16px !important;
}

/* ==========================================================================
   1. MÀN HÌNH BÌA MỞ THIỆP (ENVELOPE SCREEN THEO SCREENSHOT_2.PNG)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #f2e5d8 0%, #e2d2c1 100%);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}

.envelope-screen.opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

/* Ambient Particles (Cánh hoa/lá khô bay nhẹ) */
.ambient-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  top: -60px;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(60, 38, 22, 0.12));
  will-change: transform, opacity;
  z-index: 1;
}

.particle.anim-path-1 {
  animation: floatDaisyPath1 var(--fall-duration, 13s) cubic-bezier(0.35, 0.1, 0.25, 1) var(--fall-delay, 0s) infinite;
}
.particle.anim-path-2 {
  animation: floatDaisyPath2 var(--fall-duration, 15s) cubic-bezier(0.25, 0.1, 0.3, 1) var(--fall-delay, 0s) infinite;
}
.particle.anim-path-3 {
  animation: floatDaisyPath3 var(--fall-duration, 12s) cubic-bezier(0.4, 0.15, 0.2, 1) var(--fall-delay, 0s) infinite;
}
.particle.anim-path-4 {
  animation: floatDaisyPath4 var(--fall-duration, 16s) cubic-bezier(0.3, 0.1, 0.35, 1) var(--fall-delay, 0s) infinite;
}
.particle.anim-path-5 {
  animation: floatDaisyPath5 var(--fall-duration, 14s) cubic-bezier(0.35, 0.2, 0.25, 1) var(--fall-delay, 0s) infinite;
}

.particle img,
.daisy-particle-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

@keyframes floatDaisyPath1 {
  0% {
    transform: translateY(-50px) translateX(0) rotate(var(--rot-0, 0deg)) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
    transform: translateY(16vh) translateX(var(--drift-1, 45px)) rotate(var(--rot-1, 40deg)) scale(1.02);
  }
  48% {
    transform: translateY(50vh) translateX(var(--drift-2, -25px)) rotate(var(--rot-2, 140deg)) scale(0.95);
    opacity: 0.9;
  }
  78% {
    transform: translateY(82vh) translateX(var(--drift-3, 60px)) rotate(var(--rot-3, 260deg)) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift-4, 15px)) rotate(var(--rot-4, 380deg)) scale(0.88);
    opacity: 0;
  }
}

@keyframes floatDaisyPath2 {
  0% {
    transform: translateY(-50px) translateX(0) rotate(var(--rot-0, 0deg)) scale(0.88);
    opacity: 0;
  }
  20% {
    opacity: 0.92;
    transform: translateY(22vh) translateX(var(--drift-1, -55px)) rotate(var(--rot-1, -60deg)) scale(0.98);
  }
  55% {
    transform: translateY(58vh) translateX(var(--drift-2, 35px)) rotate(var(--rot-2, -150deg)) scale(1.04);
    opacity: 0.88;
  }
  80% {
    transform: translateY(84vh) translateX(var(--drift-3, -40px)) rotate(var(--rot-3, -280deg)) scale(0.92);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift-4, -65px)) rotate(var(--rot-4, -390deg)) scale(0.85);
    opacity: 0;
  }
}

@keyframes floatDaisyPath3 {
  0% {
    transform: translateY(-50px) translateX(0) rotate(var(--rot-0, 0deg)) scale(0.92);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
    transform: translateY(14vh) translateX(var(--drift-1, 20px)) rotate(var(--rot-1, 75deg)) scale(1);
  }
  38% {
    transform: translateY(40vh) translateX(var(--drift-2, 70px)) rotate(var(--rot-2, 190deg)) scale(1.05);
    opacity: 0.9;
  }
  68% {
    transform: translateY(72vh) translateX(var(--drift-3, 10px)) rotate(var(--rot-3, 310deg)) scale(0.96);
    opacity: 0.85;
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift-4, 80px)) rotate(var(--rot-4, 450deg)) scale(0.9);
    opacity: 0;
  }
}

@keyframes floatDaisyPath4 {
  0% {
    transform: translateY(-50px) translateX(0) rotate(var(--rot-0, 0deg)) scale(1);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
    transform: translateY(28vh) translateX(var(--drift-1, -30px)) rotate(var(--rot-1, 90deg)) scale(1.06);
  }
  50% {
    transform: translateY(54vh) translateX(var(--drift-2, -75px)) rotate(var(--rot-2, 180deg)) scale(0.94);
    opacity: 0.85;
  }
  75% {
    transform: translateY(80vh) translateX(var(--drift-3, 20px)) rotate(var(--rot-3, 290deg)) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift-4, -20px)) rotate(var(--rot-4, 400deg)) scale(0.86);
    opacity: 0;
  }
}

@keyframes floatDaisyPath5 {
  0% {
    transform: translateY(-50px) translateX(0) rotate(var(--rot-0, 0deg)) scale(0.85);
    opacity: 0;
  }
  18% {
    opacity: 0.95;
    transform: translateY(20vh) translateX(var(--drift-1, 60px)) rotate(var(--rot-1, -45deg)) scale(0.98);
  }
  45% {
    transform: translateY(46vh) translateX(var(--drift-2, -45px)) rotate(var(--rot-2, -130deg)) scale(1.05);
    opacity: 0.88;
  }
  72% {
    transform: translateY(76vh) translateX(var(--drift-3, 50px)) rotate(var(--rot-3, -240deg)) scale(0.95);
    opacity: 0.82;
  }
  100% {
    transform: translateY(110vh) translateX(var(--drift-4, -30px)) rotate(var(--rot-4, -360deg)) scale(0.88);
    opacity: 0;
  }
}

/* Thẻ Bìa Thiệp Trung Tâm — Tỷ lệ chuẩn thanh lịch, cân đối */
.envelope-center-card {
  position: relative;
  width: min(92vw, 560px);
  min-height: 400px;
  background: #fff7ed;
  border-radius: 18px;
  padding: 44px 48px 38px;
  text-align: center;
  box-shadow: 0 24px 65px rgba(55, 36, 22, 0.22), 0 6px 16px rgba(55, 36, 22, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: cardFloatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hoa góc Bìa thiệp: Góc trên trái (bia1.png) & Góc dưới phải (bia2.png) */
.envelope-corner-tl {
  position: absolute;
  top: -10px;
  left: -10px;
  width: clamp(190px, 30vw, 240px);
  height: auto;
  pointer-events: none;
  opacity: 0.96;
  z-index: 1;
  user-select: none;
  transform-origin: top left;
  animation: swayCornerTL 6s ease-in-out infinite alternate;
}

.envelope-corner-br {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: clamp(190px, 30vw, 240px);
  height: auto;
  pointer-events: none;
  opacity: 0.96;
  z-index: 1;
  user-select: none;
  transform-origin: bottom right;
  animation: swayCornerBR 6.5s ease-in-out infinite alternate;
}

@keyframes swayCornerTL {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.02);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes swayCornerBR {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(-2deg) scale(1.02);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media (max-width: 768px) {
  .envelope-center-card {
    padding: 42px 28px 36px;
  }
  .envelope-corner-tl {
    top: -12px;
    left: -12px;
    width: clamp(190px, 46vw, 240px);
  }
  .envelope-corner-br {
    bottom: -12px;
    right: -12px;
    width: clamp(190px, 46vw, 240px);
  }

  /* Khối Thông tin lễ cưới: Giữ nguyên 1 dòng, không được rớt chữ */
  .parents-two-col {
    padding: 0;
    gap: 8px;
    margin-bottom: 20px;
  }
  .parent-side-col {
    padding: 0 4px;
  }
  .parent-label {
    font-size: 0.82rem;
    letter-spacing: 1.8px;
    margin-bottom: 6px;
  }
  .parent-names {
    font-size: clamp(0.85rem, 3.4vw, 1.05rem);
    line-height: 1.55;
    white-space: nowrap;
  }
  .parent-location {
    font-size: clamp(0.82rem, 3vw, 0.95rem);
    white-space: nowrap;
  }
  .couple-person-item .person-name {
    font-size: 2.65rem;
  }
  .hero-names-script .hero-groom,
  .hero-names-script .hero-bride {
    font-size: 2.65rem;
  }
  .hero-names-script .hero-amp {
    font-size: 1.45rem;
    margin: -3px 0;
  }
}

@media (max-width: 480px) {
  .envelope-center-card {
    padding: 38px 20px 32px;
  }
  .envelope-corner-tl {
    top: -10px;
    left: -10px;
    width: clamp(175px, 46vw, 210px);
  }
  .envelope-corner-br {
    bottom: -10px;
    right: -10px;
    width: clamp(175px, 46vw, 210px);
  }
  .parent-names {
    font-size: clamp(0.82rem, 3.2vw, 0.98rem);
    white-space: nowrap;
  }
  .couple-person-item .person-name {
    font-size: 2.65rem;
  }
  .hero-names-script .hero-groom,
  .hero-names-script .hero-bride {
    font-size: 2.65rem;
  }
  .hero-names-script .hero-amp {
    font-size: 1.35rem;
    margin: -2px 0;
  }
}

/* Con dấu trái tim tròn trên bìa */
.envelope-heart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4b3424;
  color: #f7f3ee;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(55, 35, 20, 0.32);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 2;
}

.envelope-heart-badge:hover {
  transform: scale(1.1);
  background: #362215;
  box-shadow: 0 8px 22px rgba(55, 35, 20, 0.42);
}

.envelope-heart-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Tên cô dâu chú rể trên bìa — Font chữ thư pháp mảnh mai, trang nhã theo ảnh 2 */
.envelope-cover-names {
  font-family: var(--font-script);
  color: #362316;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease-out;
}

.envelope-cover-names .name-line {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.envelope-cover-names .name-amp {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #583f2e;
  margin: -4px 0;
  display: block;
}

/* Divider hoa văn mảnh mai */
.envelope-cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px auto 16px;
  width: 150px;
  position: relative;
  z-index: 2;
}

.envelope-cover-divider::before,
.envelope-cover-divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: rgba(110, 85, 65, 0.45);
}

.envelope-cover-divider span {
  font-size: 0.95rem;
  color: #5c4333;
}

/* Ngày cưới & Thân mời — Chữ to rõ, dễ đọc */
.envelope-cover-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #3b281b;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.envelope-cover-invite {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 3.6vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  color: #422d1f;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* Nút Mở thiệp */
.btn-envelope-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #483121;
  color: #ffffff;
  padding: 13px 46px;
  border-radius: 28px;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(55, 35, 20, 0.32);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.btn-envelope-open:hover {
  background: #342013;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(55, 35, 20, 0.42);
}

.btn-envelope-open:active {
  transform: translateY(0);
}

.btn-envelope-open .btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: btnShimmer 2.8s infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  40% { left: 140%; }
  100% { left: 140%; }
}

/* ==========================================================================
   HIỆU ỨNG MỞ THIỆP (CARD OPENING & DAISY FLOWER BURST ANIMATION)
   ========================================================================== */
.envelope-screen.opening {
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.95s;
}

.envelope-screen.opening .envelope-center-card {
  animation: cardSlideUpOut 0.95s cubic-bezier(0.22, 0.85, 0.32, 1) forwards;
}

.envelope-screen.opening .envelope-corner-tl {
  animation: cornerSlideUpTL 0.95s cubic-bezier(0.22, 0.85, 0.32, 1) forwards;
}

.envelope-screen.opening .envelope-corner-br {
  animation: cornerSlideUpBR 0.95s cubic-bezier(0.22, 0.85, 0.32, 1) forwards;
}

.envelope-screen.opening .btn-envelope-open {
  animation: btnOpenPulse 0.45s ease forwards;
}

.envelope-screen.opening .envelope-heart-badge {
  animation: heartSealPulse 0.45s ease forwards;
}

@keyframes cardSlideUpOut {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 24px 65px rgba(55, 36, 22, 0.22), 0 6px 16px rgba(55, 36, 22, 0.1);
  }
  12% {
    transform: translateY(12px) scale(0.985);
    opacity: 1;
    box-shadow: 0 16px 45px rgba(55, 36, 22, 0.18);
  }
  40% {
    transform: translateY(-25vh) scale(1.02);
    opacity: 0.95;
    box-shadow: 0 36px 90px rgba(55, 36, 22, 0.35), 0 12px 30px rgba(55, 36, 22, 0.18);
  }
  100% {
    transform: translateY(-115vh) scale(1.03);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes cornerSlideUpTL {
  0% {
    transform: rotate(0deg) translate(0, 0) scale(1);
    opacity: 0.96;
  }
  15% {
    transform: rotate(-2deg) translate(-4px, 4px) scale(0.99);
  }
  100% {
    transform: rotate(-16deg) translate(-40px, -60px) scale(1.12);
    opacity: 0;
  }
}

@keyframes cornerSlideUpBR {
  0% {
    transform: rotate(0deg) translate(0, 0) scale(1);
    opacity: 0.96;
  }
  15% {
    transform: rotate(2deg) translate(4px, 4px) scale(0.99);
  }
  100% {
    transform: rotate(16deg) translate(40px, -60px) scale(1.12);
    opacity: 0;
  }
}

@keyframes btnOpenPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.92);
    background: #342013;
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(255, 215, 140, 0.75);
  }
}

@keyframes heartSealPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.9);
    background: #342013;
  }
  100% {
    transform: scale(1.18);
    box-shadow: 0 0 40px rgba(255, 215, 140, 0.75);
  }
}

/* --------------------------------------------------------------------------
   FLOWER BURST PARTICLE EXPLOSION ON BUTTON CLICK (HOA CÚC & CÁNH HOA BUNG XÒE)
   -------------------------------------------------------------------------- */
.click-daisy-particle {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(60, 38, 22, 0.22));
  will-change: transform, opacity;
  animation: clickDaisyBurst 1.35s cubic-bezier(0.12, 0.85, 0.3, 1) forwards;
}

.click-daisy-particle img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

@keyframes clickDaisyBurst {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) rotate(var(--rot-start, 0deg)) scale(0.15);
    opacity: 1;
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.55), calc(var(--ty) * 0.55)) rotate(calc(var(--rot-start) + 50deg)) scale(1.2);
  }
  65% {
    opacity: 0.95;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.92), calc(var(--ty) * 0.92 + 10px)) rotate(var(--rot-end)) scale(0.98);
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) + 40px)) rotate(calc(var(--rot-end) + 35deg)) scale(0.55);
    opacity: 0;
  }
}

/* Ripple light pulse on button click */
.envelope-open-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 190, 0.7) 0%, rgba(245, 210, 160, 0.35) 40%, rgba(245, 210, 160, 0) 70%);
  transform: translate(-50%, -50%) scale(0.1);
  animation: rippleGlow 1.05s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}

@keyframes rippleGlow {
  0% {
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* ==========================================================================
   2. KHUNG CHÍNH WEBSITE (MAIN CONTAINER)
   ========================================================================== */
.wedding-site-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--theme-bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  box-shadow: 0 0 45px rgba(50, 32, 22, 0.14);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 24px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .wedding-site-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .hero-wedding,
  .botanical-section {
    overflow-x: hidden;
  }
}


/* ==========================================================================
   3. TOP NAVIGATION BAR (THEO DESIGN.PNG)
   ========================================================================== */
.site-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--theme-border-light);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.site-nav-links a {
  text-decoration: none;
  color: var(--theme-text-dark);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.site-nav-links a:hover {
  color: #000000;
}

.site-nav-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.site-nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--theme-text-dark);
  border-radius: 1px;
}

/* ==========================================================================
   4. SECTION ORNAMENTS & TYPOGRAPHY CHUNG
   ========================================================================== */
.botanical-section {
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.section-leaf-icon {
  width: 26px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  opacity: 0.85;
}

.section-main-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-text-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-quote-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  font-weight: 600;
  color: #24140b;
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   5. HERO SECTION (THE WEDDING OF)
   ========================================================================== */
.hero-wedding {
  padding: 16px 20px 22px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero-wedding .section-main-title {
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  letter-spacing: 3.2px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Cành hoa góc trên bên phải theo ảnh mẫu 2 */
.hero-flower-top-right {
  position: absolute;
  top: 10px;
  right: -5px;
  width: 140px;
  max-width: 25vw;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.94;
  filter: drop-shadow(0 2px 8px rgba(50, 30, 18, 0.15));
}

.hero-kicker {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 3.5px;
  color: var(--theme-text-medium);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.hero-names-script {
  font-family: var(--font-script);
  color: #38261a;
  margin-bottom: 16px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.hero-names-script .hero-groom,
.hero-names-script .hero-bride {
  display: block !important;
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(60, 40, 25, 0.08);
}

.hero-names-script .hero-amp {
  display: block !important;
  font-size: clamp(1.25rem, 3.8vw, 1.75rem);
  color: #5c4331;
  margin: -4px 0;
}

.hero-guest-invite {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px auto 14px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-guest-invite[hidden] {
  display: none !important;
}

.hero-guest-prefix {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
  color: #634734;
  letter-spacing: 0.3px;
}

.hero-guest-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #38261a;
  letter-spacing: 0.5px;
}

.hero-subquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  font-weight: 600;
  color: #22120a;
  max-width: 440px;
  margin: 0 auto 34px;
  line-height: 1.65;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
}

/* Cụm trang trí Polaroid và cành hoa lớn ôm sát ảnh */
.hero-polaroid-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 38px;
  z-index: 3;
}

/* Khung ảnh Polaroid đôi uyên ương nghiêng nghệ thuật */
.hero-polaroid-frame {
  position: relative;
  width: 440px;
  max-width: 86vw;
  background: #ffffff;
  padding: 16px 16px 48px;
  box-shadow: 0 18px 45px rgba(45, 30, 18, 0.22), 0 4px 12px rgba(45, 30, 18, 0.1);
  border-radius: 4px;
  transform: rotate(-3.5deg);
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-polaroid-frame:hover {
  transform: rotate(-2deg) scale(1.01);
}

.hero-polaroid-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Băng dính washi dán trên đỉnh ảnh — mờ nhẹ mộc mạc, đặt cao lên không đè vào đầu nhân vật */
.hero-polaroid-tape {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 110px;
  height: auto;
  z-index: 10;
  opacity: 0.58;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 4px rgba(40, 25, 15, 0.08));
  pointer-events: none;
}

/* Mảnh giấy xé Better Together ở góc dưới trái */
.hero-note-better-together {
  position: absolute;
  bottom: -18px;
  left: -26px;
  width: 145px;
  padding: 18px 14px 16px;
  background: url("../assets/decor/paper_note_plain.png") center / contain no-repeat;
  z-index: 6;
  text-align: center;
  filter: drop-shadow(0 4px 10px rgba(40, 26, 18, 0.24));
  transform: rotate(-5deg);
}

.hero-note-better-together span {
  display: block;
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: #38271c;
  line-height: 1.1;
}

/* Con dấu sáp vàng đồng ở góc dưới phải ảnh */
.hero-wax-seal {
  position: absolute;
  bottom: 12px;
  right: -24px;
  width: 86px;
  height: auto;
  z-index: 7;
  filter: drop-shadow(0 6px 16px rgba(45, 26, 14, 0.4));
  cursor: pointer;
  transition: transform 0.25s ease;
}

.hero-wax-seal:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Cành hoa khô to cao ôm sát viền phải ảnh Polaroid theo ảnh mẫu 2 */
.hero-flower-side {
  position: absolute;
  top: -60px;
  right: -175px;
  width: 275px;
  height: auto;
  pointer-events: none;
  opacity: 0.96;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(40, 26, 16, 0.18));
  transform-origin: bottom center;
  animation: swayHeroFlower 5.6s ease-in-out infinite alternate !important;
}

@media (max-width: 900px) {
  .hero-polaroid-frame {
    width: 340px;
    padding: 14px 14px 40px;
  }

  .hero-polaroid-photo {
    height: 400px;
  }

  .hero-polaroid-tape {
    width: 92px;
    top: -36px;
  }

  .hero-note-better-together {
    width: 126px;
    bottom: -14px;
    left: -20px;
  }

  .hero-note-better-together span {
    font-size: 1.4rem;
  }

  .hero-flower-side {
    right: -115px;
    width: 215px;
    top: -45px;
  }
}

@media (max-width: 480px) {
  .hero-polaroid-frame {
    width: 300px;
    padding: 12px 12px 36px;
  }

  .hero-polaroid-photo {
    height: 355px;
  }

  .hero-flower-side {
    right: -100px;
    width: 200px;
    top: -40px;
  }
}

@keyframes swayHeroFlower {
  0% {
    transform: rotate(5deg) translateY(0);
  }
  50% {
    transform: rotate(7.5deg) translateY(-3px);
  }
  100% {
    transform: rotate(5deg) translateY(0);
  }
}

/* Ngày cưới & kicker */
.hero-date-spaced {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--theme-text-dark);
  margin-bottom: 6px;
}

.hero-journey-text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-scroll-arrow {
  display: none !important;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ==========================================================================
   6. SECTION THÔNG TIN LỄ CƯỚI & HAI GIA ĐÌNH
   ========================================================================== */
.wedding-info-section {
  position: relative;
  overflow: visible;
  z-index: 3;
}

/* Khung thẻ thông tin lễ cưới — Nền trắng giảm opacity, viền mềm mại và shadow thanh lịch */
.wedding-info-card-container {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 38px 24px 34px;
  box-shadow: 0 16px 45px rgba(60, 40, 25, 0.09), 0 4px 14px rgba(60, 40, 25, 0.04);
  z-index: 2;
  box-sizing: border-box;
}

.wedding-info-decor-branch {
  position: absolute;
  left: max(-20px, calc(50% - 310px));
  right: auto;
  top: 36%;
  width: clamp(145px, 18vw, 180px);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  transform-origin: bottom left;
  transform: rotate(6deg);
  animation: swayBranchWeddingInfo 6.5s ease-in-out infinite alternate !important;
}

@keyframes swayBranchWeddingInfo {
  0% {
    transform: rotate(5deg) translateY(0);
  }
  40% {
    transform: rotate(8deg) translateY(-2px);
  }
  75% {
    transform: rotate(4deg) translateY(1px);
  }
  100% {
    transform: rotate(5deg) translateY(0);
  }
}

@media (max-width: 768px) {
  .wedding-info-card-container {
    padding: 30px 16px 26px;
    border-radius: 16px;
  }
  .wedding-info-decor-branch {
    left: -35px;
    top: 39%;
    width: 130px;
    opacity: 0.86;
  }
}

@media (max-width: 480px) {
  .wedding-info-card-container {
    padding: 26px 12px 22px;
    border-radius: 14px;
  }
  .wedding-info-decor-branch {
    top: 40%;
    left: -28px;
    right: auto;
    width: 115px;
    opacity: 0.85;
  }
}

.parents-two-col {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 580px;
  margin: 0 auto 16px;
  padding: 0 10px;
}

.parent-side-col {
  flex: 1;
  text-align: center;
  padding: 0 18px;
}

.parent-side-col:first-child {
  border-right: 1px solid var(--theme-border);
}

.parent-label {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.parent-names {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  line-height: 1.55;
  margin-bottom: 4px;
  white-space: nowrap;
}

.parent-location {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--theme-text-muted);
  white-space: nowrap;
}

/* Lời thông báo hôn lễ */
.info-announcement {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 2.8vw, 1rem);
  font-weight: 600;
  color: var(--theme-text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.7;
  max-width: 440px;
  margin: 28px auto 20px;
  text-align: center;
}

/* Tên cô dâu chú rể xếp dọc (Vertical Stack) */
.couple-vertical-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 auto 20px;
  text-align: center;
}

.couple-person-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-person-item .person-name {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  font-weight: 400;
  color: #38261a;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(60, 40, 25, 0.08);
}

.couple-person-item .person-role {
  display: block;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  margin-top: 1px;
}

.couple-stack-amp {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 3.8vw, 1.75rem);
  font-weight: 400;
  color: #5c4331;
  line-height: 1;
  margin: -4px 0;
}

/* Khối thông báo địa điểm cử hành hôn lễ */
.ceremony-venue-notice {
  text-align: center;
  margin: 22px auto 16px;
  max-width: 420px;
}

.ceremony-venue-notice .notice-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  margin-bottom: 4px;
}

.ceremony-venue-notice .notice-place {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme-text-dark);
}

/* ==========================================================================
   7. SECTION THỜI GIAN CỬ HÀNH (TIME BADGE THEO ẢNH 2)
   ========================================================================== */
.ceremony-time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 18px auto 8px;
  padding: 8px 12px;
  max-width: 380px;
}

.ceremony-time-badge .ceremony-time-line {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-text-dark);
  margin-bottom: 6px;
}

.ceremony-time-badge .ceremony-date-big {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--theme-text-dark);
  line-height: 1.15;
  margin-bottom: 6px;
}

.ceremony-time-badge .ceremony-lunar-date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--theme-text-muted);
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .botanical-section {
    padding: 38px 16px;
  }
  .parents-two-col {
    padding: 0 4px;
    margin-bottom: 20px;
  }
  .parent-side-col {
    padding: 0 10px;
  }
  .parent-names {
    font-size: clamp(0.92rem, 3.2vw, 1.05rem);
    line-height: 1.5;
  }
  .parent-location {
    font-size: clamp(0.82rem, 2.8vw, 0.9rem);
  }
}

@media (max-width: 480px) {
  .botanical-section {
    padding: 36px 12px;
  }
  .parents-two-col {
    padding: 0;
    margin-bottom: 18px;
  }
  .parent-side-col {
    padding: 0 8px;
  }
  .parent-label {
    font-size: 0.8rem;
    letter-spacing: 1.6px;
    margin-bottom: 6px;
  }
  .parent-names {
    font-size: clamp(0.84rem, 3.2vw, 0.96rem);
    line-height: 1.45;
  }
  .parent-location {
    font-size: 0.8rem;
  }
  .info-announcement {
    font-size: clamp(0.84rem, 3.4vw, 0.94rem);
    letter-spacing: 1.5px;
    margin: 22px auto 16px;
  }
  .couple-person-item .person-name {
    font-size: 2.65rem;
  }
  .couple-person-item .person-role {
    font-size: 0.72rem;
    letter-spacing: 1.8px;
  }
  .couple-stack-amp {
    font-size: 1.35rem;
    margin: -3px 0;
  }
  .ceremony-venue-notice .notice-label {
    font-size: 0.76rem;
    letter-spacing: 1.6px;
  }
  .ceremony-venue-notice .notice-place {
    font-size: 0.96rem;
    letter-spacing: 1.2px;
  }
  .ceremony-time-badge .ceremony-time-line {
    font-size: 0.92rem;
    letter-spacing: 1.6px;
  }
  .ceremony-time-badge .ceremony-date-big {
    font-size: 2.1rem;
    letter-spacing: 3px;
  }
  .ceremony-time-badge .ceremony-lunar-date {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   8. SECTION ALBUM ẢNH CƯỚI (3D COVERFLOW & LIGHTBOX)
   ========================================================================== */
.gallery-section {
  padding-bottom: 30px;
  position: relative;
  overflow: visible;
}

#gallery .gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 440px !important;
  min-height: 440px !important;
  margin: 12px auto 16px;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: max-width 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

#gallery .gallery-carousel.is-portrait {
  height: 440px !important;
  min-height: 440px !important;
  max-width: 640px;
}

#gallery .gallery-carousel.is-landscape {
  height: 420px !important;
  min-height: 420px !important;
  max-width: 760px;
}

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

#gallery .carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  min-width: 0;
  border-radius: 20px;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 40px rgba(50, 32, 20, 0.22), 0 4px 12px rgba(50, 32, 20, 0.1);
  transition: transform 0.52s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.52s ease, filter 0.52s ease, width 0.38s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, opacity;
  overflow: hidden;
  box-sizing: border-box;
  background: #f7f4ed;
}

#gallery .gallery-carousel.is-portrait .carousel-slide {
  width: min(265px, 64vw);
  height: 100%;
}

#gallery .gallery-carousel.is-landscape .carousel-slide {
  width: min(480px, 92vw);
  height: 100%;
}

#gallery .carousel-slide img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  display: block;
}

/* Nút bấm chuyển slide dạng tròn tròn theo ảnh mẫu */
#gallery .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(54, 35, 22, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(35, 20, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 25;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

#gallery .carousel-btn:hover {
  background: rgba(36, 22, 12, 0.94);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(35, 20, 10, 0.45);
}

#gallery .carousel-btn.prev {
  left: 6px;
}

#gallery .carousel-btn.next {
  right: 6px;
}

/* Dots Pagination theo phong cách tròn tròn */
#gallery .carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px auto 14px;
  width: 100%;
  padding: 0;
}

#gallery .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(90, 65, 48, 0.24);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#gallery .carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #543928;
}

/* Dải Thumbnail nhỏ bên dưới */
#gallery .gallery-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#gallery .gallery-thumbs::-webkit-scrollbar {
  display: none;
}

#gallery .gallery-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.22s ease;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  box-sizing: border-box;
}

#gallery .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  pointer-events: none;
}

#gallery .gallery-thumb:hover {
  opacity: 0.9;
}

#gallery .gallery-thumb.active {
  opacity: 1;
  border-color: #543928;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(60, 40, 25, 0.2);
  background: #ffffff;
}

@media (max-width: 768px) {
  #gallery .gallery-carousel,
  #gallery .gallery-carousel.is-portrait {
    height: 390px !important;
    min-height: 390px !important;
  }
  #gallery .gallery-carousel.is-landscape {
    height: 360px !important;
    min-height: 360px !important;
  }
}

@media (max-width: 480px) {
  #gallery .gallery-carousel,
  #gallery .gallery-carousel.is-portrait {
    height: 340px !important;
    min-height: 340px !important;
  }
  #gallery .gallery-carousel.is-landscape {
    height: 310px !important;
    min-height: 310px !important;
  }
  #gallery .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
  #gallery .carousel-btn.prev { left: 2px; }
  #gallery .carousel-btn.next { right: 2px; }
  #gallery .gallery-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   9. SECTION THÔNG TIN TIỆC CƯỚI & ĐẾM NGƯỢC (THEO ẢNH 2)
   ========================================================================== */
.reception-section {
  position: relative;
}

.reception-timing-card {
  margin: 8px auto 20px;
  max-width: 440px;
  text-align: center;
}

.reception-lead-prompt {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.reception-day-time {
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--theme-text-dark);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

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

.reception-date-num {
  font-family: var(--font-title);
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--theme-text-dark);
}

.reception-date-divider {
  width: 1px;
  height: 44px;
  background: var(--theme-border);
}

.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-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--theme-text-muted);
}

.reception-date-month-year strong {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--theme-text-dark);
}

.reception-lunar-date {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  margin: 8px auto 22px;
  text-align: center;
}

/* Lịch trình đón khách & khai tiệc sạch đẹp theo ảnh 2 */
.reception-times-clean {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin: 18px auto 24px;
  text-align: center;
}

.reception-time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reception-time-item .time-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  margin-bottom: 4px;
}

.reception-time-item .time-value {
  display: block;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--theme-text-dark);
  line-height: 1.1;
}

/* Tờ lịch giấy kem vintage mini (Calendar Paper Card) */
.calendar-paper-card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 22px 18px 20px;
  max-width: 350px;
  margin: 0 auto 24px;
  box-shadow: 0 16px 45px rgba(60, 40, 25, 0.09), 0 4px 14px rgba(60, 40, 25, 0.04);
}

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

.calendar-paper-title {
  font-family: "Playfair Display", var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #4e3626;
  margin: 0;
  text-align: center;
}

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

.calendar-grid-header {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 95, 78, 0.16);
  margin-bottom: 10px;
}

.calendar-grid-days {
  row-gap: 8px;
}

.calendar-grid-days .cal-day {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--theme-text-dark);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
}

.calendar-grid-days .cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-grid-days .cal-day.wedding-day {
  background: #4e3626;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(50, 30, 15, 0.35);
}

.calendar-grid-days .cal-day.wedding-day .wedding-day-mark {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: #c59b27;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(197, 155, 39, 0.6);
  content: "";
}

.reception-action-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-rsvp-trigger {
  background: #6e4e37;
}

.btn-rsvp-trigger:hover {
  background: #5a3e2b;
}

.countdown-box-card {
  background: var(--theme-paper-tint);
  border-radius: 14px;
  padding: 22px 18px 20px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 16px;
  border: 1px solid var(--theme-border-light);
  box-shadow: var(--shadow-sm);
}

.countdown-card-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--theme-text-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.countdown-grid-boxes {
  display: flex;
  justify-content: center;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto 18px;
}

.count-unit-col {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 8px;
  min-width: 64px;
  flex: 1;
  max-width: 90px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(120, 95, 78, 0.1);
}

.count-unit-col .unit-number {
  display: block;
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  line-height: 1.1;
}

.count-unit-col .unit-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--theme-text-muted);
  margin-top: 4px;
}

.btn-save-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--theme-primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(65, 42, 28, 0.2);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-save-calendar:hover {
  background: var(--theme-primary-hover);
  transform: translateY(-2px);
}

.btn-save-calendar img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Banner Giấy xé tay quote */
.reception-banner-quote {
  position: relative;
  max-width: 330px;
  margin: 4px auto 0;
  padding: 16px 20px;
  background: url("../assets/decor/paper_banner.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 8px rgba(40, 26, 18, 0.1));
}

.reception-banner-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: #22120a;
  line-height: 1.5;
}

/* ==========================================================================
   10. SECTION ĐỊA ĐIỂM TIỆC CƯỚI (RIVERSIDE VENUE)
   ========================================================================== */
.venue-section {
  padding-bottom: 20px;
}

.venue-building-art {
  width: min(88%, 320px);
  height: auto;
  margin: 0 auto 14px;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 8px rgba(50, 32, 20, 0.06));
}

.venue-name-title {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--theme-text-dark);
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.35;
  text-align: center;
}

.venue-pin-icon {
  width: 17px;
  height: auto;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.9;
  align-self: flex-start;
  margin-top: -1px;
}

.venue-address-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: #2c1a0e;
  max-width: 320px;
  margin: 0 auto 12px;
  line-height: 1.45;
}

.btn-view-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
  padding: 7px 22px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 16px;
}

.btn-view-map:hover {
  background: var(--theme-primary);
  color: #ffffff;
}

.venue-special-invite {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: #2b180d;
  margin-bottom: 12px;
  line-height: 1.25;
}

.venue-landscape-wrap {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  line-height: 0;
}

.venue-landscape-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.94;
}

/* ==========================================================================
   11. SECTION DRESS CODE
   ========================================================================== */
.dresscode-section {
}

.dresscode-color-palette {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 14px;
  flex-wrap: wrap;
}

.dresscode-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 52px;
}

.dresscode-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.dresscode-swatch:hover {
  transform: scale(1.18);
}

.dresscode-swatch-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  line-height: 1.25;
  max-width: 80px;
}

.dresscode-tone-subtext {
  font-size: 0.95rem;
  color: var(--theme-text-medium);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

/* Mảnh giấy Nice People Beautiful Days kẹp hoa */
.dresscode-paper-note-clip {
  position: relative;
  max-width: 230px;
  margin: 0 auto 24px;
  padding: 18px 18px 14px;
  background: url("../assets/decor/paper_note_clip.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(45, 28, 18, 0.14));
  text-align: center;
}

.dresscode-paper-note-clip span {
  display: block;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: #3b291d;
  line-height: 1.15;
}

.dresscode-divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  margin: 20px auto 0;
}

.dresscode-divider-line::before,
.dresscode-divider-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--theme-border);
}

.dresscode-divider-line span {
  padding: 0 8px;
  color: var(--theme-text-muted);
  font-size: 0.75rem;
}

/* ==========================================================================
   12. SECTION TIMELINE NGÀY CƯỚI
   ========================================================================== */
.timeline-section {
  position: relative;
  overflow: visible;
  z-index: 3;
}

.botanical-section.timeline-section {
  overflow: visible;
}

.timeline-decor-bouquet {
  position: absolute;
  right: -55px;
  left: auto;
  top: 25%;
  width: clamp(145px, 18vw, 185px);
  height: auto;
  opacity: 0.94;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  transform-origin: bottom right;
  transform: rotate(-4deg);
  animation: swayBranchTimeline 6.8s ease-in-out infinite alternate !important;
}

@keyframes swayBranchTimeline {
  0% {
    transform: rotate(-4deg) translateY(0);
  }
  40% {
    transform: rotate(-7deg) translateY(-2px);
  }
  75% {
    transform: rotate(-3deg) translateY(1px);
  }
  100% {
    transform: rotate(-4deg) translateY(0);
  }
}

@media (max-width: 768px) {
  .timeline-decor-bouquet {
    display: none !important;
  }
}

.timeline-vertical-flow {
  position: relative;
  width: fit-content;
  min-width: min(320px, 100%);
  max-width: min(380px, 100%);
  margin: 24px auto 30px;
  padding: 0 16px;
  z-index: 2;
}

.timeline-vertical-flow::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: var(--theme-border);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-step-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  column-gap: 0;
  margin-bottom: 28px;
  position: relative;
}

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

.timeline-step-icon-badge {
  display: none;
}

.timeline-step-dot {
  position: relative;
  justify-self: center;
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--theme-primary);
  z-index: 2;
  grid-column: 2;
}

.timeline-step-time {
  grid-column: 1;
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  text-align: right;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding-right: 14px;
}

.timeline-step-content {
  grid-column: 3;
  text-align: left;
  padding-left: 14px;
}

.timeline-step-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--theme-text-dark);
  display: block;
  line-height: 1.35;
}

.timeline-reminder-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--theme-text-dark);
  max-width: 360px;
  margin: 22px auto 0;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   13. SECTION SỔ LƯU BÚT (GUESTBOOK)
   ========================================================================== */
.guestbook-section {
}

.guestbook-form-box {
  max-width: 350px;
  margin: 0 auto 28px;
  text-align: left;
}

.guestbook-input-name,
.guestbook-textarea-msg {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 16px; /* >=16px: Safari iOS không auto-zoom khi focus */
  color: var(--theme-text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.guestbook-textarea-msg {
  height: 100px;
  resize: vertical;
}

.guestbook-input-name:focus,
.guestbook-textarea-msg:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(78, 54, 38, 0.08);
}

.guestbook-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn-wish-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-wish-icon:hover {
  background: var(--theme-paper-tint, #fdfbf7);
  border-color: var(--theme-primary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(78, 54, 38, 0.15);
}

.guestbook-btn-submit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--theme-primary);
  color: #ffffff;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(65, 42, 28, 0.22);
  transition: all 0.25s ease;
}

.guestbook-btn-submit:hover {
  background: var(--theme-primary-hover);
  transform: translateY(-2px);
}

.guestbook-btn-submit svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.wishes-display-list {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  box-sizing: border-box;
}

.wishes-display-list::-webkit-scrollbar {
  width: 5px;
}

.wishes-display-list::-webkit-scrollbar-track {
  background: rgba(78, 54, 38, 0.05);
  border-radius: 10px;
}

.wishes-display-list::-webkit-scrollbar-thumb {
  background: rgba(78, 54, 38, 0.3);
  border-radius: 10px;
}

.wishes-display-list::-webkit-scrollbar-thumb:hover {
  background: var(--theme-primary);
}

.wish-single-entry {
  background: #ffffff;
  border: 1px solid var(--theme-border-light);
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.wish-single-entry:hover {
  transform: translateY(-1px);
}

.wish-entry-author {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--theme-text-dark);
  margin-bottom: 4px;
}

.wish-entry-message {
  font-size: 0.9rem;
  color: var(--theme-text-medium);
  line-height: 1.5;
  margin-bottom: 6px;
}

.wish-entry-date {
  font-size: 0.76rem;
  color: var(--theme-text-muted);
}

/* ==========================================================================
   MODAL GỢI Ý LỜI CHÚC (WISH SUGGESTIONS MODAL)
   ========================================================================== */
.wish-suggestions-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 18, 10, 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: 400px;
  background: var(--theme-bg, #ffffff);
  border: 1px solid var(--theme-border-light);
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.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.02rem;
  font-weight: 700;
  color: var(--theme-text-dark, #1a1a1a);
  margin: 0;
}

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

.wish-modal-close:hover {
  color: var(--theme-text-dark, #111111);
}

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

/* RSVP Modal Specific Centered Header */
#rsvp-modal .wish-modal-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

#rsvp-modal .wish-modal-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

#rsvp-modal .wish-modal-title h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

#rsvp-modal .wish-modal-icon {
  display: none;
}

#rsvp-modal .wish-modal-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 4px 8px;
}

#rsvp-modal .wish-modal-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#rsvp-modal-form button[type="submit"] {
  text-transform: none !important;
  letter-spacing: 0.02em;
  font-weight: 400 !important;
}

#rsvp-modal-form button[type="submit"] span {
  font-weight: 400 !important;
}

#rsvp-modal-form input,
#rsvp-modal-form select {
  height: 42px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.2 !important;
}

#rsvp-modal-form textarea {
  min-height: 52px !important;
  height: 52px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.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 var(--theme-border, #e2e4e8);
  border-radius: 8px;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.84rem;
  color: var(--theme-text-dark, #333333);
  line-height: 1.45;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.wish-suggestion-item:hover {
  border-color: var(--theme-primary, #4e3626);
  background: #fffaf5;
  color: var(--theme-primary, #4e3626);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(78, 54, 38, 0.12);
}

.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 var(--theme-border, #d4d8de);
  background: #ffffff;
  color: var(--theme-text-dark, #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: var(--theme-primary, #4e3626);
  color: var(--theme-primary, #4e3626);
  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;
}

/* ==========================================================================
   14. SECTION QUÀ MỪNG (GIFT BOX) & CẢM ƠN
   ========================================================================== */
.gift-section {
  padding-bottom: 20px;
}

.gift-envelope-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none !important;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 10px auto 16px;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

.gift-envelope-box {
  position: relative;
  display: inline-block;
  width: 230px;
  max-width: 80vw;
  margin: 0 auto;
}

.gift-envelope-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(78, 54, 38, 0.22));
  animation: giftEnvelopeFloat 4s ease-in-out infinite alternate;
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.gift-envelope-trigger:hover .gift-envelope-img {
  transform: translateY(-8px) scale(1.04) rotate(1.5deg);
  filter: drop-shadow(0 16px 32px rgba(78, 54, 38, 0.32));
}

@keyframes giftEnvelopeFloat {
  0% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
  100% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

.gift-sparkle {
  position: absolute;
  pointer-events: none;
  color: #c59b27;
  font-size: 1.1rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(197, 155, 39, 0.7);
  animation: giftSparkleTwinkle 2.8s ease-in-out infinite;
}

.gift-sparkle-1 {
  top: 14%;
  right: 12%;
  animation-delay: 0s;
}

.gift-sparkle-2 {
  top: 32%;
  left: 10%;
  font-size: 0.9rem;
  animation-delay: 1.4s;
}

@keyframes giftSparkleTwinkle {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(15deg);
  }
}

.gift-hint-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5a3e2b;
  margin-top: 14px;
  letter-spacing: .04em;
  transition: all 0.2s ease;
}

.gift-envelope-trigger:hover .gift-hint-text {
  color: var(--theme-primary, #4e3626);
  transform: translateY(-1px);
}

.gift-tnd-credit {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--theme-text-muted);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0.55;
  text-align: center;
}

.site-footer {
  display: block;
  text-align: center;
  width: 100%;
  padding: 16px 20px 28px;
  margin: 0 auto;
  background: transparent;
}

/* ==========================================================================
   15. FLOATING MUSIC BUTTON
   ========================================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(50, 32, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.1);
}

.floating-music-btn.playing {
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-music-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   16. MODAL QUÀ MỪNG (GIFT MODAL WITH QR CODES)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(30, 20, 14, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 12px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: var(--theme-paper-warm);
  border-radius: 16px;
  width: min(94vw, 480px);
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 16px 14px 16px;
  position: relative;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(78, 54, 38, 0.08);
  border: none;
  font-size: 1rem;
  color: var(--theme-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 15;
}

.modal-close-btn:hover {
  background: var(--theme-primary);
  color: #ffffff;
}

.modal-header-title {
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--theme-text-dark);
  text-align: center;
  padding: 0 34px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.gift-cols-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.gift-account-card {
  background: #ffffff;
  border: 1px solid var(--theme-border-light);
  border-radius: 12px;
  padding: 10px 8px 12px;
  text-align: center;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gift-account-title {
  display: none !important;
}

.gift-qr-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 6px;
  padding: 4px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--theme-border-light);
  box-shadow: 0 2px 6px rgba(50, 34, 24, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gift-bank-details {
  margin-bottom: 6px;
  text-align: center;
}

.gift-bank-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--theme-text-dark);
  margin-bottom: 1px;
}

.gift-bank-number {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--theme-primary);
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}

.gift-bank-owner {
  font-size: 0.68rem;
  color: var(--theme-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gift-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
  width: 100%;
}

.btn-copy-acc,
.btn-save-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(50, 34, 24, 0.1);
}

.btn-copy-acc {
  background: var(--theme-paper-tint);
  border: 1px solid var(--theme-border);
  color: var(--theme-primary);
}

.btn-save-qr {
  background: linear-gradient(135deg, #6b4d37 0%, #4e3626 100%);
  border: 1px solid #4e3626;
  color: #ffffff;
}

.btn-copy-acc:hover {
  background: var(--theme-primary);
  color: #ffffff;
  border-color: var(--theme-primary);
  transform: translateY(-1px);
}

.btn-save-qr:hover {
  background: linear-gradient(135deg, #7d5b42 0%, #5c412f 100%);
  transform: translateY(-1px);
}

.btn-copy-acc:active,
.btn-save-qr:active {
  transform: scale(0.96);
}

@media (max-width: 520px) {
  .modal-content-card {
    width: 95%;
    max-height: calc(100dvh - 24px);
    padding: 14px 8px 12px;
    border-radius: 14px;
  }

  .modal-header-title {
    font-size: 0.98rem;
    padding: 0 28px;
    margin-bottom: 8px;
  }

  .modal-close-btn {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .gift-cols-container {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .gift-account-card {
    padding: 8px 4px 10px;
    border-radius: 10px;
  }

  .gift-qr-wrapper {
    width: 88px;
    height: 88px;
    padding: 3px;
    margin-bottom: 4px;
  }

  .gift-bank-name {
    font-size: 0.70rem;
    margin-bottom: 1px;
  }

  .gift-bank-number {
    font-size: 0.80rem;
    margin-bottom: 1px;
  }

  .gift-bank-owner {
    font-size: 0.64rem;
  }

  .gift-actions-row {
    gap: 4px;
    flex-direction: column;
    width: 100%;
    padding: 0 4px;
  }

  .btn-copy-acc,
  .btn-save-qr {
    width: 100%;
    padding: 3px 6px;
    font-size: 0.66rem;
  }

  .btn-copy-acc svg,
  .btn-save-qr svg {
    width: 11px;
    height: 11px;
  }
}
}

@media (max-width: 360px) {
  .gift-qr-wrapper {
    width: 108px;
    height: 108px;
    padding: 5px;
  }

  .modal-content-card {
    padding: 14px 10px 16px;
  }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 10, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast */
.toast-notice,
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: linear-gradient(135deg, #5a3e2b 0%, #3e2819 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  box-shadow: 0 10px 28px rgba(35, 20, 10, 0.4), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10070;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

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

/* Floating Language Switcher (Dropdown) */
.floating-lang {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10001;
  user-select: none;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(253, 250, 246, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  padding: 7px 10px 7px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 42, 28, 0.12);
  transition: all 0.2s ease;
  min-width: 64px;
  justify-content: center;
}

.lang-trigger-btn:hover {
  background: #fffdf9;
  color: var(--theme-primary);
}

.lang-trigger-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.floating-lang.is-open .lang-trigger-chevron {
  transform: rotate(180deg);
}

.floating-lang.is-open .lang-trigger-btn {
  background: #fffdf9;
  color: var(--theme-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(253, 250, 246, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(60, 42, 28, 0.16);
}

.lang-dropdown[hidden] {
  display: none;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--theme-text-muted);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(78, 54, 38, 0.08);
  color: var(--theme-primary);
}

.lang-btn.active {
  background: var(--theme-primary);
  color: #ffffff;
}

/* ==========================================================================
   ELEGANT CHINESE TYPOGRAPHY (TIẾNG TRUNG TRANG NHÃ, MỀM MẠI, KHÔNG BỊ ĐẬM/THÔ)
   ========================================================================== */
html[lang="zh"],
body.lang-zh {
  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-sans: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.lang-zh {
  font-family: var(--font-serif);
}

/* Tiêu đề chính các section */
body.lang-zh .section-main-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 4px;
  color: #3b281c;
}

/* Câu trích dẫn (Bỏ faux italic làm nhòe nét chữ Hán, dùng nét thanh mảnh mềm mại) */
body.lang-zh .section-quote-italic,
body.lang-zh .hero-quote,
body.lang-zh .reception-banner-quote,
body.lang-zh .ceremony-footer-quote,
body.lang-zh .dresscode-quote {
  font-style: normal;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: #6a5343;
}

/* Thông báo hôn lễ */
body.lang-zh .wedding-announcement-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #382417;
}

/* Nhãn gia đình & vai trò */
body.lang-zh .parent-label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 2px;
  color: #2c1a0e;
}

body.lang-zh .role-label {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 3px;
  color: #664d3c;
}

/* Hero Section */
body.lang-zh .hero-kicker {
  font-weight: 400;
  letter-spacing: 3px;
}

body.lang-zh .hero-journey {
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 0.85rem;
}

/* Thời gian & địa điểm */
body.lang-zh .ceremony-day-name,
body.lang-zh .ceremony-month-label {
  font-weight: 500;
  letter-spacing: 2px;
}

body.lang-zh .ceremony-lunar-note,
body.lang-zh .ceremony-exact-time {
  font-style: normal;
  font-weight: 400;
}

body.lang-zh .venue-special-invite {
  font-style: normal;
  font-weight: 400;
  color: #6a5343;
}

body.lang-zh .dresscode-tone-subtext {
  font-weight: 400;
  letter-spacing: 2px;
}

/* Timeline & Guestbook */
body.lang-zh .timeline-time-col,
body.lang-zh .timeline-title-text {
  font-family: var(--font-serif);
  font-weight: 500;
}

body.lang-zh .timeline-time-col {
  font-weight: 600;
}

body.lang-zh .timeline-reminder-text {
  font-style: normal;
  font-weight: 300;
  color: #6a5343;
}

body.lang-zh .countdown-label {
  font-weight: 400;
  letter-spacing: 1px;
}

body.lang-zh .gift-action-card span {
  font-weight: 500;
  line-height: 1.4;
}

.wedding-load-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #4e3626;
  background: #f8f3eb;
  font: 600 18px/1.5 "Cormorant Garamond", serif;
  text-align: center;
}

/* ==========================================================================
   TỐI ƯU KHOẢNG CÁCH GỌN GÀNG TRÊN MOBILE (COMPACT SPACING)
   ========================================================================== */
@media (max-width: 768px) {
  .botanical-section {
    padding: 16px 16px;
  }
  .section-leaf-icon {
    width: 24px;
    margin: 0 auto 5px;
  }
  .section-main-title {
    margin-bottom: 6px;
  }
  .section-quote-italic {
    margin: 0 auto 12px;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .parents-two-col {
    margin: 0 auto 12px;
  }
  .info-announcement {
    margin: 10px auto;
  }
  .couple-vertical-stack {
    margin: 10px auto;
  }
  .ceremony-venue-notice {
    margin: 10px auto;
  }
  .ceremony-time-badge {
    margin: 10px auto;
  }
  .reception-timing-card {
    margin-bottom: 12px;
  }
  .reception-date-block {
    margin: 2px auto 8px;
  }
  .reception-lunar-date {
    margin: 6px auto 16px;
  }
  .reception-times-clean {
    margin: 12px auto 16px;
  }
  .calendar-paper-card {
    margin: 0 auto 14px;
    padding: 16px 14px;
  }
  .countdown-box-card {
    margin: 0 auto 12px;
    padding: 16px 14px 14px;
  }
  .countdown-grid-boxes {
    margin: 0 auto 14px;
  }
  .reception-banner-quote {
    margin: 2px auto 0;
    padding: 14px 18px;
  }
  .venue-section {
    padding-bottom: 14px;
  }
  .venue-building-art {
    margin: 0 auto 10px;
  }
  .venue-name-title {
    margin-top: 4px;
    margin-bottom: 2px;
  }
  .venue-address-text {
    margin: 0 auto 8px;
  }
  .btn-view-map {
    margin-bottom: 12px;
  }
  .venue-special-invite {
    margin-bottom: 8px;
  }
  .venue-landscape-wrap {
    margin: 10px 0 0;
  }
  .dresscode-color-palette {
    margin: 12px auto 8px;
  }
  .dresscode-divider-line {
    margin: 10px auto 0;
  }
  .timeline-vertical-flow {
    margin-top: 8px;
  }
  .timeline-step-row {
    margin-bottom: 16px;
  }
  .timeline-reminder-text {
    margin: 12px auto 0;
  }
  .guestbook-form-box {
    margin: 0 auto 14px;
  }
  .gift-envelope-trigger {
    margin: 8px auto 12px;
  }
  .gift-envelope-box {
    width: 205px;
  }
  .gift-tnd-credit {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .botanical-section {
    padding: 12px 14px;
  }
  .section-leaf-icon {
    width: 22px;
    margin: 0 auto 4px;
  }
  .section-main-title {
    margin-bottom: 4px;
  }
  .section-quote-italic {
    margin: 0 auto 10px;
    font-size: 1.05rem;
    line-height: 1.45;
  }
  .dresscode-color-palette {
    margin: 10px auto 6px;
  }
  .dresscode-divider-line {
    margin: 8px auto 0;
  }
  .timeline-step-row {
    margin-bottom: 14px;
  }
  .timeline-reminder-text {
    margin: 10px auto 0;
  }
  .countdown-box-card {
    padding: 16px 10px 14px;
  }
  .countdown-grid-boxes {
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 14px;
  }
  .count-unit-col {
    min-width: 0;
    max-width: none;
    padding: 8px 4px;
    border-radius: 8px;
  }
  .count-unit-col .unit-number {
    font-size: 1.35rem;
  }
  .count-unit-col .unit-label {
    font-size: 0.68rem;
    margin-top: 2px;
  }
  .gift-envelope-trigger {
    margin: 6px auto 10px;
  }
  .gift-envelope-box {
    width: 185px;
  }
  .gift-hint-text {
    margin-top: 10px;
    font-size: 1.05rem;
  }
  .gift-tnd-credit {
    margin-top: 0;
  }
}

@media (max-width: 375px) {
  .countdown-grid-boxes {
    gap: 6px;
  }
  .count-unit-col {
    padding: 6px 2px;
  }
  .count-unit-col .unit-number {
    font-size: 1.22rem;
  }
}

