/* ==========================================================================
   THIỆP CƯỚI HOA LỤA - HỒNG | THEME & LAYOUT STYLES
   Single Continuous Card Strip (1 dải thiệp nối liền theo đúng design.png)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET & BASE LAYOUT
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  background-color: #f7eded;
  background-image: 
    radial-gradient(circle at 50% 20%, #ffffff 0%, #f7eded 70%),
    radial-gradient(circle at 10% 80%, #fae6e8 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, #fae8ea 0%, transparent 40%);
  color: #4a2b30;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   COVER SCREEN (MÀN HÌNH BÌA THIỆP CƯỚI - assets/anhBia.png)
   -------------------------------------------------------------------------- */
.cover-screen-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fad8da;
  background-color: #fad8da;
  background: radial-gradient(circle at 50% 38%, #fff4f6 0%, #fad8da 55%, #f5c4ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
  visibility: visible;
  opacity: 1;
  overflow: hidden;
  cursor: default;
}

.cover-screen-wrapper.opened,
.cover-screen-wrapper.opening {
  animation: coverBgFadeOut 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none !important;
}

@keyframes coverBgFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  35% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

.cover-mobile-only {
  display: none !important;
}

.cover-desktop-only {
  display: flex !important;
}

.cover-card-container {
  width: 92vw;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatCoverCard 4s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Hiệu ứng khi bấm Mở thiệp: Tấm thiệp bay thẳng lên trên ra khỏi màn hình rồi biến mất */
.cover-screen-wrapper.opened .cover-card-container,
.cover-screen-wrapper.opening .cover-card-container {
  animation: coverCardFlyUp 1.25s cubic-bezier(0.35, 0, 0.15, 1) forwards !important;
  pointer-events: none !important;
}

@keyframes coverCardFlyUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  30% {
    transform: translateY(-120px) scale(0.98);
    opacity: 1;
    filter: blur(0px);
  }
  65% {
    transform: translateY(-500px) scale(0.95);
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    transform: translateY(-150vh) scale(0.92);
    opacity: 0;
    filter: blur(5px);
  }
}

.cover-card-box {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 500px;
  background: #fdf0f2;
  background-image: linear-gradient(180deg, #fff3f5 0%, #fae8eb 50%, #fcedf0 100%);
  border-radius: 36px;
  border: 1px solid rgba(223, 178, 184, 0.65);
  box-shadow: 
    0 22px 65px rgba(181, 79, 92, 0.2),
    0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s ease;
}

.cover-lotus-left {
  position: absolute;
  top: -30px;
  left: -40px;
  width: 330px;
  pointer-events: none;
  transform: scaleX(-1) rotate(5deg);
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(181, 79, 92, 0.08));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.cover-lotus-right {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 330px;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(181, 79, 92, 0.08));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.cover-screen-wrapper.opened .cover-lotus-left,
.cover-screen-wrapper.opening .cover-lotus-left {
  transform: scaleX(-1) rotate(2deg) translateY(-25px) scale(0.92);
  opacity: 0;
}

.cover-screen-wrapper.opened .cover-lotus-right,
.cover-screen-wrapper.opening .cover-lotus-right {
  transform: rotate(-2deg) translateY(-25px) scale(0.92);
  opacity: 0;
}

@keyframes floatCoverCard {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

.cover-card-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}

.cover-heart-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ebd3d7;
  background: #fffafa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  box-shadow: 0 2px 8px rgba(181, 79, 92, 0.1);
}

.cover-sub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  color: #943d49;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.cover-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0;
}

.cover-names .c-name {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 3.25rem;
  color: #943d49;
  line-height: 1.15;
  font-weight: 500;
  -webkit-text-stroke: 0.35px currentColor;
  white-space: nowrap;
}

.cover-names .c-amp {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 2.15rem;
  color: #c46270;
  margin: 2px 0;
}

.cover-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #7a464e;
  font-weight: 500;
  margin: 8px 0;
}

.cover-invite-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8a6a70;
  margin: 18px 0 10px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 4px;
  white-space: nowrap;
}

.cover-invite-label .c-line {
  display: none;
}

