/* ==========================================================================
   THEAP DIGITAL - PLANESSENTIAL VIDEO EDITION LIVE INVITATION STYLES
   Cinematic 3D Unboxing Video, Ambient Looping Backgrounds, Ken-Burns Motion
   ========================================================================== */

:root {
  --primary: #b08e4f;
  --primary-dark: #8c6a2e;
  --primary-light: #d6b879;
  --gold: #d97706;
  --gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gold-foil: linear-gradient(135deg, #fef08a 0%, #d97706 50%, #fef08a 100%);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(217, 119, 6, 0.35);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-premium: 0 20px 45px -10px rgba(0, 0, 0, 0.35), 0 0 25px rgba(245, 158, 11, 0.2);
  --font-heading: 'Moul', 'Hanuman', serif;
  --font-body: 'Kantumruy Pro', 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: #0b0f19;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   1. FULLSCREEN AMBIENT LOOPING BACKGROUND VIDEO
   ========================================================================== */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.invitation-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.02);
  transition: opacity 1s ease;
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.25) 0%, rgba(11, 15, 25, 0.8) 100%);
  pointer-events: none;
}

/* Ambient Canvas Particle & Falling Flower Petal Overlay (Visible over Video & Card) */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
}

/* ==========================================================================
   2. 3D UNBOXING VIDEO STAGE (PLANESSENTIAL STYLE)
   ========================================================================== */
.unbox-video-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.unbox-video-overlay.unbox-closed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

.unbox-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 520px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.unbox-slides-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  perspective: 1200px;
  background: #0f172a;
}

.unbox-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease;
}

.unbox-cover-photo.active-slide {
  opacity: 1;
  z-index: 2;
  animation: kenBurnsZoom 14s ease-in-out infinite alternate;
}

.unbox-photo-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 10, 8, 0.72) 0%,
    rgba(15, 10, 8, 0.12) 28%,
    rgba(15, 10, 8, 0.15) 55%,
    rgba(15, 10, 8, 0.88) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.unbox-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.unbox-top-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 36px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.unbox-cta-dock {
  position: relative;
  z-index: 10;
  width: calc(100% - 28px);
  margin-bottom: 22px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.25) 0%, rgba(15, 12, 10, 0.82) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  animation: floatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.unbox-title-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fbbf24;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.unbox-heading-khmer {
  font-family: 'Moul', 'Hanuman', serif;
  font-size: 1.5rem;
  color: #fde68a;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95), 0 0 18px rgba(217, 119, 6, 0.5);
  line-height: 1.45;
}

.unbox-names-preview {
  font-family: 'Moul', 'Hanuman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.5px;
}

.unbox-date-line {
  font-family: 'Moul', 'Hanuman', serif;
  font-size: 0.85rem;
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  margin-bottom: 2px;
}

.btn-unbox-open {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
  color: #ffffff;
  border: 1px solid rgba(254, 240, 138, 0.5);
  border-radius: 50px;
  font-family: 'Kantumruy Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.btn-unbox-open:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.7);
}

.btn-unbox-skip {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 14px;
  transition: color 0.2s;
}

.btn-unbox-skip:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* ==========================================================================
   3. INVITATION MAIN VIEWPORT
   ========================================================================== */
.invitation-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 12px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Floating Bar */
.invite-top-bar {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.invite-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.brand-sparkle {
  font-size: 1.15rem;
  animation: spinSlow 8s linear infinite;
}

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

.brand-logo-text {
  font-size: 0.8rem;
  color: #fbbf24;
}

.invite-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-pill {
  opacity: 0.6;
}

.lang-pill.active {
  opacity: 1;
  color: #fbbf24;
}

.lang-divider {
  opacity: 0.4;
}

.btn-icon-blur {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-blur:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

/* Floating Music Player Widget */
.floating-music-widget {
  position: fixed;
  bottom: 85px;
  right: 18px;
  z-index: 100;
}

.btn-floating-music {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(217, 119, 6, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.vinyl-disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinDisc 3s linear infinite;
  animation-play-state: paused;
}

.floating-music-widget.playing .vinyl-disc {
  animation-play-state: running;
}

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

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

.eq-bar {
  width: 3px;
  height: 100%;
  background: #fbbf24;
  border-radius: 2px;
  transform-origin: bottom;
}

.floating-music-widget.playing .eq-bar:nth-child(1) { animation: eqJump 0.8s ease-in-out infinite alternate; }
.floating-music-widget.playing .eq-bar:nth-child(2) { animation: eqJump 0.6s ease-in-out infinite alternate 0.2s; }
.floating-music-widget.playing .eq-bar:nth-child(3) { animation: eqJump 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes eqJump {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

/* ==========================================================================
   4. MAIN INVITATION CARD (GLASSMORPHIC & ROYAL FRAME)
   ========================================================================== */
.invitation-main-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  padding-bottom: 24px;
  transition: all 0.5s ease;
}

/* Kbach Header Frame */
.kbach-header-frame {
  padding: 24px 20px 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, transparent 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
}

.kbach-frame-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
}

.kbach-ornament-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.kbach-line {
  height: 1px;
  flex: 1;
  max-width: 70px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.kbach-center-symbol {
  color: var(--gold);
  font-size: 1.1rem;
}

.official-invite-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.blessing-title-khmer {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.6;
}

/* Guest Honor Banner */
.guest-honor-banner {
  margin: 14px 16px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.35) 0%, rgba(251, 191, 36, 0.2) 100%);
  border: 1px dashed var(--gold);
  border-radius: 16px;
  text-align: center;
}

.guest-honor-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.guest-honor-name {
  font-family: 'Hanuman', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 2px;
}

.guest-honor-seats {
  font-size: 0.85rem;
  font-weight: 600;
  color: #78350f;
}

/* ==========================================================================
   5. HERO COUPLE VIDEO / KEN-BURNS MOTION SECTION
   ========================================================================== */
.hero-couple-section {
  position: relative;
  width: 100%;
  padding: 14px 16px;
}

.hero-image-zoom-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(251, 191, 36, 0.4);
  perspective: 1200px;
  background: #0f172a;
}

.hero-slides-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transform-origin: center center;
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease;
}

