/* ==========================================================================
   WEDDING WEBSITE DESIGN SYSTEM - PHƯỚC VINH & BẢO YẾN (LUXURY INTERACTIVE EDITION)
   Theme: Vintage Cream Beige, Crimson Red & Champagne Gold Shimmer
   ========================================================================== */

:root {
  --color-bg-primary: #F7F3ED;
  --color-bg-secondary: #EFE8DC;
  --color-bg-card: #FFFFFF;
  --color-red-primary: #B83B28;
  --color-red-dark: #8B1E10;
  --color-red-soft: #F9EBEA;
  --color-gold: #D4AF37;
  --color-gold-light: #F4E7BE;
  --color-gold-dark: #9A7B1C;
  --color-text-main: #2C2623;
  --color-text-muted: #6C625B;
  --color-border: #E2D9CB;

  --font-calligraphy: 'Pinyon Script', 'Alex Brush', 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Playfair Display', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 4px 12px rgba(44, 38, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 38, 35, 0.12);
  --shadow-lg: 0 16px 40px rgba(184, 59, 40, 0.18);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Monogram Font - Cố định Pinyon Script (Hoàng Gia) */
.monogram-font {
  font-family: 'Pinyon Script', cursive !important;
  font-style: normal;
  transition: font-family var(--transition-fast);
}

/* Font Classes for Switcher */
body.font-pinyon .monogram-font { font-family: 'Pinyon Script', cursive !important; }
body.font-montez .monogram-font { font-family: 'Montez', cursive !important; }
body.font-parisienne .monogram-font { font-family: 'Parisienne', cursive !important; }
body.font-greatvibes .monogram-font { font-family: 'Great Vibes', cursive !important; }
body.font-cinzel .monogram-font { font-family: 'Cinzel Decorative', serif !important; font-weight: bold; }
body.font-cormorant .monogram-font { font-family: 'Cormorant Garamond', serif !important; font-style: italic; font-weight: bold; }

/* Font Switcher Floating Widget (Hidden) */
.font-selector-widget {
  display: none !important;
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1001;
}

.font-widget-toggle {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-gold);
  color: var(--color-red-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.font-widget-toggle:hover {
  background: var(--color-red-primary);
  color: #FFF;
  transform: translateY(-2px);
}

.font-options-panel {
  position: absolute;
  top: 45px;
  right: 0;
  width: 280px;
  background: #FFF;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: fadeInDown 0.3s ease;
}

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

.font-options-panel.show { display: flex; }

.font-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.close-font-panel {
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-muted);
}

.font-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.font-option-item:hover, .font-option-item.active {
  background: var(--color-red-soft);
  border-color: var(--color-gold);
}

.font-sample {
  font-size: 22px;
  color: var(--color-red-primary);
}

.style-pinyon { font-family: 'Pinyon Script', cursive; }
.style-montez { font-family: 'Montez', cursive; }
.style-parisienne { font-family: 'Parisienne', cursive; }
.style-greatvibes { font-family: 'Great Vibes', cursive; }
.style-cinzel { font-family: 'Cinzel Decorative', serif; font-size: 16px; font-weight: bold; }
.style-cormorant { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: bold; }

.font-name {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scroll Reveal Animations */
[data-reveal] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-right"] { transform: translateX(-40px); }
[data-reveal="fade-left"] { transform: translateX(40px); }
[data-reveal="zoom-in"] { transform: scale(0.9); }

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Typography Helpers & Shimmer Animation */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-main);
  font-weight: 700;
}

.shimmer-text {
  background: linear-gradient(90deg, #8B1E10 0%, #D4AF37 50%, #8B1E10 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  to { background-position: 200% center; }
}

.shimmer-gold {
  border: 1px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(249, 235, 234, 0.8) 100%);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   INTERACTIVE ROYAL WAX-SEALED ENVELOPE MODAL OVERLAY
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(30, 20, 18, 0.92) 0%, rgba(12, 8, 7, 0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3D WEDDING BOOK FLIP ANIMATION (LẬT SÁCH 3D)
   ========================================================================== */
.wedding-book-wrapper {
  max-width: 415px;
  width: 100%;
  margin: auto;
  perspective: 2200px;
  perspective-origin: center center;
  position: relative;
  transition: transform 0.6s ease;
  animation: floatEnv 4s ease-in-out infinite alternate;
}

.wedding-book-wrapper.is-flipped,
.wedding-book-wrapper:has(.is-flipped) {
  animation: none !important;
}

.wedding-book {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.45, 1);
}

/* Inside Page (Revealed strictly only when flipping cover opens) */
.book-inside-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(168deg, #FFFDF9 0%, #FAF3E6 45%, #F4E8D0 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 26px;
  padding: 34px 22px 24px;
  text-align: center;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.65), 
    0 0 35px rgba(212, 175, 55, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.7);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease 0.1s, visibility 0.35s ease 0.1s;
}

.wedding-book.is-flipped .book-inside-page {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inside-page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inside-seal-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #E5C158 0%, #D4AF37 50%, #9A7B1C 85%, #664E0F 100%);
  border: 2.5px solid #FFF8E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 0 20px rgba(212, 175, 55, 0.5);
}

.inside-seal-heart {
  font-size: 10px;
  color: #FFB4B4;
  margin: 0 3px;
  animation: heartBeatPulse 1.8s infinite ease-in-out;
}

.inside-badge-royal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #8C6D28;
  margin-bottom: 8px;
}

.inside-badge-royal i {
  color: #D4AF37;
  font-size: 10px;
}

.inside-couple-names {
  font-family: var(--font-heading);
  font-size: 26px;
  color: #8B1E10;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.inside-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #5C4A42;
  line-height: 1.5;
  margin: 0 0 12px;
}

.inside-gold-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 75%;
  margin: 0 auto 14px;
}

.inside-gold-line .gl-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.inside-gold-line i {
  color: #D4AF37;
  font-size: 13px;
}

.inside-invite-text {
  font-size: 13.5px;
  color: #4A3E38;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 320px;
}

.inside-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.inside-event-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: #3D2B1F;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inside-event-pill i {
  color: #B83B28;
}

.btn-enter-wedding {
  background: linear-gradient(135deg, #B83B28 0%, #8B1E10 100%);
  color: #FFFDF0;
  border: 1.5px solid #FFDF78;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(184, 59, 40, 0.4), 0 0 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-enter-wedding:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(184, 59, 40, 0.5), 0 0 22px rgba(212, 175, 55, 0.5);
}

/* Front Cover (Flipping Leaf 3D) */
.book-cover {
  position: relative;
  z-index: 10;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.35s cubic-bezier(0.25, 0.85, 0.35, 1), box-shadow 1.35s ease;
  will-change: transform;
}

.book-cover-front {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 2;
  transform: rotateY(0deg);
}

.book-cover-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(168deg, #FFFDF9 0%, #FAF3E6 45%, #F4E8D0 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 26px;
  padding: 34px 22px 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.65), 
    0 0 35px rgba(212, 175, 55, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.cover-back-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cover-back-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #E5C158 0%, #D4AF37 50%, #9A7B1C 85%, #664E0F 100%);
  border: 2px solid #FFF8E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 16px rgba(212, 175, 55, 0.4);
}

.cover-back-seal i {
  font-size: 9px;
  color: #FFB4B4;
  margin: 0 2px;
}

.cover-back-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 70%;
  margin: 2px 0;
}

.cover-back-line span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.cover-back-line i {
  color: #D4AF37;
  font-size: 13px;
}

.cover-back-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #5C4A42;
  line-height: 1.6;
  margin: 0;
  max-width: 270px;
}

.cover-back-footer {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8C6D28;
  text-transform: uppercase;
  margin-top: 4px;
}

.cover-back-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 22px;
  background: linear-gradient(to left, rgba(0,0,0,0.18), transparent);
  pointer-events: none;
}