.cover-guest-invite-inner {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cover-guest-prefix {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9e858a;
  white-space: nowrap;
}

.cover-guest-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  font-style: italic;
  color: #8c313e;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-cover-open {
  background: linear-gradient(135deg, #ea8ea0 0%, #db7587 100%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 36px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: max-content;
  box-sizing: border-box;
  white-space: nowrap;
  margin-top: 28px;
  box-shadow: 0 6px 20px rgba(219, 117, 135, 0.45);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseOpenBtn 2.2s infinite;
}

.btn-cover-open:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 26px rgba(219, 117, 135, 0.6);
}

@keyframes pulseOpenBtn {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(219, 117, 135, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(219, 117, 135, 0.65);
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   1. AMBIENT PETALS (CÁNH SEN RƠI)
   -------------------------------------------------------------------------- */
.ambient-petals-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.petal-particle {
  position: absolute;
  top: -60px;
  background-image: url('../assets/231d65b4-3c81-4d86-b07f-e4d6651b6de8.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  filter: drop-shadow(0 3px 6px rgba(181, 79, 92, 0.15));
  animation: fallPetals linear infinite;
}

@keyframes fallPetals {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(50vh) translateX(var(--sway-x, 40px)) rotate(180deg);
  }
  100% {
    transform: translateY(110vh) translateX(calc(var(--sway-x, 40px) * -0.5)) rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   FLOWER BURST PARTICLE EXPLOSION ON BUTTON CLICK (16 CÁNH HOA SEN HỒNG)
   -------------------------------------------------------------------------- */
.click-flower-particle {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  background-image: url('../assets/flower-5petal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 6px rgba(181, 79, 92, 0.3));
  will-change: transform, opacity;
  animation: clickFlowerBurst 1.15s cubic-bezier(0.12, 0.85, 0.3, 1) forwards;
}

@keyframes clickFlowerBurst {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) rotate(var(--rot-start, 0deg)) scale(0.2);
    opacity: 1;
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)) rotate(calc(var(--rot-start) + 40deg)) scale(1.15);
  }
  70% {
    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.95);
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) + 35px)) rotate(calc(var(--rot-end) + 25deg)) scale(0.65);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   2. FLOATING CONTROLS (LANGUAGE & MUSIC)
   -------------------------------------------------------------------------- */
.floating-lang-c3 {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid #ebd3d7;
  border-radius: 18px;
  padding: 7px 10px 7px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c46270;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  min-width: 64px;
  justify-content: center;
}

.lang-trigger-btn:hover {
  background: #fff;
  color: #a14856;
  box-shadow: 0 6px 16px rgba(181, 79, 92, 0.16);
}

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

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

.floating-lang-c3.is-open .lang-trigger-btn {
  background: #fff;
  color: #a14856;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid #ebd3d7;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(181, 79, 92, 0.16);
}

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

.lang-btn {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c46270;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(217, 125, 142, 0.12);
  color: #a14856;
}

.lang-btn.active {
  background-color: #d97d8e;
  color: #ffffff;
}

