/* Global Setup & Variables */
:root {
  --bg-color: #faf6f0; /* Cream background */
  --panel-bg: rgba(255, 255, 255, 0.75); /* White glassmorphism */
  --border-color: rgba(74, 60, 49, 0.12); /* Soft warm brown border */
  --border-active: #ffb7b2; /* Pastel pink active border */
  
  --color-primary: #ffb7b2; /* Pastel Pink */
  --color-secondary: #b5e2fa; /* Pastel Cyan/Blue */
  --color-accent: #e8dff5; /* Pastel Lavender */
  
  --text-main: #4a3c31; /* Deep charcoal warm brown for soft high contrast */
  --text-muted: #8a7c73; /* Warm brown-gray */
  --text-inverse: #ffffff;

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-pink: 0 8px 25px rgba(255, 183, 178, 0.35);
  --glow-cyan: 0 8px 25px rgba(181, 226, 250, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* horizontal striped ribbon at the top of page */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-primary),
    var(--color-primary) 10px,
    #ffe3e0 10px,
    #ffe3e0 20px
  );
  border-bottom: 2px dashed var(--text-main);
  z-index: 1000;
}

/* Background Glow Circles */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.gc-purple {
  width: 50vw;
  height: 50vw;
  background: var(--color-accent);
  top: -10vw;
  right: -5vw;
}

.gc-blue {
  width: 60vw;
  height: 60vw;
  background: var(--color-secondary);
  bottom: -15vw;
  left: -10vw;
}

/* Decorative Bow Styling */
.deco-bow {
  position: absolute;
  width: 48px;
  height: 48px;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(74, 60, 49, 0.08));
  transition: transform 0.3s ease;
}

.deco-bow:hover {
  transform: scale(1.1) rotate(5deg);
}

.bow-top-left {
  top: -22px;
  left: -22px;
}

.bow-top-right {
  top: -22px;
  right: -22px;
}

/* Common UI Components */
.card {
  border-radius: 24px;
  padding: 30px;
  z-index: 2;
}

.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--text-main);
  box-shadow: 0 8px 0 rgba(74, 60, 49, 0.12);
}

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  width: 100%;
  flex: 1;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  z-index: 10;
}

/* Logo & Highlights */
.neon-text {
  color: var(--color-primary);
  background: linear-gradient(120deg, rgba(255, 183, 178, 0.25) 0%, rgba(255, 183, 178, 0.25) 100%);
  padding: 0 4px;
  border-radius: 6px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  background: var(--color-accent);
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Buttons (Matte Pop-Out Styling) */
.btn {
  border: 1.5px solid var(--text-main);
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 0 var(--text-main);
}

.btn-primary {
  background: var(--color-primary);
}

.btn-primary:hover {
  background: #ffc8c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--text-main);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--text-main);
}

.btn-secondary {
  background: #ffffff;
}

.btn-secondary:hover {
  background: #faf6f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--text-main);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--text-main);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 3px 0 var(--text-main);
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--text-main);
}

.btn-icon:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--text-main);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-selector {
  background: #ffffff;
  color: var(--text-muted);
  border: 1.5px solid var(--text-main);
  box-shadow: 0 3px 0 var(--text-main);
  flex-direction: column;
  padding: 15px;
  height: auto;
}

.btn-selector strong {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.btn-selector span {
  font-size: 0.75rem;
  text-transform: none;
  font-weight: 500;
}

.btn-selector:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--text-main);
}

.btn-selector.active {
  border-color: var(--text-main);
  background: var(--color-secondary);
  color: var(--text-main);
  box-shadow: 0 3px 0 var(--text-main);
}

.w-full {
  width: 100%;
}

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

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

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

/* ==========================================================================
   SCREEN 1: LANDING PAGE (SAAS REDESIGN & ANIMATIONS)
   ========================================================================== */
:root {
  --color-pink: #ffb7b2;
  --color-blue: #b5e2fa;
  --color-yellow: #feca57;
  --color-green: #caffbf;
}

#screen-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Pink ambient glow circle */
.gc-pink {
  width: 45vw;
  height: 45vw;
  background: var(--color-pink);
  bottom: 20%;
  right: -10vw;
  filter: blur(140px);
  opacity: 0.35;
  position: absolute;
  pointer-events: none;
}

/* Floating background decoration assets */
.floating-prop {
  position: absolute;
  font-size: 2.2rem;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.prop-1 {
  top: 15%;
  left: 8%;
  animation: float-slow 8s ease-in-out infinite;
}

.prop-2 {
  bottom: 25%;
  left: 12%;
  animation: float-medium 7s ease-in-out infinite;
}

.prop-3 {
  top: 20%;
  right: 10%;
  animation: float-fast 6s ease-in-out infinite;
}

.prop-4 {
  bottom: 15%;
  right: 15%;
  animation: float-slow 9s ease-in-out infinite;
}

/* Landing Layout Grid */
.landing-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  z-index: 2;
  margin-bottom: 50px;
}

@media (max-width: 968px) {
  .landing-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.landing-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 420px;
  box-sizing: border-box;
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animated Logo Characters */
.logo-title {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.logo-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(var(--char-index) * 0.08s);
}

.logo-neon {
  opacity: 0;
  transform: translateY(20px);
  animation: char-bounce-neon 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(var(--char-index) * 0.08s);
  text-shadow: 0 0 10px rgba(255, 183, 178, 0.5);
}

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 25px;
  opacity: 0;
  animation: fade-in-delay 1s ease forwards;
  animation-delay: 0.6s;
}

/* Feature Preview Upgrades */
.features-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-bottom: 35px;
  background: rgba(255, 255, 255, 0.45);
  padding: 24px;
  border-radius: 18px;
  border: 2px solid var(--text-main);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fade-in-delay 1s ease forwards;
  animation-delay: 0.7s;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feat-icon {
  font-size: 1.4rem;
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--text-main);
  flex-shrink: 0;
}