.hero-cover-img.active-slide {
  opacity: 1;
  z-index: 2;
  animation: kenBurnsZoom 14s ease-in-out infinite alternate;
}

/* Gallery Motion Effects applied to Unbox Video Stage & Hero Couple Video Box */
.unbox-slides-stage.anim-crossfade_glow .unbox-cover-photo,
.hero-image-zoom-box.anim-crossfade_glow .hero-cover-img {
  filter: blur(8px) brightness(1.25);
  transform: scale(1.06);
}
.unbox-slides-stage.anim-crossfade_glow .unbox-cover-photo.active-slide,
.hero-image-zoom-box.anim-crossfade_glow .hero-cover-img.active-slide {
  filter: blur(0) brightness(1);
  transform: scale(1);
  animation: stardustHeroFade 6s ease-in-out infinite alternate;
}
@keyframes stardustHeroFade {
  0% { transform: scale(1); filter: brightness(1) contrast(1.02); }
  100% { transform: scale(1.06); filter: brightness(1.08) contrast(1.05); }
}

.unbox-slides-stage.anim-carousel_slider .unbox-cover-photo,
.hero-image-zoom-box.anim-carousel_slider .hero-cover-img {
  transform: translateX(35%) scale(0.92);
}
.unbox-slides-stage.anim-carousel_slider .unbox-cover-photo.active-slide,
.hero-image-zoom-box.anim-carousel_slider .hero-cover-img.active-slide {
  transform: translateX(0) scale(1);
  animation: none;
}

.unbox-slides-stage.anim-floating_petals .unbox-cover-photo.active-slide,
.hero-image-zoom-box.anim-floating_petals .hero-cover-img.active-slide {
  animation: petalHeroBloom 5s ease-in-out infinite alternate;
}
@keyframes petalHeroBloom {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.07) translateY(-6px); }
}

.unbox-slides-stage.anim-polaroid_slide .unbox-cover-photo,
.hero-image-zoom-box.anim-polaroid_slide .hero-cover-img {
  transform: rotate(-3deg) scale(0.92);
}
.unbox-slides-stage.anim-polaroid_slide .unbox-cover-photo.active-slide,
.hero-image-zoom-box.anim-polaroid_slide .hero-cover-img.active-slide {
  transform: rotate(0deg) scale(1.02);
  animation: none;
}

.unbox-slides-stage.anim-cube_3d .unbox-cover-photo,
.hero-image-zoom-box.anim-cube_3d .hero-cover-img {
  transform: perspective(1000px) rotateY(-45deg) scale(0.9);
}
.unbox-slides-stage.anim-cube_3d .unbox-cover-photo.active-slide,
.hero-image-zoom-box.anim-cube_3d .hero-cover-img.active-slide {
  transform: perspective(1000px) rotateY(0deg) scale(1);
  animation: none;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-1.5%, -2%); }
  100% { transform: scale(1.05) translate(1.5%, 1.5%); }
}

.hero-light-leak {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, transparent 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 18px;
  color: #fff;
  text-align: center;
}

.hero-couple-names-khmer {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: #fef08a;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1.4;
  margin-bottom: 2px;
}

.hero-couple-names-english {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.95;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ==========================================================================
   SELECTABLE ORNATE GUEST NAME FRAMES (8 LUXURY CAMBODIAN DESIGNS)
   ========================================================================== */
.guest-frame-showcase {
  width: 100%;
  max-width: 400px;
  margin: 6px auto 10px;
  text-align: center;
  position: relative;
  z-index: 4;
}

.guest-frame-invite-label {
  font-family: 'Moul', 'Moulpali', serif;
  font-size: 0.98rem;
  color: #fde68a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 14px rgba(245, 158, 11, 0.55);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.guest-frame-plaque {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  margin: 0 auto;
  width: 94%;
  transition: all 0.35s ease;
}

.guest-frame-name-text {
  font-family: 'Moul', 'Hanuman', serif;
  font-size: 0.96rem;
  line-height: 1.45;
  letter-spacing: 0.3px;
  word-break: break-word;
  flex: 1;
}

.guest-frame-side-ornament {
  font-size: 0.85rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.guest-frame-seats-pill {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef08a;
  font-size: 0.75rem;
  font-weight: 700;
}

/* 1. ROYAL 3D GOLD STUDDED PLAQUE (Refined Style 2 - Sleek Curved Pill with Subtle Diamond Tips) */
.guest-frame-showcase.frame_royal_gold .guest-frame-plaque {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 1.5px, transparent 2px) repeat-x top 3px left 14px / 12px 4px,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 1.5px, transparent 2px) repeat-x bottom 3px left 14px / 12px 4px,
    linear-gradient(180deg, #f59e0b 0%, #fde68a 15%, #fef3c7 48%, #fde68a 82%, #d97706 100%);
  border: 2.5px solid #fbbf24;
  border-radius: 9999px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.65),
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(180, 83, 9, 0.6),
    0 0 0 1.5px #78350f;
  color: #1c1917;
  padding: 6px 22px;
  min-height: 42px;
  width: auto;
  max-width: 95%;
  margin: 0 auto;
  overflow: visible !important;
}
.guest-frame-showcase.frame_royal_gold .guest-frame-plaque::before,
.guest-frame-showcase.frame_royal_gold .guest-frame-plaque::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #fef08a 0%, #d97706 100%);
  border: 1.5px solid #78350f;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  z-index: 3 !important;
}
.guest-frame-showcase.frame_royal_gold .guest-frame-plaque::before { left: -4.5px; }
.guest-frame-showcase.frame_royal_gold .guest-frame-plaque::after { right: -4.5px; }