.floating-music-c3 {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d97d8e;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(217, 125, 142, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.floating-music-c3:hover {
  transform: scale(1.08);
  background-color: #c96d7e;
}

.floating-music-c3.playing svg {
  animation: spinMusic 4s linear infinite;
}

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

/* --------------------------------------------------------------------------
   3. SINGLE CONTINUOUS CARD CONTAINER (900px Max-Width, Flush Full Top)
   -------------------------------------------------------------------------- */
.main-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}

body:not(.invite-opened) .main-wrapper {
  transform: translateY(12px) scale(0.985);
  opacity: 0.92;
}

body.invite-opened .main-wrapper {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wedding-single-card {
  background: #fdf7f7;
  background-image: 
    linear-gradient(180deg, #fffafa 0%, #fdf6f7 25%, #fffbfb 50%, #fcf3f4 75%, #fff8f9 100%);
  border-radius: 0;
  border-left: 1px solid rgba(223, 178, 184, 0.55);
  border-right: 1px solid rgba(223, 178, 184, 0.55);
  border-top: none;
  border-bottom: none;
  box-shadow: 
    0 18px 50px rgba(181, 79, 92, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* Base style for each connected section inside the single card */
.card-section {
  position: relative;
  width: 100%;
  padding: 36px 26px 20px 26px;
}

/* Section 1 padding */
.section-ceremony {
  padding: 0 0 24px 0;
}

.section-ceremony .card-divider-line {
  padding-left: 26px;
  padding-right: 26px;
}

/* Panel nền trắng mờ cho block thông tin lễ / tiệc */
.info-white-panel {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 18px 26px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 28px rgba(140, 49, 62, 0.1),
    0 2px 8px rgba(140, 49, 62, 0.06);
  box-sizing: border-box;
}

.info-white-panel--ceremony {
  margin-top: 28px;
  margin-bottom: 4px;
}

.info-white-panel--reception {
  margin-top: 18px;
  margin-bottom: 8px;
  padding-bottom: 22px;
}

.section-ceremony .info-white-panel .card-heading-title,
.section-ceremony .info-white-panel .parents-grid-c1,
.section-ceremony .info-white-panel .announcement-c1,
.section-ceremony .info-white-panel .couple-names-c1,
.section-ceremony .info-white-panel .ceremony-details-c1,
.section-ceremony .info-white-panel .card1-welcome-footer {
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   NHÀ TRAI / NHÀ GÁI — portrait rows (above ceremony info)
   -------------------------------------------------------------------------- */
.couple-sides-block {
  width: calc(100% - 28px);
  max-width: 700px;
  margin: 100px auto 42px auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.couple-side-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
  align-items: center;
}

.couple-side-row--bride {
  grid-template-columns: 1.05fr 1fr;
}

.couple-side-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f7e9ec;
  box-shadow: 0 8px 22px rgba(181, 79, 92, 0.12);
  border: 1px solid rgba(181, 79, 92, 0.12);
  isolation: isolate;
}

.couple-side-photo.is-empty {
  background: linear-gradient(145deg, #f7e9ec 0%, #f0d5da 100%);
}

.couple-side-photo.is-empty .couple-side-img {
  opacity: 0;
  animation: none !important;
}

.couple-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform-origin: center center;
  backface-visibility: hidden;
}

.couple-side-row--groom .couple-side-img {
  animation: couplePortraitGroom 7s ease-in-out infinite alternate;
}

.couple-side-row--bride .couple-side-img {
  animation: couplePortraitBride 8s ease-in-out infinite alternate;
}

@keyframes couplePortraitGroom {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-2.5%, -2%, 0); }
}

@keyframes couplePortraitBride {
  0% { transform: scale(1.12) translate3d(2%, -1.5%, 0); }
  100% { transform: scale(1) translate3d(0, 0, 0); }
}

.couple-side-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 6px;
  min-width: 0;
}

.couple-side-heart-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}

.couple-side-rule {
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: #e4afb7;
}

.couple-side-heart {
  color: #c47682;
  flex-shrink: 0;
}

.couple-side-family {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c313e;
  margin: 0 0 14px 0;
}

.couple-side-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c313e;
  margin-bottom: 10px;
  display: block;
}

.couple-side-name {
  font-family: 'Alex Brush', cursive;
  font-size: 2.75rem;
  font-weight: 500;
  -webkit-text-stroke: 0.4px currentColor;
  line-height: 1.05;
  color: #9f4955;
  display: block;
  margin-top: 4px;
}

.couple-side-quote {
  margin: 10px 0 0;
  max-width: 220px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: #8c5a63;
  white-space: pre-line;
}

.couple-side-quote[hidden] {
  display: none !important;
}