.feat-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feat-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 450;
  line-height: 1.4;
}

/* Onboarding CTA */
.action-onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  animation: fade-in-delay 1s ease forwards;
  animation-delay: 0.8s;
}

.btn-cta {
  background: var(--color-primary);
  width: 100%;
  max-width: 320px;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  padding: 18px 30px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--text-main);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(30deg);
  transition: none;
  opacity: 0.7;
}

.btn-cta:hover::after {
  left: 130%;
  transition: left 0.6s ease-in-out;
}

.btn-cta:hover {
  background: #ffc2bd;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--text-main);
}

.btn-cta:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--text-main);
}

.onboarding-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 550;
}

/* Camera Body Mockup styling */
.camera-body-mock {
  position: relative;
  background: #1c1c22;
  border: 3.5px solid var(--text-main);
  border-radius: 36px;
  padding: 30px 20px;
  width: 100%;
  max-width: 380px;
  height: 280px;
  box-shadow: 0 16px 0 var(--text-main), 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.camera-top-controls {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  pointer-events: none;
}

.camera-top-controls .dial {
  width: 35px;
  height: 12px;
  background: #3a3a46;
  border: 3px solid var(--text-main);
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--text-main);
}

.camera-top-controls .shutter-button {
  width: 44px;
  height: 12px;
  background: var(--color-primary);
  border: 3px solid var(--text-main);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 2px 0 var(--text-main);
}

.camera-lens {
  width: 165px;
  height: 165px;
  background: #0f0f13;
  border: 4px solid var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 0 rgba(0,0,0,0.4);
}

.lens-glass {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  position: relative;
}

.lens-glass canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.06),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.06)
  );
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 5;
}

.camera-details {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
}

.camera-details .brand {
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.flash-indicator-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3e3e4d;
  border: 2px solid var(--text-main);
  animation: status-flash 2.5s infinite;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pulse-dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 8px #ff5f56;
  animation: pulse-dot 1.5s infinite;
}


/* Keyframes animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-5deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes status-flash {
  0%, 90% { background: #3e3e4d; box-shadow: none; }
  92% { background: #ffd000; box-shadow: 0 0 10px #ffd000; }
  95% { background: #3e3e4d; box-shadow: none; }
  97% { background: #ffd000; box-shadow: 0 0 10px #ffd000; }
  100% { background: #3e3e4d; box-shadow: none; }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 95, 86, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); }
}

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

@keyframes char-bounce-neon {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slide-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-delay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


/* ==========================================================================
   SCREEN 2: WORKSPACE
   ========================================================================== */
.app-header {
  height: 70px;
  border-bottom: 2.5px dashed var(--color-primary);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo-small {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-small span {
  color: var(--color-primary);
}

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

.workspace-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 30px 40px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-container {
  position: relative;
  flex: 1;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5ebe6; /* Retro pastel placeholder */
  padding: 0;
  border: 2px solid var(--text-main);
  box-shadow: 0 8px 0 rgba(74, 60, 49, 0.1);
}

#webcam-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  transition: filter var(--transition-fast);
}

/* Scanlines overlay */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(74, 60, 49, 0.08) 50%
  );
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
}

/* Flash overlay */
.flash-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.flash-active {
  animation: flash 0.3s ease-out forwards;
}

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

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  font-size: 8rem;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  display: none;
}

.countdown-active {
  display: block;
  animation: pulse-num 1s ease-in-out infinite;
}

@keyframes pulse-num {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  15% {
    opacity: 1;
    transform: scale(1.1);
  }
  30% {
    transform: scale(1.0);
  }
  85% {
    opacity: 1;
    transform: scale(1.0);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.camera-status {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--panel-bg);
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 7;
  box-shadow: 0 2px 0 var(--text-main);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--color-primary); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Timeline/Captures Panel */
.timeline-container {
  padding: 20px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.timeline-header h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.timeline-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.thumb-slot {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px dashed var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.thumb-slot.active-slot {
  border-color: var(--text-main);
  background: rgba(255, 183, 178, 0.2);
  transform: scale(1.03);
}

.thumb-slot.captured {
  border-style: solid;
  border-color: var(--text-main);
  box-shadow: 0 3px 0 var(--text-main);
}

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

.slot-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(74, 60, 49, 0.2);
  position: absolute;
  z-index: 1;
}

.thumb-slot.captured .slot-num {
  display: none;
}

/* Sidebar sections */
.workspace-sidebar {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
  overflow-y: auto;
}

.control-section h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Filter presets grid */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.filter-card {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 0 var(--text-main);
}

.filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--text-main);
}

.filter-card.active {
  border-color: var(--text-main);
  background: var(--color-accent);
  box-shadow: 0 3px 0 var(--text-main);
}

.filter-preview-canvas {
  width: 100%;
  aspect-ratio: 16/10;
  background: #eee;
  object-fit: cover;
  border-bottom: 1.5px solid var(--text-main);
}

.filter-name {
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Shutter Trigger Button */
.capture-action-section {
  margin-top: auto;
  padding-top: 15px;
  text-align: center;
}

.btn-capture {
  width: 100%;
  height: 80px;
  border-radius: 40px;
  background: var(--color-primary);
  color: var(--text-main);
  border: 2px solid var(--text-main);
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--text-main);
  transition: all var(--transition-fast);
}

.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-capture:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--text-main);
}

.btn-capture:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--text-main);
}

.btn-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.btn-subtext {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.action-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* ==========================================================================
   SCREEN 3: EXPORT & CUSTOMIZER
   ========================================================================== */
.export-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 30px 40px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 70px);
}

.strip-preview-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  border: 2px solid var(--text-main);
  box-shadow: 0 8px 0 rgba(74, 60, 49, 0.05);
  overflow: hidden;
  padding: 20px;
  height: 100%;
}

