/* ========================================================
   TEMPLATE M28: SONG HỶ V2 - ĐỎ (SONG_HY_V2_RED)
   Refined oriental wedding invitation with traditional Double
   Happiness ornaments, floral sprigs, and cartouche arched cuts.
   ======================================================== */

:root,
[data-palette="song-hy-v2-do"] {
  --color-primary: #8c0000;
  --color-bg-deep: #420000;
  --color-cream: #fff9e6;
  --color-on-red: #ffe8a4;
  --color-gold: #fdcb9c;
  --color-heading: #990000;
  --color-heading-alt: #920002;
  --color-body: #2f0000;
  --color-card-bg: #8c0000;
  --font-serif: "Fraunces", "Times New Roman", Times, serif;
  --font-baskerville: "Libre Baskerville", "Baskerville", "Times New Roman", serif;
  --font-calligraphy: "Carattere", cursive;
  --font-ampersand: "Ms Madi", "Carattere", cursive;
  --font-calendar: "The Nautigal", cursive;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ========================================================
   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-m28 {
  font-family: var(--font-baskerville);
  background-color: var(--color-bg-deep);
  color: var(--color-on-red);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Floating Particles Container */
.ambient-particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.particle-item {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(105vh) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* ========================================================
   SECTION 0: ENVELOPE / COVER LANDING SCREEN
   ======================================================== */
.envelope-cover {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-deep);
  background-image: radial-gradient(circle at center, #5c0000 0%, #290000 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  touch-action: none;
  overscroll-behavior: none;
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease, visibility 0.8s ease;
}

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

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

.envelope-bg-decor {
  position: absolute;
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

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

.decor-bottom-right {
  bottom: -40px;
  right: -40px;
  transform: rotate(155deg);
}

.seal-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-deep);
  border: 2px solid var(--color-on-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seal-badge:hover {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(255, 232, 164, 0.35);
}

.seal-songhy-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.envelope-card {
  background-color: var(--color-card-bg);
  border: 1px solid rgba(255, 232, 164, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 45px 24px 35px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.envelope-badge-top {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.envelope-couple-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-serif);
  color: var(--color-on-red);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.songhy-symbol-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.songhy-icon-center {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px auto;
  width: 80%;
  color: var(--color-gold);
}

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

.ornament-divider .div-symbol {
  font-size: 18px;
  line-height: 1;
}

.envelope-date {
  font-family: var(--font-baskerville);
  font-size: 14px;
  color: var(--color-cream);
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.envelope-guest-badge {
  background-color: rgba(255, 232, 164, 0.08);
  border: 1px dashed rgba(255, 232, 164, 0.35);
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 22px;
  display: inline-block;
}

.guest-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-on-red);
  font-weight: 500;
}

.btn-open-envelope {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-on-red);
  color: var(--color-heading-alt);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 25px;
  padding: 12px 36px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 232, 164, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-open-envelope:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 232, 164, 0.5);
}

.btn-open-envelope:active {
  transform: translateY(1px);
}

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

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

/* ========================================================
   FLOATING CONTROLS
   ======================================================== */
.floating-controls {
  position: fixed;
  top: 20px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.btn-float {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(66, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-on-red);
  color: var(--color-on-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-float:hover {
  transform: scale(1.08);
  background: rgba(140, 0, 0, 0.9);
}

.music-disc-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s;
}

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

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

.sound-wave {
  display: none;
}

.btn-scroll-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  font-size: 18px;
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   MAIN CONTAINER (STAGE)
   ======================================================== */
.page-container {
  width: 100%;
  max-width: 441px;
  margin: 0 auto;
  background-color: var(--color-primary);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

@media (min-width: 768px) {
  .page-container {
    max-width: 600px;
    border-left: 1px solid rgba(255, 232, 164, 0.2);
    border-right: 1px solid rgba(255, 232, 164, 0.2);
  }
}

/* ========================================================
   SECTION 1: HERO / BANNER WITH ARCUATE CARTOUCHE
   ======================================================== */
.section-hero {
  position: relative;
  background-color: var(--color-cream);
  padding: 30px 16px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-cream-card {
  position: relative;
  width: 100%;
}

.hero-watermark-bg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero-couple-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-name-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person-role {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  margin-bottom: 3px;
}

.person-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.hero-emblem-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.hero-songhy-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-songhy-badge {
    width: 42px;
    height: 42px;
  }
}

/* Cartouche Cutout Hero Photo Frame */
.hero-photo-cartouche {
  position: relative;
  width: 82%;
  max-width: 330px;
  margin: 0 auto;
  z-index: 2;
  aspect-ratio: 321 / 527;
}

.cartouche-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.hero-bottom-curve {
  position: absolute;
  left: 50%;
  bottom: -45px;
  transform: translateX(-50%);
  width: 140%;
  max-width: none;
  pointer-events: none;
  z-index: 4;
}

.hero-side-icon {
  position: absolute;
  top: 75%;
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.hero-side-icon.side-left {
  left: -50px;
}

.hero-side-icon.side-right {
  right: -50px;
}

/* ========================================================
   ORNAMENTAL PANEL BOX (SECTIONS 2, 4, 7)
   ======================================================== */
.panel-box {
  position: relative;
  width: 92%;
  margin: 24px auto;
  padding: 40px 28px 45px;
  color: var(--color-heading);
}

.panel-ornament-bg {
  position: absolute;
  inset: 0;
  border-style: solid;
  border-color: transparent;
  border-image-source: url('panel.webp');
  border-image-slice: 270 240 fill;
  border-image-repeat: stretch;
  border-width: 80px 70px;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .panel-ornament-bg {
    border-width: 110px 100px;
  }
}

.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emblem-wrapper {
  margin-bottom: 10px;
}

.emblem-songhy {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.panel-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

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

/* ========================================================
   SECTION 2: CEREMONY DETAILS
   ======================================================== */
.family-info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}

.family-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.family-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-heading-alt);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.parent-line {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-body);
}

.parent-line strong {
  color: var(--color-heading);
  font-weight: 600;
}

.family-address {
  font-size: 10px;
  color: var(--color-body);
  margin-top: 4px;
  line-height: 1.3;
}

.family-divider {
  width: 1px;
  height: 55px;
  background-color: var(--color-gold);
}

.ceremony-announcement {
  font-family: var(--font-baskerville);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 16px;
  line-height: 1.5;
}

.calligraphy-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.callig-name {
  font-family: var(--font-calligraphy);
  font-size: 34px;
  color: var(--color-heading);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .callig-name {
    font-size: 44px;
  }
}

.callig-amp {
  font-family: var(--font-ampersand);
  font-size: 36px;
  color: var(--color-heading);
  line-height: 1;
  margin: -6px 0;
}

/* Stacked Ceremony Date Card */
.stacked-date-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.event-ceremony-item {
  margin-bottom: 8px;
}

.event-header-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
  letter-spacing: 0.05em;
}

.event-venue-text {
  font-size: 12px;
  color: var(--color-body);
}

.time-row-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(146, 0, 2, 0.08);
  border: 1px solid rgba(146, 0, 2, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  margin-top: 6px;
}

.time-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-body);
  letter-spacing: 0.08em;
}

.time-val {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading-alt);
}

.stacked-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 6px;
}