/* Spine shadow on inside page fold */
.book-inside-page::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;
  background: linear-gradient(to right, rgba(0,0,0,0.18), transparent);
  pointer-events: none;
  z-index: 10;
  border-radius: 26px 0 0 26px;
}

/* When Book is Flipped Open (LẬT SÁCH 3D CHÂN THỰC) */
.wedding-book.is-flipped .book-cover {
  transform: rotateY(-165deg);
  box-shadow: -25px 25px 55px rgba(0, 0, 0, 0.55);
}

.wedding-book.is-flipped {
  transform: translateX(110px);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

@media (max-width: 860px) {
  .wedding-book.is-flipped {
    transform: translateX(50px) scale(0.92);
  }
}

@media (max-width: 540px) {
  .wedding-book.is-flipped {
    transform: translateX(25px) scale(0.88);
  }
}

/* Dissolve Out when Book Flip Completes */
.envelope-overlay.zoom-exit {
  animation: bookZoomDissolve 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bookZoomDissolve {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
    visibility: hidden;
  }
}

.envelope-overlay.opened {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.envelope-card {
  background: linear-gradient(168deg, #FFFDF9 0%, #FDF8EE 42%, #F6EBDA 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 26px;
  padding: 38px 20px 24px;
  text-align: center;
  position: relative;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.65), 
    0 0 35px rgba(212, 175, 55, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.7);
}

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

/* Inner decorative gold hairline & corners */
.env-card-inner-border {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.env-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(212, 175, 55, 0.75);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.env-corner.top-left {
  top: 12px;
  left: 12px;
  border-width: 1.5px 0 0 1.5px;
  border-top-left-radius: 6px;
}

.env-corner.top-right {
  top: 12px;
  right: 12px;
  border-width: 1.5px 1.5px 0 0;
  border-top-right-radius: 6px;
}

.env-corner.bottom-left {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1.5px 1.5px;
  border-bottom-left-radius: 6px;
}

.env-corner.bottom-right {
  bottom: 12px;
  right: 12px;
  border-width: 0 1.5px 1.5px 0;
  border-bottom-right-radius: 6px;
}

/* Silk Ribbon Tail behind Wax Seal */
.env-ribbon-tail {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 24px;
  background: linear-gradient(180deg, #9C1814, #660C08);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Royal 3D Wax Seal */
.stamp-seal {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #D32F2F 0%, #A31E12 40%, #6E0D07 85%, #470603 100%);
  border: 2.5px solid #E5C378;
  margin: -55px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.45), 
    0 3px 8px rgba(110, 13, 7, 0.5), 
    inset 0 2px 4px rgba(255, 255, 255, 0.45), 
    inset 0 -3px 6px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.stamp-seal:hover {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 
    0 14px 32px rgba(0, 0, 0, 0.55), 
    0 0 22px rgba(212, 175, 55, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
}

.seal-rim {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 235, 175, 0.45);
  pointer-events: none;
}

.seal-sparkle-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 70%);
  animation: sealPulse 2.4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.18); opacity: 0.85; }
}

.seal-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.seal-v, .seal-y {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: #FFF8E7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 223, 120, 0.6);
}

.seal-heart {
  font-size: 11px;
  color: #FFB4B4;
  margin: 0 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  animation: heartBeatPulse 1.8s infinite ease-in-out;
}

/* ==========================================================================
   MINIMAL VERTICAL FULL PORTRAIT COVER (DỰNG ĐỨNG, HIỂN THỊ FULL)
   ========================================================================== */
.cover-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #E5C378;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 22px rgba(212, 175, 55, 0.35);
  background: #140507;
}

.cover-portrait-inner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.cover-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Shows heads, red áo dài, bicycle, and flowers standing upright! */
  display: block;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-card:hover .cover-portrait-img {
  transform: scale(1.03);
}

.cover-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(20, 5, 7, 0.28) 100%);
  pointer-events: none;
}

/* Minimal Clean Typography */
.cover-info-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cover-ceremony-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #8C6D28;
  text-transform: uppercase;
  margin-top: 2px;
}

.cover-couple-names {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  color: #7E101D;
  letter-spacing: 0.5px;
  margin: 2px 0 6px;
  line-height: 1.15;
}

.cover-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6E121E;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.cover-date-pill i {
  color: #B83B28;
  font-size: 11px;
}

/* Open Invitation Action Button */
.btn-open-invite {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #A8201A 0%, #8A1713 50%, #5E0C08 100%);
  color: #FFFDF8;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2px;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid #F3DA90;
  box-shadow: 
    0 8px 24px rgba(110, 13, 7, 0.45), 
    0 0 15px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 14px;
  width: 100%;
  max-width: 270px;
  overflow: hidden;
  z-index: 4;
}

.btn-open-invite:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 30px rgba(110, 13, 7, 0.6), 
    0 0 25px rgba(212, 175, 55, 0.5);
  border-color: #FFF;
}

.btn-open-invite:active {
  transform: translateY(1px) scale(0.98);
}

.btn-icon-wrap {
  font-size: 15px;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: btnShineSweep 3.5s infinite;
  pointer-events: none;
}

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

/* Centered Music Hint */
.env-hint {
  margin-top: 12px;
  font-size: 11.5px;
  color: #8C7862;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.3px;
  line-height: 1.4;
  position: relative;
  z-index: 4;
}

.hint-music-icon {
  color: var(--color-gold);
  font-size: 12px;
  animation: bounceNote 2s infinite ease-in-out;
}

@keyframes bounceNote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.15); }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .envelope-card {
    padding: 32px 16px 20px;
    border-radius: 22px;
  }
  .cover-portrait-frame {
    max-width: 280px;
    margin-bottom: 10px;
  }
  .cover-portrait-inner {
    height: 330px;
  }
  .cover-couple-names {
    font-size: 22px;
  }
  .stamp-seal {
    width: 68px;
    height: 68px;
    margin: -50px auto 12px;
  }
  .seal-v, .seal-y {
    font-size: 24px;
  }
  .btn-open-invite {
    padding: 12px 24px;
    font-size: 13px;
  }
}

@media (max-height: 700px) {
  .envelope-card {
    padding: 26px 14px 16px;
  }
  .cover-portrait-frame {
    max-width: 240px;
    margin-bottom: 8px;
  }
  .cover-portrait-inner {
    height: 270px;
  }
  .cover-couple-names {
    font-size: 20px;
    margin: 2px 0 4px;
  }
  .stamp-seal {
    width: 60px;
    height: 60px;
    margin: -44px auto 8px;
  }
  .btn-open-invite {
    margin-top: 8px;
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* Canvas Petals Overlay (Disabled to prevent smudge blobs over content) */
#petalsCanvas {
  display: none !important;
}

/* Floating Heart Particles */
.floating-heart-particle {
  position: fixed;
  pointer-events: none;
  font-size: 20px;
  color: var(--color-red-primary);
  z-index: 9999;
  animation: floatHeartUp 2.5s ease-out forwards;
}

@keyframes floatHeartUp {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}

/* Floating Music Player Widget with Sound Equalizer */
.music-player-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-disc-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-red-primary);
  border: 2px solid var(--color-gold);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  position: relative;
}

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

.disc-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-icon {
  font-size: 28px;
  color: var(--color-gold-light);
}

.playing .disc-icon {
  animation: rotateDisc 4s linear infinite;
}

@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-note {
  position: absolute;
  opacity: 0;
  font-size: 14px;
  color: var(--color-gold);
}

.playing .note-1 { animation: floatNote 2s infinite ease-out; }
.playing .note-2 { animation: floatNote 2.5s infinite ease-out 0.6s; }

@keyframes floatNote {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(25px, -45px) scale(1.2); opacity: 0; }
}

