/* ==========================================================================
   MEMOIRA - THE MODERN WEDDING & ENGAGEMENT GUESTBOOK
   Aesthetic: Warm, tactile luxury wedding editorial (Vogue Weddings aesthetic)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-ivory: #FAF8F5;
  --bg-cream: #F4EFE6;
  --bg-card: #FFFFFF;
  --bg-subtle: #F9F6F0;
  
  --gold-primary: #A68860;
  --gold-champagne: #C5A880;
  --gold-light: #DFD3C3;
  --gold-tint: rgba(197, 168, 128, 0.12);
  --gold-border: rgba(197, 168, 128, 0.35);

  --sand-border: #E8DFD1;
  --sand-light: #F2ECE3;

  --text-charcoal: #1C1917;
  --text-primary: #231F20;
  --text-muted: #6E665D;
  --text-soft: #8C847A;

  /* Dark Sections */
  --bg-dark: #141211;
  --bg-dark-surface: #1E1B19;
  --text-dark-primary: #FAF8F5;
  --text-dark-muted: #A8A199;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(28, 25, 23, 0.04);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.06);
  --shadow-lifted: 0 20px 40px rgba(28, 25, 23, 0.09);
  --shadow-gold: 0 10px 30px rgba(166, 136, 96, 0.2);

  /* Container & Safe Areas */
  --container-max: 1240px;
  --container-padding: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-ivory);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

section {
  max-width: 100%;
  overflow-x: clip;
}

/* Eliminate tap grey flash & 300ms delay on iOS and Android */
a, button, input, select, textarea, [role="button"], [role="tab"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Subtle background luxury warm grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(166, 136, 96, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--container-padding), env(safe-area-inset-left));
  padding-right: max(var(--container-padding), env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

.editorial-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
  padding-bottom: 2px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text-charcoal);
  color: #FAF8F5;
  border: 1px solid var(--text-charcoal);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.15);
}

.btn-primary:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-charcoal);
  border: 1px solid var(--sand-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--gold-champagne);
  color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--text-charcoal);
  border: 1px solid var(--sand-border);
}

.btn-outline:hover {
  background: var(--text-charcoal);
  color: #FAF8F5;
  border-color: var(--text-charcoal);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  background: var(--gold-tint);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

.gold-pill {
  background: #FAF5EE;
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   1. Announcement Bar (Auto-Scrolling Marquee)
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: var(--text-charcoal);
  color: #FAF8F5;
  font-size: 0.8125rem;
  padding: 8px 0;
  padding-top: max(8px, env(safe-area-inset-top));
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  white-space: nowrap;
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: announcement-marquee 32s linear infinite;
  will-change: transform;
}

.announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

.announcement-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  flex-shrink: 0;
}

.announcement-badge {
  background: var(--gold-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.announcement-text {
  color: rgba(250, 248, 245, 0.92);
  margin: 0;
  white-space: nowrap;
}

.announcement-link {
  color: var(--gold-champagne);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.announcement-link:hover {
  color: #FFFFFF;
}

.announcement-sep {
  color: var(--gold-primary);
  opacity: 0.75;
  font-size: 0.75rem;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
}

@keyframes announcement-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }
  .announcement-group[aria-hidden="true"] {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   2. Glassmorphic Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 90;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 223, 209, 0.75);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.96);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.05);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-monogram {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-charcoal);
  color: var(--gold-champagne);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-charcoal);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--text-charcoal);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Mobile Slide-out Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  height: 100%;
  height: 100dvh;
  background: #FAF8F5;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 28px 24px;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-right: max(24px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

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

.drawer-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-charcoal);
  display: block;
}

.drawer-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sand-border);
}

.drawer-subtext {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-text-column {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 18px;
}

.gold-sparkle {
  color: var(--gold-champagne);
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-charcoal);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-icon {
  fill: currentColor;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--sand-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
}

.trust-item svg {
  color: var(--gold-primary);
}

/* Hero Centerpiece: Dual Mockup */
.hero-visual-column {
  position: relative;
}

.centerpiece-composition {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

/* Tabletop stationery card (angled on desk) */
.tabletop-card-wrapper {
  position: absolute;
  left: -20px;
  bottom: 10px;
  width: 290px;
  z-index: 1;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.tabletop-card-wrapper:hover {
  transform: rotate(-1deg) scale(1.02);
}

.stationery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #FFF;
}

.tabletop-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-glass-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Realistic Smartphone Bezel Mockup */
.phone-frame-mockup {
  position: relative;
  width: 320px;
  height: 570px;
  background: #1C1917;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(28, 25, 23, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 2;
  margin-left: 90px;
}

.phone-speaker-notch {
  width: 90px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  background: var(--bg-ivory);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 26px;
}

.phone-app-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--sand-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-couple-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sand-light);
  overflow: hidden;
  border: 1.5px solid var(--gold-champagne);
  flex-shrink: 0;
}