.guest-frame-showcase.frame_royal_gold .guest-frame-side-ornament {
  display: inline-block !important;
  color: #92400e !important;
  font-size: 0.85rem;
  opacity: 0.92;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.guest-frame-showcase.frame_royal_gold .guest-frame-name-text {
  color: #1c1917;
  font-family: 'Moul', 'Hanuman', serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

/* 2. ANGKOR CRIMSON & GOLD SCROLL (ស៊ុមក្បាច់អង្គរពណ៌ក្រហមមាស) */
.guest-frame-showcase.frame_angkor_kbach .guest-frame-plaque {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
  border: 2px solid #fbbf24;
  outline: 2px solid rgba(251, 191, 36, 0.45);
  outline-offset: -6px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.35);
}
.guest-frame-showcase.frame_angkor_kbach .guest-frame-name-text {
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
.guest-frame-showcase.frame_angkor_kbach .guest-frame-side-ornament {
  color: #fbbf24;
}

/* 3. IMPERIAL EMERALD & GOLD SEAL (ស៊ុមមរកតរាជវាំង) */
.guest-frame-showcase.frame_imperial_jade .guest-frame-plaque {
  background: linear-gradient(135deg, #022c22 0%, #065f46 50%, #022c22 100%);
  border: 2.5px solid #fbbf24;
  border-radius: 8px 24px 8px 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(251, 191, 36, 0.25);
}
.guest-frame-showcase.frame_imperial_jade .guest-frame-name-text {
  color: #fde68a;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}
.guest-frame-showcase.frame_imperial_jade .guest-frame-side-ornament {
  color: #34d399;
}

/* 4. CRYSTAL PEARL GLASS PLAQUE (ស៊ុមកញ្ចក់គុជភ្លឺថ្លា) */
.guest-frame-showcase.frame_crystal_pearl .guest-frame-plaque {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(254, 243, 199, 0.16) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(254, 240, 138, 0.85);
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.7);
}
.guest-frame-showcase.frame_crystal_pearl .guest-frame-name-text {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.guest-frame-showcase.frame_crystal_pearl .guest-frame-side-ornament {
  color: #fef08a;
}

/* 5. LOTUS BLOSSOM ROSE GOLD (ស៊ុមផ្កាឈូកស៊ីជម្ពូមាស) */
.guest-frame-showcase.frame_lotus_rose .guest-frame-plaque {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 52%, #fecdd3 100%);
  border: 2.5px solid #f43f5e;
  border-radius: 26px;
  box-shadow: 0 8px 20px rgba(136, 19, 55, 0.45), inset 0 2px 4px #ffffff, 0 0 0 2px #fbbf24;
}
.guest-frame-showcase.frame_lotus_rose .guest-frame-name-text {
  color: #881337;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.guest-frame-showcase.frame_lotus_rose .guest-frame-side-ornament {
  color: #e11d48;
}

/* 6. ROYAL VELVET RIBBON SCROLL (ស៊ុមបូព្រែកំมะหยี่មាស) */
.guest-frame-showcase.frame_velvet_ribbon .guest-frame-plaque {
  background: linear-gradient(90deg, #3b0764 0%, #581c87 50%, #3b0764 100%);
  border-top: 3px solid #fbbf24;
  border-bottom: 3px solid #fbbf24;
  border-left: 6px double #fbbf24;
  border-right: 6px double #fbbf24;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}
.guest-frame-showcase.frame_velvet_ribbon .guest-frame-name-text {
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.guest-frame-showcase.frame_velvet_ribbon .guest-frame-side-ornament {
  color: #f59e0b;
}

/* 7. MIDNIGHT DIAMOND & SILVER (ស៊ុមពេជ្ររាត្រីប្រាក់មាស) */
.guest-frame-showcase.frame_midnight_diamond .guest-frame-plaque {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 50%, #090d16 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 0 2px #fbbf24;
  border-radius: 16px;
}
.guest-frame-showcase.frame_midnight_diamond .guest-frame-name-text {
  color: #f8fafc;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.guest-frame-showcase.frame_midnight_diamond .guest-frame-side-ornament {
  color: #fbbf24;
}

/* 8. MINIMALIST LUXURY DOUBLE-GOLD (ស៊ុមមាសទំនើបស៊ីវិល័យ) */
.guest-frame-showcase.frame_minimal_luxe .guest-frame-plaque {
  background: rgba(12, 16, 28, 0.78);
  backdrop-filter: blur(10px);
  border-top: 2px solid #fbbf24;
  border-bottom: 2px solid #fbbf24;
  border-left: 1px solid rgba(251, 191, 36, 0.4);
  border-right: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}
.guest-frame-showcase.frame_minimal_luxe .guest-frame-name-text {
  color: #fde68a;
  letter-spacing: 0.6px;
}
.guest-frame-showcase.frame_minimal_luxe .guest-frame-side-ornament {
  color: #fbbf24;
}

.hero-date-badge {
  display: inline-block;
  align-self: center;
  padding: 4px 14px;
  background: rgba(251, 191, 36, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fef08a;
  backdrop-filter: blur(8px);
}

/* Event Intro Section */
.event-intro-section {
  padding: 16px 20px;
  text-align: center;
}

.event-type-badge-pill {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.event-welcome-quote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Countdown Section */
.countdown-container {
  margin: 10px 16px 18px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.15) 0%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  text-align: center;
}

.countdown-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 14px;
  padding: 10px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.countdown-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Parents Honor Section */
.parents-section {
  margin: 10px 16px 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 20px;
  text-align: center;
}

.parents-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

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

.parent-side {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.parent-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.parent-names {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
}

/* ==========================================================================
   6. LOVE STORY CHAPTERS (STORY REEL STYLES)
   ========================================================================== */
.love-story-section {
  margin: 10px 16px 18px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 20px;
}

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

.story-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #e11d48;
}

.story-title {
  font-family: 'Dangrek', cursive, serif;
  font-size: 1.25rem;
  color: #881337;
  margin-top: 4px;
}

.story-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-chapter-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.story-chapter-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-chapter-body {
  padding: 12px 14px 14px;
}

.story-chapter-year {
  display: inline-block;
  padding: 2px 10px;
  background: #ffe4e6;
  color: #be123c;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.story-chapter-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.story-chapter-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   7. PHOTO GALLERY (SWIPEABLE SLIDER)
   ========================================================================== */
.photo-gallery-section {
  margin: 10px 16px 18px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 12px;
}

.gallery-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-top: 2px;
}

.gallery-slider-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 12px;
  scrollbar-width: none;
}

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

.gallery-slider-track {
  display: flex;
  gap: 12px;
}

.gallery-slide-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(217, 119, 6, 0.3);
  background: #fff;
}

.gallery-slide-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.slide-caption {
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   GALLERY ANIMATION STYLES (DYNAMIC CHOICE)
   ========================================================================== */

/* 1. Ken Burns Pan & Zoom */
.gallery-slider-wrapper.anim-ken_burns .gallery-slide-card img {
  animation: kenBurnsAnim 12s ease-in-out infinite alternate;
}
@keyframes kenBurnsAnim {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, -2%); }
  100% { transform: scale(1.05) translate(2%, 1%); }
}

/* 2. Romantic Floating Petals & Bloom */
.gallery-slider-wrapper.anim-floating_petals .gallery-slide-card {
  animation: floatPetalCard 4s ease-in-out infinite alternate;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.28), 0 0 15px rgba(251, 113, 133, 0.2);
  border-color: #f43f5e;
}
@keyframes floatPetalCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* 3. Vintage Polaroid Slide */
.gallery-slider-wrapper.anim-polaroid_slide .gallery-slide-card {
  background: #ffffff;
  padding: 8px 8px 18px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0,0,0,0.1);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}
.gallery-slider-wrapper.anim-polaroid_slide .gallery-slide-card:nth-child(even) {
  transform: rotate(2deg);
}
.gallery-slider-wrapper.anim-polaroid_slide .gallery-slide-card:hover {
  transform: rotate(0deg) scale(1.03);
}

/* 4. Stardust Crossfade Glow */
.gallery-slider-wrapper.anim-crossfade_glow .gallery-slide-card {
  border: 2.5px solid #fbbf24;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45), 0 8px 20px rgba(0,0,0,0.2);
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.65), 0 10px 25px rgba(0,0,0,0.25); }
}

/* 5. 3D Cube Flip */
.gallery-slider-wrapper.anim-cube_3d {
  perspective: 1000px;
}
.gallery-slider-wrapper.anim-cube_3d .gallery-slide-card {
  transform: rotateY(-8deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-slider-wrapper.anim-cube_3d .gallery-slide-card:hover {
  transform: rotateY(0deg) scale(1.04);
}

/* 6. Carousel Slider & Pagination Dots */
.gallery-pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
.gallery-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--gold);
}

/* Ceremony Timeline Section */
.timeline-section {
  margin: 10px 16px 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--card-border);
  border-radius: 20px;
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  justify-content: center;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ceremony-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.ceremony-time-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.ceremony-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* Venue Section (Interactive Google Map Preview & Ornate Khmer Plaque CTA) */
.venue-section {
  margin: 12px 16px 20px;
  padding: 22px 16px 24px;
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.92) 0%, rgba(254, 245, 228, 0.88) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.venue-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 400;
  color: #a16207;
  text-shadow: 0 2px 4px rgba(161, 98, 7, 0.16);
  margin-bottom: 10px;
}

