/* ============================================================================
   THIỆP CƯỚI ONLINE — MINIMALISM NÂU
   Màu chủ đạo, typography, hiệu ứng giấy & animation bám sát bản mẫu gốc.
   ============================================================================ */

@font-face {
  font-family: "Robinsan";
  src: url("../assets/Font/Robinsan.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-outer: #ffffff;
  --bg-page: #fff7f3;
  --bg-card: #f6eadd;
  --bg-note: #faf2ea;
  --brown-primary: #7c6a60;
  --brown-dark: #5e4c42;
  --brown-muted: #918077;
  --brown-hero: #827771;
  --text-on-brown: #ded9d7;
  --border-hairline: rgba(124, 106, 96, 0.14);
  --border-soft: rgba(124, 106, 96, 0.34);

  --font-serif: "Baskerville", "Libre Baskerville", "Times New Roman", Georgia, serif;
  --font-times: "Times New Roman", "EB Garamond", Georgia, serif;
  --font-cormorant: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-garamond: "EB Garamond", "Times New Roman", Georgia, serif;
  --font-couple: "Robinsan", "EB Garamond", Georgia, serif;
  --font-script: "The Nautigal", "Ms Madi", cursive;
  --font-script-alt: "Ms Madi", "The Nautigal", cursive;
  --font-ui: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-outer);
  color: var(--brown-primary);
  font-family: var(--font-serif);
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

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

.decor-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.decor-flip-x {
  transform: scaleX(-1);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================================
   SPLASH / ENVELOPE OVERLAY
   ============================================================================ */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e6da 0%, #e8d5c4 50%, #dcc6b2 100%);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
}

.splash-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-overlay.is-opening .envelope-card {
  animation: envelopeAway 0.72s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.splash-overlay.is-opening .seal-button {
  animation: sealBreak 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-overlay.is-opening .seal-ring {
  animation: sealRing 0.6s ease-out forwards;
}

.splash-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.splash-leaf {
  position: absolute;
  top: -40px;
  opacity: 0;
  animation: ambientFall var(--dur, 11s) linear var(--delay, 0s) infinite;
}

@keyframes ambientFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 112vh, 0) rotate(var(--rot, 240deg));
    opacity: 0;
  }
}

.envelope-card {
  position: relative;
  width: 312px;
  min-height: 280px;
  padding: 96px 26px 32px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcf8f4 0%, #f8f1e9 100%);
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .envelope-card {
    width: 380px;
    padding: 106px 36px 36px;
  }
}

@media (min-width: 768px) {
  .envelope-card {
    width: 540px;
    min-height: 390px;
    padding: 124px 54px 44px;
  }
}

@media (min-width: 1024px) {
  .envelope-card {
    width: 600px;
    min-height: 420px;
    padding: 132px 64px 48px;
  }
}

/* Góc hoa khô 2 bên phong bì */
.envelope-flower {
  position: absolute;
  top: -8px;
  width: 108px;
  pointer-events: none;
  opacity: 0.94;
}

.envelope-flower--left {
  left: -12px;
  transform: rotate(10deg);
}

.envelope-flower--right {
  right: -12px;
  transform: rotate(-10deg);
}

@media (min-width: 768px) {
  .envelope-flower {
    width: 162px;
    top: -12px;
  }
  .envelope-flower--left {
    left: -10px;
  }
  .envelope-flower--right {
    right: -10px;
  }
}

.seal-wrap {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .seal-wrap {
    top: 48px;
  }
}

.seal-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(124, 106, 96, 0.5);
  opacity: 0;
  pointer-events: none;
}

.seal-button {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #8e796d 0%, #7c6a60 55%, #5e4c42 100%);
  box-shadow:
    0 6px 18px rgba(94, 76, 66, 0.42),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealPulse 2.4s ease-in-out infinite;
}

#seal-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

#seal-heart-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes sealPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 6px 18px rgba(94, 76, 66, 0.42),
      0 0 0 0 rgba(124, 106, 96, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 8px 22px rgba(94, 76, 66, 0.48),
      0 0 0 10px rgba(124, 106, 96, 0);
  }
}

