/* ==========================================================================
   ZENN'S LAB • MODERN PHOTO STUDIO DESIGN SYSTEM
   Ultra-Proper, Minimalist, Aesthetic & High-DPI Print Ready
   ========================================================================== */

:root {
  /* Core Aesthetic Palette: Sleek Dark Editorial Studio */
  --bg-app: #0e1117;
  --bg-surface: rgba(22, 26, 35, 0.88);
  --bg-subtle: rgba(255, 255, 255, 0.06);
  --bg-card: rgba(27, 32, 43, 0.75);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #38bdf8;
  --accent-pink: #f43f5e;
  --accent-soft-pink: #fde2e4;
  --accent-sage: #d8e2dc;
  --accent-butter: #fef3c7;
  --accent-lavender: #ede7f6;
  --accent-gold: #f59e0b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-dark: rgba(255, 255, 255, 0.24);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
  --shadow-paper: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-hand: 'Caveat', cursive;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

button, a, label, .clickable, .filter-card, .concept-card, .layout-card, .color-swatch, .pose-slot, .tray-sticker-item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0e1117;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #131722 0%, #0a0c10 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CAMERA FLASH & SIMULATED SCREEN RING LIGHT
   ========================================================================== */
.screen-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.08s ease-out;
}

.screen-flash.flash-active {
  opacity: 1;
  transition: none;
}