.couple-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.phone-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-header-names {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-charcoal);
}

.phone-header-meta {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.phone-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

/* Phone Feed Scroll Area */
.phone-feed-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.phone-feed-scroll::-webkit-scrollbar {
  width: 4px;
}
.phone-feed-scroll::-webkit-scrollbar-thumb {
  background: var(--sand-border);
  border-radius: 4px;
}

.feed-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--sand-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.guest-avatar-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sand-light);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guest-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.feed-time {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.media-type-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--gold-tint);
  color: var(--gold-primary);
}

/* Audio Player Widget inside feed */
.audio-player-widget {
  background: var(--bg-cream);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.audio-play-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.audio-play-button:hover {
  transform: scale(1.06);
  background: var(--text-charcoal);
}

.audio-play-button svg {
  width: 14px;
  height: 14px;
}

.audio-play-button .pause-icon {
  display: none;
}

.audio-play-button.playing .play-icon {
  display: none;
}

.audio-play-button.playing .pause-icon {
  display: block;
}

.audio-waveform-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.waveform-bars span {
  display: inline-block;
  width: 3px;
  height: var(--h, 50%);
  background: var(--gold-champagne);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-play-button.playing + .audio-waveform-container .waveform-bars span {
  animation: wave-bounce 1s infinite alternate ease-in-out;
}

.audio-play-button.playing + .audio-waveform-container .waveform-bars span:nth-child(2n) {
  animation-delay: 0.15s;
}
.audio-play-button.playing + .audio-waveform-container .waveform-bars span:nth-child(3n) {
  animation-delay: 0.3s;
}

@keyframes wave-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.audio-timer {
  font-size: 0.65rem;
  color: var(--text-soft);
  font-weight: 500;
}

.voice-transcription-preview {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Photo card inside feed */
.feed-photo-frame {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.feed-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.feed-caption {
  font-size: 0.75rem;
  color: var(--text-charcoal);
  font-style: italic;
}

/* Wish card inside feed */
.wish-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-style: italic;
}

.phone-bottom-bar {
  padding: 10px;
  background: #FFFFFF;
  border-top: 1px solid var(--sand-border);
  text-align: center;
}

.phone-upload-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: var(--gold-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   4. Interactive "Test Drive" Demo (demo-guestbook Suite)
   -------------------------------------------------------------------------- */
.test-drive-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-cream) 100%);
  position: relative;
}

/* Module Navigation Tabs */
.demo-module-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
}

.demo-module-tab {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
  position: relative;
  text-align: left;
  min-width: 0;
  width: 100%;
}

.demo-module-tab:hover {
  border-color: var(--gold-champagne);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.demo-module-tab.active {
  background: #1C1917;
  color: #FAF8F5;
  border-color: #1C1917;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.15);
}

.tab-module-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.demo-module-tab.active .tab-module-badge {
  color: var(--gold-light);
}

.tab-module-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-charcoal);
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
  width: 100%;
  min-width: 0;
}

.demo-module-tab.active .tab-module-title {
  color: #FFFFFF;
}

/* Module Panes */
.demo-module-panes {
  position: relative;
}

.demo-pane {
  display: none;
  animation: fadeInPane 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-pane.active {
  display: block;
}

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

/* --------------------------------------------------------------------------
   Pane 1: Mobile Guestbook (/)
   -------------------------------------------------------------------------- */
.demo-pane-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.demo-phone-col {
  display: flex;
  justify-content: center;
}

/* Smartphone Device Mockup */
.demo-smartphone-shell {
  width: 100%;
  max-width: 340px;
  background: #252220;
  border-radius: 46px;
  padding: 12px;
  border: 4px solid #48413D;
  box-shadow: 0 25px 60px rgba(20, 18, 17, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.demo-phone-bezel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 20px;
  margin-bottom: 4px;
}

.demo-phone-speaker {
  width: 48px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #151312;
}

.demo-phone-camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.demo-phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #120F0D;
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.demo-phone-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.demo-venue-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.demo-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(18, 15, 13, 0.2) 0%, rgba(18, 15, 13, 0.88) 85%);
}

.demo-phone-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.demo-hashtag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 168, 128, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sparkle-gold {
  color: var(--gold-champagne);
}

.demo-lang-btn {
  font-size: 0.7rem;
  font-weight: 700;
  color: #FAF8F5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-lang-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.demo-cover-main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 16px;
}

.demo-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
}

.demo-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-champagne);
  box-shadow: 0 0 25px rgba(197, 168, 128, 0.45);
}

.demo-heart-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulseHeart 2s infinite ease-in-out;
}

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