.music-info-bubble {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gold-light);
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.music-header-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-title {
  font-weight: 600;
  color: var(--color-red-primary);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bar {
  width: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  height: 4px;
}

.playing .bar-1 { animation: eqBar 0.8s ease-in-out infinite alternate; }
.playing .bar-2 { animation: eqBar 0.6s ease-in-out infinite alternate 0.2s; }
.playing .bar-3 { animation: eqBar 1.0s ease-in-out infinite alternate 0.4s; }

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

.music-status {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Sticky Navigation Header */
.wedding-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: all var(--transition-fast);
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand-text {
  font-size: 26px;
  color: var(--color-red-primary);
  font-weight: bold;
  line-height: 1;
}

.nav-brand-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-gold-dark);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--color-red-primary); }

.nav-btn-envelope {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn-envelope:hover {
  background: var(--color-gold);
  color: #7E101D;
  transform: translateY(-2px);
}

.nav-btn-envelope:active {
  transform: scale(0.95);
}

.nav-btn-rsvp {
  background: linear-gradient(135deg, var(--color-red-primary) 0%, var(--color-red-dark) 100%);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(184, 59, 40, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 59, 40, 0.45);
}

.nav-btn-rsvp:active {
  transform: scale(0.95);
}

.nav-btn-rsvp::after { display: none !important; }

.nav-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--color-gold);
  color: var(--color-red-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

.nav-mobile-toggle:active {
  transform: scale(0.92);
  background: var(--color-gold);
  color: #7E101D;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #FDFBF7 0%, #F5EBD9 100%);
  padding: 120px 24px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-gold);
  pointer-events: none;
  opacity: 0.4;
}

.corner-top-left {
  top: 80px;
  left: 30px;
  border-right: none;
  border-bottom: none;
}

.corner-top-right {
  top: 80px;
  right: 30px;
  border-left: none;
  border-bottom: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 10;
}

.sub-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--color-red-primary);
}

.red-heart {
  color: var(--color-red-primary);
  font-size: 12px;
}

.pulse-heart {
  color: var(--color-red-primary);
  animation: heartPulse 1.2s infinite;
}

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

.hero-title-main {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--color-red-primary);
  margin: 6px 0 10px;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
}

.couple-names-wrapper {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.groom-name, .bride-name {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #7E101D;
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  margin: 0;
  display: inline-block;
  padding: 4px 0;
}

/* Royal Connector V <3 Y */
.couple-connector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 100%;
  max-width: 380px;
}

.connector-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.connector-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 243, 230, 0.98));
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25), inset 0 0 10px rgba(212, 175, 55, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connector-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.connector-badge .monogram-letter {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 26px;
  color: var(--color-red-primary);
  line-height: 1;
  font-weight: bold;
}

.connector-heart-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D62828;
  font-size: 13px;
  animation: heartBeatPulse 1.8s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(214, 40, 40, 0.4));
}

@keyframes heartBeatPulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

.hero-date-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-left: 4px solid var(--color-red-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.badge-divider {
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, transparent, var(--color-border), transparent);
}

.day-str {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
}

.date-big {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 800;
  color: var(--color-red-primary);
  line-height: 1.05;
  margin: 3px 0 2px;
  text-align: center;
}

.highlight-gold { color: var(--color-gold-dark); }

.month-year {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.8px;
  text-align: center;
  white-space: nowrap;
}

.badge-event-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 5px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(184, 59, 40, 0.08);
  color: var(--color-red-primary);
  border: 1px solid rgba(184, 59, 40, 0.2);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.4;
}

.active-phase .badge-event-tag {
  background: rgba(212, 175, 55, 0.16);
  color: #8C6D28;
  border-color: rgba(212, 175, 55, 0.45);
}

.hero-quote {
  font-family: var(--font-calligraphy);
  font-size: 28px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.4;
}

.hero-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pulse-btn {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(184, 59, 40, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(184, 59, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 59, 40, 0); }
}

/* POLAROID PHOTO FRAME (FULL FRAME & NO OVERFLOW) */
.hero-photo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  overflow: hidden;
}

.polaroid-card {
  background: #FFF;
  padding: 14px 14px 20px 14px;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(44, 38, 35, 0.2);
  transform: rotate(-1.5deg);
  transition: transform var(--transition-smooth);
  position: relative;
  max-width: 390px;
  width: 100%;
  box-sizing: border-box;
}

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

.gold-crest-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 235, 0.96));
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-gold);
  padding: 5px 14px;
  border-radius: 30px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(44, 38, 35, 0.2), 0 0 12px rgba(212, 175, 55, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gold-crest-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.crest-monogram {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 22px;
  color: var(--color-red-primary);
  line-height: 1;
  font-weight: bold;
}

.crest-heart-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D62828;
  font-size: 11px;
  animation: heartBeatPulse 1.8s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(214, 40, 40, 0.5));
}

.polaroid-tape {
  position: absolute;
  width: 75px;
  height: 24px;
  background: rgba(240, 230, 210, 0.75);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 20;
}

.tape-top-left {
  top: -8px;
  left: 12px;
  transform: rotate(-15deg);
}

.tape-top-right {
  top: -8px;
  right: 12px;
  transform: rotate(15deg);
}

.photo-box {
  width: 100%;
  aspect-ratio: 2/3; /* Full frame tỷ lệ chuẩn 2:3 của toàn bộ ảnh cưới */
  overflow: hidden;
  border-radius: 4px;
  background: #1f1816;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.hero-img.fade-out {
  opacity: 0.2;
}

.polaroid-card:hover .hero-img { transform: scale(1.05); }

/* Switch Hint Badge - Fully Clickable & Touch Optimized */
.hero-photo-switch-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(126, 16, 29, 0.94);
  color: #FFDF73;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.35);
  border: 1.5px solid rgba(212, 175, 55, 0.85);
  pointer-events: auto !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  z-index: 25;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hero-photo-switch-hint:hover {
  background: var(--color-gold);
  color: #7E101D;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.hero-photo-switch-hint:active {
  transform: translateX(-50%) !important;
  background: #A31D24 !important;
  opacity: 0.85 !important;
}

/* Quick Arrow Buttons on Hero Photo */
.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-red-primary);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 26;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hero-arrow-btn i,
.lightbox-btn i,
.hero-photo-switch-hint i,
.hero-photo-switch-hint span {
  pointer-events: none !important;
}

.hero-arrow-btn:hover {
  opacity: 1;
  background: var(--color-gold);
  color: #7E101D;
}

.hero-arrow-btn:active {
  transform: translateY(-50%) !important;
  background: var(--color-gold) !important;
  opacity: 0.85 !important;
}

.hero-arrow-btn.prev { left: 10px; }
.hero-arrow-btn.next { right: 10px; }

.polaroid-caption {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.caption-names {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-red-dark);
}

.caption-date {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-gold-dark);
  letter-spacing: 2px;
}

/* Dots under caption */
.hero-photo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 0;
}

.photo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(184, 59, 40, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 10px 6px;
  background-clip: content-box;
  box-sizing: content-box;
}

.photo-dot.active {
  width: 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7E101D, #B83B28);
  border-color: #D4AF37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  background-clip: content-box;
}

/* TORN PAPER DIVIDER */
.torn-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.torn-bottom { bottom: 0; }
.torn-top { top: 0; }