.canvas-scroll-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.strip-shadow-wrapper {
  position: relative;
  display: flex;
  box-shadow: 0 12px 35px rgba(74, 60, 49, 0.15);
  border-radius: 12px;
  max-height: calc(100vh - 240px);
  max-width: 100%;
  justify-content: center;
  align-items: center;
}

.strip-shadow-wrapper canvas {
  border-radius: 12px;
}

#strip-image {
  display: block;
  max-height: calc(100vh - 240px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--text-main);
}

.customizer-sidebar {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  overflow-y: auto;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 5px;
}

/* Customizer Inputs */
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(74, 60, 49, 0.2);
}

.color-white { background: #ffffff; }
.color-black { background: #121212; }
.color-cyber { background: #1d0630; }
.color-lavender { background: #e8e4f5; }
.color-peach { background: #fde8e1; }
.color-sage { background: #e3e8e1; }

.btn-picker {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  font-size: 0.8rem;
  padding: 10px;
  justify-content: flex-start;
  box-shadow: 0 2px 0 var(--text-main);
}

.btn-picker.active {
  border-color: var(--text-main);
  background: var(--color-primary);
  box-shadow: 0 2px 0 var(--text-main);
}

/* Slider Design */
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(74, 60, 49, 0.1);
  outline: none;
  border: 1.5px solid var(--text-main);
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 1.5px solid var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--text-main);
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Text Input Custom */
.input-group input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  box-shadow: 0 2px 0 var(--text-main);
  transition: border-color var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--color-primary);
}

/* Checkbox design */
.checkbox-group {
  margin-top: 10px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  font-weight: 500;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1.5px solid var(--text-main);
  transition: all var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #faf6f0;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--text-main);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--text-main);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* Font picker buttons */
.btn-font {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  font-size: 0.8rem;
  padding: 10px;
  box-shadow: 0 2px 0 var(--text-main);
}

.btn-font.active {
  border-color: var(--text-main);
  background: var(--color-primary);
  color: var(--text-main);
  box-shadow: 0 2px 0 var(--text-main);
}



.export-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-color);
}

.download-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
  margin-bottom: -4px;
  line-height: 1.4;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (min-width: 1025px) {
  /* Height locking for app interfaces on desktops/laptops */
  body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  
  .screen {
    height: calc(100vh - 10px); /* 10px accounting for top decorative stripe */
    max-height: calc(100vh - 10px);
    overflow: hidden;
  }
  
  /* Landing page height tuning */
  #screen-landing {
    height: 100%;
    max-height: 100%;
    justify-content: space-evenly;
    padding: 30px 40px;
    box-sizing: border-box;
  }
  
  .landing-container {
    margin-bottom: 20px;
    gap: 40px;
  }
  
  .landing-content {
    padding: 30px;
  }
  
  .landing-preview {
    padding: 30px;
    min-height: 380px;
  }
  
  .camera-body-mock {
    height: 240px;
    max-width: 330px;
    padding: 20px 15px;
  }
  
  .camera-lens {
    width: 140px;
    height: 140px;
  }
  
  .lens-glass {
    width: 110px;
    height: 110px;
  }
  
  .logo-title {
    font-size: 3.2rem;
    margin-bottom: 8px;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .features-preview {
    padding: 16px;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .btn-cta {
    padding: 14px 28px;
    font-size: 1.05rem;
  }
  

  /* Workspace layout & sidebar decluttering */
  .workspace-layout {
    height: calc(100vh - 80px); /* accounting for header (70px) + dashed ribbon */
    overflow: hidden;
    padding: 20px 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 65% 35%; /* Rebalanced grid */
    gap: 35px;
  }
  
  .workspace-main {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    align-items: center; /* Center-align the column elements */
  }
  
  .video-container {
    flex: 1;
    min-height: 0;
    max-height: 48vh; /* Reduce height to keep it clean */
    margin: 0 auto;
    width: 100%;
    max-width: 64vh; /* Match 4:3 aspect ratio */
  }
  
  .timeline-container {
    flex-shrink: 0;
    padding: 12px 20px;
    max-height: 125px; /* Extremely compact timeline height */
    box-sizing: border-box;
    max-width: 64vh; /* Match exactly the video width for aligned columns */
    width: 100%;
  }
  
  .timeline-header {
    margin-bottom: 5px;
  }
  
  .thumbnail-grid {
    gap: 12px;
    max-height: 70px;
  }
  
  .thumb-slot {
    height: 60px; /* Symmetrical small thumbnails */
    width: auto;
    aspect-ratio: 4/3;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .thumb-slot:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  }
  
  .workspace-sidebar {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced gaps to fit screens */
  }
  
  .control-section {
    border-bottom: 1.5px dashed var(--border-color);
    padding-bottom: 15px;
    box-sizing: border-box;
  }
  
  .control-section h3 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  /* Segmented selector tabs for Layout Selector */
  .btn-small-selector {
    padding: 10px 14px;
    height: auto;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-small-selector strong {
    font-size: 0.85rem;
    margin-bottom: 0 !important;
  }

  .btn-small-selector span {
    font-size: 0.7rem;
    opacity: 0.8;
  }
  
  /* Horizontal Scrolling list for Filters grid */
  .filters-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 2px 10px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
  }

  .filters-scroll-row::-webkit-scrollbar {
    height: 6px;
  }

  .filters-scroll-row::-webkit-scrollbar-track {
    background: transparent;
  }

  .filters-scroll-row::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
  }
  
  .filter-card {
    flex: 0 0 100px; /* Lock card width for sliding slider */
    scroll-snap-align: start;
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--text-main);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid var(--text-main);
  }

  .filter-preview-canvas {
    width: 100%;
    height: 60px; /* Symmetrical mini canvas previews */
    object-fit: cover;
    border-bottom: 1.5px solid var(--text-main);
  }

  .filter-name {
    padding: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--text-main);
  }
  
  .filter-card.active {
    background: var(--color-accent);
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--text-main);
  }
  
  /* Static Capture Action Section at Bottom */
  .capture-action-section-static {
    margin-top: auto;
    padding-top: 15px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .btn-capture-refined {
    width: 100%;
    height: 62px; /* Sleeker height */
    border-radius: 31px;
    box-shadow: 0 4px 0 var(--text-main);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }
  
  .btn-capture-refined:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--text-main);
    background-color: #ffc2bd;
  }

  .btn-capture-refined:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--text-main);
  }

  .btn-capture-refined .shutter-inner {
    border-radius: 28px;
  }

  .btn-capture-refined .btn-text {
    font-size: 1.05rem;
    font-weight: 800;
  }

  .btn-capture-refined .btn-subtext {
    font-size: 0.65rem;
    margin-top: 0px;
  }
  
  /* Export Screen height tuning */
  .export-layout {
    height: calc(100vh - 80px);
    overflow: hidden;
    padding: 20px 40px;
    box-sizing: border-box;
  }
  
  .strip-preview-section {
    height: 100%;
    overflow: hidden;
  }
  
  .canvas-scroll-container {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
  
  .customizer-sidebar {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    gap: 18px;
  }
  
  .export-actions {
    margin-top: auto;
    padding-top: 15px;
  }
}