.demo-event-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.demo-couple-heading {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: #FAF8F5;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.demo-date-venue {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.demo-action-sheet {
  position: relative;
  z-index: 2;
  background: rgba(24, 20, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 14px 20px;
  border-radius: 28px 28px 0 0;
}

.demo-guest-field-mock {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.field-icon {
  font-size: 0.85rem;
  color: var(--gold-champagne);
}

.demo-primary-action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-champagne) 0%, var(--gold-primary) 100%);
  color: #1C1917;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-primary-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.45);
}

.demo-quick-sub-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.demo-quick-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FAF8F5;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.demo-quick-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Right: Tabletop QR Showcase Card */
.demo-qr-card-showcase {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.demo-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text-charcoal);
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.demo-card-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.demo-qr-center-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-cream);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-border);
  margin-bottom: 24px;
}

.demo-qr-frame {
  background: #FAF8F5;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-border);
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.qr-code-img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 6px;
}

.demo-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-scan-tip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scan-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.demo-qr-url {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.02em;
}

.demo-features-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.demo-check-item strong {
  color: var(--text-charcoal);
}

.demo-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Pane 2: Photobooth Studio (/photobooth)
   -------------------------------------------------------------------------- */
.photobooth-simulator-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.pb-viewfinder-card {
  background: #1C1917;
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  color: #FAF8F5;
}

.pb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.pb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse-mic 1s infinite alternate;
}

.pb-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.pb-slot-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.8);
}

.pb-viewfinder-screen {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pb-camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.pb-grid-overlay {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.pb-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.pb-corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.pb-corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.pb-corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.pb-corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.pb-countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.pb-countdown-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pb-countdown-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  animation: bounceCount 0.9s infinite;
}

@keyframes bounceCount {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pb-flash-overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s ease;
}

.pb-flash-overlay.flash {
  opacity: 1;
}

.pb-controls-bar {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pb-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-filter-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.pb-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FAF8F5;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pb-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pb-filter-btn.active {
  background: var(--gold-champagne);
  color: #1C1917;
  border-color: var(--gold-champagne);
}

.pb-shoot-row {
  display: flex;
}

.pb-shoot-btn {
  width: 100%;
}

/* Photobooth Film Strip Display */
.pb-strip-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pb-film-strip {
  width: 220px;
  background: #FAF8F5;
  padding: 14px 14px 22px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--sand-border);
  position: relative;
}

.pb-strip-frame {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-shot-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: #231F20;
}

.pb-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.pb-slot-num {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #FFF;
  background: rgba(0, 0, 0, 0.5);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-strip-stamp {
  margin-top: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px dashed var(--sand-border);
  padding-top: 8px;
}

.pb-stamp-couple {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.1;
}

.pb-stamp-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.pb-stamp-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold-primary);
  margin-top: 2px;
}

.pb-strip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}

/* --------------------------------------------------------------------------
   Pane 3: Live Projector Wall (/wall)
   -------------------------------------------------------------------------- */
.wall-simulator-container {
  max-width: 960px;
  margin: 0 auto;
}

.wall-screen-frame {
  background: #0E0C0B;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #FAF8F5;
  display: flex;
  flex-direction: column;
}

.wall-screen-header {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wall-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wall-live-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 12px #22C55E;
  animation: pulse-ring 2s infinite;
}

.wall-header-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FAF8F5;
  letter-spacing: 0.02em;
}

.wall-sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(197, 168, 128, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}

.wall-main-stage {
  padding: 36px 40px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(197, 168, 128, 0.08) 0%, transparent 70%);
}

.wall-spotlight-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.wall-photo-polaroid {
  background: #FFFFFF;
  padding: 10px 10px 24px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.wall-photo-polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}

.wall-spotlight-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
}

.wall-polaroid-caption {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: #1C1917;
  text-align: center;
  margin-top: 8px;
}

.wall-content-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wall-guest-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wall-guest-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-champagne);
  color: #1C1917;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.wall-guest-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #FAF8F5;
  line-height: 1.1;
}

.wall-table-tag {
  font-size: 0.78rem;
  color: var(--gold-light);
  display: block;
  margin-top: 2px;
}

.wall-wish-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: #F4EFE6;
  margin: 0;
  border-left: 2px solid var(--gold-champagne);
  padding-left: 14px;
}

.wall-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.wall-audio-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-champagne);
  color: #1C1917;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wall-audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.wall-audio-waveform span {
  width: 3px;
  height: 12px;
  background: var(--gold-light);
  border-radius: 2px;
}

.wall-audio-waveform span:nth-child(2) { height: 16px; }
.wall-audio-waveform span:nth-child(4) { height: 14px; }
.wall-audio-waveform span:nth-child(6) { height: 16px; }

.wall-audio-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Wall Moderation Badge */
.wall-moderation-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.moderation-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.moderation-display-box {
  display: flex;
  align-items: center;
}