/* Section 2 padding */
.section-reception {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Section 3 padding */
.section-activities {
  padding-top: 24px;
  padding-bottom: 36px;
}

/* Decorative flowers */
.decor-flower {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* Section 1 Flowers matching Image 2 */
.decor-c1-top-right {
  position: absolute;
  top: 0;
  right: -48px;
  width: 680px;
  max-width: 75%;
  height: auto;
  z-index: 1;
  opacity: 0.98;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(181, 79, 92, 0.08));
}

.decor-c1-bottom-leaves {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* Background watermark flowers in Section 1 (matching design.png) */
.watermark-c1-parents-right {
  position: absolute;
  top: 970px;
  right: 14%;
  width: 170px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.watermark-c1-groom-left {
  position: absolute;
  top: 1060px;
  left: -40px;
  width: 320px;
  opacity: 0.36;
  z-index: 0;
  pointer-events: none;
}

.watermark-c1-ceremony-right {
  position: absolute;
  top: 1340px;
  right: 18%;
  width: 130px;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

/* Section 2 Flowers */
.decor-c2-top-petal {
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  z-index: 0;
  opacity: 0.45;
}

.decor-c2-tall-stem {
  position: absolute;
  top: 1100px;
  right: -30px;
  width: 320px;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

/* Section 3 Flowers */
.watermark-c3-timeline-left {
  position: absolute;
  top: 15px;
  left: -35px;
  width: 320px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.watermark-c3-gift-left {
  position: absolute;
  bottom: 80px;
  left: -25px;
  width: 190px;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.watermark-c3-gift-right {
  position: absolute;
  bottom: 95px;
  right: -25px;
  width: 180px;
  transform: scaleX(-1);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. SECTION 1: CEREMONY TYPOGRAPHY & DETAILS (SUPER BIG FLOWER & TEXT)
   -------------------------------------------------------------------------- */
.c1-top-intro-block {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 0 20px 0;
  overflow: visible;
}

.c1-intro-text-group {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-intro-heading,
.card-intro-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #a14856;
  text-align: center;
  line-height: 1.4;
  margin: 60px auto 0 auto;
  width: 100%;
  max-width: none;
  white-space: nowrap;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  display: block;
}

.card1-script-names {
  font-family: 'Alex Brush', cursive;
  font-size: 3.9rem;
  font-weight: 500;
  -webkit-text-stroke: 0.55px currentColor;
  paint-order: stroke fill;
  color: #9f4955;
  text-align: center;
  line-height: 1.15;
  margin-top: 452px;
  margin-left: 0;
  margin-bottom: 24px;
  /* Padding hấp thụ nét script thò ra ngoài glyph box */
  padding-inline: 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.card1-script-names .groom-short-name {
  display: block;
  align-self: stretch;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  /* Lệch trái nhẹ trong khung an toàn — không dùng translateX */
  padding: 0 32% 0 0.2em;
  transform: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.card1-script-names .amp {
  font-size: 2.55rem;
  color: #c47682;
  margin: 0 auto;
  text-align: center;
  display: block;
  align-self: center;
  width: auto;
  padding: 0 0.2em;
}

.card1-script-names .bride-short-name {
  display: block;
  align-self: stretch;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.2em 0 32%;
  transform: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.intro-guest-invite {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin: 48px auto 12px auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

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

.intro-guest-prefix {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9e858a;
}

.intro-guest-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #8c313e;
  line-height: 1.2;
}

.intro-couple-message {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #9e585f;
  text-align: center;
  max-width: 640px;
  width: 92%;
  margin: 48px auto 0;
  padding: 0 12px;
  position: relative;
  z-index: 2;
}

html[lang="zh"] .intro-couple-message,
body.lang-zh .intro-couple-message {
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.intro-couple-message[hidden] {
  display: none !important;
}

.card-divider-line {
  width: 42px;
  height: 2px;
  background-color: #d69ca5;
  margin: 30px auto 20px auto;
  position: relative;
  z-index: 2;
}

.card-heading-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c313e;
  text-align: center;
  margin-bottom: 18px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.parents-grid-c1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.parents-col small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b55361;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.parents-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #a14856;
  line-height: 1.35;
  margin-bottom: 4px;
}

.parents-col p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: #b55361;
  line-height: 1.4;
}

.announcement-c1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a14856;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.6;
  text-transform: none;
  position: relative;
  z-index: 2;
}

.couple-names-c1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

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

.couple-person .full-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8c313e;
  text-transform: uppercase;
}

.couple-person .role-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b55361;
  margin-top: 2px;
  text-transform: none;
}

.couple-names-c1 .amp-symbol {
  font-family: 'Alex Brush', cursive;
  font-size: 1.9rem;
  color: #c47682;
  margin: 2px 0;
}

.ceremony-details-c1 {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ceremony-intro-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a14856;
  text-transform: none;
  margin-bottom: 2px;
  line-height: 1.6;
}

.ceremony-loc-lbl {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8c313e;
  margin: 3px 0 8px 0;
  text-transform: uppercase;
}

.ceremony-at-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #b55361;
  text-transform: uppercase;
}

.ceremony-time-c1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #a14856;
  margin: 1px 0 6px 0;
}

.ceremony-date-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a14856;
}

.ceremony-date-bar .sep {
  color: #d69ca5;
  font-weight: 300;
}

.ceremony-date-bar .big-day {
  font-family: 'Playfair Display', serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: #8c313e;
}

.ceremony-year-lbl {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #b55361;
  text-align: center;
  margin-top: 3px;
}

.lunar-date-text,
.ceremony-lunar-c1,
.reception-lunar-c2 {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #a14856;
  text-align: center;
  margin: 6px auto 0 auto;
  line-height: 1.45;
  position: relative;
  z-index: 2;
}

.card1-welcome-footer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a14856;
  text-align: center;
  margin-top: 26px;
  text-transform: none;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   5. SECTION 2: ALBUM, RECEPTION, CALENDAR & MAP
   -------------------------------------------------------------------------- */
.album-label-c2 {
  font-family: 'Alex Brush', cursive;
  font-size: 2.3rem;
  color: #a14856;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

/* Album slider (coverflow như thiệp 1) */
.gallery-block-c2 {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px auto;
  position: relative;
  z-index: 2;
}

.gallery-block-c2 .gallery-carousel {
  position: relative;
  width: 100%;
  height: 340px;
  perspective: 900px;
  overflow: visible;
  margin: 18px 0 10px;
}

.gallery-block-c2 .carousel-btn {
  display: flex !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 144, 158, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(219, 122, 138, 0.35);
  z-index: 25;
  cursor: pointer;
}

.gallery-block-c2 .carousel-btn:hover {
  background: rgba(240, 168, 178, 0.98);
  transform: translateY(-50%) scale(1.1);
}

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

.gallery-block-c2 .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-block-c2 .carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(181, 79, 92, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.gallery-block-c2 .carousel-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #b54f5c;
}

.album-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.album-thumb-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.12);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.album-thumb-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 26px rgba(181, 79, 92, 0.28);
}

.album-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.4s ease;
}

/* Ken Burns Subtle Living Motion */
.album-thumb-item:nth-child(1) img {
  animation: kenBurns1 10s ease-in-out infinite alternate;
}

.album-thumb-item:nth-child(2) img {
  animation: kenBurns2 12s ease-in-out infinite alternate;
}

.album-thumb-item:nth-child(3) img {
  animation: kenBurns3 11s ease-in-out infinite alternate;
}

.album-thumb-item:nth-child(4) img {
  animation: kenBurns4 13s ease-in-out infinite alternate;
}

@keyframes kenBurns1 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

@keyframes kenBurns2 {
  0% { transform: scale(1.08) translate(1.5%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes kenBurns3 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.07) translate(1%, 1.5%); }
}

@keyframes kenBurns4 {
  0% { transform: scale(1.07) translate(-1.2%, 1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.thumb-with-more .thumb-overlay-more {
  position: absolute;
  inset: 0;
  background: rgba(40, 10, 18, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  animation: pulseMoreBadge 3s ease-in-out infinite;
}

@keyframes pulseMoreBadge {
  0%, 100% {
    background: rgba(40, 10, 18, 0.26);
    transform: scale(1);
  }
  50% {
    background: rgba(40, 10, 18, 0.34);
    transform: scale(1.02);
  }
}

.reception-header-c2 {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}

.reception-lead-c2 {
  /* đồng bộ title khối — kế thừa .card-heading-title */
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c313e;
  line-height: 1.4;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.reception-big-time-c2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #8c313e;
  margin-bottom: 4px;
}

.venue-info-c2 {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 14px;
  margin-bottom: 16px;
}

.venue-name-c2 {
  font-family: 'Playfair Display', 'Montserrat', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8c313e;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.venue-addr-c2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: #a14856;
  margin-top: 6px;
  line-height: 1.45;
}

.reception-times-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 22px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.time-col-c2 small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #b55361;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.time-col-c2 strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #8c313e;
}

/* Calendar Card - Cố định width gọn gàng sang trọng */
.calendar-card-c2 {
  background: #ffffff;
  border: 1px solid #ebd3d7;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 0 auto 18px auto;
  max-width: 360px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(181, 79, 92, 0.08);
}

.cal-header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.cal-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8c313e;
  letter-spacing: 0.05em;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a14856;
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7a323d;
}

.cal-days-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  color: #7a323d;
}

.cal-days-grid .empty {
  visibility: hidden;
}

.cal-days-grid .wedding-day {
  background: linear-gradient(135deg, #ea8ea0 0%, #b54f5c 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(181, 79, 92, 0.4);
}

/* Pill action buttons */
.c2-pill-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px auto;
  padding-inline: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  justify-content: center;
  align-items: stretch;
}

.btn-pill-calendar,
.btn-pill-rsvp {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  padding: 10px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-pill-calendar {
  background: #ffffff;
  color: #8c313e;
  border: 1.5px solid #ebd3d7;
  box-shadow: 0 2px 10px rgba(181, 79, 92, 0.08);
}

.btn-pill-calendar:hover {
  background: #fdf2f4;
  border-color: #b54f5c;
  color: #8c313e;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(181, 79, 92, 0.16);
}

.btn-pill-rsvp {
  background: linear-gradient(135deg, #d86d7e 0%, #b54f5c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.24);
}

.btn-pill-rsvp:hover {
  background: linear-gradient(135deg, #c75c6d 0%, #9e3d4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(181, 79, 92, 0.35);
}

/* Venue & Map block */
.venue-bottom-c2 {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.venue-bottom-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #7a5960;
  text-transform: uppercase;
}

.venue-bottom-name {
  font-family: 'Playfair Display', 'Montserrat', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #8c313e;
  margin: 3px 0 2px 0;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.venue-bottom-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 3px 0 2px 0;
}

.venue-bottom-name-row .venue-bottom-name {
  margin: 0;
}

.venue-pin-icon {
  flex-shrink: 0;
  color: #b54f5c;
  display: block;
}

.venue-bottom-addr {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #a14856;
  margin-bottom: 14px;
}

.map-embed-card2 {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ebd3d7;
  height: 180px;
  max-width: 380px;
  margin: 0 auto 12px auto;
  width: 100%;
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.08);
}

.map-embed-card2 iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.map-direction-btn-c2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #8e3845;
  border: 1px solid #ebd3d7;
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(181, 79, 92, 0.08);
  transition: all 0.25s ease;
}

.map-direction-btn-c2:hover {
  background: #b54f5c;
  color: #ffffff;
  border-color: #b54f5c;
}

/* Dress Code in Section 2 */
.dresscode-block-c2 {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 14px;
  margin-bottom: 10px;
}

.dresscode-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #a14856;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 10px auto;
}

.dresscode-subnote {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #b55361;
  line-height: 1.45;
  max-width: 520px;
  margin: 0 auto 14px auto;
  text-align: center;
  opacity: 0.9;
}

.dresscode-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dresscode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dresscode-item .color-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(181, 79, 92, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.dresscode-item:hover .color-circle {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(181, 79, 92, 0.25);
}

.dresscode-item .color-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8c313e;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6. SECTION 3: TIMELINE, COUNTDOWN, GUESTBOOK, GIFT BOX & FOOTER
   -------------------------------------------------------------------------- */
.countdown-block-c3 {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 10px;
  margin-bottom: 26px;
}

.countdown-grid-c3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.countdown-box-c3 {
  background: #ffffff;
  border: 1px solid #ebd3d7;
  border-radius: 16px;
  padding: 14px 6px 12px;
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.countdown-box-c3:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(181, 79, 92, 0.15);
}

.countdown-box-c3 .cd-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #8c313e;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.countdown-box-c3 .cd-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #b55361;
  text-transform: none;
  margin-top: 4px;
}

.timeline-c3-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 280px;
  margin: 0 auto 28px auto;
  position: relative;
  z-index: 2;
  padding: 0;
}

/* Đường line dọc nối các điểm timeline */
.timeline-c3-wrap::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  /* Canh giữa cột chấm: grid 1fr | 20px | 1.25fr, gap 10px */
  left: calc((100% - 40px) * (1 / 2.25) + 20px);
  width: 1.5px;
  background: linear-gradient(
    to bottom,
    rgba(181, 79, 92, 0.15),
    rgba(181, 79, 92, 0.45) 12%,
    rgba(181, 79, 92, 0.45) 88%,
    rgba(181, 79, 92, 0.15)
  );
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.timeline-row-c3 {
  display: grid;
  grid-template-columns: 1fr 20px 1.25fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tl-time {
  font-family: 'Playfair Display', 'Montserrat', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8c313e;
  text-align: right;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #b54f5c;
  box-shadow: 0 0 0 3px rgba(181, 79, 92, 0.2);
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tl-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  color: #8c313e;
  font-weight: 500;
  text-align: left;
}

/* Guestbook Form */
.guestbook-box-c3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto 14px auto;
  position: relative;
  z-index: 2;
}

.guestbook-input-c3,
.guestbook-textarea-c3 {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ebd3d7;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* >=16px để Safari iOS không auto-zoom khi focus */
  color: #8c313e;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.guestbook-input-c3::placeholder,
.guestbook-textarea-c3::placeholder {
  font-size: 0.82rem;
  color: #c49aa2;
  opacity: 1;
}

.guestbook-input-c3:focus,
.guestbook-textarea-c3:focus {
  border-color: #b54f5c;
  box-shadow: 0 0 0 3px rgba(181, 79, 92, 0.15);
}

.guestbook-textarea-c3 {
  height: 64px;
  resize: none;
}

.guestbook-actions-c3 {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.btn-suggest-c3 {
  background: #ffffff;
  border: 1px solid #ebd3d7;
  color: #8e3845;
  border-radius: 12px;
  width: 42px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-suggest-c3:hover {
  background: #fdf2f4;
  border-color: #b54f5c;
}

.btn-submit-wish-c3 {
  flex: 1;
  background: #b54f5c;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  height: 38px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(181, 79, 92, 0.25);
  transition: all 0.25s ease;
}

.btn-submit-wish-c3:hover {
  background: #9c3b48;
}

/* Wishes stream list */
.wishes-stream-c3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 24px auto;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
  position: relative;
  z-index: 2;
}

.wishes-stream-c3::-webkit-scrollbar {
  width: 4px;
}

.wishes-stream-c3::-webkit-scrollbar-thumb {
  background: #ebd3d7;
  border-radius: 4px;
}

.wish-item-c3 {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid #ebd3d7;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(181, 79, 92, 0.04);
}

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

.wish-header-c3 .wish-author {
  font-family: 'Playfair Display', 'Montserrat', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #8c313e;
}

.wish-header-c3 .wish-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #b55361;
}

.wish-item-c3 .wish-msg {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #8c313e;
  line-height: 1.45;
}

/* Gift block */
.gift-block-c3 {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gift-block-c3 .card-heading-title {
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0;
}

.gift-envelopes-interactive {
  display: inline-block;
  cursor: pointer;
  margin: 0;
  animation: floatGiftEnvelope 3.2s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gift-envelopes-interactive:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.06);
  filter: drop-shadow(0 14px 24px rgba(181, 79, 92, 0.35));
}

@keyframes floatGiftEnvelope {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 14px rgba(181, 79, 92, 0.18));
  }
  50% {
    transform: translateY(-7px) scale(1.025);
    filter: drop-shadow(0 12px 20px rgba(181, 79, 92, 0.28));
  }
}

.gift-envelope-img-c3 {
  width: 250px;
  max-width: 85vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gift-thankyou-note {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: #8c313e;
  text-align: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.55;
  white-space: normal;
  padding: 0 8px;
  box-sizing: border-box;
  font-weight: 400;
}

/* Footer brand — thống nhất 4 thiệp: chữ nhỏ, không đậm, không icon */
.brand-footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 28px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
  border-top: none;
}

.brand-footer-block span,
.brand-footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #8c313e;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   7. MODALS (LIGHTBOX, GIFT, RSVP, WISH SUGGESTIONS)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 24, 28, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-box-styled {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #ebd3d7;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fdf2f4;
  border: none;
  color: #8e3845;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.modal-close-btn:hover {
  background: #b54f5c;
  color: #ffffff;
}