.date-side-part {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading-alt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-day-huge {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 800;
  color: var(--color-heading-alt);
  line-height: 1;
}

@media (min-width: 768px) {
  .date-day-huge {
    font-size: 72px;
  }
}

.lunar-date-row {
  font-size: 11px;
  color: var(--color-body);
  letter-spacing: 0.04em;
}

.lunar-prefix {
  font-weight: 600;
  color: var(--color-heading);
}

/* ========================================================
   SECTION 3: WEDDING GALLERY (ALBUM CƯỚI)
   ======================================================== */
.section-gallery {
  position: relative;
  padding: 35px 20px 45px;
  text-align: center;
  overflow: hidden;
}

.peony-decor {
  position: absolute;
  width: 180px;
  height: 200px;
  object-fit: contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

.peony-decor.decor-left {
  top: -20px;
  left: -50px;
  transform: rotate(-15deg);
}

.peony-decor.decor-right {
  bottom: 0;
  right: -50px;
  transform: scaleX(-1) rotate(20deg);
}

.section-header {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-bottom: 24px;
}

.section-gold-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-on-red);
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .section-gold-title {
    font-size: 26px;
  }
}

.title-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto 0;
  width: 140px;
}

.title-gold-divider span {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 232, 164, 0.4);
}

.title-gold-divider img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.gallery-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}