.torn-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* BUTTON STYLES & MOBILE TOUCH ERGONOMICS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  min-height: 46px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red-primary) 0%, var(--color-red-dark) 100%);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(184, 59, 40, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(184, 59, 40, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #E5C158 0%, var(--color-gold) 100%);
  color: #2C2623;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-red-primary);
  color: var(--color-red-primary);
}

.btn-outline:hover {
  background: var(--color-red-primary);
  color: #FFF;
}

.btn-outline-gold {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid var(--color-gold);
  color: #8B1E10;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-outline-gold:hover {
  background: #FFFFFF;
  color: var(--color-red-primary);
  border-color: #B83B28;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-block { width: 100%; }

.btn-copy {
  background: var(--color-bg-secondary);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  width: 100%;
  padding: 10px;
  font-size: 13px;
  border-radius: 20px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-copy:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
}

.btn-copy:active {
  transform: scale(0.96);
}

/* SECTION COMMONS */
section {
  padding: 100px 24px;
  position: relative;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { margin-bottom: 50px; }
.text-center { text-align: center; }

.section-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-red-primary);
  display: block;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 36px;
  letter-spacing: 2px;
  margin-top: 4px;
  color: var(--color-red-dark);
}

/* Global Light Text Header for dark/burgundy backgrounds (Events, RSVP, etc.) */
.light-text .section-subtitle,
.rsvp-section .section-subtitle,
.events-section .section-subtitle {
  color: #FFDF78 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.light-text .section-title,
.rsvp-section .section-title,
.events-section .section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.light-text .divider-line,
.rsvp-section .divider-line,
.events-section .divider-line {
  color: #FFDF78;
}

.light-text .divider-line i,
.rsvp-section .divider-line i,
.events-section .divider-line i {
  color: #FFDF78 !important;
}

.light-text .divider-line::before,
.light-text .divider-line::after,
.rsvp-section .divider-line::before,
.rsvp-section .divider-line::after,
.events-section .divider-line::before,
.events-section .divider-line::after {
  background: linear-gradient(to right, transparent, rgba(255, 223, 120, 0.65), transparent) !important;
}

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--color-gold);
}

.divider-line::before, .divider-line::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--color-gold);
}

/* COUNTDOWN SECTION */
.countdown-section { background-color: var(--color-bg-primary); }

.countdown-box-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto 45px;
  flex-wrap: nowrap;
  max-width: 480px;
  width: 100%;
}

.countdown-item {
  background: var(--color-bg-card);
  padding: 22px 18px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex: 1;
  max-width: 125px;
  min-width: 75px;
  text-align: center;
  border: 1px solid var(--color-gold-light);
  border-top: 4px solid var(--color-red-primary);
  transition: transform var(--transition-fast);
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.count-number {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  color: var(--color-red-primary);
  line-height: 1;
}

.count-label {
  font-size: clamp(11.5px, 2.5vw, 13px);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 8px;
  letter-spacing: 2px;
}

.countdown-dots {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-top: -8px;
}

/* CALENDAR WIDGET */
.calendar-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gold-light);
}

.gold-icon { color: var(--color-gold-dark); }

.calendar-header {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-red-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

.day-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red-primary);
  padding-bottom: 8px;
}

.day.num {
  font-size: 14px;
  padding: 10px 0;
  border-radius: 50%;
  color: var(--color-text-main);
  position: relative;
}

.day.num.blur { opacity: 0.3; }

.wedding-day-highlight {
  background: var(--color-red-primary) !important;
  color: #FFF !important;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(184, 59, 40, 0.4);
}

.heart-marker {
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 12px;
  color: var(--color-gold);
}

/* WEDDING EVENTS SECTION */
.events-section {
  background: #8B1E10;
  color: #FFF;
}

.events-section .light-text .section-subtitle { color: var(--color-gold-light); }
.events-section .light-text .section-title { color: #FFF; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background: var(--color-bg-card);
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.event-card:hover { transform: translateY(-6px); }

.event-card.featured {
  border: 3px solid var(--color-gold);
  transform: scale(1.03);
}

.event-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-red-primary);
  color: #FFF;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.event-badge.gold {
  background: var(--color-gold);
  color: #2C2623;
}

.event-icon {
  font-size: 40px;
  color: var(--color-red-primary);
  margin-bottom: 16px;
}

.event-title {
  font-size: 22px;
  color: var(--color-red-dark);
  margin-bottom: 12px;
}

.event-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-red-primary);
  margin-bottom: 16px;
}

.event-venue {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* STORY TIMELINE V2 — ROYAL WARM CREAM & GOLD */
.story-section {
  background: linear-gradient(180deg, #FBF8F2 0%, #FFFDF9 50%, #FAF3E6 100%);
  position: relative;
  padding: 60px 0 20px;
  overflow: hidden;
}

.story-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.story-section .section-title {
  color: var(--color-red-primary);
  margin-top: 6px;
}

.story-section .section-subtitle {
  color: var(--color-gold-dark);
}

.story-wave-top,
.story-wave-bot {
  display: none;
}

/* V2 TIMELINE CONTAINER */
.timeline-v2 {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding-bottom: 0;
}

/* Glowing vertical line */
.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(212,175,55,0.7) 12%,
    rgba(184,59,40,0.6) 50%,
    rgba(212,175,55,0.7) 88%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(212,175,55,0.25);
  border-radius: 2px;
}

/* TIMELINE ITEM */
.tl-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.tl-item:last-child {
  margin-bottom: 0 !important;
}

.tl-left  { flex-direction: row; }
.tl-right { flex-direction: row-reverse; }

/* DOT */
.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C23623, #8A1A12);
  border: 3px solid #E5C378;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 18px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(184,59,40,0.35);
  flex-shrink: 0;
}

.tl-dot-gold {
  background: linear-gradient(135deg, #D4AF37, #A07820);
  border-color: #FFF;
  box-shadow: 0 4px 18px rgba(212,175,55,0.45);
  color: #FFF;
}

/* Pulse ring */
.tl-dot-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.4);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.25); opacity: 0; }
}

/* CARD */
.tl-card {
  width: calc(50% - 60px);
  background: linear-gradient(165deg, #FFFFFF 0%, #FFFDF8 60%, #FAF3E4 100%);
  border: 1.5px solid rgba(212,175,55,0.45);
  border-radius: 22px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 38, 35, 0.06), 0 0 15px rgba(212, 175, 55, 0.1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tl-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 45px rgba(184,59,40,0.12), 0 0 25px rgba(212,175,55,0.25);
}

/* Card glow shimmer */
.tl-card-glow {
  position: absolute;
  top: -60px; left: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* Connector arrow — left card points right */
.tl-left .tl-card::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: rgba(212,175,55,0.5);
}

/* Connector arrow — right card points left */
.tl-right .tl-card::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: rgba(212,175,55,0.5);
}

/* Icon badge */
.tl-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-red-primary), var(--color-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(184,59,40,0.3);
}

.tl-icon-gold {
  background: linear-gradient(135deg, #D4AF37, #A07820);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(212,175,55,0.4);
}

/* Timeline Photo Frame */
.tl-photo-wrap {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.55);
  background: #F7F3ED;
}

.tl-photo-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tl-card:hover .tl-photo-wrap img {
  transform: scale(1.04);
}

.tl-photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(30, 20, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFDF8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
  .tl-photo-wrap img {
    height: 270px;
  }
}

/* Text */
.tl-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #9A7B1C;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tl-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #6E121E;
  margin: 0 0 10px;
  line-height: 1.35;
  font-weight: 700;
}

.tl-desc {
  font-size: 14.5px;
  color: #4A3E38;
  line-height: 1.75;
  margin: 0 0 16px;
}

.tl-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(184,59,40,0.08);
  border: 1px solid rgba(184,59,40,0.25);
  color: #A8201A;
  letter-spacing: 0.5px;
}

.tl-tag-gold {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.5);
  color: #8C6D28;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tl-line { left: 28px; }

  .tl-item,
  .tl-right { flex-direction: column !important; align-items: flex-start; padding-left: 70px; }

  .tl-dot {
    left: 28px;
    top: 0;
    transform: translateX(-50%);
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .tl-card {
    width: 100%;
  }

  .tl-left .tl-card::after,
  .tl-right .tl-card::after { display: none; }
}