@media (max-width: 1024px) {
  .workspace-layout {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  
  .export-layout {
    grid-template-columns: 1fr;
    height: auto;
    padding: 20px;
    gap: 20px;
  }

  .strip-preview-section {
    height: auto;
    min-height: 420px;
  }
  
  #strip-image {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
  }
  
  .customizer-sidebar, .workspace-sidebar {
    height: auto;
    overflow-y: visible;
  }

  .logo-title {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .app-header {
    padding: 0 15px;
    height: 60px;
  }
  
  .logo-small {
    font-size: 1.4rem;
  }
  
  .workspace-layout {
    padding: 15px 10px;
    gap: 15px;
  }
  
  .thumbnail-grid {
    gap: 8px;
  }
  
  .slot-num {
    font-size: 0.9rem;
  }

  .logo-title {
    font-size: 2.2rem;
  }

  .video-container {
    min-height: 250px;
    height: 52vw; /* Lock camera preview height to avoid taking too much screen */
  }

  .countdown-overlay {
    font-size: 5rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .card {
    padding: 20px 15px;
  }
  
  .features-preview {
    padding: 16px;
    margin-bottom: 25px;
  }
  
  /* Corner bows scale down and shift inward to prevent off-screen clipping */
  .deco-bow {
    width: 36px;
    height: 36px;
  }
  .bow-top-left {
    top: -16px;
    left: -8px;
  }
  .bow-top-right {
    top: -16px;
    right: -8px;
  }
  
  /* Mobile padding & spacing alignments */
  .export-layout {
    padding: 15px 10px;
    gap: 15px;
  }
  
  /* Make theme picker options wrap cleanly to 2 columns on small screens */
  .theme-picker {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .theme-picker .btn-picker {
    flex: 1 1 calc(50% - 4px);
    min-width: 80px;
    padding: 10px 8px;
    font-size: 0.75rem;
  }
  
  /* Make font selector labels fit cleanly */
  .font-selector .btn-font {
    padding: 10px 6px;
    font-size: 0.75rem;
  }
  
  /* Global viewport overflow restriction safety guard */
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* ==========================================================================
   LIGHTBOX PREVIEW MODAL
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(12, 12, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: var(--panel-bg);
  border: 2.5px solid var(--text-main);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  max-width: 520px;
  width: 90%;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  box-sizing: border-box;
  animation: modal-zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2.2rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s ease;
  line-height: 1;
}

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

.preview-img-container {
  margin-top: 15px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--text-main);
  aspect-ratio: 4/3;
  background: #000;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.preview-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes modal-zoom {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   DIGICAM v2.0 - BOOTH STYLING & CORE DESIGN SYSTEM
   ========================================================================== */

/* Width expansions for layouts */
.workspace-layout {
  grid-template-columns: 1fr 420px !important;
}
.export-layout {
  grid-template-columns: 1fr 420px !important;
}

/* Scrollable tabs for Themes */
.theme-family-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 15px;
  scrollbar-width: none; /* Firefox */
}
.theme-family-tabs::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.theme-family-tabs .tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--text-main);
  transition: all var(--transition-fast);
}
.theme-family-tabs .tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--text-main);
}
.theme-family-tabs .tab-btn.active {
  background: var(--color-primary);
  color: var(--text-main);
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--text-main);
}

/* Custom visual layout icons */
.preset-selector button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  transition: all var(--transition-fast);
}
.preset-selector button strong {
  font-size: 0.75rem;
}
.layout-icon {
  width: 28px;
  height: 36px;
  border: 1.5px solid var(--text-main);
  background: #ffffff;
  border-radius: 3px;
  display: grid;
  gap: 2px;
  padding: 2px;
  box-sizing: border-box;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
}
.layout-icon::before, .layout-icon::after {
  content: '';
  background: var(--text-muted);
  border-radius: 1px;
  opacity: 0.45;
}
.icon-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.icon-single::before { grid-row: 1; grid-column: 1; }
.icon-single::after { display: none; }

.icon-polaroid {
  grid-template-columns: 1fr;
  grid-template-rows: 4fr 1.5fr;
  gap: 0;
  padding: 1.5px;
}
.icon-polaroid::before { grid-row: 1; background: var(--text-muted); }
.icon-polaroid::after { grid-row: 2; background: transparent; opacity: 0; }

.icon-two {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
}
.icon-two::before { grid-row: 1; }
.icon-two::after { grid-row: 2; opacity: 0.45; }

.icon-three {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
}
.icon-three::before { grid-row: 1 / span 2; display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: transparent; }
.icon-three::before {
  content: '';
  box-shadow: 0 -4px 0 var(--text-muted) inset, 0 4px 0 var(--text-muted) inset;
}
.icon-three::after { grid-row: 3; }