.moderation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.moderation-pill.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.moderation-pill.pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Wall Footer Controls */
.wall-control-footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wall-cycle-progress-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.wall-cycle-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-champagne));
  transition: width 0.1s linear;
}

.wall-footer-bar {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.wall-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wall-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wall-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wall-btn-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FAF8F5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wall-btn-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wall-corner-qr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wall-mini-qr {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #FFF;
  padding: 2px;
}

.wall-qr-text {
  display: flex;
  flex-direction: column;
}

.wall-qr-text span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.wall-qr-text strong {
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Pane 4: Host Admin & Google Drive (/admin)
   -------------------------------------------------------------------------- */
.admin-simulator-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-top: 4px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-charcoal);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.admin-kpi-card.highlight-kpi {
  border-color: var(--gold-champagne);
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(197, 168, 128, 0.08) 100%);
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-charcoal);
  line-height: 1;
}

.admin-kpi-card.highlight-kpi .kpi-val {
  color: var(--gold-primary);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-mod-table-card {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sand-border);
}

.admin-table-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.admin-table-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.admin-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-entry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border: 1px solid var(--sand-border);
  transition: all 0.2s ease;
}

.admin-entry-row.pending-row {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.admin-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-row-info {
  flex: 1;
  min-width: 0;
}

.admin-row-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-charcoal);
}

.admin-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.badge-audio { background: #E0E7FF; color: #3730A3; }
.badge-photo { background: #FEF3C7; color: #92400E; }
.badge-wish { background: #ECFDF5; color: #065F46; }
.badge-booth { background: #FCE7F3; color: #9D174D; }

.admin-row-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-status-approved {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16A34A;
}

.admin-action-btn {
  font-size: 0.72rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: var(--bg-ivory);
}

.admin-action-btn.danger {
  color: #DC2626;
  border-color: #FCA5A5;
}

.admin-action-btn.danger:hover {
  background: #FEE2E2;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 4px 10px;
}

.admin-drive-banner {
  background: var(--bg-ivory);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.drive-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-charcoal);
}

.drive-banner-left svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.drive-banner-left p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.drive-banner-left code {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   5. Problem vs. Solution Matrix
   -------------------------------------------------------------------------- */
.matrix-section {
  padding: 5rem 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--sand-border);
  border-bottom: 1px solid var(--sand-border);
}

.section-header-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-charcoal);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 24px;
  align-items: stretch;
}

.matrix-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
}

.old-way-card {
  opacity: 0.9;
}

.matrix-card-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sand-border);
}

.matrix-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 6px;
}

.matrix-col-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.matrix-price-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.highlight-price {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.matrix-list strong {
  color: var(--text-charcoal);
  display: inline;
}

.matrix-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.negative-point .matrix-icon {
  background: #FEE2E2;
  color: #DC2626;
}

.positive-point .matrix-icon.checkmark {
  background: #ECFDF5;
  color: #059669;
}

/* Memoira Winner Card */
.memoira-matrix-card {
  border: 2px solid var(--gold-champagne);
  box-shadow: 0 16px 40px rgba(166, 136, 96, 0.16);
  transform: translateY(-8px);
}

.matrix-highlight-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--gold-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(166, 136, 96, 0.3);
}

.gold-text {
  color: var(--gold-primary) !important;
}

.matrix-card-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--sand-border);
}

/* --------------------------------------------------------------------------
   6. Feature Breakdown ("What It Captures")
   -------------------------------------------------------------------------- */
.features-section {
  padding: 5.5rem 0;
}

.features-flow {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 48px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.feature-item.reverse-row {
  grid-template-columns: 1fr 1fr;
}

.feature-item.reverse-row .feature-media {
  order: 2;
}

.feature-item.reverse-row .feature-copy {
  order: 1;
}

.feature-copy {
  max-width: 480px;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-champagne);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.feature-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-charcoal);
  font-weight: 500;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

/* Feature 1: Audio Interactive Card */
.audio-interactive-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-card);
}

.voice-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.mic-glyph-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
}

.voice-sample-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.voice-sample-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.waveform-playback-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-cream);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.voice-card-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.voice-card-play-btn:hover {
  background: var(--text-charcoal);
  transform: scale(1.05);
}

.voice-card-play-btn svg {
  width: 16px;
  height: 16px;
}

.voice-card-play-btn .pause-icon {
  display: none;
}

.voice-card-play-btn.playing .play-icon {
  display: none;
}

.voice-card-play-btn.playing .pause-icon {
  display: block;
}

.sample-bars {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.sample-bars span {
  flex: 1;
  background: var(--gold-champagne);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.voice-card-play-btn.playing + .sample-bars span {
  animation: sample-bounce 0.8s infinite alternate ease-in-out;
}

.voice-card-play-btn.playing + .sample-bars span:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes sample-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.4); }
}