/* PHOTO GALLERY SECTION */
.gallery-section {
  background-color: var(--color-bg-secondary);
  padding-top: 50px;
  padding-bottom: 70px;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #FFF;
  border: 1.5px solid var(--color-gold-light);
  color: var(--color-text-main);
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tab-btn:active {
  transform: scale(0.96);
}

.tab-btn.active {
  background: var(--color-red-primary);
  color: #FFF;
  border-color: var(--color-red-primary);
  box-shadow: 0 4px 15px rgba(126, 16, 29, 0.3);
}

.tab-btn:hover:not(.active) {
  border-color: var(--color-red-primary);
  color: var(--color-red-primary);
  background: rgba(126, 16, 29, 0.04);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 2/3; /* Full frame chuẩn 2:3 của bộ ảnh cưới thay vì 1:1 vuông */
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(44, 38, 35, 0.12);
  background: #1c1514;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.gallery-card:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 30, 16, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 10px;
  pointer-events: none; /* QUAN TRỌNG: Không che sự kiện click/touch của thẻ ảnh */
}

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

.gallery-overlay i {
  font-size: 28px;
  color: var(--color-gold);
}

.gallery-overlay span {
  font-size: 14px;
  font-weight: 600;
}

/* INTERACTIVE MINIGAME QUIZ SECTION */
/* ==========================================================================
   ROYAL LUCKY WHEEL MINIGAME SECTION
   ========================================================================== */
.minigame-section {
  background: linear-gradient(180deg, #FBF8F2 0%, #FFFDF9 50%, #FAF3E6 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.wheel-stage-card {
  max-width: 580px;
  margin: 36px auto 0;
  background: linear-gradient(165deg, #FFFFFF 0%, #FFFDF8 60%, #FAF4E8 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 28px;
  padding: 40px 24px 36px;
  box-shadow: 0 16px 45px rgba(44, 38, 35, 0.08), 0 0 25px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Outer circular stage holding the wheel */
.wheel-outer-ring {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 100%;
  margin: 10px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-canvas-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 25px rgba(212, 175, 55, 0.35);
  border: 4px solid #E5C378;
  overflow: hidden;
}

#mainSpinCanvas {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  transition: transform 4.8s cubic-bezier(0.15, 0.85, 0.2, 1);
}

/* Center Spin Button on the Wheel */
.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #D32F2F 0%, #9C1814 60%, #5E0C08 100%);
  border: 3.5px solid #FFDF78;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(110, 13, 7, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(110, 13, 7, 0.6), 0 0 20px rgba(212, 175, 55, 0.6);
}

.wheel-center-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFDF0;
  line-height: 1;
}

.spin-btn-icon {
  font-size: 11px;
  color: #FFDF78;
  margin-bottom: 2px;
}

.spin-btn-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Pointer at Top */
.wheel-pointer-wrap {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wheel-pointer-needle {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #D4AF37;
  position: relative;
  z-index: 2;
}

.wheel-pointer-heart {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #D32F2F, #7E0C06);
  border: 2px solid #FFDF78;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 11px;
  z-index: 3;
}

/* Action button bar */
.wheel-actions-bar {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-spin-action {
  background: linear-gradient(135deg, #A8201A 0%, #8A1713 50%, #5E0C08 100%);
  color: #FFFDF8;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 13px 36px;
  border-radius: 50px;
  border: 1.5px solid #F3DA90;
  box-shadow: 0 8px 24px rgba(110, 13, 7, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-spin-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(110, 13, 7, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}

.wheel-hint-text {
  font-size: 13px;
  color: #8C7862;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Result banner */
.wheel-result-banner {
  margin-top: 24px;
  padding: 24px 20px;
  background: linear-gradient(165deg, #FFFDF8 0%, #FFF5E4 100%);
  border: 1.5px solid #D4AF37;
  border-radius: 20px;
  width: 100%;
  animation: resultPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-badge-icon {
  font-size: 40px;
  margin-bottom: 8px;
  animation: bounceNote 1.5s infinite;
}

.result-prize-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  color: #6E121E;
  margin-bottom: 8px;
}

.result-prize-desc {
  font-size: 14.5px;
  color: #4A3E38;
  line-height: 1.6;
  margin-bottom: 18px;
}

.result-button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .wheel-stage-card {
    padding: 30px 16px 26px;
  }
  .wheel-outer-ring {
    width: 290px;
    height: 290px;
  }
  .wheel-center-btn {
    width: 68px;
    height: 68px;
  }
  .spin-btn-text {
    font-size: 12.5px;
  }
}


/* ==========================================================================
   ENHANCED LUXURY LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: rgba(8, 6, 6, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 12px 16px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.lightbox-header {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 8px;
  z-index: 2100;
  flex-shrink: 0;
  box-sizing: border-box;
}

.lightbox-counter {
  pointer-events: auto;
  color: #FFDF73;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: rgba(126, 16, 29, 0.88);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 20, 20, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  color: #FFF;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  background: #7E101D;
  color: #FFDF73;
  border-color: #FFDF73;
  transform: scale(1.1);
}

.lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 4px;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-content.fade-out {
  opacity: 0.15;
  transform: scale(0.97);
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
  z-index: 2050;
  box-sizing: border-box;
}

.lightbox-btn {
  pointer-events: auto;
  background: rgba(126, 16, 29, 0.9);
  color: #FFDF73;
  border: 2px solid #D4AF37;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-btn:hover {
  background: #D4AF37;
  color: #7E101D;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.7);
}

.lightbox-btn:active {
  transform: none !important;
  opacity: 0.85 !important;
}

.lightbox-footer {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 8px 6px 4px;
  z-index: 2100;
  flex-shrink: 0;
  box-sizing: border-box;
}

.lightbox-caption {
  color: #FFFDF9;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  margin-bottom: 3px;
}

.lightbox-hint {
  color: rgba(255, 223, 115, 0.85);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
  .lightbox-modal {
    padding: 8px 10px;
  }
  .lightbox-nav {
    padding: 0 4px;
  }
  .lightbox-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
    background: rgba(126, 16, 29, 0.94);
  }
  .lightbox-caption {
    font-size: 13px;
  }
  .lightbox-hint {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   HEARTFELT MESSAGE & GUEST REMINDERS SECTION
   ========================================================================== */
.message-section {
  background-color: var(--color-bg-primary);
  padding: 80px 0;
  position: relative;
}

.message-letter-card {
  background: linear-gradient(165deg, #FFFDF9 0%, #FDF8ED 50%, #F8EFE0 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 28px;
  padding: 50px 36px 40px;
  max-width: 760px;
  margin: 40px auto 48px;
  position: relative;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08), 0 0 25px rgba(212, 175, 55, 0.15);
  text-align: center;
}

.letter-gold-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  pointer-events: none;
}

.letter-seal-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle at 35% 32%, #C93425 0%, #8F1710 65%, #5E0C08 100%);
  border: 2px solid #E5C378;
  border-radius: 30px;
  padding: 6px 18px;
  box-shadow: 0 6px 18px rgba(110, 13, 7, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.letter-seal-badge .monogram-letter {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 20px;
  color: #FFFDF2;
  line-height: 1;
  font-weight: 700;
}

.letter-seal-heart {
  color: #FFB8B8;
  font-size: 10px;
  animation: heartBeatPulse 1.8s infinite;
}

.letter-quote-top {
  font-size: 28px;
  color: rgba(212, 175, 55, 0.5);
  margin-bottom: 12px;
}

.letter-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: #4A3E38;
  margin-bottom: 28px;
}

.letter-content p {
  margin-bottom: 16px;
}

.letter-lead {
  font-size: 17px;
  color: var(--color-red-primary);
  font-family: var(--font-serif);
  line-height: 1.7;
}

.letter-footer {
  border-top: 1px dashed rgba(212, 175, 55, 0.45);
  padding-top: 20px;
  margin-top: 16px;
}

.letter-closing {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8C7862;
  margin-bottom: 6px;
}

.letter-signature {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 38px;
  color: #8B1E2B;
  font-weight: 700;
  line-height: 1.2;
}

.letter-date-stamp {
  font-size: 12px;
  letter-spacing: 2px;
  color: #A08C75;
  margin-top: 4px;
}

/* 3 GENTLE & SWEET NOTES FOR GUESTS */
.guest-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.guest-note-card {
  background: #FFFDF9;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 30px 22px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guest-note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
}

.note-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 59, 40, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red-primary);
  font-size: 22px;
  transition: transform 0.35s ease;
}

.guest-note-card:hover .note-icon-wrap {
  transform: scale(1.12) rotate(6deg);
  background: linear-gradient(135deg, var(--color-red-primary), #8F1710);
  color: #FFFDF8;
}

.note-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #6E121E;
  margin-bottom: 10px;
}

.note-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #5C4E45;
  margin: 0;
}

@media (max-width: 768px) {
  .message-letter-card {
    padding: 40px 20px 28px;
    margin: 36px 14px 36px;
  }
  .letter-content {
    font-size: 14.5px;
  }
  .letter-signature {
    font-size: 32px;
  }
  .guest-notes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 14px;
  }
  .guest-note-card {
    padding: 24px 18px 20px;
  }
}

/* RSVP & GUESTBOOK SECTION */
.rsvp-section {
  background-color: var(--color-red-dark);
  color: #FFF;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.rsvp-form-card, .guestbook-card {
  background: var(--color-bg-card);
  color: var(--color-text-main);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.rsvp-form-card h3, .guestbook-card h3 {
  font-size: 22px;
  color: var(--color-red-dark);
  margin-bottom: 6px;
}

.guestbook-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-count {
  font-size: 12px;
  background: var(--color-red-soft);
  color: var(--color-red-primary);
  padding: 4px 10px;
  border-radius: 12px;
}

.form-subtext {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--color-bg-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-red-primary);
  background: #FFF;
}

/* WISHES WALL */
.wishes-wall {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wishes-empty-state {
  text-align: center;
  padding: 34px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.wishes-empty-state i {
  display: block;
  font-size: 28px;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.wish-item {
  background: var(--color-bg-primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-red-primary);
}

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

.wish-header strong {
  font-size: 14px;
  color: var(--color-red-dark);
}

.wish-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.wish-tag.groom { background: #EBF8FF; color: #2B6CB0; }
.wish-tag.bride { background: #FFF5F5; color: #C53030; }
.wish-tag.both { background: #FEFCBF; color: #B7791F; }

.wish-text {
  font-size: 13px;
  color: var(--color-text-main);
  font-style: italic;
}

.wish-time {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   FOOTER - Royal Grand Finale Invitation Card
   ========================================================================== */
.wedding-footer {
  background: linear-gradient(180deg, #6B141D 0%, #480A12 40%, #2A050B 100%);
  background-image: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
  color: #FFF;
  padding: 0 0 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer-wave-top {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.footer-wave-top svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 20px 20px;
}

/* ROYAL GRAND FINALE CARD */
.footer-royal-card {
  background: linear-gradient(168deg, #FFFDF9 0%, #FAF3E6 45%, #F4E8D0 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 26px;
  padding: 48px 30px 36px;
  position: relative;
  text-align: center;
  margin: 45px auto 30px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.5), 
    0 0 35px rgba(212, 175, 55, 0.25), 
    inset 0 0 30px rgba(255, 255, 255, 0.7);
}

.footer-seal-wrap {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.footer-seal {
  width: 76px;
  height: 76px;
  margin: 0 auto;
}

.footer-sub-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #8C6D28;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 6px;
}

.footer-card-names {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #7E101D;
  margin: 4px 0 10px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.footer-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #6E121E;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.footer-date-pill i {
  color: #B83B28;
  font-size: 11px;
}

.footer-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 65%;
  margin: 0 auto 16px;
}

.footer-gold-divider .fg-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.footer-gold-divider i {
  color: #D4AF37;
  font-size: 13px;
}

.footer-thank-text {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #4A3E38;
  line-height: 1.7;
  margin: 0 0 24px;
}

.footer-thank-text em {
  display: block;
  margin-top: 6px;
  color: #7E101D;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
}

/* Share & Action Buttons */
.footer-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.btn-footer-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
}

.btn-ft-zalo {
  background: #0068FF;
  color: #FFF;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

.btn-ft-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.5);
  color: #FFF;
}

.btn-ft-fb {
  background: #1877F2;
  color: #FFF;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.btn-ft-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
  color: #FFF;
}

.btn-ft-wa {
  background: #25D366;
  color: #FFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-ft-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #FFF;
}

.btn-ft-copy {
  background: rgba(255, 255, 255, 0.95);
  color: #6E121E;
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-ft-copy:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  background: #FFF;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-ft-reopen {
  background: linear-gradient(135deg, #B83B28 0%, #8B1E10 100%);
  color: #FFFDF0;
  border: 1px solid #FFDF78;
  box-shadow: 0 4px 16px rgba(184, 59, 40, 0.4);
}

.btn-ft-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 59, 40, 0.55);
}

/* Back to Top */
.footer-back-top {
  margin-bottom: 16px;
}

.btn-back-to-top {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F8E5B0;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back-to-top:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #FFDF78;
  color: #FFF;
  transform: translateY(-2px);
}

/* Copyright */
.footer-copyright {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .footer-royal-card {
    padding: 42px 18px 28px;
    margin: 40px 10px 24px;
    border-radius: 20px;
  }
  .footer-card-names {
    font-size: 26px;
  }
  .footer-thank-text {
    font-size: 14px;
  }
  .btn-footer-action {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-red-dark);
  color: #FFF;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .couple-names-wrapper {
    align-items: center;
    text-align: center;
    margin: 16px auto;
    width: 100%;
  }
  .groom-name, .bride-name {
    font-size: clamp(30px, 7vw, 44px);
    white-space: nowrap;
    text-align: center;
  }
  .couple-connector {
    margin: 4px auto;
    max-width: 320px;
  }
  .hero-date-badge { margin: 20px auto; }
  .hero-cta-buttons { justify-content: center; }
  .timeline::after { left: 31px; }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  .timeline-item.right { left: 0; }
  .timeline-dot { left: 10px !important; }
  .rsvp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .wedding-nav {
    padding: 10px 18px;
    height: 60px;
    box-sizing: border-box;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    padding: 18px 20px 26px;
    gap: 10px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    z-index: 899;
    box-sizing: border-box;
  }
  .nav-links.mobile-open {
    display: flex;
    animation: mobileNavSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes mobileNavSlideDown {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-main);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a:active {
    background: var(--color-red-primary);
    color: #FFF;
    border-color: var(--color-red-primary);
    transform: scale(0.98);
  }
  .nav-links a::after {
    display: none !important;
  }
  .nav-btn-envelope {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 25px !important;
    background: rgba(212, 175, 55, 0.18) !important;
    color: var(--color-gold-dark) !important;
    border: 1.5px solid var(--color-gold) !important;
    box-sizing: border-box !important;
  }
  .nav-btn-rsvp {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 25px !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
  }

  /* Mobile Hero Buttons Usability */
  .hero-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    gap: 12px;
  }
  .hero-cta-buttons .btn {
    width: 100%;
    min-height: 48px;
    font-size: 14.5px;
    padding: 12px 18px;
    justify-content: center;
    border-radius: 26px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  .hero-arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.95);
  }
  .hero-arrow-btn:active {
    transform: translateY(-50%) !important;
    opacity: 0.85 !important;
  }

  /* Mobile Event Card Buttons */
  .event-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    width: 100%;
  }
  .event-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 22px;
    box-sizing: border-box;
    white-space: nowrap;
    justify-content: center;
    gap: 6px;
  }

  /* Mobile Footer Sharing Buttons */
  .footer-actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }
  .btn-footer-action {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12.5px;
    justify-content: center;
    border-radius: 25px;
    box-sizing: border-box;
  }

  /* Music Button Mobile Positioning */
  .music-player-container {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: 14px;
    z-index: 850;
  }
  .music-disc-btn {
    width: 50px;
    height: 50px;
  }

  .couple-names-wrapper {
    align-items: center;
    text-align: center;
    margin: 12px auto;
    gap: 4px;
  }
  .groom-name, .bride-name {
    font-size: clamp(26px, 7.5vw, 36px);
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 0;
    padding: 3px 0;
  }
  .couple-connector {
    max-width: 260px;
    margin: 2px auto;
    gap: 8px;
  }
  .connector-badge {
    padding: 3px 14px;
  }
  .connector-badge .monogram-letter {
    font-size: 22px;
  }
  .countdown-box-wrapper {
    gap: 10px;
    padding: 0 8px;
  }
  .countdown-item {
    min-width: 70px;
    padding: 16px 10px 14px;
  }
  .count-number { font-size: 30px; }
  .countdown-dots { font-size: 24px; margin-top: -6px; }
  .music-info-bubble { display: none; }
  .font-selector-widget { top: 70px; right: 10px; }
  .fab-container { bottom: 20px; right: 16px; }

  /* Hero Polaroid & Gallery Grid Mobile Safety */
  .hero-photo-wrapper {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .polaroid-card {
    transform: none !important;
    max-width: 360px;
    margin: 0 auto;
    padding: 12px 12px 18px 12px;
    box-sizing: border-box;
  }
  .tape-top-left {
    left: 8px;
    top: -6px;
    transform: rotate(-10deg);
  }
  .tape-top-right {
    right: 8px;
    top: -6px;
    transform: rotate(10deg);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 12px 14px;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
  }
  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .polaroid-card {
    max-width: 320px;
  }
  .gallery-grid {
    gap: 8px;
  }
  .countdown-box-wrapper {
    gap: 6px;
    padding: 0 4px;
  }
  .countdown-item {
    min-width: 65px;
    padding: 13px 6px 11px;
  }
  .count-number { font-size: 25px; }
  .count-label { font-size: 10.5px; letter-spacing: 1px; margin-top: 5px; }
  .countdown-dots { font-size: 18px; margin-top: -4px; }
  .groom-name, .bride-name {
    font-size: clamp(23px, 7vw, 30px);
    white-space: nowrap;
  }
  .couple-connector {
    max-width: 220px;
  }
  .gold-crest-badge {
    top: 14px;
    right: 14px;
    padding: 3px 10px;
  }
  .crest-monogram {
    font-size: 18px;
  }
  .env-names {
    font-size: 20px !important;
  }
  .env-name-part {
    white-space: nowrap;
    display: inline-block;
  }
}

/* ================================================
   FLOATING ACTION BUTTON (FAB) SPEED-DIAL
   ================================================ */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red-primary), var(--color-red-dark));
  border: none;
  color: #FFF;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(184,59,40,0.5);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.fab-main:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(184,59,40,0.7);
}