.icon-four {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
}
.icon-four::before {
  box-shadow: 0 -4px 0 var(--text-muted) inset, 0 4px 0 var(--text-muted) inset;
  background: transparent;
}
.icon-four::after {
  background: transparent;
  box-shadow: 0 -2px 0 var(--text-muted) inset, 0 2px 0 var(--text-muted) inset;
}

.icon-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.icon-grid-2x2::before { grid-column: 1 / span 2; background: transparent; box-shadow: -4px 0 0 var(--text-muted) inset, 4px 0 0 var(--text-muted) inset; }
.icon-grid-2x2::after { grid-column: 1 / span 2; background: transparent; box-shadow: -4px 0 0 var(--text-muted) inset, 4px 0 0 var(--text-muted) inset; }

.icon-grid-2x3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

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

.icon-story {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-color: #fca5a5;
  background: #fff;
}
.icon-story::before {
  box-shadow: 0 0 3px rgba(239, 68, 68, 0.4);
}

/* Booth Effect Buttons */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.btn-effect-toggle {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  box-shadow: 0 2px 0 var(--text-main);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-effect-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--text-main);
}
.btn-effect-toggle.active {
  background: var(--color-secondary);
  box-shadow: 0 2px 0 var(--text-main);
  transform: translateY(1px);
}

/* Color Filter Select Element */
.custom-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: #ffffff;
  box-shadow: 0 2px 0 var(--text-main);
  outline: none;
  cursor: pointer;
}

/* Video viewport handling aspect ratios & styling wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

/* Polaroid Live View Mode Styles */
#live-booth-preview.layout-polaroid-single {
  background: #fdfbf7;
  border: 2px solid var(--text-main) !important;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(74, 60, 49, 0.15) !important;
  padding: 20px 20px 100px 20px !important;
  width: auto;
  max-width: 440px;
  height: 500px;
  aspect-ratio: 1 / 1.25;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s ease;
}
#live-booth-preview.layout-polaroid-single .video-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1.5px solid rgba(74,60,49,0.15);
  border-radius: 4px;
  overflow: hidden;
}
#live-booth-preview.layout-polaroid-single #webcam-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#live-booth-preview.layout-polaroid-single .polaroid-caption-overlay {
  display: block !important;
}

/* Live Polaroid Text Field Overlay */
.polaroid-caption-overlay {
  display: none;
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  text-align: center;
  z-index: 10;
}
.polaroid-caption-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed var(--text-muted);
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2b2b2b;
  outline: none;
  padding: 2px;
  transition: all var(--transition-fast);
}
.polaroid-caption-overlay input:focus {
  border-bottom-color: var(--text-main);
  border-bottom-style: solid;
}

/* Live Sprocket Holes for Film strip overlay previews */
#live-booth-preview.frame-film-strip {
  border-left: 28px solid #111111 !important;
  border-right: 28px solid #111111 !important;
  position: relative;
  transition: all 0.4s ease;
}
#live-booth-preview.frame-film-strip::before,
#live-booth-preview.frame-film-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 10px,
    #faf6f0 10px,
    #faf6f0 22px
  );
  z-index: 6;
}
#live-booth-preview.frame-film-strip::before {
  left: -20px;
}
#live-booth-preview.frame-film-strip::after {
  right: -20px;
}

/* Live Washi Tape Overlay Previews */
.live-tape {
  display: none;
  position: absolute;
  width: 80px;
  height: 24px;
  background: rgba(255, 183, 178, 0.7); /* translucent pink */
  border-left: 2px dashed rgba(0,0,0,0.1);
  border-right: 2px dashed rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 8;
  pointer-events: none;
}
#live-booth-preview.frame-washi-tape .live-tape {
  display: block;
}
.tape-tl {
  top: 10px;
  left: -15px;
  transform: rotate(-35deg);
  background: rgba(255, 183, 178, 0.75);
}
.tape-tr {
  top: 10px;
  right: -15px;
  transform: rotate(35deg);
  background: rgba(181, 226, 250, 0.75);
}

/* Live Neon Glow styling preview */
#live-booth-preview.frame-neon-glow {
  border: 3px solid #ff2a74 !important;
  box-shadow: 0 0 20px #ff2a74, inset 0 0 10px #ff2a74 !important;
  animation: neon-pulse-glow 1.5s infinite alternate;
}
@keyframes neon-pulse-glow {
  from {
    box-shadow: 0 0 8px #ff2a74, inset 0 0 4px #ff2a74 !important;
  }
  to {
    box-shadow: 0 0 25px #ff2a74, inset 0 0 12px #ff2a74 !important;
  }
}

/* Live Effects Overlays styles */
.effect-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Film Grain Overlay details */
.effect-overlay.overlay-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  opacity: 0;
  mix-blend-mode: overlay;
}
.effect-overlay.overlay-grain.active {
  opacity: 0.15;
  animation: grain-animation 0.12s steps(2) infinite;
}
@keyframes grain-animation {
  0% { background-position: 0 0; }
  50% { background-position: 15px 30px; }
  100% { background-position: -30px -15px; }
}

/* Dust & Scratch overlay details */
.effect-overlay.overlay-dust {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15,20 L15,50 M300,50 L295,85 M100,280 L102,285 M50,300 Q60,310 55,330 M350,320 L345,315' stroke='rgba(255,255,255,0.4)' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='80' cy='120' r='1.5' fill='rgba(255,255,255,0.5)'/%3E%3Ccircle cx='320' cy='180' r='1' fill='rgba(255,255,255,0.6)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0;
  mix-blend-mode: screen;
}
.effect-overlay.overlay-dust.active {
  opacity: 0.28;
  animation: dust-scratch-shift 0.45s steps(4) infinite;
}
@keyframes dust-scratch-shift {
  0% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(-1, 1) translate(-20px, 10px); }
  50% { transform: scale(1, -1) translate(15px, -20px); }
  75% { transform: scale(-1, -1) translate(-10px, -10px); }
  100% { transform: scale(1) translate(0, 0); }
}