@keyframes sealBreak {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.22);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.4);
    opacity: 0;
  }
}

@keyframes sealRing {
  0% {
    transform: scale(0.8);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes envelopeAway {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-48px) scale(0.95);
    opacity: 0;
  }
}

.envelope-names {
  font-family: var(--font-couple);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  color: #6b5a50;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}

@media (min-width: 768px) {
  .envelope-names {
    font-size: 46px;
  }
}

.envelope-amp {
  display: block;
  font-family: var(--font-couple);
  font-size: 22px;
  line-height: 1.25;
  color: var(--brown-muted);
  margin: 4px 0;
}

.envelope-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto;
  width: 140px;
  color: var(--brown-muted);
}

.envelope-divider::before,
.envelope-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(124, 106, 96, 0.35);
}

.envelope-date {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--brown-muted);
  letter-spacing: 0.03em;
}

.envelope-greeting {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--brown-muted);
}

.envelope-greeting strong {
  color: var(--brown-primary);
  font-weight: 600;
}

.envelope-subtext {
  margin: -10px auto 18px;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.5;
  font-style: italic;
  color: var(--brown-muted);
}

.envelope-subtext:empty {
  display: none;
}

.open-invite-btn {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  padding: 10px 32px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff7f3;
  background: linear-gradient(135deg, #867368 0%, #6d5b51 100%);
  box-shadow: 0 6px 18px rgba(94, 76, 66, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.open-invite-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(94, 76, 66, 0.36);
}

.open-invite-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.2s ease-in-out infinite;
}

@keyframes btnShine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

.seal-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seal-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9f8a7d;
  opacity: 0;
}

.splash-overlay.is-opening .seal-particle {
  animation: particleBurst 0.65s ease-out forwards;
}

@keyframes particleBurst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(0);
    opacity: 0;
  }
}

/* ============================================================================
   MAIN INVITATION SHELL
   ============================================================================ */

.page-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: var(--bg-outer);
  overflow-x: clip;
}

.invitation-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-page);
  color: var(--brown-primary);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .invitation-shell {
    max-width: 900px;
    margin-inline: auto;
    border-inline: 1px solid var(--border-hairline);
  }
}

/* Subtle paper grain overlay across entire invitation */
.paper-grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.48;
  mix-blend-mode: multiply;
  background-image: url("../assets/decor/paper.webp");
  background-size: 560px auto;
  background-repeat: repeat;
}

/* Inner textured beige paper card */
.paper-card {
  position: relative;
  width: 88%;
  max-width: 420px;
  margin-inline: auto;
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.18);
  padding: 34px 20px;
  text-align: center;
  z-index: 2;
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: multiply;
  background-image: url("../assets/decor/paper.webp");
  background-size: cover;
  background-position: center;
}

.paper-card > * {
  position: relative;
  z-index: 1;
}

.paper-card--ceremony {
  border-radius: 13px;
  padding: 34px 14px 38px;
}

@media (min-width: 768px) {
  .paper-card {
    max-width: 560px;
    padding: 44px 36px;
  }
  .paper-card--ceremony {
    padding: 46px 40px 52px;
  }
}

/* Floating botanical animations */
@keyframes mbFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-slow {
  animation: mbFloat 5.4s ease-in-out infinite;
}

.float-medium {
  animation: mbFloat 6.2s ease-in-out 0.6s infinite;
}

/* Section typography & rhythm */
.section-block {
  position: relative;
  z-index: 1;
  padding-inline: 16px;
}

.section-heading {
  margin: 0;
  font-family: var(--font-times);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brown-primary);
  text-align: center;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 24px;
  }
}

/* ============================================================================
   1. HERO SECTION
   ============================================================================ */

.hero-section {
  position: relative;
  padding: 46px 16px 80px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 52px 24px 116px;
  }
}

.bg-ornament-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  filter: sepia(30%) saturate(65%);
  z-index: 0;
}

.bg-ornament-leaf--hero {
  top: 22px;
  left: -30px;
  width: 190px;
}

@media (min-width: 768px) {
  .bg-ornament-leaf--hero {
    width: 260px;
    left: -20px;
  }
}

.bg-ornament-house {
  position: absolute;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  z-index: 0;
}