.sample-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}

.voice-card-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 2px solid var(--gold-champagne);
  padding-left: 14px;
}

/* Feature 2: Polaroid Stack */
.polaroid-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.polaroid-card {
  background: #FFFFFF;
  padding: 16px 16px 20px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.12);
  border: 1px solid var(--sand-border);
  transform: rotate(2deg);
  max-width: 440px;
  transition: transform 0.3s ease;
}

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

.polaroid-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.polaroid-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-charcoal);
  font-family: var(--font-display);
  font-style: italic;
}

.polaroid-meta {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Feature 3: Luxury Letter Card */
.luxury-letter-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.letter-seal {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(166, 136, 96, 0.25);
}

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

.letter-from {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-charcoal);
  display: block;
}

.letter-date {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.letter-body {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.letter-footer {
  padding-top: 14px;
  border-top: 1px solid var(--sand-border);
}

.letter-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
}

/* --------------------------------------------------------------------------
   7. "How It Works" in 3 Steps
   -------------------------------------------------------------------------- */
.steps-section {
  padding: 5.5rem 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--sand-border);
  border-bottom: 1px solid var(--sand-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.step-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold-border);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 12px;
  line-height: 1.2;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. The Keepsake Guarantee
   -------------------------------------------------------------------------- */
.keepsake-section {
  padding: 5.5rem 0;
}

.keepsake-banner {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
}

.keepsake-image-col {
  height: 100%;
}

.keepsake-img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.keepsake-text-col {
  padding: 56px 48px;
}

.keepsake-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 16px;
}

.keepsake-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.keepsake-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.keepsake-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.keepsake-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold-border);
}

.keepsake-row-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 4px;
}

.keepsake-row-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.keepsake-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-charcoal);
  border-left: 2px solid var(--gold-champagne);
  padding-left: 16px;
  line-height: 1.5;
}

.quote-author {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   9. Pricing Section (Malaysian Ringgit)
   -------------------------------------------------------------------------- */
.pricing-section {
  padding: 5.5rem 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--sand-border);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.popular-plan {
  border: 2px solid var(--gold-champagne);
  box-shadow: var(--shadow-lifted);
  background: #FFFFFF;
  transform: translateY(-6px);
}

.popular-plan:hover {
  transform: translateY(-10px);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(166, 136, 96, 0.3);
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand-border);
  text-align: center;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.1;
  margin-bottom: 4px;
}

.plan-target {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.original-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
}

.original-price-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.original-price-val {
  color: var(--text-soft);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0.75;
}

.discount-pill {
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  border: 1px solid rgba(37, 211, 102, 0.28);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}

.popular-plan .discount-pill {
  background: var(--gold-tint);
  color: var(--gold-primary);
  border-color: var(--gold-border);
}

.current-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.current-price-row .currency,
.plan-price-wrap .currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.current-price-row .price-val,
.plan-price-wrap .price-val {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-charcoal);
}

.current-price-row .period,
.plan-price-wrap .period {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-left: 2px;
}

.capacity-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 28px;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-check {
  font-weight: 800;
  color: #059669;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.gold-check {
  color: var(--gold-primary);
}

.pricing-card-action {
  margin-top: auto;
  padding-top: 14px;
}

.pricing-card-action .btn {
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 54px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.08);
}

.pricing-card-action .btn-outline {
  border: 1.5px solid rgba(28, 25, 23, 0.35);
  color: var(--text-charcoal);
  background: #FFFFFF;
}

.pricing-card-action .btn-outline:hover {
  background: var(--text-charcoal);
  color: #FFFFFF;
  border-color: var(--text-charcoal);
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.16);
  transform: translateY(-2px);
}

.popular-plan .pricing-card-action .btn {
  padding: 18px 32px;
  font-size: 1.1rem;
  min-height: 58px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.22);
}

.popular-plan .pricing-card-action .btn:hover {
  box-shadow: 0 12px 30px rgba(200, 149, 75, 0.35);
  transform: translateY(-2px);
}

.guarantee-badge-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.guarantee-box {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-charcoal);
  max-width: 780px;
  box-shadow: var(--shadow-subtle);
}

.guarantee-icon {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Wedding FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 5.5rem 0;
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-border);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
  border-color: var(--gold-champagne);
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-charcoal);
  cursor: pointer;
  background: none;
}

.faq-toggle-icon {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. High-Emotion Dark Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-dark-primary);
  position: relative;
  z-index: 10;
}

.footer-cta-banner {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FAF8F5;
  margin-bottom: 18px;
}

.footer-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-champagne);
}

.footer-cta-sub {
  font-size: 1.1rem;
  color: var(--text-dark-muted);
  margin-bottom: 32px;
}

