/* ========================================================
   MINIMALISM NÂU (m25) - STYLESHEET
   Clean, Warm, Elegant Vietnamese Wedding Template
   ======================================================== */

:root {
  --color-primary: #7c6a60;
  --color-primary-dark: #5e4c42;
  --color-primary-light: #9c8a80;
  --color-muted: #918077;
  --color-eyebrow: #827771;
  --color-card-fill: #f6eadd;
  --color-card-border: rgba(124, 106, 96, 0.18);
  --color-card-shadow: rgba(0, 0, 0, 0.14);
  --color-page-bg: #fff7f3;
  --color-calendar-bg: #7c6a60;
  --color-light-text: #ded9d7;
  --color-text-dark: #3a322c;

  --font-serif: 'EB Garamond', 'Times New Roman', serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(124, 106, 96, 0.2);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.15);
  --shadow-card: 4px 4px 16px rgba(124, 106, 96, 0.12);
}

/* Palette scope required by wedding backend profile validator */
[data-palette="minimalism-nau"] {
  --theme-primary: var(--color-primary);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

/* ========================================================
   ENVELOPE SCROLL LOCK STATE
   ======================================================== */
html.envelope-locked,
body.envelope-locked {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  touch-action: none;
}

body.envelope-locked .page-container {
  opacity: 0;
  visibility: hidden;
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

body.envelope-locked .floating-controls {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.template-m25 {
  background-color: #2b2522;
  color: var(--color-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

/* Background paper texture & illustrations */
.bg-paper-texture {
  position: absolute;
  inset: 0;
  background-image: url("paper.webp");
  background-size: 100% auto;
  background-position: top center;
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.bg-leaf-faded {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  opacity: 0.12;
  z-index: 2;
}

.leaf-top-left {
  top: 1%;
  left: -22%;
  width: 52%;
}

.bg-house-faded {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 24%;
  width: 130%;
  transform: translateX(-50%);
  object-fit: contain;
  opacity: 0.07;
  mix-blend-mode: multiply;
  z-index: 2;
}

/* Page stage container (max-width 480px mobile viewport) */
.page-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--color-page-bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
  padding-bottom: 60px;
  z-index: 10;
  transition: opacity 0.6s ease;
}

/* ========================================================
   SECTION 0: AMBIENT FALLING LEAVES
   ======================================================== */
.ambient-leaves-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.falling-leaf {
  position: absolute;
  top: -40px;
  pointer-events: none;
  opacity: 0.8;
  animation: leafFall linear infinite;
  will-change: transform;
}

@keyframes leafFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(105vh) translateX(var(--drift, 40px)) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}

/* ========================================================
   SECTION 1: ENVELOPE / COVER LANDING SCREEN
   ======================================================== */
.envelope-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(135deg, #f3e6da 0%, #e8d5c4 50%, #dcc6b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  touch-action: none;
  overscroll-behavior: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
}

.envelope-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

.envelope-card-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 640px) {
  .envelope-card-wrap {
    max-width: 380px;
  }
}

/* Seal Badge */
.seal-badge {
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #7c6a60, #5e4c42);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(124, 106, 96, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  z-index: 30;
  cursor: pointer;
  animation: sealPulse 2.2s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seal-badge:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 24px rgba(124, 106, 96, 0.7);
}

.seal-heart-icon {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 18px rgba(124, 106, 96, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 6px 24px rgba(124, 106, 96, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.45);
  }
}

/* Envelope Card Body */
.envelope-card {
  position: relative;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(124, 106, 96, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 48px 24px 36px;
  text-align: center;
}

.card-decor-corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  width: 140px;
  height: auto;
  z-index: 5;
}

.decor-top-left {
  top: -45px;
  left: -40px;
  width: 110px;
  transform: rotate(25deg);
  opacity: 0.7;
}

.decor-bottom-right {
  bottom: -45px;
  right: -40px;
  width: 110px;
  transform: scaleX(-1) rotate(-25deg);
  opacity: 0.7;
}

.envelope-card-content {
  position: relative;
  z-index: 10;
}

.envelope-couple-title {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 10px;
}

.envelope-couple-title .name-line {
  display: block;
}

.envelope-couple-title .amp-symbol {
  display: block;
  font-size: 1.3rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-muted);
  margin: 2px 0;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.ornament-divider .div-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-primary));
}

.ornament-divider .div-line:last-child {
  background: linear-gradient(to left, transparent, var(--color-primary));
}