.bg-ornament-house--hero {
  right: -24px;
  bottom: -10px;
  width: 340px;
}

@media (min-width: 768px) {
  .bg-ornament-house--hero {
    width: 520px;
    right: -10px;
  }
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-cormorant);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-hero);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-eyebrow {
    font-size: 16px;
    margin-bottom: 14px;
  }
}

.hero-names {
  margin: 0 0 26px;
  font-family: var(--font-couple);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(36px, 9.5vw, 46px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--brown-hero);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-names {
    font-size: 58px;
    margin-bottom: 34px;
  }
}

.hero-names__amp {
  font-family: var(--font-couple);
  font-style: normal;
  font-weight: 400;
  font-size: 0.9em;
  color: var(--brown-muted);
  display: inline-block;
  margin-inline: 8px;
  vertical-align: baseline;
}

@media (min-width: 768px) {
  .hero-names__amp {
    font-size: 0.92em;
    margin-inline: 12px;
  }
}

/* Polaroid Frame */
.polaroid-stage {
  position: relative;
  width: 88%;
  max-width: 400px;
  aspect-ratio: 1094 / 1554;
  margin: 0 auto;
  z-index: 2;
}

@media (min-width: 768px) {
  .polaroid-stage {
    max-width: 520px;
  }
}

.polaroid-photo-slot {
  position: absolute;
  left: 11.5%;
  top: 8%;
  width: 72%;
  height: 77%;
  transform: rotate(-4.78deg);
  overflow: hidden;
  background: #efe3d8;
  z-index: 1;
}

.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.polaroid-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 16px 28px rgba(74, 58, 49, 0.18));
}

.hero-flower-decor {
  position: absolute;
  left: -6%;
  bottom: -5%;
  width: 42%;
  max-width: 215px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

/* ============================================================================
   2. WEDDING INFO SECTION (THÔNG TIN LỄ CƯỚI)
   ============================================================================ */

.ceremony-section {
  position: relative;
  padding: 8px 16px 56px;
}

@media (min-width: 768px) {
  .ceremony-section {
    padding: 8px 16px 76px;
  }
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.parent-col {
  font-size: 12px;
  line-height: 1.5;
  color: var(--brown-primary);
}

.parent-col__title {
  font-size: 12px;
  margin-bottom: 2px;
}

.parent-col__name {
  font-weight: 700;
  font-size: 12px;
}

.parent-col__addr {
  margin-top: 3px;
  font-size: 10px;
  color: var(--brown-muted);
}

@media (min-width: 768px) {
  .parent-col {
    font-size: 15px;
  }
  .parent-col__title,
  .parent-col__name {
    font-size: 15px;
  }
  .parent-col__addr {
    font-size: 12px;
  }
}

.parents-divider {
  width: 1px;
  height: 54px;
  align-self: center;
  background: var(--border-soft);
}

.ceremony-announce {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .ceremony-announce {
    font-size: 15.5px;
  }
}

.couple-fullname {
  margin: 0;
  font-family: var(--font-couple);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .couple-fullname {
    font-size: 54px;
    line-height: 1.32;
  }
}

.couple-order {
  margin: 4px 0 0;
  font-family: var(--font-cormorant);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-muted);
}

@media (min-width: 768px) {
  .couple-order {
    font-size: 11px;
  }
}

.couple-amp-script {
  margin: 10px 0 8px;
  font-family: var(--font-script-alt);
  font-size: 35px;
  line-height: 1;
  color: var(--brown-muted);
}

.ceremony-where {
  margin: 28px 0 6px;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .ceremony-where {
    font-size: 15px;
  }
}

.ceremony-at-label {
  margin: 10px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-muted);
}

.ceremony-time {
  margin: 4px 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .ceremony-time {
    font-size: 30px;
  }
}

.date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .date-bar {
    font-size: 16px;
    gap: 18px;
  }
}

.date-bar__sep {
  width: 1px;
  height: 24px;
  background: var(--border-soft);
}

.date-bar__day {
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

@media (min-width: 768px) {
  .date-bar__day {
    font-size: 40px;
  }
}

.ceremony-year {
  margin: 6px 0 10px;
  font-size: 19px;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .ceremony-year {
    font-size: 23px;
  }
}

.lunar-date {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-muted);
}