/* Lightbox Modal */
.lightbox-modal-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

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

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Gift Modal Header */
.gift-modal-header {
  background: linear-gradient(135deg, #fdf0f2 0%, #fae8eb 50%, #fcedf0 100%) !important;
  border-bottom: 1px solid #ebd3d7;
  padding: 16px 20px !important;
  border-radius: 18px 18px 0 0;
  text-align: center;
  margin: 0 !important;
  position: relative !important;
}

.gift-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8c313e !important;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.gift-modal-body {
  background: transparent !important;
  padding: 16px 16px 20px !important;
}

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

@media (max-width: 420px) {
  .gift-cols-container {
    grid-template-columns: 1fr;
  }
}

.gift-person-card {
  background: #fdf6f7;
  border: 1px solid #ebd3d7;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.gift-person-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8e3845;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.gift-qr-card {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ebd3d7;
  background: #ffffff;
  padding: 4px;
}

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

.gift-bank-info {
  margin-bottom: 10px;
}

.gift-bank-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4a2b30;
}

.gift-bank-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b54f5c;
  cursor: pointer;
  margin: 2px 0;
  text-decoration: underline dotted;
}

.gift-bank-owner {
  font-size: 0.65rem;
  color: #7a5960;
}

.btn-save-qr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #b54f5c;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-save-qr:hover {
  background: #9c3b48;
}