.footer-cta-banner .btn-primary {
  background: var(--gold-primary);
  color: #FFFFFF;
  border-color: var(--gold-primary);
}

.footer-cta-banner .btn-primary:hover {
  background: #FFFFFF;
  color: var(--text-charcoal);
  border-color: #FFFFFF;
}

.footer-main-content {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .brand-monogram {
  background: #FFFFFF;
  color: var(--text-charcoal);
}

.footer-logo .brand-name {
  color: #FAF8F5;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 14px;
}

.footer-currency-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FAF8F5;
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
}

.footer-nav-list a:hover {
  color: var(--gold-champagne);
}

.footer-bottom-bar {
  padding: 24px 0 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-links a:hover {
  color: #FAF8F5;
}

.legal-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Live Guest Demo Modal
   -------------------------------------------------------------------------- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.demo-modal.open {
  visibility: visible;
  opacity: 1;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.demo-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #FAF8F5;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--sand-border);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-modal.open .demo-modal-dialog {
  transform: scale(1);
}

.demo-modal-header {
  padding: 16px 22px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--sand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-champagne);
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.3);
  flex-shrink: 0;
}

.modal-couple-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  display: block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-top: 1px;
  line-height: 1.15;
}

.modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-close-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-close-btn:hover {
  color: var(--text-charcoal);
}

.demo-modal-scrollable-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(88vh - 140px);
  max-height: calc(88dvh - 140px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.sim-section-box {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-subtle);
}

.sim-section-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.sim-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.sim-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.sim-section-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Voice Recorder Sim */
.voice-sim-box {
  background: var(--bg-cream);
  border: 1px dashed var(--sand-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.mic-pulsing-wrap {
  display: inline-block;
  margin-bottom: 10px;
}

.sim-mic-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(166, 136, 96, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.sim-mic-button:hover {
  transform: scale(1.06);
}

.sim-mic-button.recording {
  background: #DC2626;
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.2);
  animation: pulse-mic 1s infinite alternate;
}

@keyframes pulse-mic {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.sim-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.sim-waveform-bars.active {
  opacity: 1;
}

.sim-waveform-bars span {
  width: 3px;
  height: var(--h, 40%);
  background: var(--gold-primary);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.sim-waveform-bars.active span {
  animation: waveDance 0.6s infinite alternate;
}

.sim-waveform-bars.active span:nth-child(2n) {
  animation-delay: 0.2s;
}

.sim-waveform-bars.active span:nth-child(3n) {
  animation-delay: 0.4s;
}

@keyframes waveDance {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1.3); }
}

.sim-status-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.sim-timer-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: 4px;
}

/* Photo Preview Stage & Frame Wrappers */
.photo-preview-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.sim-photo-frame-container {
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sim-photo-img {
  display: block;
  width: 240px;
  height: 180px;
  object-fit: cover;
  transition: filter 0.25s ease;
}

/* Frame 1: Borderless */
.sim-photo-frame-container.frame-none {
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-border);
}

.polaroid-text-stamp,
.gold-corner-decor,
.hearts-doodle-decor,
.ribbon-bow-decor {
  display: none;
}

/* Frame 2: Classic Polaroid */
.sim-photo-frame-container.frame-polaroid {
  background: #FFFFFF;
  padding: 10px 10px 32px 10px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sim-photo-frame-container.frame-polaroid .polaroid-text-stamp {
  display: block;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: #374151;
}

/* Frame 3: Golden Elegance */
.sim-photo-frame-container.frame-gold {
  border-radius: var(--radius-md);
  border: 4px double #D4AF37;
  padding: 4px;
  background: #FAF8F5;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.sim-photo-frame-container.frame-gold .gold-corner-decor {
  display: block;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #D4AF37 0%, transparent 70%);
}

/* Frame 4: Cute Hearts */
.sim-photo-frame-container.frame-hearts {
  border-radius: var(--radius-md);
  border: 3px solid #FDA4AF;
  padding: 4px;
  background: #FFF1F2;
}

.sim-photo-frame-container.frame-hearts .hearts-doodle-decor {
  display: block;
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.75rem;
  color: #E11D48;
}

/* Frame 5: Blush Ribbon */
.sim-photo-frame-container.frame-ribbon {
  border-radius: var(--radius-md);
  border: 3px solid #E2A7B8;
  padding: 4px;
  background: #FDF2F8;
}

.sim-photo-frame-container.frame-ribbon .ribbon-bow-decor {
  display: block;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}

/* CSS Filters matching demo-guestbook */
.filter-original {
  filter: none;
}

.filter-champagne {
  filter: sepia(0.32) saturate(1.28) contrast(1.08) brightness(1.04);
}

.filter-noir {
  filter: grayscale(1) contrast(1.22) brightness(0.96);
}

.filter-rose {
  filter: contrast(1.06) brightness(1.05) saturate(1.24) sepia(0.18) hue-rotate(-12deg);
}

/* Selectors Group */
.selector-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sand-border);
}