@media (min-width: 768px) {
  .lunar-date {
    font-size: 13px;
  }
}

.card-decor-leaf--left {
  position: absolute;
  left: -21%;
  top: 26%;
  width: 122px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

@media (min-width: 768px) {
  .card-decor-leaf--left {
    left: -16%;
    width: 195px;
  }
}

.card-decor-flower--right {
  position: absolute;
  right: -17%;
  bottom: -7%;
  width: 150px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

@media (min-width: 768px) {
  .card-decor-flower--right {
    right: -16%;
    bottom: -8%;
    width: 190px;
  }
}

/* ============================================================================
   3. ALBUM ẢNH (3D COVERFLOW CAROUSEL)
   ============================================================================ */

.album-section {
  position: relative;
  padding: 20px 0 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .album-section {
    padding: 24px 0 74px;
  }
}

.bg-ornament-leaf--album {
  right: -50px;
  bottom: -40px;
  width: 260px;
  transform: scaleX(-1) rotate(-14deg);
}

.coverflow-wrapper {
  position: relative;
  margin-top: 28px;
  height: 360px;
  perspective: 1000px;
  user-select: none;
  touch-action: pan-y;
}

@media (min-width: 768px) {
  .coverflow-wrapper {
    height: 520px;
    margin-top: 36px;
  }
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 225px;
  height: 325px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee3d8;
  box-shadow: 0 18px 40px rgba(62, 46, 36, 0.22);
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s ease;
  cursor: pointer;
}

@media (min-width: 768px) {
  .coverflow-slide {
    width: 330px;
    height: 470px;
  }
}

.coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  pointer-events: none;
}

.coverflow-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(124, 106, 96, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brown-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.coverflow-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.coverflow-nav-btn--prev {
  left: 16%;
}

.coverflow-nav-btn--next {
  right: 16%;
}

@media (min-width: 768px) {
  .coverflow-nav-btn {
    display: flex;
  }
}

.coverflow-counter {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--brown-muted);
  letter-spacing: 0.06em;
}

/* ============================================================================
   4. RECEPTION & CALENDAR (THÔNG TIN TIỆC CƯỚI)
   ============================================================================ */

.reception-section {
  position: relative;
  z-index: 2;
  padding: 8px 16px 52px;
}

.reception-intro {
  margin: 18px 0 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reception-note {
  margin: 4px auto 14px;
  max-width: 410px;
  font-size: 13.5px;
  line-height: 1.6;
  font-style: italic;
  color: var(--brown-muted);
}

.reception-note:empty {
  display: none;
}

@media (min-width: 768px) {
  .reception-intro {
    font-size: 15px;
  }
}

.subtimes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 260px;
  margin: 22px auto 24px;
}

.subtime-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-muted);
  margin-bottom: 4px;
}

.subtime-val {
  font-size: 18px;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .subtime-val {
    font-size: 20px;
  }
}

/* Calendar Widget */
.calendar-box {
  width: 280px;
  margin: 0 auto 20px;
  padding: 18px 16px 20px;
  border-radius: 10px;
  background-color: var(--brown-primary);
  color: var(--text-on-brown);
  box-shadow: 0 8px 20px rgba(72, 56, 48, 0.22);
}

@media (min-width: 768px) {
  .calendar-box {
    width: 330px;
    padding: 20px 22px 22px;
  }
}

.calendar-header {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-on-brown);
}

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

.calendar-weekdays {
  font-family: var(--font-serif);
  font-size: 11px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(222, 217, 215, 0.45);
}

.calendar-day {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
}

@media (min-width: 768px) {
  .calendar-day {
    height: 34px;
    font-size: 13px;
  }
}

.calendar-day.is-wedding-day {
  color: #333333;
  font-weight: 700;
}

.calendar-day__heart {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  z-index: 0;
}

.calendar-day__num {
  position: relative;
  z-index: 1;
}

.add-calendar-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--brown-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.add-calendar-link:hover {
  color: var(--brown-dark);
}

