/* ==========================================================================
   Wedding Photobooth - Luxury Gold & Silk Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #996515;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --silk-cream: #fdfbf7;
  --silk-warm: #f7f3e9;
  --silk-card: rgba(255, 255, 255, 0.85);
  --silk-border: rgba(212, 175, 55, 0.25);

  --rose-gold: #b76e79;
  --rose-soft: #fbf0f2;
  
  --onyx-dark: #1a1715;
  --onyx-surface: #24201c;
  --onyx-card: rgba(36, 32, 28, 0.85);
  --text-main: #2b2622;
  --text-muted: #797169;
  --text-light: #fdfbf7;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 38, 34, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 38, 34, 0.12);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.28);

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

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--silk-cream);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(243, 229, 171, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(183, 110, 121, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(253, 251, 247, 0.9) 0%, #f7f3e9 100%);
  background-attachment: fixed;
}

/* Sparkle & Floating Ornaments Background */
.bg-sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle-particle {
  position: absolute;
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatUp 12s infinite linear;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

/* App Container */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 16px;
}

/* Header Navbar */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--silk-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
}

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

.nav-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  flex: 1;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   1. Welcome Screen
   ========================================================================== */
.welcome-card {
  background: var(--silk-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: auto;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), transparent);
}

.monogram-crest {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  background: radial-gradient(circle, rgba(243, 229, 171, 0.3) 0%, transparent 80%);
}

.monogram-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.event-subtitle {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.couple-names {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.couple-names span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-primary);
  margin: 0 4px;
}

.event-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.event-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--silk-warm);
  border: 1px solid var(--silk-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 32px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}

/* Luxury Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b89028 100%);
  color: #ffffff;
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #dfbc45 0%, #c49a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--gold-primary);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--silk-warm);
  transform: translateY(-1px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--silk-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.welcome-hashtag {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-top: 24px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   2. Camera Screen
   ========================================================================== */
.camera-card {
  background: #111111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.camera-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.shot-counter-badge {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.camera-controls-top {
  display: flex;
  gap: 10px;
}

.camera-tool-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.camera-tool-btn.active {
  background: var(--gold-primary);
  color: #111;
}

/* Video Viewport */
.viewfinder-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(1);
}

#camera-video.mirrored {
  transform: scaleX(-1);
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.countdown-overlay.active {
  display: flex;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 40px var(--gold-primary), 0 0 20px #000;
  animation: pulseScale 0.9s infinite ease-out;
}

@keyframes pulseScale {
  0% { transform: scale(0.6); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Camera Flash Screen */
.flash-effect {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}

.flash-effect.flash-now {
  animation: cameraFlash 0.4s ease-out;
}

@keyframes cameraFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Camera Grid Overlay */
.camera-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  pointer-events: none;
  opacity: 0.2;
}

.camera-grid div {
  border: 1px dashed #ffffff;
}

/* Camera Bottom Bar */
.camera-bottom {
  padding: 18px 24px;
  background: #1a1715;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.camera-thumbnails-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
}

.shot-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silk-border);
  overflow: hidden;
  position: relative;
  background: #2b2622;
}

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

.shot-thumb.empty {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.camera-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.shutter-btn-outer {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.shutter-btn-outer:hover {
  transform: scale(1.05);
}

.shutter-btn-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  transition: var(--transition);
}

.shutter-btn-outer:active .shutter-btn-inner {
  transform: scale(0.88);
}

/* Gallery pick row inside camera screen */
.camera-gallery-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-gallery-pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px dashed var(--gold-primary);
  background: rgba(212, 175, 55, 0.07);
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-gallery-pick:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-gallery-pick i {
  font-size: 1rem;
}

/* ==========================================================================
   3. Multi-shot Review & Continue Screen
   ========================================================================== */
.review-card {
  background: var(--silk-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-title-box {
  text-align: center;
}

.review-title-box h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.review-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--silk-border);
}

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

.review-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.review-item-del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.85);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

/* ==========================================================================
   4. Frame & Collage Studio Screen
   ========================================================================== */
.studio-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.studio-preview-card {
  background: var(--silk-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.canvas-wrapper {
  max-width: 100%;
  max-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#main-canvas {
  max-width: 100%;
  max-height: 55vh;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Customizer Tabs & Controls */
.studio-controls {
  background: var(--silk-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Frames Scrollable Carousel */
.frames-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.frame-option {
  flex: 0 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.frame-thumb-box {
  width: 76px;
  height: 95px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silk-border);
  overflow: hidden;
  background: var(--silk-warm);
  transition: var(--transition);
  position: relative;
}

.frame-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-option.active .frame-thumb-box {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.frame-name-label {
  font-size: 0.75rem;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}

/* Filter presets */
.filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--silk-warm);
  border: 1px solid var(--silk-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--gold-primary);
  color: #fff;
  border-color: var(--gold-primary);
}

/* Ratio and Option Toggles */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill-group {
  display: flex;
  background: var(--silk-warm);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.pill-item {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pill-item.active {
  background: var(--silk-card);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}

/* Photostrip Notice Box */
.photostrip-notice-box {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.notice-icon {
  font-size: 1.3rem;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.notice-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.btn-notice-action {
  background: var(--gold-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-notice-action:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* Guest Input Section & Switch Toggle */
.guest-input-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 6px;
  transition: var(--transition);
}

.switch-badge:hover {
  background: rgba(212, 175, 55, 0.18);
}

.switch-badge input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.switch-slider {
  width: 26px;
  height: 14px;
  background-color: #d1c8b8;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.switch-slider:before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-badge input:checked + .switch-slider {
  background-color: var(--gold-primary);
}

.switch-badge input:checked + .switch-slider:before {
  transform: translateX(12px);
}

.switch-text {
  font-size: 0.76rem;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   5. Final Result & Share Screen
   ========================================================================== */
.result-card {
  background: var(--silk-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.result-image-box {
  max-width: 100%;
  max-height: 52vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--gold-primary);
}

.result-image-box img {
  max-width: 100%;
  max-height: 52vh;
  display: block;
  object-fit: contain;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--silk-cream);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.qr-display-box {
  margin: 16px auto;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--onyx-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInToast 0.3s ease-out;
}

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

/* Audio Player Floating Button */
.audio-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--silk-card);
  border: 1px solid var(--silk-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  font-size: 1.1rem;
  color: var(--gold-dark);
}

/* ==========================================================================
   Guest Photo Gallery (Masonry & Card Layout)
   ========================================================================== */
.gallery-grid {
  column-count: 1;
  column-gap: 20px;
  width: 100%;
}

@media (min-width: 540px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 820px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    column-count: 4;
  }
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--silk-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--silk-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: block;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

.gallery-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f5f0e6;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 32, 28, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-card-hover-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-hover-btn {
  transform: translateY(0);
}

.gallery-card-meta {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.82rem;
}

.gallery-card-guest {
  font-weight: 600;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.gallery-card-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container { padding: 10px; }
  .couple-names { font-size: 2rem; }
  .welcome-card { padding: 28px 16px; }
  .shutter-btn-outer { width: 68px; height: 68px; }
  .canvas-wrapper { max-height: 48vh; }
}
