/* ========================================================
   TEMPLATE M22: HÀN QUỐC LÃNG MẠN (ROMANTIC KOREAN GARDEN)
   ZenLove 60 Pre Replica with Full Micro-Interactions
   ======================================================== */

/* Design Tokens & CSS Variables */
:root {
  --color-white: #ffffff;
  --color-dark: #222222;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-chinese: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.16);
}

[data-palette="xanh-sage"] {
  --theme-primary: #9e1c2d;
  --theme-primary-hover: #b82337;
  --theme-primary-soft: rgba(158, 28, 45, 0.12);
  --theme-sage: #5c715e;
  --theme-sage-light: rgba(92, 113, 94, 0.78);
  --theme-bg-main: #fcfbf8;
  --theme-card-bg: #ffffff;
  --theme-text-main: #2b2b2b;
  --theme-text-muted: #6e6e6e;
  --theme-border: #eae6de;
  --theme-gold: #c5a059;
}

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

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

body.template-m22 {
  font-family: var(--font-sans);
  background-color: #ede9e1;
  color: var(--theme-text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Desktop Backdrop */
.desktop-bg-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #f4f1ea 0%, #ded9ce 100%);
  z-index: 0;
}

/* Main Mobile Stage Container (Max 480px) */
.invitation-main {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--theme-bg-main);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding-bottom: 90px; /* Space for floating dock */
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   FLOATING AUDIO PLAYER (TOP-RIGHT)
   ======================================================== */
.audio-control {
  position: fixed;
  top: 18px;
  right: calc(50% - 225px);
  z-index: 100;
}

@media (max-width: 480px) {
  .audio-control {
    right: 16px;
  }
}

.music-disc-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.disc-vinyl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 30%, #111 60%, #444 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.disc-center-dot {
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.music-disc-btn.is-playing .disc-vinyl {
  animation: spinVinyl 4s linear infinite;
}

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

/* ========================================================
   SECTION 1: HERO / COVER (Captured for Catalog Thumbnail)
   ======================================================== */
.section-hero {
  position: relative;
  width: 100%;
  background-color: var(--theme-bg-main);
  padding-bottom: 25px;
}

.hero-header-quote {
  text-align: center;
  padding: 30px 20px 18px;
}

.hero-caps-tagline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-photo-wrap {
  width: 100%;
  padding: 0 16px;
}

.hero-main-photo {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-bottom-info {
  text-align: center;
  padding: 22px 20px 10px;
}

.hero-date-spaced {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-couple-names {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #1c1c1c;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-chinese-script {
  font-family: var(--font-script), var(--font-chinese);
  font-size: 1.6rem;
  color: #4a4a4a;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-red-heart-pulse {
  display: inline-block;
  color: var(--theme-primary);
  font-size: 1.35rem;
  animation: heartPulse 1.8s ease-in-out infinite;
}

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

/* ========================================================
   SECTION 2: STORY LANDSCAPE PHOTO & SWEET LETTER
   ======================================================== */
.section-story-letter {
  padding: 30px 20px;
  text-align: center;
}

.story-photo-card {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.story-landscape-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-photo-card:hover .story-landscape-img {
  transform: scale(1.03);
}

.story-english-script {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: #555555;
  line-height: 1.4;
  margin-bottom: 24px;
  padding: 0 10px;
}

.story-letter-paragraph {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #3d3d3d;
  line-height: 1.85;
  padding: 0 12px;
}

.story-letter-paragraph p {
  margin-bottom: 10px;
}

/* ========================================================
   SECTION 3: ARCHED WELCOME BANNER
   ======================================================== */
.section-welcome-arch {
  position: relative;
  padding: 40px 20px 25px;
}

.arch-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Curved Arch SVG Text */
.arch-curved-svg-text {
  width: 100%;
  height: 90px;
  margin-bottom: -15px;
  position: relative;
  z-index: 2;
}

.arch-svg-text-content {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.3em;
  fill: #222222;
  font-weight: 500;
  text-transform: uppercase;
}

/* Arched Photo Frame */
.arch-photo-frame {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 200px 200px 14px 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

/* Sage Green Semi-transparent Horizontal Banner */
.arch-sage-banner {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  background-color: var(--theme-sage-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  text-align: center;
  padding: 16px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sage-banner-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ========================================================
   SECTION 4: DUO PHOTOS & MEMORY PASSAGE
   ======================================================== */
.section-memory-duo {
  padding: 25px 20px;
  text-align: center;
}

.memory-intro-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #383838;
  line-height: 1.85;
  margin-bottom: 24px;
  padding: 0 10px;
}

.memory-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.memory-duo-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 250px;
}

.memory-duo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-duo-item:hover img {
  transform: scale(1.05);
}

/* ========================================================
   SECTION 5: CALENDAR OVERLAY SECTION
   ======================================================== */
.section-calendar-overlay {
  position: relative;
  width: 100%;
  padding: 20px 16px;
}

.calendar-photo-card {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.calendar-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Translucent Glassmorphism Calendar Box */
.calendar-glass-box {
  position: absolute;
  bottom: 24px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 16px 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
}

.calendar-glass-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--theme-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.cal-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--theme-primary);
  color: #ffffff;
  padding: 5px 0;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.82rem;
  color: #2b2b2b;
}

.cal-day-cell {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.cal-day-cell.wedding-day {
  background-color: var(--theme-primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(158, 28, 45, 0.45);
}

/* ========================================================
   SECTION 6: COUNTDOWN & LOVE NEVER FAILS
   ======================================================== */
.section-countdown-banner {
  padding: 35px 20px 25px;
  text-align: center;
}

.countdown-quote-accent {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #262626;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}

.countdown-english-poem {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: #555555;
  line-height: 1.35;
  margin-bottom: 18px;
}

.countdown-vn-letter {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #3b3b3b;
  line-height: 1.85;
  margin-bottom: 25px;
  padding: 0 10px;
}

/* 4 Ruby Red Countdown Blocks */
.countdown-row-blocks {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.cd-block {
  text-align: center;
}

.cd-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--theme-primary);
  font-weight: 700;
  line-height: 1.1;
}

.cd-lbl {
  font-size: 0.72rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.countdown-photo-card {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.countdown-photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ========================================================
   SECTION 7: WEDDING EVENTS & RED RIBBON BOW
   ======================================================== */
.section-events-ceremony {
  padding: 30px 20px 25px;
  text-align: center;
}

.heart-divider-icon {
  color: var(--theme-primary);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.events-portrait-frame {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.events-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.happy-wedding-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: #222222;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.love-story-deep-passage {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.9;
  margin-bottom: 24px;
  padding: 0 10px;
}

.love-never-fails-tag {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--theme-primary);
  margin-top: 10px;
  font-weight: 600;
}

/* Tied Red Ribbon Bow SVG */
.ribbon-bow-divider {
  width: 110px;
  margin: 20px auto 25px;
}

/* Event Details Cards */
.event-program-block {
  background-color: var(--theme-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--theme-border);
  margin-bottom: 20px;
}

.event-subtitle-script {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #4a4a4a;
  margin-bottom: 10px;
}

.event-main-time {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 15px;
}

/* Double-line Date Row */
.date-triptych-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1.5px solid #222222;
  border-bottom: 1.5px solid #222222;
  padding: 10px 0;
  margin: 15px 10px;
}

.split-month, .split-year {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #222222;
}

.split-day-bold {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #111111;
  line-height: 1;
}

.event-lunar-date {
  font-size: 0.85rem;
  color: #666666;
  font-style: italic;
  margin-bottom: 16px;
}

.event-place-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #333333;
  margin-bottom: 6px;
}

.event-address-line {
  font-size: 0.88rem;
  font-weight: 500;
  color: #444444;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-red-pill-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-primary);
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(158, 28, 45, 0.35);
  transition: all 0.25s ease;
}

.btn-red-pill-map:hover {
  background-color: var(--theme-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(158, 28, 45, 0.45);
}

/* ========================================================
   SECTION 8: DIGITAL GUESTBOOK SIGNATURE BOX & DUO
   ======================================================== */
.section-guestbook-signature {
  padding: 25px 20px;
  text-align: center;
}

.signature-board-wrap {
  position: relative;
  width: 100%;
  background-color: var(--theme-card-bg);
  border: 1.5px solid #222222;
  border-radius: var(--radius-sm);
  padding: 15px;
  box-shadow: var(--shadow-soft);
  margin-top: 20px;
}

.signature-canvas-area {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #faf9f6;
  border-radius: 4px;
  overflow: hidden;
  background-image: 
    radial-gradient(#e0ded8 1px, transparent 1px);
  background-size: 16px 16px;
}

#signature-display-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.signature-action-row {
  margin-top: 15px;
}

.btn-sign-guestbook {
  background-color: var(--theme-primary);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 11px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(158, 28, 45, 0.35);
  transition: all 0.25s ease;
}

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

/* ========================================================
   SECTION 9: ASYMMETRIC MOSAIC & LAYERED 3D HEART
   ======================================================== */
.section-asymmetric-mosaic {
  position: relative;
  padding: 25px 20px;
}

.mosaic-asymmetric-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.mosaic-col-left {
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mosaic-col-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: relative;
}

.layered-heart-graphic {
  width: 110px;
  animation: floatHeart 3.5s ease-in-out infinite;
}

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

.mosaic-right-photo-card {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mosaic-right-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================
   SECTION 10: RSVP CARD & THANK YOU FOOTER
   ======================================================== */
.section-rsvp-thankyou {
  position: relative;
  padding: 30px 20px 40px;
  text-align: center;
}

.rsvp-header-decor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.songhy-character-large {
  font-family: var(--font-chinese);
  font-size: 5rem;
  color: var(--theme-primary);
  line-height: 1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(158, 28, 45, 0.15);
}

.rsvp-top-photo-thumb {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.rsvp-top-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* White RSVP Card */
.rsvp-white-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--theme-border);
  margin-bottom: 35px;
  text-align: left;
}

.rsvp-card-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #1a1a1a;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.form-group-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.input-text-style, .select-input-style {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d4cfc5;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  background-color: #faf9f6;
  color: #222222;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-text-style:focus, .select-input-style:focus {
  border-color: var(--theme-primary);
  background-color: #ffffff;
}

.radio-choices-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333333;
}

.custom-radio-row input[type="radio"] {
  accent-color: var(--theme-primary);
  width: 18px;
  height: 18px;
}

.btn-rsvp-submit {
  width: 100%;
  background-color: var(--theme-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(158, 28, 45, 0.35);
  transition: all 0.2s ease;
}

.btn-rsvp-submit:hover {
  background-color: var(--theme-primary-hover);
}

.rsvp-status-alert {
  margin-top: 14px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: center;
}

.rsvp-status-alert.is-success {
  background-color: #e6f4ea;
  color: #137333;
}

/* Thank You Illustration & Script */
.thankyou-doodle-couple {
  width: 80px;
  margin: 0 auto 10px;
}

.thankyou-script-signature {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: #2b2b2b;
  margin-bottom: 12px;
}

/* Shop Watermark Link */
.shop-backlink-footer {
  font-size: 0.82rem;
  color: #888888;
  margin-top: 15px;
}

.shop-backlink-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #aaaaaa;
}

.shop-backlink-footer a:hover {
  color: var(--theme-primary);
}

/* ========================================================
   FLOATING WISHES TOAST LOOP (BOTTOM-LEFT)
   ======================================================== */
.floating-toasts-container {
  position: fixed;
  bottom: 84px;
  left: calc(50% - 225px);
  z-index: 95;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 480px) {
  .floating-toasts-container {
    left: 14px;
  }
}

.floating-toast-item {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 215, 205, 0.7);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #2e2e2e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFadeIn 0.4s ease forwards, toastFadeOut 0.4s ease 4.6s forwards;
  max-width: 280px;
  word-break: break-word;
}

.toast-author-tag {
  font-weight: 700;
  color: var(--theme-primary);
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ========================================================
   BOTTOM FLOATING DOCK BAR
   ======================================================== */
.bottom-floating-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 100;
}

.dock-actions-container {
  display: flex;
  align-items: center;
  background: rgba(45, 45, 45, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 6px 12px;
  gap: 8px;
  box-shadow: var(--shadow-float);
}

.dock-btn-rsvp {
  background-color: var(--theme-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dock-btn-rsvp:hover {
  background-color: var(--theme-primary-hover);
  transform: scale(1.05);
}

.dock-capsule-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dock-capsule-input:hover {
  background: rgba(255, 255, 255, 0.22);
}

.capsule-placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.dock-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.25rem;
  padding: 4px;
  transition: transform 0.2s ease;
}

.dock-icon-btn:hover {
  transform: scale(1.15);
}

.dock-like-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.like-badge-counter {
  position: absolute;
  top: -8px;
  right: -6px;
  background-color: #ff3366;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Floating Rising Hearts */
.flying-heart {
  position: fixed;
  pointer-events: none;
  z-index: 105;
  color: #ff3366;
  font-size: 1.5rem;
  animation: flyUpAndFade 1.2s ease-out forwards;
}

@keyframes flyUpAndFade {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  50% { opacity: 0.9; transform: translate(var(--dx, -15px), -50px) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--dx, 20px), -100px) scale(1); }
}

/* ========================================================
   MODALS (GIFT, WISH, SIGNATURE)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

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

.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #f0eee9;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title-serif {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}

/* Banking QR Cards */
.banking-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-bank-account-card {
  background: #faf8f5;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.bank-qr-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 8px;
  border: 1px solid #e0ded6;
}

.bank-owner-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.bank-name-tag {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 10px;
}

.copy-account-btn {
  background-color: var(--theme-primary);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-account-btn:hover {
  background-color: var(--theme-primary-hover);
}

/* Interactive Signature Modal */
.signature-canvas-pad {
  width: 100%;
  height: 200px;
  border: 1.5px dashed #cccccc;
  border-radius: 6px;
  background-color: #faf9f6;
  cursor: crosshair;
  margin-bottom: 12px;
  touch-action: none;
}

.signature-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-clear-sig {
  background: #ebe7de;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-save-sig {
  background-color: var(--theme-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================================
   HEADLESS SCREENSHOT SUPPORT
   Crucial for thumbs.ps1 capture of header.section-hero
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