.venue-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 4px;
  line-height: 1.5;
}

.venue-address {
  font-size: 0.86rem;
  color: #78350f;
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: 14px;
}

.venue-map-embed-card {
  width: 100%;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(180, 83, 9, 0.12);
  margin-bottom: 18px;
  position: relative;
}

.venue-google-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.venue-map-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-open-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  padding: 12px 34px;
  background: linear-gradient(180deg, #f9d98c 0%, #f1b656 50%, #df9630 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 4px rgba(120, 53, 15, 0.65);
  border: 2px solid #854d0e;
  border-radius: 14px;
  clip-path: polygon(
    14px 0%, calc(100% - 14px) 0%,
    100% 50%, calc(100% - 14px) 100%,
    14px 100%, 0% 50%
  );
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.65);
  transition: all 0.22s ease;
  position: relative;
}

.btn-open-map::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(133, 77, 14, 0.55);
  pointer-events: none;
  clip-path: polygon(
    12px 0%, calc(100% - 12px) 0%,
    100% 50%, calc(100% - 12px) 100%,
    12px 100%, 0% 50%
  );
}

.btn-open-map:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.5);
}

/* KHQR Digital Envelope Section */
.envelope-khqr-section {
  margin: 10px 16px 18px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.25) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  text-align: center;
}