.selector-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.selector-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.selector-label svg {
  color: var(--gold-primary);
}

.selector-sub {
  font-size: 0.68rem;
  color: var(--text-soft);
}

/* 4 Photo Filters Grid */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.filter-choice-btn {
  background: var(--bg-cream);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-choice-btn:hover {
  background: #FFFFFF;
  border-color: var(--gold-champagne);
}

.filter-choice-btn.active {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-tint);
}

.filter-thumb-box {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid var(--sand-border);
}

.filter-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.1;
}

.filter-tagline {
  font-size: 0.62rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* 5 Picture Frames Grid */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.frame-choice-btn {
  background: var(--bg-cream);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.frame-choice-btn:hover {
  background: #FFFFFF;
  border-color: var(--gold-champagne);
}

.frame-choice-btn.active {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-tint);
}

.frame-icon-badge {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 2px;
}

.frame-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.frame-badge {
  font-size: 0.58rem;
  color: var(--text-soft);
  margin-top: 1px;
}

/* STEP 3: Host Admin Moderation & Privacy */
.moderation-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.moderation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--sand-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.moderation-card:hover {
  border-color: var(--gold-champagne);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.04);
}

.moderation-card.active {
  border-color: var(--gold-primary);
  background: rgba(247, 238, 217, 0.35);
  box-shadow: 0 0 0 1px var(--gold-primary);
}

.moderation-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--gold-primary);
}

.moderation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-right: 22px;
}

.moderation-icon {
  font-size: 1.25rem;
}

.moderation-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.moderation-badge-pill.auto {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.moderation-badge-pill.review {
  background: rgba(212, 175, 55, 0.15);
  color: #854d0e;
}

.moderation-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 4px;
  display: block;
}

.moderation-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.moderation-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.moderation-notice svg {
  flex-shrink: 0;
  color: var(--gold-primary);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .moderation-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* STEP 4: Input Fields */
.sim-guest-input-wrap {
  margin-bottom: 12px;
}

.sim-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 4px;
}

.sim-input, .sim-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-border);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px; /* iOS Safari auto-zoom prevention: must be 16px */
  color: var(--text-charcoal);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sim-input:focus, .sim-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* Modal Footer */
.demo-modal-footer {
  padding: 14px 22px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--sand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.modal-footer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.modal-footer-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   12. Package Booking & WhatsApp Details Modal
   -------------------------------------------------------------------------- */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.booking-modal.open {
  visibility: visible;
  opacity: 1;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.booking-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #FAF8F5;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--sand-border);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal.open .booking-modal-dialog {
  transform: scale(1);
}

.booking-modal-header {
  padding: 18px 22px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--sand-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

.booking-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.booking-brand-monogram {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-charcoal);
  color: var(--gold-champagne);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.15);
}

.booking-top-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 2px;
}

.booking-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.15;
}

.booking-modal-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.booking-close-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin-top: -6px;
  margin-right: -6px;
}

.booking-close-btn:hover {
  color: var(--text-charcoal);
}