/* Light Leak overlay details */
.effect-overlay.overlay-light-leak {
  background: radial-gradient(circle at 5% 5%, rgba(244, 63, 94, 0.45) 0%, rgba(251, 146, 60, 0.2) 40%, transparent 75%);
  opacity: 0;
  mix-blend-mode: screen;
}
.effect-overlay.overlay-light-leak.active {
  opacity: 1;
  animation: leak-sweep 9s ease-in-out infinite alternate;
}
@keyframes leak-sweep {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.2) translate(5%, 3%) rotate(15deg); }
  100% { transform: scale(1) translate(-3%, -2%) rotate(-10deg); }
}

/* VHS Glitch Noise overlay details */
.effect-overlay.overlay-vhs {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%), linear-gradient(90deg, rgba(255,0,0,0.03), rgba(0,255,0,0.01), rgba(0,0,255,0.03));
  background-size: 100% 4px, 4px 100%;
  opacity: 0;
}
.effect-overlay.overlay-vhs.active {
  opacity: 0.85;
  animation: vhs-glitch-flicker 0.15s infinite;
}
@keyframes vhs-glitch-flicker {
  0% { opacity: 0.8; }
  50% { opacity: 0.9; }
  100% { opacity: 0.8; }
}

/* Dynamic Grid preview containers */
.video-container {
  height: 500px;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  border-radius: 12px;
}

#live-slots-container {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: block;
  padding: 0;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.live-slot-item {
  position: relative;
  background: #0d0d11;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.live-slot-item.active-live-feed {
  border: 2px solid var(--color-primary) !important;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

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

.live-slot-item .live-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block !important;
}

.live-slot-item .captured-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-slot-item .slot-placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(74, 60, 49, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.02);
}

/* live effects updates for dynamic video element slots */
#live-booth-preview.effect-bloom-active .live-video-wrapper video {
  filter: blur(0.4px) brightness(1.08) contrast(0.96) saturate(1.05);
}
#live-booth-preview.effect-blur-active .live-video-wrapper video {
  filter: blur(1.5px);
}

/* Custom theme decorative pattern rules */
#live-booth-preview.theme-scrapbook-journal {
  background-image: linear-gradient(rgba(74, 60, 49, 0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(74, 60, 49, 0.07) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}
#live-booth-preview.theme-scrapbook-notebook {
  background-image: linear-gradient(rgba(31, 41, 55, 0.05) 1.5px, transparent 1.5px) !important;
  background-size: 100% 28px !important;
  position: relative;
}
#live-booth-preview.theme-scrapbook-notebook::before {
  content: '';
  position: absolute;
  top: 0; left: 60px; bottom: 0;
  width: 2px;
  background: rgba(239, 68, 68, 0.25);
  z-index: 1;
  pointer-events: none;
}

/* Interactive Frame Browser Cards */
.frame-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid var(--text-main);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 rgba(74, 60, 49, 0.1);
  transition: all var(--transition-fast);
}
.frame-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(74, 60, 49, 0.12);
  background: rgba(255, 255, 255, 0.7);
}
.frame-card.active {
  background: var(--color-secondary);
  border-color: var(--text-main);
  box-shadow: 0 2px 0 var(--text-main);
  transform: translateY(2px);
}
.frame-card-preview {
  width: 100%;
  height: 65px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.frame-card-preview .mini-slots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 32px;
  height: auto;
}
.frame-card-preview .mini-slot {
  width: 32px;
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid #fff;
  box-sizing: border-box;
}
.frame-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

/* Template frame overlays / styles */
#live-booth-preview.frame-minimal-white .live-slot-item { border: 6px solid #ffffff !important; }
#live-booth-preview.frame-minimal-black .live-slot-item { border: 6px solid #121212 !important; }
#live-booth-preview.frame-minimal-gray .live-slot-item { border: 6px solid #eaeaea !important; }
#live-booth-preview.frame-rounded-white .live-slot-item { border: 6px solid #ffffff !important; border-radius: 16px !important; }
#live-booth-preview.frame-rounded-corners .live-slot-item { border-radius: 16px !important; }

#live-booth-preview.frame-film-kodak .live-slot-item { border-left: 20px solid #1c1917 !important; border-right: 20px solid #1c1917 !important; }
#live-booth-preview.frame-film-fuji .live-slot-item { border-left: 20px solid #064e3b !important; border-right: 20px solid #064e3b !important; }
#live-booth-preview.frame-film-disposable .live-slot-item { border-left: 20px solid #15803d !important; border-right: 20px solid #15803d !important; }
#live-booth-preview.frame-film-cinema .live-slot-item { border-left: 20px solid #111111 !important; border-right: 20px solid #111111 !important; }
#live-booth-preview.frame-film-contact .live-slot-item { border-left: 20px solid #0b0f17 !important; border-right: 20px solid #0b0f17 !important; }

#live-booth-preview.frame-film-kodak .live-slot-item::before,
#live-booth-preview.frame-film-fuji .live-slot-item::before,
#live-booth-preview.frame-film-disposable .live-slot-item::before,
#live-booth-preview.frame-film-cinema .live-slot-item::before,
#live-booth-preview.frame-film-contact .live-slot-item::before,
#live-booth-preview.frame-film-kodak .live-slot-item::after,
#live-booth-preview.frame-film-fuji .live-slot-item::after,
#live-booth-preview.frame-film-disposable .live-slot-item::after,
#live-booth-preview.frame-film-cinema .live-slot-item::after,
#live-booth-preview.frame-film-contact .live-slot-item::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 8px;
  background-image: repeating-linear-gradient(to bottom, #ffffff 0, #ffffff 10px, transparent 10px, transparent 20px);
  z-index: 10;
  opacity: 0.85;
}
#live-booth-preview.frame-film-kodak .live-slot-item::before,
#live-booth-preview.frame-film-fuji .live-slot-item::before,
#live-booth-preview.frame-film-disposable .live-slot-item::before,
#live-booth-preview.frame-film-cinema .live-slot-item::before,
#live-booth-preview.frame-film-contact .live-slot-item::before {
  left: -14px;
}
#live-booth-preview.frame-film-kodak .live-slot-item::after,
#live-booth-preview.frame-film-fuji .live-slot-item::after,
#live-booth-preview.frame-film-disposable .live-slot-item::after,
#live-booth-preview.frame-film-cinema .live-slot-item::after,
#live-booth-preview.frame-film-contact .live-slot-item::after {
  right: -14px;
}