.khqr-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #b45309;
  color: #fff;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.khqr-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.khqr-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.khqr-image-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.khqr-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.khqr-account-info {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.khqr-currency-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.08);
  padding: 4px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.khqr-pill {
  padding: 6px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.khqr-pill.active {
  background: #ffffff;
  color: #b45309;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-copy-bakong-id {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-copy-bakong-id:hover {
  background: var(--gold);
  color: #fff;
}

/* RSVP Section */
.rsvp-section {
  margin: 10px 16px 18px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 22px;
}

.rsvp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.rsvp-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.rsvp-attend-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.rsvp-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.rsvp-radio-card.selected {
  border-color: var(--gold);
  background: #fef3c7;
}

.rsvp-radio-card input {
  display: none;
}

.rsvp-radio-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.rsvp-form-group {
  margin-bottom: 12px;
}

.rsvp-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.rsvp-input, .rsvp-select, .rsvp-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
}

.btn-submit-rsvp {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  transition: all 0.2s;
}

.btn-submit-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.6);
}

/* Wishes Feed */
.wishes-feed-section {
  margin: 10px 16px 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--card-border);
  border-radius: 20px;
}

.wishes-feed-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  text-align: center;
}

.wishes-scroll-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.wish-card {
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wish-author {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.wish-time {
  font-weight: 400;
  color: var(--text-muted);
}

.wish-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Card Footer */
.card-footer {
  text-align: center;
  padding: 20px 16px 8px;
}

.card-footer-branding {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.card-footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 1000;
}

.nav-btn-pill {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-btn-pill:hover, .nav-btn-pill.btn-pill-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   8. DISTINCT VIDEO EDIT THEME STYLES (PLANESSENTIAL REPLICAS)
   ========================================================================== */

/* THEME 1: ROYAL GOLD (Special 6) */
.style-royal-gold {
  --primary: #b08e4f;
  --primary-dark: #8c6a2e;
  --primary-light: #fef08a;
  --card-bg: rgba(255, 253, 245, 0.95);
  --card-border: rgba(176, 142, 79, 0.4);
  --font-heading: 'Moul', 'Moulpali', serif;
}

/* THEME 2: SWEET ROSE (Special 5) */
.style-sweet-rose {
  --primary: #f18297;
  --primary-dark: #be185d;
  --primary-light: #fce7f3;
  --gold: #f43f5e;
  --card-bg: rgba(255, 245, 247, 0.95);
  --card-border: rgba(241, 130, 151, 0.35);
  --font-heading: 'Dangrek', cursive, serif;
}
.style-sweet-rose .hero-cover-img {
  filter: contrast(1.05) saturate(1.1);
}

/* THEME 3: MIDNIGHT NAVY GOLD (Special 7) */
.style-midnight-navy {
  --primary: #253e6f;
  --primary-dark: #1e3a8a;
  --primary-light: #fde047;
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(251, 191, 36, 0.4);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --font-heading: 'Moul', serif;
}
.style-midnight-navy .invitation-main-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(234, 179, 8, 0.25);
}
.style-midnight-navy .blessing-title-khmer {
  color: #fde047;
}
.style-midnight-navy .countdown-box,
.style-midnight-navy .parent-side,
.style-midnight-navy .ceremony-item-card,
.style-midnight-navy .venue-section,
.style-midnight-navy .rsvp-section,
.style-midnight-navy .wishes-feed-section {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border-color: rgba(234, 179, 8, 0.3);
}

/* THEME 4: STORY REELS & KEN-BURNS */
.style-story-reels {
  --primary: #8a1a27;
  --primary-dark: #7f1d1d;
  --primary-light: #fbbf24;
  --card-bg: rgba(254, 252, 248, 0.96);
  --card-border: rgba(138, 26, 39, 0.35);
  --font-heading: 'Dangrek', cursive;
}
.style-story-reels .love-story-section {
  display: block !important;
}

/* THEME 5: CHAMPAGNE SILK */
.style-champagne-silk {
  --primary: #ce9e66;
  --primary-dark: #92400e;
  --primary-light: #fef3c7;
  --card-bg: rgba(255, 254, 249, 0.95);
  --card-border: rgba(206, 158, 102, 0.4);
  --font-heading: 'Moul', serif;
}

/* THEME 6: BURGUNDY VELVET */
.style-burgundy-velvet {
  --primary: #8a1a27;
  --primary-dark: #5b0f19;
  --primary-light: #fde047;
  --card-bg: rgba(255, 248, 248, 0.96);
  --card-border: rgba(138, 26, 39, 0.4);
  --font-heading: 'Moul', 'Hanuman', serif;
}

/* THEME 7: KINETIC PHOTO SLIDER */
.style-kinetic-slider {
  --primary: #0f172a;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --card-bg: rgba(255, 255, 255, 0.94);
  --font-heading: 'Kantumruy Pro', sans-serif;
}

/* ==========================================================================
   PHOTO GALLERY SECTION & 6 IMAGE ANIMATION STYLES
   ========================================================================== */
.photo-gallery-section {
  padding: 24px 16px;
  text-align: center;
  position: relative;
}

.gallery-header {
  margin-bottom: 16px;
}

.gallery-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 6px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  padding: 6px 0;
  perspective: 1200px;
  overflow: hidden;
}

.gallery-slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 14px;
  scroll-behavior: smooth;
}

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