.ornament-divider .div-symbol {
  color: var(--color-primary);
  opacity: 0.75;
  font-size: 1rem;
}

.envelope-date {
  font-family: var(--font-serif);
  color: rgba(124, 106, 96, 0.85);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.envelope-guest-badge {
  margin-bottom: 24px;
}

.guest-text {
  font-family: var(--font-serif);
  color: var(--color-muted);
  font-size: 1rem;
  font-style: italic;
}

/* Button Open Envelope */
.btn-open-envelope {
  position: relative;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 12px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 106, 96, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-open-envelope:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(124, 106, 96, 0.5);
}

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

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

/* ========================================================
   FLOATING CONTROLS (MUSIC & SCROLL TOP)
   ======================================================== */
.floating-controls {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: 20px;
  max-width: 440px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.btn-float {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(124, 106, 96, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-float:hover {
  transform: scale(1.1);
  background-color: var(--color-primary-dark);
}

.btn-audio-float.is-playing .icon-disc {
  animation: discSpin 4s linear infinite;
}

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

.sound-wave {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.btn-audio-float.is-playing .sound-wave {
  display: flex;
}

.sound-wave span {
  width: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  animation: wavePulse 1s ease-in-out infinite alternate;
}

.sound-wave span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { height: 9px; animation-delay: 0.2s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.btn-scroll-top {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   COMMON SECTION STYLING & CARDS
   ======================================================== */
.section-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px 40px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-eyebrow);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-couple-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-eyebrow);
  margin-bottom: 28px;
  line-height: 1.2;
}

.hero-couple-title .name-amp {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-style: normal;
  color: var(--color-muted);
  display: inline-block;
  margin: 0 8px;
  vertical-align: middle;
}

/* Polaroid Photo Frame */
.hero-polaroid-wrap {
  position: relative;
  width: 86%;
  max-width: 360px;
  margin: 0 auto;
}

.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 90px;
  height: 24px;
  transform: translateX(-50%) rotate(-1deg);
  background-color: rgba(222, 203, 178, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 30;
  border-radius: 2px;
}

.polaroid-card {
  position: relative;
  background-color: #ffffff;
  padding: 14px 14px 44px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  border-radius: 4px;
  transition: transform 0.4s ease;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-photo-inner {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #f0eae4;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dried flower decoration */
.hero-flower-decor {
  position: absolute;
  bottom: -30px;
  left: -25px;
  width: 130px;
  height: auto;
  pointer-events: none;
  z-index: 35;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.2));
}

.floating-element {
  animation: mbFloat 5s ease-in-out infinite;
}

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

/* Music prompt badge */
.hero-music-prompt {
  position: absolute;
  bottom: 12px;
  right: -10px;
  background-color: rgba(124, 106, 96, 0.95);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 35;
  transition: transform 0.2s ease;
}

.hero-music-prompt:hover {
  transform: scale(1.05);
}

/* Framed Section Cards */
.section-card {
  position: relative;
  z-index: 10;
  width: 88%;
  max-width: 420px;
  margin: 20px auto 30px;
}

.card-inner-box {
  position: relative;
  background-color: var(--color-card-fill);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px 20px;
  text-align: center;
  overflow: hidden;
}

.card-decor-accent {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15));
}

.leaf-card-left {
  top: 30%;
  left: -20px;
  width: 90px;
  opacity: 0.85;
}

.flower-card-right {
  bottom: -15px;
  right: -25px;
  width: 120px;
  transform: scaleX(-1);
}

.leaf-card-right {
  top: 20%;
  right: -20px;
  width: 90px;
  opacity: 0.85;
}

.flower-card-left {
  bottom: -15px;
  left: -25px;
  width: 120px;
}

.flower-timeline-top {
  top: -20px;
  right: -20px;
  width: 100px;
  transform: scaleX(-1) rotate(-10deg);
}

.card-title, .section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: -16px;
  margin-bottom: 24px;
  text-align: center;
}

/* ========================================================
   SECTION 2: CEREMONY DETAILS & FAMILY
   ======================================================== */
.family-info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}

.family-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.family-parent-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.parent-name {
  color: var(--color-primary);
  font-size: 0.85rem;
}