.booking-package-bar {
  background: #F4EFE6;
  border-bottom: 1px solid var(--sand-border);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.package-bar-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-bar-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-bar-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.booking-package-select {
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-charcoal);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23A68860' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.booking-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.booking-modal-scrollable-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(88vh - 200px);
  max-height: calc(88dvh - 200px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-form-group {
  display: flex;
  flex-direction: column;
}

.booking-form-group.full-span {
  grid-column: 1 / -1;
}

.booking-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required-asterisk {
  color: #E11D48;
}

.booking-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.booking-input-icon {
  position: absolute;
  left: 12px;
  color: var(--gold-primary);
  font-size: 0.9rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  font-size: 16px; /* Prevents auto-zoom in iOS Safari */
  font-family: var(--font-body);
  background: #FFFFFF;
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  color: var(--text-charcoal);
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.booking-input:focus {
  outline: none;
  border-color: var(--gold-champagne);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

.booking-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A68860' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.booking-trust-note {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-charcoal);
  line-height: 1.45;
}

.booking-modal-footer {
  padding: 14px 22px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--sand-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
  transition: all 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
  }

  .demo-module-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .demo-module-tab {
    min-width: 0;
    width: 100%;
  }

  .demo-pane-grid {
    grid-template-columns: 1fr;
  }

  .photobooth-simulator-layout {
    grid-template-columns: 1fr;
  }

  .pb-strip-col {
    align-items: stretch;
  }

  .pb-film-strip, .pb-strip-actions {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .wall-spotlight-card {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .frames-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Audio Controller Floating Toast */
.audio-toast {
  position: fixed;
  bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
  right: max(24px, calc(16px + env(safe-area-inset-right)));
  z-index: 1050;
  background: #1C1917;
  color: #FAF8F5;
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
  animation: slide-toast-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-toast.show {
  display: block;
}

@keyframes slide-toast-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.audio-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-indicator-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-champagne);
  animation: pulse-ring 1.5s infinite;
}

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

.toast-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}

.toast-subtitle {
  font-size: 0.68rem;
  color: var(--gold-light);
}

.toast-stop-btn {
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 4px;
}

.toast-stop-btn:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text-column {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-bar {
    justify-content: center;
  }

  .phone-frame-mockup {
    margin-left: 0;
  }

  .test-drive-card {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .test-drive-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .test-drive-actions {
    justify-content: center;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .memoira-matrix-card {
    transform: none;
    order: -1;
  }

  .popular-plan {
    transform: none;
  }

  .popular-plan:hover {
    transform: translateY(-4px);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 18px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .centerpiece-composition {
    flex-direction: column;
    min-height: auto;
  }

  .tabletop-card-wrapper {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    margin-bottom: 24px;
  }

  .phone-frame-mockup {
    width: 100%;
    max-width: 300px;
    height: 520px;
  }

  .features-flow {
    gap: 48px;
  }

  .feature-item,
  .feature-item.reverse-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-item.reverse-row .feature-media {
    order: 0;
  }

  .feature-item.reverse-row .feature-copy {
    order: 1;
  }

  .keepsake-banner {
    grid-template-columns: 1fr;
  }

  .keepsake-img {
    height: 280px;
    min-height: auto;
  }

  .keepsake-text-col {
    padding: 32px 24px;
  }

  .test-drive-card {
    padding: 28px 20px;
  }

  .guarantee-box {
    border-radius: var(--radius-lg);
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  /* Header Brand & Button Spacing */
  .site-header {
    height: 64px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.12;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    white-space: normal;
  }

  .hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 0.8rem;
  }

  .hero-trust-bar .trust-item:last-child {
    grid-column: span 2;
    justify-content: center;
  }

  /* Section 4 Test Drive Module Tabs */
  .demo-module-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  .demo-module-tab {
    padding: 8px 8px;
    border-radius: var(--radius-sm);
    min-width: 0;
    width: 100%;
  }

  .tab-module-badge {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-module-title {
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
    width: 100%;
  }

  /* Phone Mockup Screen scaling */
  .demo-smartphone-shell {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 36px;
    padding: 8px;
    border-width: 3px;
    box-sizing: border-box;
  }

  .demo-phone-screen {
    border-radius: 28px;
    min-height: 480px;
  }

  .demo-cover-main {
    padding: 18px 12px 14px;
  }

  .demo-couple-heading {
    font-size: 1.65rem;
  }

  .demo-qr-center-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .demo-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .demo-actions-row .btn {
    width: 100%;
  }

  /* Photobooth Viewfinder */
  .pb-controls-bar {
    padding: 12px;
  }

  .pb-filter-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .pb-filter-btn {
    flex-shrink: 0;
  }

  /* Live Wall 16:9 Cinema display */
  .wall-screen-frame {
    border-radius: 14px;
  }

  .wall-footer-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .wall-corner-qr {
    justify-content: center;
  }

  .wall-launch-btn {
    width: 100%;
    justify-content: center;
  }

  /* Host Admin */
  .admin-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-drive-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    align-items: stretch;
  }

  .admin-drive-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pricing Cards */
  .pricing-card {
    padding: 28px 20px;
  }

  /* Modal Dialog */
  .demo-modal-dialog {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-lg);
  }

  .demo-modal-header {
    padding: 12px 16px;
  }

  .demo-modal-scrollable-body {
    padding: 14px 14px;
    gap: 14px;
  }

  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .frames-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .demo-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .modal-footer-btns {
    flex-direction: column;
    width: 100%;
  }

  .modal-footer-btns .btn {
    width: 100%;
  }

  /* Booking Modal Mobile Adjustments */
  .booking-modal-dialog {
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-lg);
  }

  .booking-modal-header {
    padding: 14px 16px;
  }

  .booking-package-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .booking-package-select {
    width: 100%;
  }

  .booking-modal-scrollable-body {
    padding: 14px 16px;
    gap: 12px;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .booking-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Audio Toast Mobile Full Width Bar */
  .audio-toast {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    border-radius: 16px;
    padding: 10px 14px;
  }

  .audio-toast-inner {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 360px) {
  :root {
    --container-padding: 12px;
  }

  .header-actions .btn {
    display: none; /* Hide top duplicate CTA on ultra-narrow screens; accessible in mobile drawer */
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .demo-module-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }

  .demo-smartphone-shell {
    max-width: 100%;
  }
}