.primary-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  background-color: var(--brown-primary);
  color: var(--text-on-brown);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(94, 76, 66, 0.22);
  transition: background-color 0.2s ease, transform 0.18s ease;
}

.primary-pill-btn:hover {
  background-color: var(--brown-dark);
  transform: translateY(-1px);
}

.card-decor-leaf--right {
  position: absolute;
  right: -15%;
  top: 24%;
  width: 145px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

@media (min-width: 768px) {
  .card-decor-leaf--right {
    right: -14%;
    width: 185px;
  }
}

.card-decor-flower--left {
  position: absolute;
  left: -17%;
  bottom: -6%;
  width: 155px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

@media (min-width: 768px) {
  .card-decor-flower--left {
    left: -16%;
    width: 190px;
  }
}

/* ============================================================================
   5. VENUE & MAP + 6. DRESS CODE
   ============================================================================ */

.venue-section {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 20px 16px 38px;
  text-align: center;
}

.bg-ornament-house--venue {
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 620px;
}

.venue-address {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 14px auto 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--brown-muted);
}

@media (min-width: 768px) {
  .venue-address {
    max-width: 540px;
    font-size: 15px;
  }
}

.map-frame-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 338px;
  height: 268px;
  margin: 0 auto 18px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(124, 106, 96, 0.18);
  background: #ede3d8;
  box-shadow: 0 8px 22px rgba(74, 58, 49, 0.12);
}

@media (min-width: 768px) {
  .map-frame-wrap {
    max-width: 560px;
    height: 360px;
  }
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brown-primary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.directions-link:hover {
  background-color: rgba(124, 106, 96, 0.08);
}

/* Dress Code */
.dresscode-section {
  position: relative;
  z-index: 1;
  padding: 20px 16px 56px;
  text-align: center;
}

.dresscode-subtitle {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--brown-muted);
}

.dresscode-swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dresscode-swatch {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(124, 106, 96, 0.2);
}

@media (min-width: 768px) {
  .dresscode-swatch {
    width: 48px;
    height: 48px;
    gap: 24px;
  }
}

/* ============================================================================
   7. WEDDING TIMELINE (LỊCH TRÌNH NGÀY CƯỚI)
   ============================================================================ */

.timeline-section {
  position: relative;
  padding: 6px 16px 64px;
}

.timeline-decor-flower {
  position: absolute;
  right: -14%;
  top: -12%;
  width: 140px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 4px 6px rgba(60, 44, 30, 0.16));
}

@media (min-width: 768px) {
  .timeline-decor-flower {
    right: -13%;
    top: -13%;
    width: 175px;
  }
}

.timeline-list {
  margin: 30px auto 6px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
}

.timeline-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-right: 12px;
}

.timeline-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.94;
}

.timeline-time {
  font-size: 16px;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .timeline-time {
    font-size: 17px;
  }
}

.timeline-axis {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background-color: rgba(124, 106, 96, 0.4);
}

.timeline-row:first-child .timeline-axis::before {
  top: 50%;
}

.timeline-row:last-child .timeline-axis::before {
  bottom: 50%;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--brown-primary);
}

.timeline-right {
  padding-left: 14px;
  text-align: left;
  font-size: 15px;
  color: var(--brown-primary);
}

@media (min-width: 768px) {
  .timeline-right {
    font-size: 16px;
  }
}

/* ============================================================================
   8. GUESTBOOK (SỔ LƯU BÚT)
   ============================================================================ */

.guestbook-section {
  position: relative;
  padding: 12px 16px 54px;
  z-index: 2;
}

.paper-note-card {
  position: relative;
  width: 92%;
  max-width: 650px;
  margin: 0 auto;
  padding: 36px 22px 34px;
}

@media (min-width: 768px) {
  .paper-note-card {
    padding: 46px 56px 46px;
  }
}

.paper-note-bg {
  position: absolute;
  left: -12%;
  top: -0.5%;
  width: 126%;
  max-width: none;
  height: 110%;
  object-fit: fill;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.2));
}

.paper-note-inner {
  position: relative;
  z-index: 2;
}

.guestbook-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(124, 106, 96, 0.72);
  background: transparent;
  color: var(--brown-primary);
  font-family: var(--font-serif);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-input::placeholder,