.fab-main.open {
  background: linear-gradient(135deg, #555, #222);
  transform: rotate(45deg);
}

.fab-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-actions.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-action {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D0A0A, var(--color-red-dark));
  border: 2px solid rgba(212,175,55,0.5);
  color: var(--color-gold);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-action:hover {
  transform: scale(1.15) translateX(-6px);
  border-color: var(--color-gold);
  background: var(--color-red-primary);
  color: #FFF;
}

.fab-label {
  position: absolute;
  right: 60px;
  background: rgba(20,0,0,0.9);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(212,175,55,0.3);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.fab-action:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================
   MODAL OVERLAY (shared)
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: linear-gradient(160deg, #1A0505, #2D0A0A);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(184,59,40,0.6);
  color: #FFF;
}

/* ================================================
   LUCKY SPIN WHEEL
   ================================================ */
.spin-modal-box {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.spin-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-gold);
  margin: 10px 0 6px;
}

.spin-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.spin-wheel-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 20px;
}

.spin-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--color-gold);
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#spinCanvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(212,175,55,0.3), 0 0 0 4px rgba(212,175,55,0.2);
  display: block;
}

.btn-spin-go {
  background: linear-gradient(135deg, var(--color-gold), #F0D060);
  color: #1A1412;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}

.btn-spin-go:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.6);
}