.frame-gold-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 232, 164, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.icon-zoom {
  color: var(--color-on-red);
  font-size: 24px;
}

/* ========================================================
   SECTION 4: RECEPTION & CALENDAR
   ======================================================== */
.venue-main-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.venue-address-text {
  font-size: 12px;
  color: var(--color-body);
  margin-bottom: 12px;
}

/* Calendar Container */
.calendar-container {
  width: 100%;
  max-width: 320px;
  margin: 18px auto 0;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(146, 0, 2, 0.2);
  border-radius: 8px;
}

.calendar-script-title {
  font-family: var(--font-calendar);
  font-size: 32px;
  color: var(--color-heading-alt);
  line-height: 1;
  margin-bottom: 10px;
}

.wedding-calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
}

.wedding-calendar-table th {
  padding: 5px 0;
  color: var(--color-heading-alt);
  font-weight: 700;
  font-size: 11px;
}

.wedding-calendar-table td {
  padding: 6px 0;
  color: var(--color-body);
  position: relative;
}

.wedding-calendar-table td.active-day {
  font-weight: 800;
  color: var(--color-cream);
  z-index: 2;
}

.heart-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  z-index: -1;
  animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

.calendar-actions {
  margin-top: 14px;
}

.btn-cal-sync {
  font-size: 12px;
  color: var(--color-heading-alt);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-cal-sync:hover {
  opacity: 0.7;
}

/* Countdown Widget */
.countdown-widget {
  margin-top: 24px;
  width: 100%;
}

.countdown-heading {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-heading-alt);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.count-box {
  background: rgba(146, 0, 2, 0.07);
  border: 1px solid rgba(146, 0, 2, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading-alt);
  line-height: 1.1;
}

.count-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--color-body);
  letter-spacing: 0.06em;
}

.count-sep {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading-alt);
}

.rsvp-btn-wrap {
  margin-top: 24px;
}

.btn-rsvp-action {
  background-color: var(--color-heading-alt);
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(146, 0, 2, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-rsvp-action:hover {
  transform: translateY(-2px);
  background-color: var(--color-heading);
}

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

.decor-map-top {
  top: -30px;
  right: -50px;
  transform: rotate(30deg);
}

.map-card-wrap {
  background: rgba(255, 232, 164, 0.06);
  border: 1px solid rgba(255, 232, 164, 0.25);
  border-radius: 12px;
  padding: 24px 20px;
  max-width: 360px;
  margin: 0 auto;
}

.venue-name-highlight {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-on-red);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.venue-addr-sub {
  font-size: 13px;
  color: var(--color-cream);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-map-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-on-red);
  color: var(--color-heading-alt);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 10px 22px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.btn-map-guide:hover {
  transform: translateY(-2px);
}

/* ========================================================
   SECTION 6: DRESS CODE
   ======================================================== */
.section-dresscode {
  padding: 25px 20px 35px;
  text-align: center;
}

.dresscode-sub {
  font-size: 12px;
  color: var(--color-cream);
  max-width: 320px;
  margin: 8px auto 20px;
  line-height: 1.5;
}

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

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

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-on-red);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.swatch-name {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-cream);
}

/* ========================================================
   SECTION 7: TIMELINE
   ======================================================== */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 330px;
  margin: 10px auto;
  text-align: left;
}

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

.timeline-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(146, 0, 2, 0.08);
  border: 1px solid rgba(146, 0, 2, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.timeline-text {
  display: flex;
  flex-direction: column;
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading-alt);
}

.timeline-title {
  font-size: 13px;
  color: var(--color-body);
}

/* ========================================================
   SECTION 8: GUESTBOOK
   ======================================================== */
.section-guestbook {
  position: relative;
  padding: 30px 20px 40px;
  overflow: hidden;
}

.decor-guestbook {
  top: -20px;
  left: -50px;
  transform: rotate(-30deg);
}

.guestbook-form-wrap {
  position: relative;
  z-index: 5;
  max-width: 380px;
  margin: 0 auto;
}