.gallery-slide-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  background: #0f172a;
  border: 2.5px solid rgba(251, 191, 36, 0.45);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.65s ease, box-shadow 0.5s ease;
}

.gallery-slide-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  color: #fef08a;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.gallery-pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* ANIMATION 1: KEN BURNS PAN & ZOOM */
.anim-ken_burns .gallery-slide-card img {
  animation: animKenBurns 10s ease-in-out infinite alternate;
}
@keyframes animKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, -1.5%); }
  100% { transform: scale(1.15) translate(1.5%, 2%); }
}

/* ANIMATION 2: 3D CAROUSEL */
.anim-carousel_slider .gallery-slide-card {
  transform: scale(0.92);
  opacity: 0.75;
}
.anim-carousel_slider .gallery-slide-card.active-slide {
  transform: scale(1);
  opacity: 1;
}

/* ANIMATION 3: FLOATING PETALS PULSE */
.anim-floating_petals .gallery-slide-card.active-slide {
  animation: animPetalFloat 4s ease-in-out infinite alternate;
  border-color: #f43f5e;
}
.anim-floating_petals .gallery-slide-card.active-slide img {
  animation: animKenBurns 12s ease-in-out infinite alternate;
}
@keyframes animPetalFloat {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 12px 26px rgba(244, 63, 94, 0.25); }
  50% { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 34px rgba(244, 63, 94, 0.42); }
  100% { transform: translateY(2px) scale(1); }
}

/* ANIMATION 4: STARDUST CROSSFADE GLOW */
.anim-crossfade_glow .gallery-slide-card {
  opacity: 0.45;
  filter: blur(6px) brightness(1.15);
  transform: scale(0.96);
}
.anim-crossfade_glow .gallery-slide-card.active-slide {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
  border-color: #fbbf24;
  animation: animStardustGlow 3.2s ease-in-out infinite alternate;
}
.anim-crossfade_glow .gallery-slide-card.active-slide img {
  animation: stardustHeroFade 6s ease-in-out infinite alternate;
}
@keyframes animStardustGlow {
  0% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.35), 0 10px 25px rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 32px rgba(251, 191, 36, 0.75), 0 14px 32px rgba(0, 0, 0, 0.35); }
}

/* ANIMATION 5: VINTAGE POLAROID */
.anim-polaroid_slide .gallery-slide-card {
  border: 10px solid #ffffff;
  border-bottom: 30px solid #ffffff;
  transform: rotate(-1.5deg) scale(0.95);
  box-shadow: 0 14px 28px rgba(0,0,0,0.3);
}
.anim-polaroid_slide .gallery-slide-card:nth-child(even) {
  transform: rotate(1.5deg) scale(0.95);
}
.anim-polaroid_slide .gallery-slide-card.active-slide {
  transform: rotate(0deg) scale(1);
}

/* ANIMATION 6: 3D CUBE FLIP */
.anim-cube_3d .gallery-slide-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(-28deg) scale(0.92);
  opacity: 0.65;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease;
}
.anim-cube_3d .gallery-slide-card.active-slide {
  transform: perspective(1000px) rotateY(0deg) scale(1);
  opacity: 1;
}

/* ==========================================================================
   DUAL CURRENCY KHQR ENVELOPE STYLES (USD & KHR)
   ========================================================================== */
.khqr-currency-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px auto 16px;
  max-width: 280px;
}

.khqr-pill {
  flex: 1;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--card-border);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(4px);
}

.khqr-pill:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
}