.btn-spin-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spin-result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
  min-height: 60px;
  line-height: 1.5;
  text-align: center;
  animation: spinResultPop 0.5s ease;
}

@keyframes spinResultPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================================================
   PHOTO BOOTH MODAL
   ================================================ */
/* ================================================
   PHOTO BOOTH INVITATION BANNER IN ALBUM
   ================================================ */
.photobooth-cta-banner {
  position: relative;
  margin: 32px auto 40px;
  max-width: 860px;
  background: linear-gradient(135deg, rgba(139, 38, 53, 0.95), rgba(74, 13, 22, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 12px 36px rgba(139, 38, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.photobooth-cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(139, 38, 53, 0.45), 0 0 20px rgba(212, 175, 55, 0.3);
}

.photobooth-cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
  pointer-events: none;
}

.photobooth-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.photobooth-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-gold);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.photobooth-cta-text {
  flex: 1;
  text-align: left;
}

.photobooth-cta-text h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #FFF;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.photobooth-cta-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.btn-booth-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-gold), #F0D060);
  color: #1A1412;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-booth-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

/* ================================================
   PHOTO BOOTH MODAL ENHANCED
   ================================================ */
.photo-modal-box {
  max-width: 540px;
  width: 95%;
  text-align: center;
  padding: 30px 24px;
  background: linear-gradient(165deg, #1C0A0D, #0E0304);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
}

.photo-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.photo-modal-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

/* Frame Selector Tabs */
.booth-frame-selector {
  margin-bottom: 16px;
}

.booth-frame-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.frame-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame-tab-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
  color: #FFF;
}

.frame-tab-btn.active {
  background: linear-gradient(135deg, var(--color-gold), #9E7D23);
  border-color: var(--color-gold);
  color: #1A0505;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.photo-booth-area {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.photo-frame-wrap {
  position: relative;
  width: 320px;
  height: 400px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--color-gold);
}

.photo-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.booth-fallback-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #FFF;
  background: #140507;
  z-index: 5;
  pointer-events: auto;
}

.booth-frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 6px solid transparent;
  transition: all 0.3s ease;
}

/* Gold Frame Style */
.booth-frame-overlay.frame-style-gold {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.25);
}
.frame-style-gold .booth-corner {
  border-color: var(--color-gold);
}

/* Rose Frame Style */
.booth-frame-overlay.frame-style-rose {
  border-color: rgba(184, 59, 40, 0.7);
  box-shadow: inset 0 0 24px rgba(184, 59, 40, 0.35);
}
.frame-style-rose .booth-corner {
  border-color: #E25858;
}

/* Classic Frame Style */
.booth-frame-overlay.frame-style-classic {
  border-color: rgba(255, 240, 210, 0.6);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.2);
}
.frame-style-classic .booth-corner {
  border-color: #F7E7CE;
}

.booth-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-style: solid;
}

.bc-tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.bc-tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.bc-bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.bc-br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.booth-badge-top {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 1, 1, 0.75);
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  padding: 3px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.booth-badge-top span {
  font-family: 'Pinyon Script', cursive !important;
  font-size: 20px;
  color: var(--color-gold);
  line-height: 1;
}

.booth-watermark {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  background: rgba(13, 1, 1, 0.65);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.booth-captured img {
  width: 320px;
  height: 400px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: #0E0304;
  border: 2px solid var(--color-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.booth-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-booth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-booth-primary {
  background: linear-gradient(135deg, var(--color-red-primary), #6B1622);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(139, 38, 53, 0.4);
}

.btn-booth-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-booth-gold {
  background: linear-gradient(135deg, var(--color-gold), #F0D060);
  color: #1A1412;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-booth-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.btn-booth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .photobooth-cta-content {
    flex-direction: column;
    text-align: center;
  }
  .photobooth-cta-text {
    text-align: center;
  }
  .btn-booth-cta {
    width: 100%;
    justify-content: center;
  }
  .photo-frame-wrap, .booth-captured img {
    width: 280px;
    height: 350px;
  }
}

.visitor-badge,
.fab-container {
  display: none !important;
}

/* ================================================
   INTERACTIVE WEB EFFECTS & RE-OPEN ENVELOPE BUTTON
   ================================================ */
.nav-btn-envelope {
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF1E0 100%);
  color: #8B1E10 !important;
  border: 1px solid rgba(212, 175, 55, 0.7);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-btn-envelope:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  border-color: #D4AF37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  color: #B83B28 !important;
}

.nav-btn-envelope i {
  color: #B83B28;
}

/* Click / Tap Particles */
.click-sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  user-select: none;
  font-size: 18px;
  line-height: 1;
  animation: clickParticleFly 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
}

@keyframes clickParticleFly {
  0% {
    transform: translate(0, 0) scale(1.1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(var(--rot));
    opacity: 0;
  }
}

/* Cursor Trail Fairy Dust (Desktop) */
.cursor-dust-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFDF0 0%, #FFDF78 60%, rgba(212, 175, 55, 0) 100%);
  box-shadow: 0 0 8px #FFDF78;
  transform: translate(-50%, -50%);
  animation: cursorDustFade 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
}

@keyframes cursorDustFade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.1) translateY(14px);
    opacity: 0;
  }
}