/* Washi Tape styling */
#live-booth-preview.frame-scrapbook-washi .live-slot-item::before {
  content: '';
  position: absolute;
  top: 8px; left: -12px;
  width: 50px; height: 16px;
  background: rgba(255, 183, 178, 0.7);
  transform: rotate(-30deg);
  z-index: 12;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#live-booth-preview.frame-scrapbook-washi .live-slot-item::after {
  content: '';
  position: absolute;
  top: 8px; right: -12px;
  width: 50px; height: 16px;
  background: rgba(181, 226, 250, 0.7);
  transform: rotate(30deg);
  z-index: 12;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Luxury gold border */
#live-booth-preview.frame-luxury-gold .live-slot-item {
  border: 4px double gold !important;
}

/* Slot corner decoration details */
.slot-deco-heart {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 1.1rem;
  z-index: 12;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.slot-deco-snow {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 1rem;
  z-index: 12;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Global decorations overlay */
#live-frame-decoration-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 15;
}
.live-frame-decorations .deco-emoji {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Font Selector styles */
.font-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.font-selector .btn-font {
  padding: 8px 4px;
  font-size: 0.7rem;
}

/* Workspace Font picker buttons */
.btn-font-workspace {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  font-size: 0.8rem;
  padding: 8px 4px;
  box-shadow: 0 2px 0 var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  border-radius: 8px;
}
.btn-font-workspace:hover {
  transform: translateY(-1px);
}
.btn-font-workspace.active {
  border-color: var(--text-main);
  background: var(--color-primary);
  color: var(--text-main);
  box-shadow: 0 2px 0 var(--text-main);
}
.font-selector .btn-font-workspace {
  padding: 8px 4px;
  font-size: 0.7rem;
}

/* Color Selector for Polaroid Workspace */
.color-selector-workspace {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}
.color-swatch:hover {
  transform: scale(1.1);
}
.color-swatch.active {
  border-color: var(--text-main);
  box-shadow: 0 0 0 2px var(--panel-bg), 0 0 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* Vertical timeline intro animation styles */
.workspace-main {
  position: relative;
}

/* Mask to hide the vertical timeline as it emerges from the slot */
.camera-mask {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 164px; /* Matches top: 10px + camera-body height: 154px */
  background: var(--bg-color);
  z-index: 100; /* between timeline (90) and camera (105) */
  pointer-events: none;
}

.workspace-main.strip-animating .camera-mask {
  display: block;
}

/* Aesthetic Cute handy camera */
.cute-camera {
  display: none; /* hidden by default */
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 15px auto 10px auto;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px) scale(0.9);
  z-index: 105; /* higher than timeline vertical strip */
}

/* Show when strip animation is active */
.workspace-main.strip-animating #aesthetic-camera {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.camera-body {
  width: 242px; /* Increased 10% from 220px */
  height: 154px; /* Increased 10% from 140px */
  background: #d4e6e1; /* Pastel Retro Mint Teal */
  border: 3.5px solid var(--text-main);
  border-radius: 22px; /* Increased 10% from 20px */
  box-shadow: 0 9px 0 var(--text-main); /* Increased 10% from 8px */
  position: relative;
  margin: 0 auto;
  overflow: visible;
}

/* Camera grip decorator */
.camera-body::before {
  content: '';
  position: absolute;
  top: 16px; /* Increased 10% from 15px */
  left: 16px; /* Increased 10% from 15px */
  right: 16px; /* Increased 10% from 15px */
  height: 44px; /* Increased 10% from 40px */
  background: #ffb7b2; /* Pastel Pink decorative accent band */
  border-bottom: 3.5px solid var(--text-main);
  opacity: 0.8;
  border-radius: 4px 4px 0 0;
}

/* Camera Lens */
.camera-lens {
  width: 77px; /* Increased 10% from 70px */
  height: 77px; /* Increased 10% from 70px */
  background: #faf6f0;
  border: 4px solid var(--text-main); /* Increased from 3.5px */
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  box-shadow: 0 4.5px 0 var(--text-main); /* Increased from 4px */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lens-inner {
  width: 42px; /* Increased 10% from 38px */
  height: 42px; /* Increased 10% from 38px */
  background: #2b2b2b;
  border-radius: 50%;
  position: relative;
}
.lens-inner::before {
  content: '';
  position: absolute;
  top: 7px; /* Increased 10% from 6px */
  left: 7px; /* Increased 10% from 6px */
  width: 11px; /* Increased 10% from 10px */
  height: 11px; /* Increased 10% from 10px */
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.7;
}

/* Flash and Viewfinder */
.camera-flash {
  width: 31px; /* Increased 10% from 28px */
  height: 18px; /* Increased 10% from 16px */
  background: #ffd166; /* Bright yellow flash window */
  border: 3px solid var(--text-main);
  border-radius: 6px;
  position: absolute;
  top: 13px; /* Increased from 12px */
  right: 27px; /* Increased from 25px */
  box-shadow: 0 2px 0 var(--text-main);
}

.camera-viewfinder {
  width: 20px; /* Increased 10% from 18px */
  height: 20px; /* Increased 10% from 18px */
  background: #eaf4f4;
  border: 3px solid var(--text-main);
  border-radius: 4px;
  position: absolute;
  top: 13px; /* Increased from 12px */
  left: 27px; /* Increased from 25px */
}

/* The Ejection Slot at the bottom */
.camera-strip-slot {
  width: 143px; /* Increased 10% from 130px */
  height: 9px; /* Increased 10% from 8px */
  background: var(--text-main);
  border-radius: 4px;
  position: absolute;
  bottom: -5px; /* Increased 10% from -4px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.workspace-main.strip-animating .video-container {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Vertical state layout for the timeline container */
.timeline-container.intro-vertical-state {
  max-width: 180px !important;
  max-height: none !important;
  width: 180px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 2.5px solid var(--text-main) !important;
  box-shadow: 0 15px 30px rgba(74, 60, 49, 0.15) !important;
  border-radius: 8px !important;
  padding: 20px 20px 30px 20px !important;
  z-index: 90 !important; /* lower than camera z-index to emerge from behind it */
  position: relative;
}

.timeline-container.intro-vertical-state .timeline-header {
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 20px !important;
}

.timeline-container.intro-vertical-state .timeline-header h4 {
  font-size: 0.9rem !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
}

.timeline-container.intro-vertical-state .timeline-header span {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.timeline-container.intro-vertical-state .thumbnail-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-height: none !important;
  height: auto !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Photo strip brand text at top inside grid */
.timeline-container.intro-vertical-state .thumbnail-grid::before {
  content: 'DIGICAM' !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  color: var(--text-muted) !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.timeline-container.intro-vertical-state .thumb-slot {
  width: 130px !important;
  height: 98px !important;
  max-height: none !important;
  max-width: none !important;
  border: 1.5px dashed var(--text-muted) !important;
  background: #faf6f0 !important;
  margin: 0 !important;
}

/* Polaroid Single override in vertical animating strip */
.timeline-container.intro-vertical-state.layout-polaroid-single .thumb-slot {
  width: 130px !important;
  height: 130px !important; /* Perfect square (1:1 ratio) */
}

/* Base transitions on standard workspace main elements */
.timeline-container {
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 1;
}

.video-container {
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  transform: scale(1);
}

/* Responsive Overrides for Mobile Viewports */
@media (max-width: 600px) {
  /* Scale down the aesthetic camera body */
  .cute-camera {
    margin: 5px auto 5px auto;
    top: 5px;
  }
  .camera-mask {
    height: 111px; /* Matches top: 5px + camera-body height: 106px */
  }
  .camera-body {
    width: 165px; /* Increased 10% from 150px */
    height: 106px; /* Increased 10% from 96px */
    border-radius: 13px;
    border-width: 2.5px;
    box-shadow: 0 5.5px 0 var(--text-main);
  }
  .camera-body::before {
    top: 11px;
    left: 11px;
    right: 11px;
    height: 26px;
    border-bottom-width: 2.5px;
  }
  .camera-lens {
    width: 53px; /* Increased 10% from 48px */
    height: 53px; /* Increased 10% from 48px */
    border-width: 2.5px;
    box-shadow: 0 2.2px 0 var(--text-main);
  }
  .lens-inner {
    width: 26px; /* Increased 10% from 24px */
    height: 26px; /* Increased 10% from 24px */
  }
  .lens-inner::before {
    width: 7px;
    height: 7px;
    top: 3.5px;
    left: 3.5px;
  }
  .camera-flash {
    width: 20px; /* Increased 10% from 18px */
    height: 11px; /* Increased 10% from 10px */
    border-width: 2px;
    top: 7px;
    right: 13px;
    box-shadow: 0 1px 0 var(--text-main);
  }
  .camera-viewfinder {
    width: 13px; /* Increased 10% from 12px */
    height: 13px; /* Increased 10% from 12px */
    border-width: 2px;
    top: 7px;
    left: 13px;
  }
  .camera-strip-slot {
    width: 99px; /* Increased 10% from 90px */
    height: 7px; /* Increased 10% from 6px */
    bottom: -3.5px;
  }

  /* Scale down the vertical film strip card and slots */
  .timeline-container.intro-vertical-state {
    max-width: 120px !important;
    width: 120px !important;
    padding: 12px 10px 20px 10px !important;
    border-width: 2px !important;
    box-shadow: 0 8px 20px rgba(74, 60, 49, 0.12) !important;
  }
  .timeline-container.intro-vertical-state .timeline-header {
    gap: 4px !important;
    margin-bottom: 12px !important;
  }
  .timeline-container.intro-vertical-state .timeline-header h4 {
    font-size: 0.75rem !important;
  }
  .timeline-container.intro-vertical-state .timeline-header span {
    font-size: 0.65rem !important;
  }
  .timeline-container.intro-vertical-state .thumbnail-grid {
    gap: 8px !important;
  }
  .timeline-container.intro-vertical-state .thumbnail-grid::before {
    font-size: 0.55rem !important;
    margin-bottom: 4px !important;
  }
  .timeline-container.intro-vertical-state .thumb-slot {
    width: 88px !important;
    height: 66px !important; /* 4:3 ratio */
    border-width: 1px !important;
  }
  
  /* Polaroid mobile square override in vertical strip */
  .timeline-container.intro-vertical-state.layout-polaroid-single .thumb-slot {
    width: 88px !important;
    height: 88px !important; /* Perfect square */
  }
  
  /* Sidebar font selector and color swatches mobile tuning */
  .font-selector .btn-font-workspace {
    font-size: 0.62rem !important;
    padding: 6px 2px !important;
    border-radius: 6px !important;
  }
  .color-selector-workspace {
    gap: 8px !important;
  }
  .color-swatch {
    width: 28px !important;
    height: 28px !important;
  }
}

/* Live Polaroid labels inside workspace preview slots */
.live-polaroid-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #be123c;
  font-weight: 700;
  pointer-events: none;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Ensure bows sit on top and remain visible */
#live-booth-preview .deco-bow {
  z-index: 15;
}

