/* ========================================================
   MINIMALISM XANH (m26) - STYLESHEET
   Clean, Modern, Botanical Vietnamese Wedding Template
   ======================================================== */

:root {
  --color-primary: #6b7b4f;
  --color-primary-dark: #272e13;
  --color-accent: #87a172;
  --color-accent-soft: #cdd9bd;
  --color-bg-light: #e9efe1;
  --color-page-bg: #ffffff;
  --color-card-bg: #ffffff;
  --color-card-border: #6b7b4f;
  --color-text-dark: #272e13;
  --color-text-light: #ffffff;
  --color-text-muted: rgba(107, 123, 79, 0.7);

  --font-serif: 'EB Garamond', 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-calligraphy: 'Viaoda Libre', serif;
  --font-body: 'Baskerville', 'Times New Roman', 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(107, 123, 79, 0.18);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.15);
  --shadow-card: 4px 4px 16px rgba(107, 123, 79, 0.12);
}

/* Palette scope required by wedding backend profile validator */
[data-palette="minimalism-xanh"] {
  --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;
  background-color: #dbe6cf;
}

/* ========================================================
   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 {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: #dbe6cf;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

/* Main Container: Mobile phone simulator style (max 480px) */
.page-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--color-page-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding-bottom: 40px;
  transition: opacity 0.6s ease;
}

@media (min-width: 768px) {
  .page-container {
    max-width: 520px;
    margin: 20px auto;
    border-radius: 12px;
  }
}