.guestbook-form {
  background: rgba(255, 232, 164, 0.07);
  border: 1px solid rgba(255, 232, 164, 0.25);
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 12px;
  color: var(--color-on-red);
  margin-bottom: 4px;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 232, 164, 0.4);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--color-cream);
  font-family: inherit;
  font-size: 13px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-on-red);
  box-shadow: 0 0 8px rgba(255, 232, 164, 0.4);
}

.wish-chips-wrap {
  margin-bottom: 16px;
  text-align: left;
}

.chips-label {
  font-size: 11px;
  color: var(--color-gold);
  display: block;
  margin-bottom: 6px;
}

.chips-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-item {
  background: rgba(255, 232, 164, 0.1);
  border: 1px solid rgba(255, 232, 164, 0.2);
  border-radius: 14px;
  padding: 5px 10px;
  color: var(--color-cream);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chip-item:hover {
  background: rgba(255, 232, 164, 0.25);
}

.btn-submit-wish {
  width: 100%;
  background-color: var(--color-on-red);
  color: var(--color-heading-alt);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-submit-wish:hover {
  transform: translateY(-2px);
}

.guestbook-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 232, 164, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
}

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

.guest-name-text {
  font-weight: 700;
  color: var(--color-on-red);
  font-size: 13px;
}

.guest-time {
  font-size: 10px;
  color: rgba(255, 249, 230, 0.6);
}

.guest-comment {
  font-size: 12px;
  color: var(--color-cream);
  line-height: 1.45;
}

/* ========================================================
   SECTION 9: GIFT BOX
   ======================================================== */
.section-gift {
  position: relative;
  padding: 30px 20px 45px;
  text-align: center;
  overflow: hidden;
}

.gift-cloud-pattern {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  max-width: none;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.gift-sub-desc {
  font-size: 12px;
  color: var(--color-cream);
  max-width: 310px;
  margin: 8px auto 20px;
  line-height: 1.5;
}

.gift-btn-container {
  position: relative;
  z-index: 5;
}

.btn-open-gift {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-on-red);
  color: var(--color-heading-alt);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 232, 164, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-open-gift:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 232, 164, 0.5);
}

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

/* ========================================================
   SECTION 10: FOOTER
   ======================================================== */
.section-footer {
  position: relative;
  background-color: var(--color-bg-deep);
  border-top: 1px solid rgba(255, 232, 164, 0.2);
  padding: 35px 20px;
  text-align: center;
}

.footer-thank-text {
  font-size: 13px;
  color: var(--color-cream);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto 16px;
}

.footer-couple-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-red);
  margin-bottom: 24px;
}

.sig-songhy {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 249, 230, 0.6);
}

.catalog-link {
  color: var(--color-on-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* ========================================================
   MODALS: LIGHTBOX & GIFT
   ======================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
  margin-top: 10px;
  color: var(--color-on-red);
  font-size: 13px;
}

/* Gift Modal */
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

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

.gift-modal-dialog {
  position: relative;
  background-color: #5A0000;
  border: 1px solid var(--color-on-red);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 14px;
  padding: 30px 20px 25px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  text-align: center;
}

.gift-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-on-red);
  font-size: 22px;
  cursor: pointer;
}

.modal-songhy-badge {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 6px;
}

.gift-modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-red);
  margin-bottom: 6px;
}

.gift-modal-desc {
  font-size: 12px;
  color: var(--color-cream);
  line-height: 1.45;
  margin-bottom: 18px;
}

.gift-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-card-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 232, 164, 0.4);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.gift-card-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.gift-qr-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}

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

.gift-bank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
}

.bank-label {
  color: rgba(255, 249, 230, 0.7);
}

.bank-val {
  font-weight: 600;
  color: var(--color-on-red);
}

.font-mono {
  font-family: Consolas, monospace;
}

.btn-copy-acc {
  width: 100%;
  background: rgba(255, 232, 164, 0.15);
  border: 1px solid var(--color-on-red);
  border-radius: 6px;
  padding: 7px;
  color: var(--color-on-red);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-copy-acc:hover {
  background: rgba(255, 232, 164, 0.3);
}

/* Toast Notification */
.copy-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-on-red);
  color: var(--color-heading-alt);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 3000;
}

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