.guestbook-textarea::placeholder {
  color: rgba(124, 106, 96, 0.65);
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  border-color: var(--brown-dark);
  box-shadow: 0 0 0 3px rgba(124, 106, 96, 0.12);
}

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

.guestbook-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.wand-btn {
  width: 38px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(124, 106, 96, 0.25);
  background: rgba(235, 224, 214, 0.7);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.wand-btn:hover {
  background: rgba(235, 224, 214, 1);
  transform: scale(1.06);
}

.wishes-list {
  width: 92%;
  max-width: 650px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-card {
  border-radius: 8px;
  border: 1px solid rgba(124, 106, 96, 0.33);
  background: rgba(255, 255, 255, 0.56);
  padding: 14px 16px;
}

.wish-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.wish-card__author {
  font-weight: 700;
  font-size: 14px;
  color: var(--brown-primary);
}

.wish-card__time {
  font-size: 11px;
  color: var(--brown-muted);
  white-space: nowrap;
}

.wish-card__message {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--brown-primary);
}

/* ============================================================================
   9. GIFT BOX (HỘP QUÀ MỪNG) & FOOTER
   ============================================================================ */

.gift-footer-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bg-ornament-house--gift-footer {
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 780px;
  opacity: 0.14;
  mix-blend-mode: multiply;
  z-index: 0;
}

.gift-section {
  position: relative;
  z-index: 2;
  padding: 20px 16px 24px;
  text-align: center;
}

.gift-stage {
  position: relative;
  width: 310px;
  height: 330px;
  margin: 22px auto 4px;
  border: none;
  background: transparent;
  padding: 0;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .gift-stage {
    width: 360px;
    height: 372px;
  }
}

.gift-main-box {
  position: relative;
  z-index: 3;
  width: 214px;
  opacity: 1;
  animation: igbGiftBob 3.4s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 12px 22px rgba(72, 56, 44, 0.22));
}

@media (min-width: 768px) {
  .gift-main-box {
    width: 236px;
  }
}

.gift-main-box svg,
.gift-main-box img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