/* RSVP Modal */
.rsvp-modal-title {
  text-align: center;
  margin-bottom: 6px !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.1em;
}

.rsvp-modal-subtitle {
  font-size: 0.98rem;
  color: #6a4950;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.rsvp-field-group {
  margin-bottom: 12px;
}

.rsvp-field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a2b30;
  margin-bottom: 5px;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  background: #fdf6f7;
  border: 1.5px solid #ebd3d7;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px !important;
  color: #4a2b30;
  outline: none;
  box-sizing: border-box;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  font-size: 16px !important;
  color: #b89aa0;
  opacity: 1;
}

.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #4a2b30;
  cursor: pointer;
  padding: 9px 12px;
  background: #fdf6f7;
  border: 1.5px solid #ebd3d7;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.rsvp-radio-label input {
  accent-color: #b54f5c;
  width: 16px;
  height: 16px;
}

.btn-rsvp-submit {
  width: 100%;
  background: #b54f5c;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(181, 79, 92, 0.3);
  transition: all 0.25s ease;
  margin-top: 4px;
}

.btn-rsvp-submit:hover {
  background: #9c3b48;
}

/* Wish Suggestions Card */
.wish-suggestions-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #ebd3d7;
}

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

.wish-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #8e3845;
}

.wish-modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #8e3845;
  cursor: pointer;
}

.wish-modal-subtitle {
  font-size: 0.7rem;
  color: #7a5960;
  margin-bottom: 14px;
}

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

.wish-suggestion-item {
  background: #fdf6f7;
  border: 1px solid #ebd3d7;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: #4a2b30;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wish-suggestion-item:hover {
  background: #fae6e8;
  border-color: #b54f5c;
  transform: translateY(-1px);
}

.wish-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-modal-refresh {
  background: #b54f5c;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-cancel {
  background: #fdf2f4;
  color: #8e3845;
  border: 1px solid #ebd3d7;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(45, 24, 28, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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