/* Paper Texture overlay */
.bg-paper-texture {
  position: absolute;
  inset: 0;
  background-image: url("paper.webp");
  background-size: 100% auto;
  background-position: top left;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* Background Botanical Watermark */
.bg-flower-watermark {
  position: absolute;
  top: -52px;
  left: -220px;
  width: 784px;
  height: 845px;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

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

.leaf-particle {
  position: absolute;
  top: -30px;
  opacity: 0.8;
  border-radius: 80% 0 80% 0;
  animation-name: fallAndSway;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fallAndSway {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  90% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(105vh) translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================================
   SECTION 1: ENVELOPE COVER SCREEN
   ======================================================== */
.envelope-cover {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(to bottom right, #e9efe1, #dbe6cf, #cdd9bd);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  touch-action: none;
  overscroll-behavior: none;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 0.8s ease;
}

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

.envelope-card-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 123, 79, 0.4);
  position: absolute;
  top: -25px;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seal-badge:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(107, 123, 79, 0.6);
}

.seal-heart-icon {
  width: 24px;
  height: 24px;
}

.envelope-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 45px 24px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(40, 50, 25, 0.18);
  border: 1px solid rgba(107, 123, 79, 0.2);
  text-align: center;
}

.card-decor-corner {
  position: absolute;
  width: 180px;
  height: auto;
  opacity: 0.25;
  pointer-events: none;
}

.decor-top-left {
  top: -30px;
  left: -40px;
  transform: rotate(125deg);
}

.decor-bottom-right {
  bottom: -30px;
  right: -40px;
  transform: scaleX(-1) rotate(-25deg);
}

.envelope-couple-title {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.envelope-couple-title .amp-symbol {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: var(--color-accent);
  line-height: 0.9;
}

.envelope-flower-line {
  width: 130px;
  height: auto;
  margin: 12px auto;
  display: block;
}

.envelope-date {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.envelope-guest-badge {
  background: rgba(107, 123, 79, 0.08);
  border: 1px dashed var(--color-accent);
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-block;
  margin-bottom: 22px;
}

.envelope-guest-badge .guest-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.btn-open-envelope {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 36px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 123, 79, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseButton 2.2s infinite ease-in-out;
}

.btn-open-envelope:hover,
.btn-open-envelope:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(107, 123, 79, 0.5);
}

.btn-open-envelope .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shineMove 2.6s infinite ease-in-out;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes shineMove {
  0% { left: -100%; }
  60%, 100% { left: 160%; }
}

/* ========================================================
   FLOATING CONTROLS
   ======================================================== */
.floating-controls {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-float {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid rgba(107, 123, 79, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-float:hover {
  transform: scale(1.08);
}

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

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

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

.btn-audio-float.is-playing .sound-wave span {
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: soundBar 1s infinite ease-in-out;
}

.btn-audio-float.is-playing .sound-wave span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.btn-audio-float.is-playing .sound-wave span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.btn-audio-float.is-playing .sound-wave span:nth-child(3) { height: 8px; animation-delay: 0.2s; }

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

@keyframes soundBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ========================================================
   SECTION 1: HERO COVER WITH ENVELOPE POCKET
   ======================================================== */
.section-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-flower-line {
  width: 124px;
  max-width: 45%;
  height: auto;
  margin: 12px auto;
  display: block;
}

/* Pocket Floating Animation */
@keyframes mgFloatG {
  0%, 100% {
    transform: translate(-50%, 0) rotate(9.59deg);
  }
  50% {
    transform: translate(-50%, -8px) rotate(9.59deg);
  }
}

@keyframes mgFloatB {
  0%, 100% {
    transform: translate(-50%, 0) rotate(-12.55deg);
  }
  50% {
    transform: translate(-50%, -8px) rotate(-12.55deg);
  }
}

.hero-pocket-container {
  position: relative;
  z-index: 10;
  margin-top: 16px;
  width: 77%;
  max-width: 326px;
  aspect-ratio: 268 / 317;
}

.pocket-back-envelope {
  position: absolute;
  left: 0;
  top: 7.9%;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.pocket-photo {
  position: absolute;
  z-index: 20;
  width: 56%;
  will-change: transform;
}

.pocket-photo-groom {
  left: 72%;
  top: 3%;
  animation: mgFloatG 4s ease-in-out infinite;
}

.pocket-photo-bride {
  left: 31.7%;
  top: 20%;
  animation: mgFloatB 4.6s ease-in-out infinite;
}

.pocket-photo-card {
  aspect-ratio: 150 / 180;
  border: 6px solid #ffffff;
  background-color: #ffffff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

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

.pocket-front-cut {
  position: absolute;
  left: 0;
  top: 45.4%;
  width: 100%;
  z-index: 30;
  pointer-events: none;
}

.hero-couple-block {
  position: relative;
  z-index: 10;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-couple-title {
  position: relative;
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-style: italic;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-couple-title .giant-amp {
  font-family: var(--font-cursive);
  font-style: normal;
  font-size: 6.8rem;
  color: rgba(107, 123, 79, 0.15);
  line-height: 0.6;
  pointer-events: none;
  margin: -15px 0 -25px 0;
}

/* ========================================================
   SECTION 2: CEREMONY & FAMILY (ARCHED CARD)
   ======================================================== */
.section-ceremony-wrap {
  position: relative;
  z-index: 10;
  width: 88%;
  max-width: 420px;
  margin: 16px auto 32px;
}

.ceremony-arched-card {
  position: relative;
  overflow: hidden;
  border-radius: 200px 200px 10px 10px;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 56px 20px 40px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(107, 123, 79, 0.22);
}

.card-paper-texture {
  position: absolute;
  inset: 0;
  background-image: url("paper.webp");
  background-size: 666px 1000px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.ceremony-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ceremony-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.family-info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 10px;
  font-family: var(--font-body);
}

.family-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.family-parent-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parent-name {
  font-size: 0.85rem;
  color: #ffffff;
}

.family-address {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.75);
}

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

.child-rank {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.child-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.family-divider {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.4);
}

.announcement-banner {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calligraphy-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-calligraphy);
  font-size: 2.1rem;
  line-height: 1.15;
  color: #ffffff;
}

.calligraphy-couple .calligraphy-amp {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
}

.ceremony-time-block {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ceremony-intro {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.ceremony-clock {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.ceremony-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #ffffff;
}

.ceremony-date-badge .date-sep {
  opacity: 0.5;
}

.ceremony-date-badge .date-day {
  font-size: 1.4rem;
  font-weight: 700;
}

.ceremony-year {
  font-size: 0.95rem;
  color: #ffffff;
}

.ceremony-lunar {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

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

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(107, 123, 79, 0.05);
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 123, 79, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

/* ========================================================
   SECTION 4: RECEPTION CARD (TIỆC CƯỚI)
   ======================================================== */
.section-party-wrap {
  position: relative;
  z-index: 10;
  width: 88%;
  max-width: 420px;
  margin: 16px auto 32px;
}

.party-bordered-card {
  position: relative;
  border: 3px solid var(--color-primary);
  border-radius: 10px;
  background-color: #ffffff;
  padding: 32px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bg-card-watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  z-index: 1;
}

.watermark-party {
  top: -120px;
  right: -140px;
  width: 500px;
  height: auto;
  transform: rotate(24.65deg);
}

.party-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.party-card-title {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.party-time-wrap {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.party-time-label {
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.party-time-clock {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.party-date-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-top: 4px;
}

.party-date-inline .day-highlight {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.party-date-inline .dot-sep {
  color: var(--color-accent);
}

.party-lunar {
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* Mini Calendar Box */
.calendar-widget-wrap {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.calendar-widget {
  width: 100%;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px 16px;
  box-shadow: 0 4px 12px rgba(107, 123, 79, 0.25);
}

.calendar-widget-header {
  font-family: var(--font-cursive);
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
  font-size: 0.85rem;
  font-family: var(--font-serif);
}

.calendar-day-cell {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day-cell.is-wedding-day {
  background-color: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-add-calendar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.btn-add-calendar:hover {
  opacity: 0.8;
}

/* RSVP Button */
.rsvp-action-wrap {
  margin-top: 4px;
}

.btn-rsvp-pill {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 123, 79, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-rsvp-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(107, 123, 79, 0.45);
}

/* Venue Information */
.venue-info-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.venue-divider {
  width: 60px;
  height: 1px;
  background-color: rgba(107, 123, 79, 0.3);
  margin-bottom: 8px;
}

.venue-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.venue-address {
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  max-width: 280px;
  line-height: 1.4;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(107, 123, 79, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 6px;
  transition: background-color 0.2s, color 0.2s;
}

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

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

.dresscode-subtitle {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  max-width: 320px;
  margin: -10px auto 20px;
  line-height: 1.4;
}

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

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

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
}

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

/* ========================================================
   SECTION 6: TIMELINE (ASYMMETRIC CARD)
   ======================================================== */
.section-timeline-wrap {
  position: relative;
  z-index: 10;
  width: 88%;
  max-width: 420px;
  margin: 16px auto 36px;
}

.timeline-asymmetric-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px 100px 10px 100px;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 40px 24px;
  box-shadow: 0 10px 28px rgba(107, 123, 79, 0.2);
}

.timeline-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 280px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.timeline-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
}

.timeline-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.timeline-label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

/* ========================================================
   SECTION 7: GUESTBOOK (SỔ LƯU BÚT)
   ======================================================== */
.section-guestbook {
  position: relative;
  z-index: 10;
  padding: 24px 20px 40px;
  text-align: center;
}

.bg-guestbook-watermark {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 530px;
  opacity: 0.9;
  pointer-events: none;
}

.guestbook-title {
  position: relative;
  z-index: 10;
  margin-top: 15px;
}

.guestbook-container {
  position: relative;
  z-index: 10;
  max-width: 380px;
  margin: 0 auto;
}

.wish-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary-dark);
  background-color: rgba(255, 255, 255, 0.85);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn-magic-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 8px;
}

.btn-submit-wish {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 22px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit-wish:hover {
  background-color: var(--color-primary-dark);
}

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

.wish-card {
  border: 1px solid rgba(107, 123, 79, 0.4);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

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

.wish-author {
  color: var(--color-primary);
  font-weight: 600;
}

.wish-time {
  font-size: 0.72rem;
  color: rgba(107, 123, 79, 0.7);
}

.wish-body {
  color: var(--color-primary-dark);
  line-height: 1.4;
}

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

.watermark-gift {
  top: -80px;
  left: -120px;
  width: 480px;
  height: auto;
  transform: rotate(165.75deg);
}

.giftbox-prompt {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-top: -12px;
  margin-bottom: 24px;
}

.giftbox-stage {
  position: relative;
  width: 260px;
  height: 270px;
  margin: 0 auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-giftbox-wrap {
  position: relative;
  width: 170px;
  height: 185px;
  animation: giftBob 3s ease-in-out infinite;
}

.main-giftbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(40, 50, 25, 0.22));
}

.giftbox-shadow {
  position: absolute;
  bottom: -15px;
  left: 10%;
  width: 80%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(40, 50, 25, 0.28) 0%, transparent 70%);
  animation: shadowPulse 3s ease-in-out infinite;
}

/* Orbiting mini decorations */
.mini-decor {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.mini-decor-1 { width: 32px; top: 20px; left: 15px; transform: rotate(-22deg); animation: miniFloat 3.8s ease-in-out infinite; }
.mini-decor-2 { width: 34px; top: 15px; right: 18px; transform: rotate(20deg); animation: miniFloat 4.2s ease-in-out infinite 0.5s; }
.mini-decor-3 { width: 26px; top: 110px; left: 10px; transform: rotate(-18deg); animation: miniFloat 3.6s ease-in-out infinite 1s; }
.mini-decor-4 { width: 24px; top: 115px; right: 12px; transform: rotate(14deg); animation: miniFloat 4s ease-in-out infinite 0.2s; }
.mini-decor-5 { width: 38px; bottom: 35px; left: 25px; transform: rotate(8deg); animation: miniFloat 4.5s ease-in-out infinite 0.8s; }

.giftbox-tap-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(107, 123, 79, 0.3);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  white-space: nowrap;
}

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

@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(0.85); opacity: 0.3; }
}

@keyframes miniFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
}

/* ========================================================
   SECTION 9: FOOTER
   ======================================================== */
.section-footer {
  position: relative;
  z-index: 10;
  padding: 30px 24px 20px;
  text-align: center;
}

.footer-couple-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.footer-thank-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

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

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

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

/* ========================================================
   MODALS: GIFT, RSVP & LIGHTBOX
   ======================================================== */
.modal-dialog-wrap {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog-wrap[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-primary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-btn-close:hover {
  background-color: rgba(107, 123, 79, 0.1);
}

/* Gift Modal Styles */
.gift-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.gift-modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.gift-modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.gift-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-account-card {
  border: 1px solid rgba(107, 123, 79, 0.25);
  border-radius: 12px;
  padding: 16px;
  background-color: #fafcf8;
}

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

.badge-role {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.account-bank-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.account-qr-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(107, 123, 79, 0.2);
}

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

.account-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  color: var(--color-primary-dark);
}

.detail-val {
  color: var(--color-primary);
}

.acc-num-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acc-num {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-copy-acc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: rgba(107, 123, 79, 0.12);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* RSVP Modal Styles */
.rsvp-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.rsvp-modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.rsvp-modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.rsvp-radio-options {
  display: flex;
  gap: 10px;
}

.radio-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(107, 123, 79, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  background-color: #fafcf8;
}

.radio-chip input[type="radio"] {
  accent-color: var(--color-primary);
}

.btn-rsvp-submit {
  width: 100%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 123, 79, 0.35);
  margin-top: 6px;
}

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

.rsvp-success-box .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #e8f0df;
  color: var(--color-primary);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 12px;
}

.rsvp-success-box h5 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

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