/* Hiệu ứng nổ bung khi bấm vào hộp quà */
.gift-stage.is-exploding .gift-main-box {
  animation: igbBoxPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes igbBoxPop {
  0% {
    transform: scale(1) translateY(0);
  }
  28% {
    transform: scale(0.9) translateY(6px);
  }
  65% {
    transform: scale(1.16) translateY(-12px);
  }
  100% {
    transform: scale(1.03) translateY(0);
  }
}

.gift-stage.is-exploding .mini-gift--1 {
  animation: igbFly1 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--2 {
  animation: igbFly2 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--3 {
  animation: igbFly3 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--4 {
  animation: igbFly4 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--5 {
  animation: igbFly5 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--6 {
  animation: igbFly6 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gift-stage.is-exploding .mini-gift--7 {
  animation: igbFly7 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes igbFly1 {
  to { transform: translate(-44px, -58px) rotate(-42deg) scale(1.18); opacity: 0.25; }
}
@keyframes igbFly2 {
  to { transform: translate(44px, -58px) rotate(40deg) scale(1.18); opacity: 0.25; }
}
@keyframes igbFly3 {
  to { transform: translate(-52px, -22px) rotate(-32deg) scale(1.15); opacity: 0.25; }
}
@keyframes igbFly4 {
  to { transform: translate(52px, -22px) rotate(32deg) scale(1.15); opacity: 0.25; }
}
@keyframes igbFly5 {
  to { transform: translate(-48px, 16px) rotate(-28deg) scale(1.15); opacity: 0.25; }
}
@keyframes igbFly6 {
  to { transform: translate(-18px, 30px) rotate(22deg) scale(1.15); opacity: 0.25; }
}
@keyframes igbFly7 {
  to { transform: translate(48px, 18px) rotate(34deg) scale(1.15); opacity: 0.25; }
}

.gift-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.gift-confetti-piece {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--cw, 9px);
  height: var(--ch, 9px);
  border-radius: var(--crad, 2px);
  background: var(--cc, #d9b67b);
  opacity: 0;
}

.gift-stage.is-exploding .gift-confetti-piece {
  animation: igbConfettiFly 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes igbConfettiFly {
  0% {
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) scale(1) rotate(var(--cr, 240deg));
    opacity: 0;
  }
}

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

.gift-shadow {
  width: 170px;
  height: 18px;
  margin-top: -4px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(124, 106, 96, 0.28) 0%, transparent 72%);
  animation: igbShadowPulse 3.4s ease-in-out infinite;
}

@keyframes igbShadowPulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(0.9);
    opacity: 0.45;
  }
}

.mini-gift {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  filter: drop-shadow(0 5px 10px rgba(70, 54, 42, 0.22));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-gift svg,
.mini-gift img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

.mini-gift--1 {
  top: 18px;
  left: 34px;
  width: 36px;
  transform: rotate(-16deg);
}
.mini-gift--2 {
  top: 12px;
  right: 28px;
  width: 40px;
  transform: rotate(15deg);
}
.mini-gift--3 {
  top: 142px;
  left: 16px;
  width: 30px;
  transform: rotate(-10deg);
}
.mini-gift--4 {
  top: 136px;
  right: 16px;
  width: 28px;
  transform: rotate(10deg);
}
.mini-gift--5 {
  bottom: 72px;
  left: 48px;
  z-index: 4;
  width: 46px;
  transform: rotate(-10deg);
}
.mini-gift--6 {
  bottom: 68px;
  left: 82px;
  z-index: 5;
  width: 28px;
  transform: rotate(6deg);
}
.mini-gift--7 {
  bottom: 68px;
  right: 54px;
  z-index: 4;
  width: 42px;
  transform: rotate(8deg);
}

@media (min-width: 768px) {
  .mini-gift--1 {
    top: 18px;
    left: 44px;
    width: 40px;
  }
  .mini-gift--2 {
    top: 12px;
    right: 36px;
    width: 44px;
  }
  .mini-gift--3 {
    top: 158px;
    left: 22px;
    width: 34px;
  }
  .mini-gift--4 {
    top: 148px;
    right: 22px;
    width: 32px;
  }
  .mini-gift--5 {
    bottom: 76px;
    left: 56px;
    width: 52px;
  }
  .mini-gift--6 {
    bottom: 72px;
    left: 94px;
    width: 32px;
  }
  .mini-gift--7 {
    bottom: 72px;
    right: 64px;
    width: 48px;
  }
}

.gift-sparkle {
  position: absolute;
  color: var(--brown-muted);
  pointer-events: none;
  animation: igbSparkle 2.4s ease-in-out infinite;
}

.gift-sparkle--1 {
  top: 32px;
  left: 72px;
  font-size: 16px;
}
.gift-sparkle--2 {
  top: 84px;
  right: 20px;
  font-size: 17px;
  animation-delay: 0.6s;
}
.gift-sparkle--3 {
  top: 88px;
  left: 34px;
  font-size: 12px;
  animation-delay: 1.1s;
}
.gift-sparkle--4 {
  bottom: 108px;
  right: 14px;
  font-size: 14px;
  animation-delay: 1.6s;
}

@keyframes igbSparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.gift-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--brown-muted);
  animation: igbHintPulse 2.2s ease-in-out infinite;
}

@keyframes igbHintPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 16px 24px 56px;
  text-align: center;
}

.site-footer__msg {
  position: relative;
  z-index: 1;
  margin: 0 0 30px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--brown-primary);
}

.site-footer__credit {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  color: var(--brown-primary);
  opacity: 0.55;
}

.bg-ornament-house--footer {
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
}

/* ============================================================================
   FLOATING MUSIC CD BUTTON
   ============================================================================ */

.music-fab {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(255, 247, 243, 0.85);
  background: radial-gradient(circle at 30% 30%, #8e796d, #6e5c52 75%);
  box-shadow: 0 6px 18px rgba(62, 46, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.music-fab.is-playing .music-fab__disc {
  animation: spinCd 3.2s linear infinite;
}

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

.music-fab__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.music-bar {
  width: 3px;
  border-radius: 2px;
  background: #fff7f3;
  height: 6px;
  transition: height 0.2s ease;
}

.music-fab.is-playing .music-bar:nth-child(1) {
  animation: danceBar 0.45s ease-in-out infinite alternate;
}
.music-fab.is-playing .music-bar:nth-child(2) {
  animation: danceBar 0.45s ease-in-out 0.12s infinite alternate;
}
.music-fab.is-playing .music-bar:nth-child(3) {
  animation: danceBar 0.45s ease-in-out 0.24s infinite alternate;
}
.music-fab.is-playing .music-bar:nth-child(4) {
  animation: danceBar 0.45s ease-in-out 0.36s infinite alternate;
}

@keyframes danceBar {
  from {
    height: 4px;
  }
  to {
    height: 15px;
  }
}

/* ============================================================================
   MODALS (LIGHTBOX, RSVP, WISH SUGGESTIONS, GIFT QR)
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 18, 14, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  background: #ffffff;
  color: #3a302b;
  font-family: var(--font-ui);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s ease;
}

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

.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(124, 106, 96, 0.1);
  color: #5e4c42;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-x:hover {
  background: rgba(124, 106, 96, 0.2);
}

/* RSVP Modal */
.rsvp-body {
  padding: 24px;
}

.rsvp-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #2f2622;
}

.rsvp-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #6d615b;
}

.rsvp-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3a302b;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9d0c9;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #2f2622;
  outline: none;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--brown-primary);
}

.rsvp-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #e5ddd7;
  background: #faf8f6;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #3a302b;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rsvp-option__badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e5ddd7;
  color: #6d615b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.rsvp-option.is-selected-yes {
  border-color: #10b981;
  background: #ecfdf5;
}