/* Ring light bezel glow around display to brighten user's face */
.screen-ring-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  box-shadow: inset 0 0 100px 40px rgba(255, 255, 255, 0.95), inset 0 0 160px 80px rgba(254, 243, 199, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screen-ring-light.active {
  opacity: 1;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.studio-nav {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(14, 17, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-exit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
}

.nav-exit-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.studio-logo-tag {
  padding: 3px 8px;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  line-height: 1;
}

.brand-title span {
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Step Progress Bar */
.step-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: all 0.3s;
}

.step-node.active {
  opacity: 1;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

.step-node.active .step-num {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

.step-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.step-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s;
}

.step-line.done {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-icon-btn.active {
  background: #fef08a;
  border-color: #f59e0b;
}

/* ==========================================================================
   STAGE VIEWS SWITCHER
   ========================================================================= */
.studio-workspace {
  position: relative;
  width: 100%;
  height: calc(100vh - 65px);
  overflow: hidden;
}

.stage-view {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stage-view.active {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   VIEW 1: CAMERA LIVE STAGE
   ========================================================================== */
#viewCameraStage {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.camera-stage-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  gap: 32px;
}

/* Live Viewfinder Box */
.viewfinder-box {
  position: relative;
  flex: 1;
  max-width: 580px;
  aspect-ratio: 3 / 4;
  height: min(78vh, 680px);
  background: #09090b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Default Selfie Mirrored */
  display: block;
}

#webcamVideo.unmirrored {
  transform: scaleX(1);
}

/* Camera Fallback */
.camera-fallback {
  position: absolute;
  inset: 0;
  background: #18181b;
  color: #f4f4f5;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.fallback-icon {
  font-size: 3rem;
  margin-bottom: 4px;
}

.camera-fallback h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.camera-fallback p {
  font-size: 0.88rem;
  color: #a1a1aa;
  max-width: 320px;
  line-height: 1.5;
}

.fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
}

.btn-primary-studio, .upload-label {
  padding: 12px 20px;
  background: #ffffff;
  color: #18181b;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary-studio:hover, .upload-label:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary-studio {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Viewfinder HUD Overlays */
.viewfinder-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.hud-rec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: blinkRec 1s infinite alternate;
}

@keyframes blinkRec {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.hud-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

/* Rule of Thirds Grid */
.viewfinder-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
}

.grid-line.vert { width: 1px; height: 100%; top: 0; }
.line-v1 { left: 33.33%; }
.line-v2 { left: 66.66%; }

.grid-line.horiz { width: 100%; height: 1px; left: 0; }
.line-h1 { top: 33.33%; }
.line-h2 { top: 66.66%; }

.center-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

/* Pose Suggestion Guide */
.pose-ghost-overlay {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.ghost-emoji {
  font-size: 1.2rem;
}

/* Big Live Countdown */
.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.show {
  display: flex;
}

.countdown-digit {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.9);
  animation: popDigit 1s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popDigit {
  0% { transform: scale(0.6); opacity: 0; }
  35% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

/* Camera Controls Panel (Right Side on Desktop) */
.camera-controls-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 380px;
  height: min(78vh, 680px);
}

/* 4-Pose Rail */
.pose-rail-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.pose-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rail-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.rail-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-gallery-upload-rail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-gallery-upload-rail:hover {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  transform: translateY(-1px);
}

.btn-gallery-tool-btn {
  cursor: pointer;
}

.btn-gallery-tool-btn:hover {
  background: #18181b !important;
  color: #ffffff !important;
}

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

.pose-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-subtle);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.pose-slot.active {
  border-color: #38bdf8;
  border-style: solid;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.pose-slot.filled {
  border-style: solid;
  border-color: transparent;
}

.slot-idx {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.slot-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.btn-retake-slot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.pose-slot.filled:hover .btn-retake-slot {
  display: flex;
}

/* Shutter Action Dock */
.shutter-action-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.timer-selector {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.timer-btn {
  padding: 4px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.timer-btn.active {
  background: #18181b;
  color: #ffffff;
}

/* Big Aesthetic Shutter Trigger */
.btn-studio-shutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.15s ease;
}

.btn-studio-shutter:hover {
  transform: scale(1.04);
}

.btn-studio-shutter:active .shutter-core {
  transform: scale(0.92);
  background: #27272a;
}

.shutter-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shutter-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.shutter-icon {
  font-size: 1.6rem;
  color: #ffffff;
}

.shutter-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.shutter-key-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Camera Utility Buttons (Flip, Mirror) */
.camera-util-group {
  display: flex;
  gap: 12px;
}

.camera-tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.camera-tool-btn:hover {
  background: #e5dec9;
  color: var(--text-primary);
}

/* Proceed to Step 2 Button */
.proceed-bar {
  display: none;
  margin-top: 10px;
}

.proceed-bar.show {
  display: block;
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-proceed-step {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #18181b, #27272a);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: all 0.2s;
}

.btn-proceed-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   VIEW 2: DECORATE & CUSTOMIZE STAGE (WYSIWYG)
   ========================================================================== */
#viewDecorateStage {
  padding: 20px;
  overflow: hidden;
}

.decorate-stage-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Left / Center Column: Strip Preview */
.strip-preview-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.strip-stage-canvas-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 10px 48px 10px;
}

/* ==========================================================================
   THE PHOTOSTRIP CARD (THE MASTERPIECE)
   ========================================================================== */
.photostrip-card {
  position: relative;
  background: #faf6f0; /* Default Warm Cream */
  box-shadow: var(--shadow-paper);
  border-radius: 4px;
  padding: 16px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strip 4-Cut Layout (Classic Vertical Bookmark) */
.photostrip-card.layout-strip4 {
  width: 250px;
  min-height: 600px;
}

.layout-strip4 .strip-photos-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.layout-strip4 .photo-cell {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e4decb;
  overflow: hidden;
  border-radius: 2px;
}

/* Grid 2x2 Layout (Square Instagram) */
.photostrip-card.layout-grid2x2 {
  width: 360px;
  min-height: 480px;
}

.layout-grid2x2 .strip-photos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.layout-grid2x2 .photo-cell {
  aspect-ratio: 1 / 1;
  background: #e4decb;
  overflow: hidden;
  border-radius: 2px;
}

/* Postcard 3-Cut Layout */
.photostrip-card.layout-wide3 {
  width: 440px;
  min-height: 380px;
}

.layout-wide3 .strip-photos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.layout-wide3 .photo-cell {
  aspect-ratio: 3 / 4;
  background: #e4decb;
  overflow: hidden;
  border-radius: 2px;
}

/* Polaroid 1x1 Layout */
.photostrip-card.layout-polaroid {
  width: 320px;
  min-height: 420px;
}

.layout-polaroid .strip-photos-container {
  display: block;
  width: 100%;
}

.layout-polaroid .photo-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.layout-polaroid .photo-cell:not(:first-child) {
  display: none;
}

/* Photo Cell Image */
.photo-cell .cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

/* Strip Header Brand */
.strip-header-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.strip-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-brand-badge .lab-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.strip-brand-badge .brand-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.strip-heart-icon {
  font-size: 0.85rem;
}

/* Strip Footer Meta */
.strip-footer-meta {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.strip-custom-title {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.strip-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
}

.strip-barcode-graphic {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.barcode-lines {
  width: 110px;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0px,
    currentColor 2px,
    transparent 2px,
    transparent 4px,
    currentColor 4px,
    currentColor 7px,
    transparent 7px,
    transparent 8px
  );
  opacity: 0.8;
}

.barcode-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ==========================================================================
   STICKERS & DOODLES INTERACTION LAYERS
   ========================================================================== */
.strip-stickers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.placed-sticker {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  cursor: grab;
  font-size: 2.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: box-shadow 0.15s;
}

.placed-sticker:active {
  cursor: grabbing;
}

.placed-sticker.selected {
  outline: 1.5px dashed rgba(24, 24, 27, 0.45);
  border-radius: 4px;
}

.placed-sticker-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.placed-sticker.selected .placed-sticker-delete,
.placed-sticker:hover .placed-sticker-delete {
  opacity: 1;
}

/* Doodle Canvas Overlay */
.strip-doodle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  border-radius: 4px;
}

.strip-doodle-canvas.drawing-active {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

/* ==========================================================================
   FRAME COLOR THEMES (24 PILIHAN ESTETIK)
   ========================================================================== */
/* 12 Solids & Pastels */
.photostrip-card.theme-cream { background: #faf6f0; color: #18181b; }
.photostrip-card.theme-white { background: #ffffff; color: #18181b; }
.photostrip-card.theme-charcoal { background: #18181b; color: #ffffff; }
.photostrip-card.theme-sage { background: #d8e2dc; color: #1f2937; }
.photostrip-card.theme-pink { background: #fde2e4; color: #881337; }
.photostrip-card.theme-lavender { background: #ede7f6; color: #4c1d95; }
.photostrip-card.theme-skyblue { background: #e0f2fe; color: #0369a1; }
.photostrip-card.theme-butter { background: #fef3c7; color: #78350f; }
.photostrip-card.theme-espresso { background: #2b1810; color: #faf6f0; }
.photostrip-card.theme-terracotta { background: #c86d51; color: #ffffff; }
.photostrip-card.theme-midnight { background: #0f172a; color: #f8fafc; }
.photostrip-card.theme-olive { background: #283618; color: #fefae0; }

/* 8 Patterns & Gradients */
.photostrip-card.theme-checker {
  background: repeating-conic-gradient(#18181b 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
  color: #18181b;
}
.photostrip-card.theme-checker .strip-header-brand,
.photostrip-card.theme-checker .strip-footer-meta {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
}

.photostrip-card.theme-checker-pastel {
  background: repeating-conic-gradient(#fde2e4 0% 25%, #faf6f0 0% 50%) 50% / 18px 18px;
  color: #881337;
}
.photostrip-card.theme-checker-pastel .strip-header-brand,
.photostrip-card.theme-checker-pastel .strip-footer-meta {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
}

.photostrip-card.theme-sunset {
  background: linear-gradient(160deg, #fbcfe8 0%, #fed7aa 50%, #fef08a 100%);
  color: #701a75;
}

.photostrip-card.theme-neon {
  background: linear-gradient(145deg, #082f49 0%, #06b6d4 50%, #ec4899 100%);
  color: #ffffff;
}

.photostrip-card.theme-hologram {
  background: linear-gradient(135deg, #a7f3d0 0%, #93c5fd 35%, #fbcfe8 70%, #fef08a 100%);
  color: #0f172a;
}

.photostrip-card.theme-dots {
  background: radial-gradient(#18181b 15%, #faf6f0 16%) 0 0/14px 14px;
  color: #18181b;
}
.photostrip-card.theme-dots .strip-header-brand,
.photostrip-card.theme-dots .strip-footer-meta {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
}

.photostrip-card.theme-chrome {
  background: linear-gradient(135deg, #94a3b8 0%, #f8fafc 40%, #cbd5e1 60%, #64748b 100%);
  color: #0f172a;
}

.photostrip-card.theme-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  color: #451a03;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), var(--shadow-paper);
}

/* 4 Vintage & Special */
.photostrip-card.theme-film35 {
  background: #111111;
  color: #f4f4f5;
  border-left: 10px dashed rgba(255, 255, 255, 0.5);
  border-right: 10px dashed rgba(255, 255, 255, 0.5);
}

.photostrip-card.theme-newspaper {
  background: #f4ede4;
  color: #292524;
  border: 1px solid #d6d3d1;
}

.photostrip-card.theme-grunge {
  background: #18181b;
  color: #f43f5e;
  border: 2px solid #f43f5e;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3), var(--shadow-paper);
}

.photostrip-card.theme-hearts {
  background: #fff1f2;
  color: #be123c;
  border: 2px solid #fda4af;
}

/* ==========================================================================
   CREATIVE CONCEPT FRAMES (RECEIPT, CINEMA TICKET, BOARDING PASS, KAWAII, Y2K)
   ========================================================================== */

/* By default, hide all concept-specific headers/footers */
.concept-header,
.concept-footer {
  display: none !important;
}

/* Visibility triggers for Concept Themes */
.photostrip-card.theme-receipt .standard-header,
.photostrip-card.theme-receipt .standard-footer,
.photostrip-card.theme-cinema .standard-header,
.photostrip-card.theme-cinema .standard-footer,
.photostrip-card.theme-boarding .standard-header,
.photostrip-card.theme-boarding .standard-footer,
.photostrip-card.theme-kawaii .standard-header,
.photostrip-card.theme-kawaii .standard-footer,
.photostrip-card.theme-y2k .standard-header,
.photostrip-card.theme-y2k .standard-footer,
.photostrip-card.theme-music .standard-header,
.photostrip-card.theme-music .standard-footer,
.photostrip-card.theme-newspaper .standard-header,
.photostrip-card.theme-newspaper .standard-footer,
.photostrip-card.theme-arcade .standard-header,
.photostrip-card.theme-arcade .standard-footer,
.photostrip-card.theme-film .standard-header,
.photostrip-card.theme-film .standard-footer {
  display: none !important;
}

.photostrip-card.theme-receipt .concept-header-receipt,
.photostrip-card.theme-receipt .concept-footer-receipt {
  display: block !important;
}

.photostrip-card.theme-cinema .concept-header-cinema,
.photostrip-card.theme-cinema .concept-footer-cinema {
  display: block !important;
}

.photostrip-card.theme-boarding .concept-header-boarding,
.photostrip-card.theme-boarding .concept-footer-boarding {
  display: block !important;
}

.photostrip-card.theme-kawaii .concept-header-kawaii,
.photostrip-card.theme-kawaii .concept-footer-kawaii {
  display: block !important;
}

.photostrip-card.theme-y2k .concept-header-y2k,
.photostrip-card.theme-y2k .concept-footer-y2k {
  display: block !important;
}

.photostrip-card.theme-music .concept-header-music,
.photostrip-card.theme-music .concept-footer-music {
  display: block !important;
}

.photostrip-card.theme-newspaper .concept-header-newspaper,
.photostrip-card.theme-newspaper .concept-footer-newspaper {
  display: block !important;
}

.photostrip-card.theme-arcade .concept-header-arcade,
.photostrip-card.theme-arcade .concept-footer-arcade {
  display: block !important;
}

.photostrip-card.theme-film .concept-header-film,
.photostrip-card.theme-film .concept-footer-film {
  display: block !important;
}

/* --- 1. CONCEPT: RECEIPT / STRUK BELANJA BUCIN --- */
.photostrip-card.theme-receipt {
  background: #fbf9f5 !important;
  color: #18181b !important;
  font-family: 'VT323', 'Space Grotesk', monospace;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  padding: 14px 12px 18px 12px;
  position: relative;
}

.receipt-sawtooth-top,
.receipt-sawtooth-bottom {
  width: 100%;
  height: 8px;
  background-image: linear-gradient(135deg, #18181b 33.333%, transparent 33.333%), linear-gradient(225deg, #18181b 33.333%, transparent 33.333%);
  background-size: 8px 8px;
  opacity: 0.15;
  margin: 2px 0 8px 0;
}

.receipt-sawtooth-bottom {
  margin: 8px 0 2px 0;
  transform: rotate(180deg);
}

.rcpt-title-banner {
  font-family: 'Bebas Neue', 'Space Grotesk', monospace;
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 700;
  color: #18181b;
}

.rcpt-divider {
  font-family: 'VT323', monospace;
  font-size: 0.82rem;
  color: #52525b;
  text-align: center;
  letter-spacing: -0.5px;
  margin: 2px 0;
  overflow: hidden;
  white-space: nowrap;
}

.rcpt-table-grid {
  font-family: 'Space Grotesk', 'VT323', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0 4px;
}

.rcpt-row {
  display: flex;
  justify-content: space-between;
}

.rcpt-row.head {
  border-bottom: 1px dashed rgba(24, 24, 27, 0.35);
  padding-bottom: 2px;
  margin-bottom: 3px;
  font-weight: 800;
}

.rcpt-thanks {
  font-family: 'Bebas Neue', monospace;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 4px 0;
}

.rcpt-barcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0;
}

.rcpt-barcode-lines {
  width: 140px;
  height: 22px;
  background: repeating-linear-gradient(90deg, #18181b 0, #18181b 2px, transparent 2px, transparent 4px, #18181b 4px, #18181b 6px, transparent 6px, transparent 8px);
}

.rcpt-barcode-no {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.58rem;
  letter-spacing: 2px;
}

.rcpt-brand-name {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 800;
  color: #18181b;
}

/* --- 2. CONCEPT: MOVIE LOVE CINEMA TICKET --- */
.photostrip-card.theme-cinema {
  background: #172554 !important; /* Classic Cinema Navy */
  padding: 14px 10px;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.6), var(--shadow-paper);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.photostrip-card.theme-cinema .strip-photos-container {
  background: #fdfbf7;
  padding: 6px 8px;
  border-radius: 0;
  border-left: 2px solid #172554;
  border-right: 2px solid #172554;
}

.photostrip-card.theme-cinema .photo-cell {
  border: 2px solid #172554;
  border-radius: 0;
}

.ticket-notch {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0e1117;
  z-index: 5;
}

.ticket-notch.notch-top-left { top: 72px; left: -10px; }
.ticket-notch.notch-top-right { top: 72px; right: -10px; }
.ticket-notch.notch-bot-left { bottom: 62px; left: -10px; }
.ticket-notch.notch-bot-right { bottom: 62px; right: -10px; }

.cinema-header-box {
  background: #fdfbf7;
  border: 2px solid #172554;
  border-bottom: none;
  padding: 8px 10px 4px 10px;
  text-align: center;
  color: #172554;
}

.cinema-script-title {
  font-family: 'Dancing Script', 'Great Vibes', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1;
}

.cinema-stars {
  font-size: 0.65rem;
  color: #1e3a8a;
  letter-spacing: 3px;
  margin: 2px 0 4px 0;
}

.cinema-ticket-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-top: 1px solid #172554;
  border-bottom: 1px solid #172554;
  padding: 3px 0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.cinema-ticket-meta .t-cell {
  border-right: 1px solid #172554;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cinema-ticket-meta .t-cell:last-child {
  border-right: none;
}

.cinema-ticket-meta small {
  font-size: 0.52rem;
  text-transform: uppercase;
  color: #475569;
}

.cinema-ticket-meta strong,
.cinema-ticket-meta span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #991b1b;
}

.cinema-footer-box {
  background: #fdfbf7;
  border: 2px solid #172554;
  border-top: none;
  padding: 6px 10px 10px 10px;
  text-align: center;
  color: #172554;
}

.cinema-moment-ribbon {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-top: 1px solid #172554;
  border-bottom: 1px solid #172554;
  padding: 3px 0;
  margin-bottom: 6px;
  color: #991b1b;
}

.cinema-brand-retro {
  font-family: 'Righteous', 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #991b1b;
  letter-spacing: 1px;
  line-height: 1;
}

.cinema-brand-retro span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 2px;
}

/* --- 3. CONCEPT: BOARDING PASS "DETIK AIR" --- */
.photostrip-card.theme-boarding {
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0 !important;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), var(--shadow-paper);
}

.boarding-airline-bar {
  background: #7c232d;
  color: #ffffff;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.boarding-main-card {
  padding: 8px 10px 6px 10px;
  background: #ffffff;
  color: #18181b;
  border-bottom: 2px dashed #cbd5e1;
}

.boarding-route-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 6px;
}

.boarding-route-lead .plane-ico {
  font-size: 1.2rem;
  color: #94a3b8;
}

.boarding-details-flex {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.56rem;
  background: #f8fafc;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.boarding-details-flex .b-spec {
  display: flex;
  flex-direction: column;
}

.boarding-details-flex .b-spec small {
  font-size: 0.46rem;
  color: #64748b;
  font-weight: 700;
}

.boarding-details-flex .b-spec.red strong {
  color: #e11d48;
}

.boarding-side-codes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.side-qr-pattern {
  width: 24px;
  height: 24px;
  background: #000;
  mask-image: radial-gradient(circle, black 30%, transparent 31%);
  mask-size: 4px 4px;
  border: 1px solid #000;
}

.side-vert-barcode {
  width: 140px;
  height: 16px;
  background: repeating-linear-gradient(90deg, #000 0, #000 1.5px, transparent 1.5px, transparent 3.5px, #000 3.5px, #000 5.5px, transparent 5.5px, transparent 7px);
}

.photostrip-card.theme-boarding .strip-photos-container {
  padding: 8px 10px 4px 10px;
}

.boarding-footer-bar {
  background: #7c232d;
  color: #ffffff;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
}

.boarding-footer-bar .b-footer-col small {
  display: block;
  font-size: 0.46rem;
  opacity: 0.8;
}

/* --- 4. CONCEPT: KAWAII PURIKURA RIBBON --- */
.photostrip-card.theme-kawaii {
  background: #fff0f3 !important;
  color: #be123c !important;
  border: 3px solid #fecdd3;
  border-radius: 12px;
  padding: 12px 10px 16px 10px;
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.25), var(--shadow-paper);
}

.kawaii-bow-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #e11d48;
}

.kawaii-bow {
  font-size: 1.2rem;
}

.kawaii-sparkle-ribbon {
  font-family: 'Space Grotesk', cursive, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 10px;
  color: #be123c;
}

/* --- 5. CONCEPT: RETRO Y2K OS 98 --- */
.photostrip-card.theme-y2k {
  background: #c0c0c0 !important;
  color: #000000 !important;
  border: 2px outset #ffffff;
  border-radius: 0;
  padding: 4px;
  box-shadow: 4px 4px 0 #000000, 0 16px 36px rgba(0, 0, 0, 0.4);
}

.y2k-top-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.y2k-btn-trio {
  display: flex;
  gap: 2px;
}

.y2k-btn {
  background: #c0c0c0;
  color: #000;
  border: 1px outset #fff;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 0 3px;
  line-height: 1;
}

.y2k-player-dock {
  background: #e4e4e7;
  border: 2px inset #ffffff;
  padding: 6px;
  margin-top: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6rem;
  font-weight: 700;
}

.y2k-song-info {
  margin-bottom: 2px;
}

.y2k-track-wave {
  letter-spacing: 1px;
  color: #000080;
}

.y2k-controls {
  margin-top: 2px;
  font-size: 0.68rem;
}

/* --- 7. CONCEPT: SPOTIFY / VINYL MUSIC PLAYER --- */
.photostrip-card.theme-music {
  background: #121212 !important;
  color: #ffffff !important;
  padding: 12px 10px 14px 10px;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 20px rgba(29, 185, 84, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.concept-header-music {
  padding-bottom: 8px;
}

.music-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
}

.music-live-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-wave-bar {
  width: 2.5px;
  background: #1ed760;
  border-radius: 1px;
  animation: musicWave 0.8s ease-in-out infinite alternate;
}
.music-wave-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.music-wave-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.music-wave-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes musicWave {
  0% { height: 30%; }
  100% { height: 100%; }
}

.music-top-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a7a7a7;
}

.music-heart-liked {
  font-size: 0.75rem;
}

.concept-footer-music {
  padding-top: 10px;
}

.music-player-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
}

.music-song-details {
  text-align: left;
  margin-bottom: 6px;
}

.music-song-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist-name {
  font-size: 0.62rem;
  color: #b3b3b3;
  font-weight: 600;
}

.music-scrubber-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #a7a7a7;
}

.scrubber-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.scrubber-fill {
  height: 100%;
  background: #1ed760;
  border-radius: 2px;
}

.music-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #b3b3b3;
}

.play-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
}

/* --- 8. CONCEPT: THE DAILY ZENN NEWSPAPER --- */
.photostrip-card.theme-newspaper {
  background: #f5ede1 !important;
  color: #1c1917 !important;
  border: 1px solid #78716c;
  padding: 12px 10px 14px 10px;
  font-family: 'Georgia', 'Playfair Display', serif;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), var(--shadow-paper);
}

.news-top-banner {
  border-bottom: 2px solid #1c1917;
  padding-bottom: 6px;
  margin-bottom: 6px;
  text-align: center;
}

.news-main-title {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

.news-meta-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1c1917;
  border-bottom: 1px solid #1c1917;
  padding: 2px 0;
  margin: 4px 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.48rem;
  font-weight: 700;
  color: #44403c;
}

.news-headline-lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  margin-top: 4px;
}

.concept-footer-newspaper {
  margin-top: 8px;
  border-top: 2px solid #1c1917;
  padding-top: 6px;
  text-align: center;
}

.news-quote {
  font-family: 'Georgia', serif;
  font-size: 0.58rem;
  font-style: italic;
  color: #292524;
  line-height: 1.3;
  margin-bottom: 4px;
}

.news-stamp-box {
  display: inline-block;
  border: 1px dashed #78716c;
  padding: 2px 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* --- 9. CONCEPT: RETRO CYBER 8-BIT ARCADE --- */
.photostrip-card.theme-arcade {
  background: #09090b !important;
  color: #22c55e !important;
  border: 2px solid #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35), var(--shadow-paper);
  padding: 12px 10px 14px 10px;
  font-family: 'VT323', 'Space Grotesk', monospace;
}

.arcade-top-marquee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #22c55e;
  padding-bottom: 6px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.arcade-blink {
  color: #facc15;
  animation: pulse 1s infinite alternate;
}

.arcade-title {
  color: #38bdf8;
  letter-spacing: 1px;
}

.concept-footer-arcade {
  margin-top: 8px;
  border-top: 2px dashed #22c55e;
  padding-top: 6px;
  text-align: center;
}

.arcade-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
}

.arcade-stage-badge {
  background: #22c55e;
  color: #000;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.6rem;
}

.arcade-insert-coin {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  margin-top: 4px;
  color: #e2e8f0;
  animation: blinkRec 1s infinite alternate;
}

/* --- 10. CONCEPT: 35MM KODAK GOLD ANALOG FILM --- */
.photostrip-card.theme-film {
  background: #18181b !important;
  color: #f59e0b !important;
  padding: 10px 18px 12px 18px !important;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--shadow-paper);
  position: relative;
  border-left: 12px dashed #3f3f46;
  border-right: 12px dashed #3f3f46;
}

.film-top-edge {
  display: flex;
  justify-content: space-between;
  padding: 2px 0 6px 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f59e0b;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 6px;
}

.concept-footer-film {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  text-align: center;
}

.film-frame-nums {
  display: flex;
  justify-content: space-around;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 2px;
}

.film-process-mark {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.5rem;
  letter-spacing: 1px;
  color: #a1a1aa;
  margin-top: 3px;
}

/* ==========================================================================
   SMOOTH & AESTHETIC REAL-TIME FILTERS (KULIT HALUS & TONE STUDIO)
   ========================================================================== */
.filter-korean-glow { filter: brightness(1.07) contrast(0.96) saturate(1.12) sepia(0.06); }
.filter-flawless-peach { filter: brightness(1.09) contrast(0.92) saturate(1.04); }
.filter-cherry-sakura { filter: brightness(1.08) contrast(0.95) saturate(1.15) hue-rotate(348deg); }
.filter-vintage-receipt { filter: sepia(0.3) contrast(1.16) brightness(1.02) grayscale(0.2); }
.filter-cinema-35mm { filter: sepia(0.16) contrast(1.08) brightness(1.03) saturate(1.18) hue-rotate(354deg); }
.filter-caramel-latte { filter: sepia(0.24) contrast(1.08) brightness(1.04) saturate(1.1) hue-rotate(352deg); }
.filter-airline-radiant { filter: contrast(1.06) brightness(1.05) saturate(1.15); }
.filter-ocean-breeze { filter: brightness(1.06) contrast(1.04) saturate(1.08) hue-rotate(6deg); }
.filter-sunset-golden { filter: sepia(0.2) brightness(1.08) contrast(1.02) saturate(1.28) hue-rotate(345deg); }
.filter-vhs-camcorder { filter: contrast(1.12) brightness(1.05) saturate(1.2) sepia(0.12) hue-rotate(4deg); }
.filter-cyber-violet { filter: brightness(1.04) contrast(1.06) saturate(1.22) hue-rotate(338deg); }
.filter-tokyo-cafe { filter: contrast(0.94) brightness(1.05) saturate(0.88) sepia(0.1); }
.filter-silky-noir { filter: grayscale(1) contrast(1.22) brightness(1.03); }
.filter-rosy-blush { filter: brightness(1.06) contrast(1.01) saturate(1.22) hue-rotate(350deg); }
.filter-retro-2000s { filter: contrast(1.1) brightness(1.04) saturate(1.14) hue-rotate(8deg); }
.filter-natural-hd { filter: brightness(1.02) contrast(1.02); }

/* Compatibility aliases for older presets */
.filter-natural { filter: none; }
.filter-haru { filter: brightness(1.07) contrast(0.96) saturate(1.12) sepia(0.06); }
.filter-portra { filter: sepia(0.16) contrast(1.08) brightness(1.03) saturate(1.18) hue-rotate(-6deg); }
.filter-fuji { filter: contrast(1.06) brightness(1.05) saturate(1.15); }
.filter-disposable { filter: contrast(1.1) brightness(1.04) saturate(1.14) hue-rotate(8deg); }
.filter-polaroid { filter: sepia(0.3) contrast(1.16) brightness(1.02) grayscale(0.2); }
.filter-noir { filter: grayscale(1) contrast(1.22) brightness(1.03); }
.filter-silver { filter: grayscale(1) contrast(1.15) brightness(1.05); }
.filter-tokyo { filter: contrast(0.94) brightness(1.05) saturate(0.88) sepia(0.1); }
.filter-cinema { filter: sepia(0.16) contrast(1.08) brightness(1.03) saturate(1.18) hue-rotate(-6deg); }
.filter-mocha { filter: contrast(0.94) brightness(1.05) saturate(0.88) sepia(0.1); }

/* Category Filter Chips */
.tool-header-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.chip-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  font-weight: 700;
}

/* Draggable Stickers Layer Overlay */
.strip-stickers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.placed-sticker {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  font-size: 2.2rem;
  line-height: 1;
  display: inline-block;
  transform-origin: center center;
}

.placed-sticker:active {
  cursor: grabbing;
}

.placed-sticker.selected {
  outline: 2px dashed #06b6d4;
  outline-offset: 4px;
}

.placed-sticker-delete {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.placed-sticker.selected .placed-sticker-delete {
  display: flex;
}

/* Freehand Doodle Canvas Overlay */
.strip-doodle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.strip-doodle-canvas.drawing-active {
  pointer-events: auto;
  cursor: crosshair;
}

/* Bottom Strip Toolbar */
.strip-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.strip-tool-btn {
  padding: 9px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.strip-tool-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-primary-finish {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #18181b;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.btn-primary-finish:hover {
  background: #27272a;
  transform: translateY(-1px);
}

/* ==========================================================================
   RIGHT CUSTOMIZE SIDEBAR
   ========================================================================== */
.customize-sidebar {
  width: 400px;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Category Tabs */
.toolbox-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 6px;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
}

.toolbox-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.toolbox-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.toolbox-tab.active {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.toolbox-tab.active .tab-label {
  color: #38bdf8 !important;
  font-weight: 800;
}

/* Tab Contents */
.toolbox-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: none;
}

.toolbox-content.active {
  display: block;
}

.tool-group {
  margin-bottom: 22px;
}

.tool-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  margin-bottom: 10px;
}

/* Layout Cards Grid */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.layout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

.layout-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.layout-card.active {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 0 0 1px #38bdf8 !important;
}

.layout-preview-icon {
  display: flex;
  margin-bottom: 8px;
  gap: 3px;
}

.icon-strip4 {
  flex-direction: column;
  width: 20px;
  height: 48px;
}

.icon-strip4 span {
  flex: 1;
  background: #a1a1aa;
  border-radius: 1px;
}

.icon-grid2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 32px;
  height: 32px;
}

.icon-grid2x2 span {
  background: #a1a1aa;
  border-radius: 1px;
}

.icon-wide3 {
  width: 44px;
  height: 24px;
}

.icon-wide3 span {
  flex: 1;
  background: #a1a1aa;
  border-radius: 1px;
}

.icon-polaroid {
  width: 28px;
  height: 34px;
}

.icon-polaroid span {
  width: 100%;
  height: 70%;
  background: #a1a1aa;
  border-radius: 1px;
}

.layout-card strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 2px;
  color: #f8fafc;
}

.layout-card.active strong {
  color: #38bdf8 !important;
}

.layout-card small {
  font-size: 0.7rem;
  color: #94a3b8;
}

.layout-card.active small {
  color: #cbd5e1 !important;
}

/* Concept Cards Grid (Creative Frames) */
.badge-new-concept {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #fff;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.concept-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.concept-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
}

.concept-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.concept-card.active {
  background: rgba(244, 63, 94, 0.12);
  border-color: #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.concept-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.concept-card-info {
  flex: 1;
}

.concept-card-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.concept-card-info small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

.concept-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #cbd5e1;
}

.concept-card.active .concept-badge-tag {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
}

/* Color Swatches Grid */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: transform 0.2s;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #18181b;
}

/* Filter Cards Grid */
.filter-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 10px 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.filter-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.filter-card.active {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 0 0 1px #38bdf8 !important;
  transform: translateY(-1px);
}

.filter-thumb {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.filter-card:hover .filter-thumb {
  transform: scale(1.03);
}

.filter-card span {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  display: block;
}

.filter-card.active span {
  color: #38bdf8 !important;
  font-weight: 800;
}

.filter-card small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.3;
}

.filter-card.active small {
  color: #cbd5e1 !important;
}

/* Stickers Tray */
.sticker-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.sub-tab-btn {
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
}

.sub-tab-btn.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.stickers-tray {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
}

.tray-sticker-item {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.tray-sticker-item:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
}

/* Doodle Controls */
.brush-mode-row {
  margin-bottom: 14px;
}

.btn-brush-toggle {
  width: 100%;
  padding: 10px;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-brush-toggle:not(.active) {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.brush-color-row {
  margin-bottom: 14px;
}

.doodle-colors {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.doodle-color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.doodle-color-btn:hover {
  transform: scale(1.15);
}

.doodle-color-btn.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #18181b;
}

.brush-size-row {
  margin-top: 10px;
}

.slider-label-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.custom-range-slider {
  width: 100%;
  accent-color: #18181b;
  cursor: pointer;
}

/* ==========================================================================
   TAB 5: TEXT & METADATA INPUTS (HIGH CONTRAST & SLEEK AESTHETIC)
   ========================================================================== */
#tabText .tool-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

#tabText .tool-group:hover,
#tabText .tool-group:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.45);
}

#tabText .tool-label {
  color: #38bdf8 !important;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.9px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.studio-text-input {
  width: 100%;
  padding: 11px 14px;
  background: #181d2a !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

.studio-text-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400;
}

.studio-text-input:focus {
  border-color: #38bdf8 !important;
  background: #1e2436 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
}

/* Custom styling for date & time pickers */
input[type="date"].studio-text-input::-webkit-calendar-picker-indicator,
input[type="time"].studio-text-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}

input[type="date"].studio-text-input::-webkit-calendar-picker-indicator:hover,
input[type="time"].studio-text-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

#tabText small {
  display: block;
  font-size: 0.74rem;
  color: #cbd5e1 !important;
  margin-top: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   EXPORT MODAL (STEP 3)
   ========================================================================== */
.export-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.export-modal-backdrop.show {
  display: flex;
  animation: modalFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.export-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.modal-top {
  margin-bottom: 20px;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.badge-done {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius-full);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.export-preview-flex {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.render-canvas-box {
  position: relative;
  flex: 1;
  max-width: 320px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

#finalRenderCanvas {
  max-width: 100%;
  max-height: 480px;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.render-loading-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: #18181b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.export-action-column {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-export-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-export-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

.btn-export-action .btn-ico {
  font-size: 1.6rem;
}

.btn-export-action strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.btn-export-action small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-download-png {
  background: #18181b;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-download-png:hover {
  background: #27272a;
}

.btn-download-png small {
  color: #a1a1aa;
}

.btn-share-whatsapp {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.btn-share-whatsapp:hover {
  background: #d1fae5;
}

/* Toast Message */
.studio-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #18181b;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9000;
}

.studio-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MOBILE & TABLET ADAPTIVE LAYOUT (ULTRA RESPONSIVE & TOUCH-FRIENDLY)
   ========================================================================== */
@media (max-width: 900px) {
  /* 1. Global Scrolling Unlocked on Mobile */
  html, body {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 2. Sticky Studio Nav Header */
  .studio-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 14px;
    gap: 8px;
    background: rgba(14, 17, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-left {
    gap: 10px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .studio-logo-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .btn-label-desktop {
    display: none;
  }

  .step-name {
    display: none;
  }

  .step-progress-bar {
    gap: 5px;
  }

  .step-node .step-num {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .step-line {
    width: 12px;
  }

  .nav-exit-btn {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .nav-icon-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* 3. Workspace & Stage Views Container */
  .studio-workspace {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: calc(100vh - 56px);
    overflow: visible !important;
  }

  .stage-view {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: auto !important;
    min-height: auto;
    display: none;
    overflow: visible !important;
  }

  .stage-view.active {
    display: flex !important;
  }

  /* 4. VIEW 1: Camera Stage on Mobile */
  #viewCameraStage {
    padding: 12px 14px 40px 14px;
    align-items: center;
    justify-content: flex-start;
  }

  .camera-stage-wrapper {
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    height: auto !important;
    gap: 14px;
    margin: 0 auto;
  }

  .viewfinder-box {
    width: 100%;
    max-width: 380px;
    height: auto !important;
    aspect-ratio: 3 / 4;
    max-height: 46vh;
    min-height: 270px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .viewfinder-hud {
    padding: 12px;
  }

  .hud-specs span:nth-child(n+3) {
    display: none; /* Hide long technical specs on small screens */
  }

  .camera-controls-panel {
    width: 100%;
    max-width: 420px;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
  }

  /* Pose Rail Thumbnails */
  .pose-rail-container {
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
  }

  .pose-rail-header {
    margin-bottom: 8px;
  }

  .rail-title {
    font-size: 0.85rem;
  }

  .rail-counter {
    font-size: 0.72rem;
  }

  .pose-slots-grid {
    gap: 6px;
  }

  .pose-slot {
    border-radius: 6px;
  }

  .slot-idx {
    font-size: 0.7rem;
  }

  /* Shutter Action Dock */
  .shutter-action-dock {
    padding: 14px 16px;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .timer-selector {
    padding: 2px;
  }

  .timer-btn {
    padding: 3px 14px;
    font-size: 0.75rem;
  }

  .shutter-ring {
    width: 68px;
    height: 68px;
  }

  .shutter-core {
    width: 54px;
    height: 54px;
  }

  .shutter-icon {
    font-size: 1.35rem;
  }

  .shutter-label {
    font-size: 0.88rem;
  }

  .shutter-key-hint {
    display: none; /* Mobile has no keyboard spacebar */
  }

  .camera-util-group {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .camera-tool-btn {
    flex: 1;
    max-width: 130px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Proceed Button */
  .proceed-bar {
    width: 100%;
    margin-top: 4px;
  }

  .btn-proceed-step {
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  /* 5. VIEW 2: Decorate Stage on Mobile */
  #viewDecorateStage {
    padding: 10px 10px 48px 10px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .decorate-stage-layout {
    flex-direction: column;
    width: 100%;
    height: auto !important;
    gap: 16px;
    overflow: visible !important;
  }

  .strip-preview-column {
    width: 100%;
    height: auto !important;
    align-items: center;
    overflow: visible !important;
  }

  .strip-stage-canvas-wrap {
    width: 100%;
    height: auto !important;
    max-height: 55vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px 6px 20px 6px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
  }

  /* Strip card responsive sizing */
  .photostrip-card.layout-strip4 {
    width: 220px;
    min-height: 500px;
    padding: 12px 10px 16px 10px;
  }

  .photostrip-card.layout-grid2x2 {
    width: min(300px, 92vw);
    min-height: 390px;
  }

  .photostrip-card.layout-wide3 {
    width: min(330px, 94vw);
    min-height: 300px;
  }

  .photostrip-card.layout-polaroid {
    width: min(280px, 88vw);
    min-height: 350px;
  }

  /* Quick Actions Toolbar on Mobile */
  .strip-quick-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }

  .strip-tool-btn {
    padding: 8px 11px;
    font-size: 0.75rem;
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .btn-primary-finish {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
    margin-top: 4px;
  }

  /* Customize Sidebar on Mobile */
  .customize-sidebar {
    width: 100% !important;
    height: auto !important;
    min-height: 360px;
    border-radius: var(--radius-md);
    overflow: visible !important;
  }

  .toolbox-tabs {
    padding: 5px;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toolbox-tab {
    padding: 8px 4px;
    min-width: 60px;
  }

  .tab-icon {
    font-size: 1.05rem;
  }

  .tab-label {
    font-size: 0.68rem;
  }

  .toolbox-content {
    padding: 16px 12px;
    max-height: 52vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .color-palette-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .color-swatch {
    width: 38px;
    height: 38px;
  }

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

  .stickers-tray {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 280px;
  }

  .tray-sticker-item {
    font-size: 1.6rem;
  }

  /* 6. VIEW 3: Export Modal on Mobile */
  .export-modal-backdrop {
    padding: 10px;
    align-items: center;
  }

  .export-modal-card {
    padding: 18px 14px;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-top {
    margin-bottom: 12px;
  }

  .modal-heading {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .modal-sub {
    font-size: 0.8rem;
  }

  .export-preview-flex {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .render-canvas-box {
    width: 100%;
    max-width: 280px;
    min-height: auto;
    max-height: 42vh;
    padding: 10px;
  }

  #finalRenderCanvas {
    max-height: 38vh;
    object-fit: contain;
  }

  .export-action-column {
    width: 100%;
    gap: 9px;
  }

  .btn-export-action {
    padding: 11px 14px;
    gap: 11px;
  }

  .btn-export-action .btn-ico {
    font-size: 1.35rem;
  }

  .btn-export-action strong {
    font-size: 0.88rem;
  }

  .btn-export-action small {
    font-size: 0.72rem;
  }
}

/* Extra small mobile adjustments (e.g., iPhone SE, Galaxy A series < 380px) */
@media (max-width: 400px) {
  .viewfinder-box {
    max-height: 42vh;
    min-height: 240px;
  }

  .color-palette-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stickers-tray {
    grid-template-columns: repeat(4, 1fr);
  }

  .shutter-ring {
    width: 62px;
    height: 62px;
  }

  .shutter-core {
    width: 48px;
    height: 48px;
  }

  .shutter-icon {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (CLEAN 1-SHEET PHOTO STRIP PRINTING)
   ========================================================================== */
@media print {
  @page {
    size: auto;
    margin: 0mm;
  }

  body {
    background: #ffffff !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Hide all app chrome and toolbars */
  .studio-nav,
  .screen-flash,
  .screen-ring-light,
  .studio-workspace,
  .modal-top,
  .export-action-column,
  .render-loading-spinner,
  .studio-toast {
    display: none !important;
  }

  .export-modal-backdrop {
    position: static !important;
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  .export-modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .export-preview-flex {
    display: block !important;
  }

  .render-canvas-box {
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #finalRenderCanvas {
    max-height: none !important;
    max-width: 100% !important;
    width: auto !important;
    height: 98vh !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
  }
}