/* ============================================================
   COUPLE PROFILE SECTION (CHÚ RỂ & CÔ DÂU)
   ============================================================ */
.couple-section {
  position: relative;
  padding: 80px 20px 90px;
  background: linear-gradient(180deg, #FBF8F3 0%, #F5EFEB 100%);
  overflow: hidden;
}

.couple-cards-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1050px;
  margin: 40px auto 0;
  flex-wrap: wrap;
}

.couple-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  flex: 1 1 340px;
  max-width: 440px;
  position: relative;
  box-shadow: 0 15px 40px rgba(126, 16, 29, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  overflow: hidden;
}

.couple-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #D4AF37, #7E101D, #D4AF37);
}

.couple-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(212, 175, 55, 0.3);
  border-color: #D4AF37;
}

.couple-avatar-wrap {
  position: relative;
  margin: 0 auto 16px;
  display: inline-block;
}

.couple-avatar-frame {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid #D4AF37;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  background: #FAF6F0;
}

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

.couple-card:hover .couple-img {
  transform: scale(1.08);
}

.couple-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: linear-gradient(135deg, #7E101D, #A31D24);
  color: #FFF;
  border: 1px solid #D4AF37;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(126, 16, 29, 0.25);
}

.couple-role-badge.bride-badge {
  background: linear-gradient(135deg, #A8202E, #D4AF37);
  color: #FFF;
}

.couple-name {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 28px;
  color: #7E101D;
  font-weight: 700;
  margin: 12px 0 6px;
}

.couple-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 16px;
  color: #D4AF37;
  font-size: 14px;
}

.couple-divider span {
  display: inline-block;
  width: 45px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.couple-bio {
  font-size: 14.5px;
  line-height: 1.75;
  color: #554D48;
  font-style: italic;
  padding: 0 10px;
}

/* Emblem in between cards */
.couple-center-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 2;
}

.emblem-heart-pulse {
  font-size: 34px;
  color: #7E101D;
  animation: pulseHeart 1.8s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(126, 16, 29, 0.3));
}

.emblem-monogram {
  font-size: 26px;
  font-weight: 800;
  color: #D4AF37;
  margin-top: 4px;
  letter-spacing: 2px;
}

.emblem-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #9E8E80;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .couple-section {
    padding: 60px 16px 70px;
  }
  .couple-card {
    padding: 28px 18px;
    flex: 1 1 100%;
  }
  .couple-avatar-frame {
    width: 160px;
    height: 160px;
  }
  .couple-name {
    font-size: 24px;
  }
  .couple-center-emblem {
    margin: 10px 0;
  }
}

/* ==========================================================================
   WEDDING QR CODE MODAL & FLOATING BUTTON
   ========================================================================== */
.nav-btn-qr {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.nav-btn-qr:hover {
  background: var(--color-gold);
  color: #7E101D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.floating-qr-btn {
  position: fixed;
  left: 20px;
  bottom: 25px;
  z-index: 850;
  background: linear-gradient(135deg, #7E101D 0%, #A31D24 100%);
  color: #FFDF73;
  border: 1.5px solid #D4AF37;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(126, 16, 29, 0.4), 0 0 12px rgba(212, 175, 55, 0.3);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-qr-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: #D4AF37;
  color: #7E101D;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.qr-modal-box {
  max-width: 440px;
  width: 90%;
  background: linear-gradient(170deg, #FFFDF9 0%, #FDF7EC 100%);
  border: 2px solid #D4AF37;
  border-radius: 24px;
  padding: 34px 24px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(212, 175, 55, 0.25);
}

.qr-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126, 16, 29, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.qr-crest-badge .monogram-letter {
  font-size: 20px;
  color: #7E101D;
}

.qr-crest-heart {
  color: #D62828;
  font-size: 11px;
}

.qr-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #7E101D;
  letter-spacing: 1px;
  margin: 4px 0 6px;
}

.qr-modal-sub {
  font-size: 13px;
  color: #6B5B53;
  margin-bottom: 18px;
  line-height: 1.5;
}

.qr-frame-card {
  background: #FFF;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  padding: 18px 16px 14px;
  position: relative;
  box-shadow: 0 8px 24px rgba(44, 38, 35, 0.08);
  margin-bottom: 18px;
}

.qr-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #D4AF37;
  border-style: solid;
}

.qr-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.qr-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.qr-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.qr-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.qr-img-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.qr-code-img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.qr-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126, 16, 29, 0.06);
  color: #7E101D;
  font-weight: 700;
  font-size: 13.5px;
  padding: 4px 14px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.qr-actions-flex {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btn-qr-download {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 25px;
}

.qr-hint-text {
  font-size: 11.5px;
  color: #7A6C65;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .qr-code-img {
    width: 190px;
    height: 190px;
  }
  .qr-modal-box {
    padding: 28px 18px 22px;
  }
}

/* ==========================================================================
   UNIVERSAL TOUCH-OPTIMIZED BUTTON ERGONOMICS (MOBILE UX)
   ========================================================================== */
button,
input[type="button"],
input[type="submit"],
.btn,
a.btn,
.tab-btn,
.lightbox-btn,
.lightbox-close,
.modal-close-btn,
.music-disc-btn,
.btn-footer-action,
.btn-back-to-top,
.btn-open-invite,
.btn-enter-wedding,
.nav-mobile-toggle,
.frame-tab-btn,
.btn-booth,
.btn-spin-action,
.hero-arrow-btn,
.nav-btn-envelope,
.nav-btn-rsvp {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Smooth visual feedback on click/press without changing geometry */
button:active,
.btn:active,
a.btn:active,
.btn-footer-action:active,
.btn-enter-wedding:active,
.btn-open-invite:active,
.btn-booth:active,
.frame-tab-btn:active,
.tab-btn:active,
.hero-arrow-btn:active,
.map-app-choice-btn:active {
  opacity: 0.82 !important;
}

/* SMART MAP DIRECTIONS MODAL */
.map-modal-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #2A0808 0%, #170404 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  padding: 32px 22px 26px;
  text-align: center;
  box-sizing: border-box;
}

.map-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  color: #5C0B14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.45);
}

.map-modal-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: #FFFDF5;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.map-modal-time {
  font-size: 13px;
  color: #FFDF78;
  margin: 0 0 10px;
  font-weight: 600;
}

.map-modal-address {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  word-break: break-word;
}

.map-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.map-app-choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.map-app-choice-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
}

.map-app-choice-btn .choice-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.map-app-choice-btn.google-choice .choice-icon {
  background: #4285F4;
  color: #FFF;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.45);
}

.map-app-choice-btn.apple-choice .choice-icon {
  background: linear-gradient(135deg, #333 0%, #111 100%);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.map-app-choice-btn.copy-choice .choice-icon {
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  color: #5C0B14;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.map-app-choice-btn .choice-info {
  flex: 1;
}

.map-app-choice-btn .choice-info strong {
  display: block;
  font-size: 14.5px;
  color: #FFFDF5;
  margin-bottom: 2px;
}

.map-app-choice-btn .choice-info span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}

.map-app-choice-btn .choice-arrow {
  color: rgba(212, 175, 55, 0.85);
  font-size: 14px;
}