.rsvp-option.is-selected-yes .rsvp-option__badge {
  background: #10b981;
  color: #ffffff;
}

.rsvp-option.is-selected-no {
  border-color: #b45309;
  background: #fffbeb;
}

.rsvp-option.is-selected-no .rsvp-option__badge {
  background: #b45309;
  color: #ffffff;
}

.rsvp-extra {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.rsvp-extra.is-visible {
  display: flex;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d5ccc4;
  background: #ffffff;
  color: #3a302b;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-val {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--brown-primary);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.rsvp-submit-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* Wish Suggestions Modal */
.wish-suggestions-body {
  padding: 22px;
}

.wish-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-height: 340px;
  overflow-y: auto;
}

.wish-suggestion-item {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5ddd7;
  background: #ffffff;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  color: #423731;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wish-suggestion-item:hover {
  border-color: #d977a5;
  background: #fff5f9;
}

.wish-suggestions-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-outline-soft {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd3cc;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: #423731;
}

.btn-muted-soft {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #e5e7eb;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

/* Gift Modal */
.modal-panel--gift {
  max-width: 560px;
  background: var(--bg-page);
}

.gift-modal-header {
  position: relative;
  background: var(--brown-primary);
  color: #ffffff;
  padding: 18px 24px;
  text-align: center;
}

.gift-modal-header h3 {
  margin: 0;
  font-family: var(--font-times);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gift-modal-header .modal-close-x {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: transparent;
  color: #ffffff;
  font-size: 22px;
}

.gift-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 26px 24px 30px;
}

@media (min-width: 540px) {
  .gift-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gift-account-card {
  text-align: center;
}

.gift-account-role {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-primary);
}

.gift-qr-box {
  width: 158px;
  height: 158px;
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gift-bank-line {
  margin: 2px 0;
  font-size: 12px;
  color: var(--brown-muted);
}

.gift-acc-number {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-primary);
  cursor: pointer;
}

.gift-acc-holder {
  margin: 2px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brown-primary);
}

.save-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(124, 106, 96, 0.25);
  border-radius: 999px;
  background: #f0e6de;
  color: var(--brown-primary);
  font-size: 12px;
  font-weight: 600;
}

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

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-counter {
  position: fixed;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 22px;
}

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

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  flex-shrink: 0;
  background: transparent;
}

.lightbox-thumb.is-active {
  border-color: #ffffff;
  opacity: 1;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #3a302b;
  color: #fff7f3;
  font-family: var(--font-ui);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

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