.family-address {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.family-divider {
  width: 1px;
  height: 80px;
  background-color: rgba(124, 106, 96, 0.25);
  margin: auto;
}

.child-status {
  margin-top: 14px;
}

.child-rank {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.child-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.announcement-banner {
  margin: 18px 0 12px;
}

.announce-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.calligraphy-couple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.calligraphy-name {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--color-primary);
}

.calligraphy-amp {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-muted);
}

.ceremony-time-block {
  padding-top: 16px;
  border-top: 1px dashed rgba(124, 106, 96, 0.25);
}

.ceremony-intro {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.ceremony-clock {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.ceremony-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.date-weekday {
  text-transform: uppercase;
  font-size: 0.88rem;
}

.date-day {
  font-size: 1.6rem;
  font-weight: 700;
}

.date-sep {
  color: rgba(124, 106, 96, 0.4);
}

.date-month {
  text-transform: uppercase;
  font-size: 0.88rem;
}

.ceremony-year {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-primary);
}

.ceremony-lunar {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ========================================================
   SECTION 3: PHOTO GALLERY
   ======================================================== */
.section-gallery {
  position: relative;
  z-index: 10;
  padding: 30px 16px;
  text-align: center;
}

.bg-gallery-leaf {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 45%;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(35deg);
}

.gallery-carousel-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 16px;
  padding: 10px 4px 20px;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.polaroid-frame-item {
  background-color: #ffffff;
  padding: 12px 12px 36px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.polaroid-frame-item:hover {
  transform: scale(1.02);
}

.polaroid-inner-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #f2ede7;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.btn-slider-prev, .btn-slider-next {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-card-border);
  background-color: var(--color-card-fill);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-slider-prev:hover, .btn-slider-next:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.slider-counter {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ========================================================
   SECTION 4: RECEPTION & CALENDAR
   ======================================================== */
.reception-lead {
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.reception-main-time {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.reception-sub-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.85rem;
}

.sub-time-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.sub-val {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.sub-time-sep {
  color: var(--color-muted);
  opacity: 0.5;
}

/* Calendar Widget */
.calendar-widget {
  margin: 24px auto 18px;
  background-color: var(--color-calendar-bg);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  max-width: 320px;
  color: var(--color-light-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.calendar-header-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendar-table th {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 8px;
}

.calendar-table td {
  font-size: 0.85rem;
  height: 32px;
  width: 32px;
  position: relative;
  vertical-align: middle;
}

.wedding-day-cell .day-number {
  position: relative;
  z-index: 5;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.wedding-heart-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-text-link:hover {
  opacity: 0.75;
}

.btn-action-primary {
  background-color: var(--color-primary);
  color: var(--color-light-text);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 106, 96, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-action-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(124, 106, 96, 0.45);
}

/* ========================================================
   SECTION 5: VENUE & MAP
   ======================================================== */
.section-venue {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  text-align: center;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.venue-address {
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.45;
}

.map-card-wrap {
  max-width: 380px;
  margin: 0 auto;
}

.map-mockup-frame {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  background-color: #eae5df;
}

.map-mockup-pin {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.pin-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #d9534f;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-btn-row {
  margin-top: 14px;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-card-border);
  background-color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

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

/* ========================================================
   SECTION 6: DRESS CODE
   ======================================================== */
.section-dresscode {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  text-align: center;
}

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

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

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  border: 2px solid #ffffff;
  transition: transform 0.25s ease;
}

.swatch-circle:hover {
  transform: scale(1.15);
}

.color-forest-green { background-color: #0d2315; }
.color-camel-gold   { background-color: #d4b278; }
.color-sage-olive   { background-color: #455c43; }
.color-warm-cream   { background-color: #f0e6d2; }

.swatch-name {
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* ========================================================
   SECTION 7: WEDDING TIMELINE
   ======================================================== */
.timeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.timeline-step {
  display: grid;
  grid-template-columns: 55px 40px 1fr;
  align-items: center;
}

.step-time {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
  padding-right: 8px;
}

.step-node-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.node-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.step-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.node-ring-icon, .node-camera-icon {
  font-size: 1.1rem;
}

.node-line {
  position: absolute;
  top: 36px;
  bottom: -22px;
  width: 2px;
  background-color: rgba(124, 106, 96, 0.3);
  z-index: 1;
}

.step-desc {
  padding-left: 10px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-primary);
}

.step-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ========================================================
   SECTION 8: GUESTBOOK
   ======================================================== */
.section-guestbook {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
}

.bg-guestbook-leaf {
  position: absolute;
  top: -10px;
  left: -20px;
  width: 44%;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(38deg);
}

.bg-paper-notepad {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 95%;
  max-width: 440px;
  transform: translateX(-50%);
  opacity: 0.15;
  pointer-events: none;
}

.guestbook-inner {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.guestbook-form-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.input-minimal, .textarea-minimal, .select-minimal {
  width: 100%;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.input-minimal:focus, .textarea-minimal:focus, .select-minimal:focus {
  border-color: var(--color-primary-dark);
  background-color: #ffffff;
}

.textarea-minimal {
  resize: vertical;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.btn-magic-wish {
  background: rgba(124, 106, 96, 0.12);
  border: 1px solid rgba(124, 106, 96, 0.3);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-magic-wish:hover {
  background: rgba(124, 106, 96, 0.2);
}

.btn-submit-wish {
  background-color: var(--color-primary);
  color: var(--color-light-text);
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 24px;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-submit-wish:hover {
  transform: scale(1.03);
}

.wishes-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 106, 96, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
}

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

.wish-author {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--color-primary);
}

.wish-time {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.wish-body {
  font-size: 0.84rem;
  color: var(--color-text-dark);
  line-height: 1.4;
}

/* ========================================================
   SECTION 9: GIFT BOX
   ======================================================== */
.section-giftbox {
  position: relative;
  z-index: 10;
  padding: 40px 20px 20px;
  text-align: center;
}

.bg-giftbox-house {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 140%;
  transform: translateX(-50%);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.giftbox-inner {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.giftbox-stage {
  position: relative;
  width: 240px;
  height: 250px;
  margin: 10px auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.main-giftbox-wrap {
  position: relative;
  width: 180px;
  height: auto;
  animation: giftBob 4s ease-in-out infinite;
}

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

.main-giftbox-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.22));
}

.mini-gift {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.mini-1 { top: 0px; left: 10px; width: 34px; transform: rotate(-20deg); animation-delay: 0.2s; }
.mini-2 { top: -5px; right: 20px; width: 38px; transform: rotate(18deg); animation-delay: 0.6s; }
.mini-3 { bottom: 60px; left: 10px; width: 28px; transform: rotate(-15deg); animation-delay: 0.4s; }
.mini-4 { bottom: 70px; right: 15px; width: 26px; transform: rotate(12deg); animation-delay: 0.8s; }
.mini-5 { bottom: 30px; left: 35px; width: 36px; transform: rotate(8deg); animation-delay: 1s; }

.giftbox-hint {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 14px;
  opacity: 0.85;
}

.thanks-message-block {
  margin: 20px auto 30px;
  max-width: 340px;
}

.thanks-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.6;
}

.shop-catalog-footer {
  margin-top: 30px;
}

.catalog-link {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.catalog-link:hover {
  color: var(--color-primary);
}

/* ========================================================
   MODALS (GIFT BOX & RSVP)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 380px;
  background-color: #fffaf5;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.is-active .modal-card {
  transform: translateY(0);
}

.modal-top-bar {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-bar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.btn-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}

.btn-modal-close:hover {
  opacity: 1;
}

.modal-gift-body, .modal-rsvp-body {
  padding: 24px 20px;
  overflow-y: auto;
}

.gift-account-card {
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.account-for-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.qr-box-wrap {
  width: 170px;
  height: 170px;
  margin: 0 auto 12px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(124, 106, 96, 0.15);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-details {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.acc-bank-line {
  font-weight: 600;
  color: var(--color-primary);
}

.acc-num-text {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.account-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-acc-action {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background-color: rgba(124, 106, 96, 0.08);
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-acc-action:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Radio chips in RSVP */
.radio-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.radio-chip input {
  display: none;
}

.radio-chip:has(input:checked) {
  background-color: var(--color-primary);
  color: #ffffff;
}

.w-full {
  width: 100%;
}

.rsvp-success-msg {
  text-align: center;
  padding: 20px 10px;
}

.rsvp-success-msg .success-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: #2e7d32;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}

.rsvp-success-msg h5 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.rsvp-success-msg p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ========================================================
   LIGHTBOX MODAL
   ======================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.btn-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 160;
}

.btn-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 160;
  transition: background-color 0.2s;
}

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

.btn-lightbox-nav.prev { left: 16px; }
.btn-lightbox-nav.next { right: 16px; }

/* Toast */
.toast-notify {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30, 25, 22, 0.9);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast-notify[hidden] {
  display: none;
}