.khqr-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-copy-bakong-id {
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  background: rgba(251, 191, 36, 0.15);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-bakong-id:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   DYNAMIC TEXT & CARD ENTRANCE ANIMATION ENGINES
   ========================================================================== */
/* 1. Text Animation Keyframes */
@keyframes textSlideUpFade {
  0% { opacity: 0; transform: translateY(32px); }
  60% { opacity: 0.85; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes textPopUpBounce {
  0% { opacity: 0; transform: scale(0.62) translateY(24px); }
  65% { opacity: 1; transform: scale(1.08) translateY(-4px); }
  85% { transform: scale(0.98) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes textFadeBlur {
  0% { opacity: 0; filter: blur(14px); transform: translateY(16px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes textFlip3D {
  0% { opacity: 0; transform: perspective(600px) rotateX(65deg) translateY(24px); }
  100% { opacity: 1; transform: perspective(600px) rotateX(0deg) translateY(0); }
}

@keyframes textZoomIn {
  0% { opacity: 0; transform: scale(0.72) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes textShimmerWave {
  0% { opacity: 0; transform: translateY(22px) skewX(-4deg); text-shadow: 0 0 20px rgba(251, 191, 36, 0.7); }
  70% { opacity: 0.95; transform: translateY(-3px) skewX(1deg); }
  100% { opacity: 1; transform: translateY(0) skewX(0); text-shadow: none; }
}

/* Default / fallback text animation - guarantees elements are never invisible */
.text-up-animated {
  opacity: 1;
  animation-name: textSlideUpFade;
  will-change: transform, opacity;
  animation-duration: 0.75s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

/* Safe fallback: unbox cover elements always visible with smooth entrance */
.unbox-top-header .text-up-animated,
.unbox-cta-dock .text-up-animated {
  opacity: 1;
  animation-name: textSlideUpFade;
}

/* Staggered Delay Utilities */
.text-up-delay-1 { animation-delay: 0.08s; }
.text-up-delay-2 { animation-delay: 0.16s; }
.text-up-delay-3 { animation-delay: 0.24s; }
.text-up-delay-4 { animation-delay: 0.32s; }
.text-up-delay-5 { animation-delay: 0.40s; }
.text-up-delay-6 { animation-delay: 0.48s; }

/* Dynamic Text Animation Classes applied to Body (Revealed when parent is in-view, unbox stage, or hero) */
body.anim-text-slide-up .motion-in-view .text-up-animated,
body.anim-text-slide-up .unbox-video-overlay .text-up-animated,
body.anim-text-slide-up .hero-couple-section .text-up-animated,
body.anim-text-slide-up .kbach-header-frame .text-up-animated,
body.anim-text-slide-up .card-footer .text-up-animated,
body.anim-text-slide-up .is-preview-active .text-up-animated {
  animation-name: textSlideUpFade;
}

body.anim-text-pop-up .motion-in-view .text-up-animated,
body.anim-text-pop-up .unbox-video-overlay .text-up-animated,
body.anim-text-pop-up .hero-couple-section .text-up-animated,
body.anim-text-pop-up .kbach-header-frame .text-up-animated,
body.anim-text-pop-up .card-footer .text-up-animated,
body.anim-text-pop-up .is-preview-active .text-up-animated {
  animation-name: textPopUpBounce;
  animation-duration: 0.82s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.anim-text-fade-blur .motion-in-view .text-up-animated,
body.anim-text-fade-blur .unbox-video-overlay .text-up-animated,
body.anim-text-fade-blur .hero-couple-section .text-up-animated,
body.anim-text-fade-blur .kbach-header-frame .text-up-animated,
body.anim-text-fade-blur .card-footer .text-up-animated,
body.anim-text-fade-blur .is-preview-active .text-up-animated {
  animation-name: textFadeBlur;
  animation-duration: 0.9s;
}

body.anim-text-flip-3d .motion-in-view .text-up-animated,
body.anim-text-flip-3d .unbox-video-overlay .text-up-animated,
body.anim-text-flip-3d .hero-couple-section .text-up-animated,
body.anim-text-flip-3d .kbach-header-frame .text-up-animated,
body.anim-text-flip-3d .card-footer .text-up-animated,
body.anim-text-flip-3d .is-preview-active .text-up-animated {
  animation-name: textFlip3D;
  animation-duration: 0.85s;
}

body.anim-text-zoom-in .motion-in-view .text-up-animated,
body.anim-text-zoom-in .unbox-video-overlay .text-up-animated,
body.anim-text-zoom-in .hero-couple-section .text-up-animated,
body.anim-text-zoom-in .kbach-header-frame .text-up-animated,
body.anim-text-zoom-in .card-footer .text-up-animated,
body.anim-text-zoom-in .is-preview-active .text-up-animated {
  animation-name: textZoomIn;
  animation-duration: 0.75s;
}

body.anim-text-shimmer-wave .motion-in-view .text-up-animated,
body.anim-text-shimmer-wave .unbox-video-overlay .text-up-animated,
body.anim-text-shimmer-wave .hero-couple-section .text-up-animated,
body.anim-text-shimmer-wave .kbach-header-frame .text-up-animated,
body.anim-text-shimmer-wave .card-footer .text-up-animated,
body.anim-text-shimmer-wave .is-preview-active .text-up-animated {
  animation-name: textShimmerWave;
  animation-duration: 0.95s;
}

/* 2. Section & Card Pop-up / Entrance Animations */
@keyframes cardPopUpSpring {
  0% { opacity: 0; transform: scale(0.88) translateY(36px); }
  70% { opacity: 1; transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cardSlideUpSmooth {
  0% { opacity: 0; transform: translateY(42px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardCinematicZoom {
  0% { opacity: 0; transform: scale(0.82); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes card3DFlipReveal {
  0% { opacity: 0; transform: perspective(1000px) rotateY(-18deg) translateY(24px); }
  100% { opacity: 1; transform: perspective(1000px) rotateY(0) translateY(0); }
}

@keyframes cardSoftFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Initial state for scroll-revealed sections and cards */
.invitation-main-card > section:not(.hero-couple-section),
.appreciation-card,
.parents-grid,
.countdown-grid {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

/* Hero section and top header frame are always visible */
.invitation-main-card > section.hero-couple-section,
.kbach-header-frame {
  opacity: 1;
}

/* When triggered into view via scroll or replay */
.unbox-top-header.motion-in-view,
.unbox-cta-dock.motion-in-view,
.kbach-header-frame.motion-in-view,
.invitation-main-card > section.motion-in-view,
.appreciation-card.motion-in-view,
.parents-grid.motion-in-view,
.countdown-grid.motion-in-view,
.card-footer.motion-in-view,
.invitation-main-card > section.hero-couple-section {
  opacity: 1;
  animation-duration: 0.78s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

/* 1. Pop-Up Spring */
body.anim-entrance-popup .motion-in-view,
body.anim-entrance-popup .hero-couple-section {
  animation-name: cardPopUpSpring;
}

/* 2. Smooth Slide Up */
body.anim-entrance-slide .motion-in-view,
body.anim-entrance-slide .hero-couple-section {
  animation-name: cardSlideUpSmooth;
}

/* 3. Cinematic Scale Zoom */
body.anim-entrance-zoom .motion-in-view,
body.anim-entrance-zoom .hero-couple-section {
  animation-name: cardCinematicZoom;
}

/* 4. 3D Card Flip */
body.anim-entrance-flip-cards .motion-in-view,
body.anim-entrance-flip-cards .hero-couple-section {
  animation-name: card3DFlipReveal;
}

/* 5. Soft Fade In */
body.anim-entrance-soft-fade .motion-in-view,
body.anim-entrance-soft-fade .hero-couple-section {
  animation-name: cardSoftFadeIn;
}

/* Floating Template Swapper Drawer on Standalone Page */
.floating-template-swapper-btn {
  position: fixed;
  bottom: 85px;
  left: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 63, 94, 0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.floating-template-swapper-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--primary);
  border-color: #fff;
}

.invitation-swapper-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 16px 18px 24px;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow: hidden;
}

.invitation-swapper-drawer.open {
  transform: translateY(0);
}

.liveview-thumbnails-ribbon {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 14px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.liveview-thumbnails-ribbon::-webkit-scrollbar {
  height: 6px;
}

.liveview-thumbnails-ribbon::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.45);
  border-radius: 6px;
}

.liveview-thumb-card {
  flex-shrink: 0;
  width: 124px;
  background: rgba(30, 41, 59, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.liveview-thumb-card:hover {
  transform: translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.3);
}

.liveview-thumb-card.active {
  border-color: #f43f5e;
  box-shadow: 0 0 0 2px #f43f5e, 0 8px 25px rgba(244, 63, 94, 0.45);
  transform: translateY(-3px);
}

.liveview-thumb-card.active::after {
  content: "✓ កំពុងមើល";
  position: absolute;
  top: 6px;
  right: 6px;
  background: #059669;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.liveview-thumb-img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.liveview-thumb-info {
  padding: 8px 10px;
}

.liveview-thumb-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.liveview-thumb-tag {
  font-size: 0.62rem;
  color: #fbbf24;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   LIVE PREVIEW MODE IN STUDIO EDITOR (NO TABS, INSTANT CARD VISIBILITY)
   ========================================================================== */
body.is-preview-mode .mobile-bottom-nav,
body.is-preview-mode .floating-template-swapper-btn,
body.is-preview-mode .invitation-swapper-drawer {
  display: none !important;
}

body.is-preview-mode .invitation-viewport {
  padding-bottom: 24px !important;
}

/* ==========================================================================
   APPRECIATION & APOLOGY CARD (សូមអរគុណ និងសូមអភ័យទោស)
   ========================================================================== */
.appreciation-apology-section {
  width: 100%;
  margin: 32px 0 24px;
  position: relative;
}

.appreciation-card {
  position: relative;
  background: linear-gradient(180deg, #fffcf5 0%, #fff9ec 55%, #fff4de 100%);
  border: 2px solid rgba(217, 119, 6, 0.35);
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(217, 119, 6, 0.15), inset 0 0 50px rgba(254, 240, 138, 0.3);
  overflow: hidden;
}

/* Golden top bar & silk drape highlight */
.appreciation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b45309, #f59e0b, #fbbf24, #f59e0b, #b45309);
}

.appreciation-decor-drapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.25) 0%, transparent 75%);
  pointer-events: none;
}

.appreciation-petals-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(244, 63, 94, 0.25) 0%, transparent 6px),
    radial-gradient(circle at 88% 22%, rgba(244, 63, 94, 0.2) 0%, transparent 8px),
    radial-gradient(circle at 82% 78%, rgba(244, 63, 94, 0.25) 0%, transparent 7px),
    radial-gradient(circle at 16% 82%, rgba(244, 63, 94, 0.18) 0%, transparent 6px);
}

.appreciation-title {
  font-family: 'Moul', 'Dangrek', cursive, serif;
  font-size: 1.4rem;
  color: #b45309;
  margin: 6px 0 3px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(180, 83, 9, 0.25);
}

.appreciation-sub-en {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #d97706;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.appreciation-body {
  font-size: 0.96rem;
  line-height: 1.95;
  color: #78350f;
  font-weight: 500;
  text-align: justify;
  text-justify: inter-word;
  margin: 0 auto 18px;
  max-width: 480px;
}

.appreciation-couple-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(217, 119, 6, 0.12);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: 30px;
  font-weight: 800;
  color: #92400e;
  font-size: 0.88rem;
}


