@font-face {
  font-family: 'VCR_OSD_MONO';
  src: url('assets/fonts/VCR_OSD_MONO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-outer: #070709;
  --bg-leather: #111114;
  --bg-sheet: #15151a;
  --bg-card: #1e1e26;
  --bg-card-hover: #262631;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: #9898a6;
  --amber-gold: #ffb320;
  --amber-glow: rgba(255, 179, 32, 0.28);
  --emerald: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-outer);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================================
   Responsive Dazz App Container (Fullscreen on Phone, Dual-Pane Studio on Desktop)
   ============================================================================ */
.dazz-app-layout {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

.phone-camera-shell {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  /* Authentic Dazz Cam Vulcanite Leather + Anodized Top Plate */
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 45, 58, 0.45) 0%, rgba(12, 12, 16, 0.95) 70%),
    repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px),
    var(--bg-leather);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: max(8px, env(safe-area-inset-top, 8px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  overflow: hidden;
}

/* Tablet & Desktop Responsive Expansion: Dual-Pane Dazz Cam Studio */
@media (min-width: 900px) {
  .dazz-app-layout {
    width: min(96vw, 1120px);
    height: min(93dvh, 860px);
    border-radius: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92);
    background: #101014;
  }

  .phone-camera-shell {
    flex: 1.15;
    max-width: none;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 18px 16px;
  }

  /* Dock the Camera Shelf & Film Lab permanently on the right on desktop! */
  #sheetGearBackdrop {
    position: relative !important;
    inset: auto !important;
    flex: 0.95;
    display: flex !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: 10 !important;
  }

  #sheetGearBackdrop .bottom-sheet {
    max-height: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  #sheetGearBackdrop .sheet-drag-handle,
  #sheetGearBackdrop .sheet-close-btn {
    display: none !important;
  }
}

/* ============================================================================
   1. Rangefinder Top Hardware Bar (Authentic Dazz Cam Icons)
   ============================================================================ */
.hw-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 6px;
  gap: 8px;
  flex-shrink: 0;
  z-index: 15;
}

.hw-left-group,
.hw-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-icon-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.hw-icon-btn:active {
  transform: scale(0.92);
}

.hw-icon-btn img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.hw-icon-btn.active {
  background: rgba(255, 179, 32, 0.18);
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

.hw-sub-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.hw-mode-pill {
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hw-mode-pill.active {
  background: var(--amber-gold);
  color: #000;
  border-color: var(--amber-gold);
}

.cloud-pill-header {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #34d399;
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.cloud-pill-header:active {
  transform: scale(0.94);
}

.led-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ============================================================================
   2. Optical Viewfinder Window (Large, Edge-to-Edge Glass Bezel)
   ============================================================================ */
.vf-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  min-height: 0;
  position: relative;
}

.viewfinder-housing {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(160deg, #25252e 0%, #09090c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #040406;
  display: block;
}

.vf-grid-overlay {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 18px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  transition: opacity 0.15s ease;
}

.vf-grid-overlay.hidden {
  opacity: 0;
}

.flash-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease-out;
  z-index: 30;
  border-radius: 18px;
}

.flash-overlay.active {
  background: #ffffff;
  opacity: 0.92;
}

/* Minimal Optical Viewfinder HUD */
.vf-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

.hud-badge {
  font-family: 'VCR_OSD_MONO', monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hud-raw-pill {
  color: var(--amber-gold);
  border-color: rgba(255, 179, 32, 0.3);
}

.hud-countdown {
  background: rgba(220, 38, 38, 0.9);
  font-size: 14px;
  font-weight: 800;
}

/* Post-Shot Floating Overlay Inside Bottom of Viewfinder (Zero Layout Shift!) */
.redevelop-floating-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 25;
  background: rgba(16, 16, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 179, 32, 0.55);
  border-radius: 16px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.redevelop-bar-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fde68a;
}

.redevelop-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-gold);
  box-shadow: 0 0 8px var(--amber-gold);
}

.redevelop-bar-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.redev-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.redev-btn:active {
  transform: scale(0.95);
}

.redev-btn.live {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.redev-btn.tweak {
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
}

.redev-btn.cloud {
  background: var(--amber-gold);
  color: #000;
}

.redev-btn.phone {
  background: #34d399;
  color: #000;
}

/* ============================================================================
   3. Authentic Dazz Cam Hardware Accessory Bar (Real Extracted Icons)
   ============================================================================ */
.dazz-accessory-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.dazz-accessory-bar::-webkit-scrollbar {
  display: none;
}

.acc-pill-btn {
  flex: 1;
  min-width: 62px;
  height: 36px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.acc-pill-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.12);
}

.acc-round-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.acc-film-img {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.acc-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ============================================================================
   4. Swipeable 3D Skeuomorphic Camera Strip (With Real 3D Camera Bodies!)
   ============================================================================ */
.quick-cam-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.quick-cam-strip::-webkit-scrollbar {
  display: none;
}

.quick-cam-chip {
  height: 40px;
  padding: 4px 11px 4px 7px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.quick-cam-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.quick-cam-chip:active {
  transform: scale(0.94);
}

.quick-cam-chip.active {
  background: rgba(255, 179, 32, 0.16);
  color: #fff;
  border-color: var(--amber-gold);
  box-shadow: 0 2px 12px rgba(255, 179, 32, 0.22);
}

/* ============================================================================
   5. Signature Dazz Cam Bottom Shutter Deck
   ============================================================================ */
.dazz-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 22px 4px;
  flex-shrink: 0;
}

/* Left: Film Roll Thumbnail + Import Photo (+) Button */
.roll-import-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 104px;
}

.roll-thumb-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #1b1b22;
  border: 2px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease;
}

.roll-thumb-btn:active {
  transform: scale(0.92);
}

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

.roll-count-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--amber-gold);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 179, 32, 0.45);
}

.import-plus-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.import-plus-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.import-plus-btn:active {
  transform: scale(0.9);
}

/* Center: Machined Chrome Mechanical Shutter Button */
.shutter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutter-button {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e4e4e7 55%, #8e8e98 100%);
  border: 5px solid #2e2e36;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.85),
    inset 0 2px 5px rgba(255, 255, 255, 0.95);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shutter-button:active {
  transform: scale(0.9);
}

.shutter-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.shutter-blades-icon {
  width: 28px;
  height: 28px;
  opacity: 0.18;
  filter: invert(1);
  pointer-events: none;
}

/* Right: Authentic 3D Skeuomorphic Active Camera Body Button */
.cam-bag-btn {
  min-width: 104px;
  height: 62px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.cam-bag-btn:active {
  transform: scale(0.93);
}

.active-cam-3d-img {
  width: 44px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
}

.cam-bag-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--amber-gold);
  letter-spacing: 0.3px;
}

/* ============================================================================
   Slide-Up Bottom Sheets (Smooth iOS Spring Modal on Phone, Docked on Desktop)
   ============================================================================ */
.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-sheet-backdrop.open {
  display: flex;
  animation: fadeInBackdrop 0.18s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet {
  width: 100%;
  max-height: 85dvh;
  background: var(--bg-sheet);
  border-top: 1px solid var(--border-highlight);
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.85);
  animation: slideUpSheet 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-drag-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 8px auto 2px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.9);
}

.sheet-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-unlocked-pill {
  font-size: 10px;
  font-weight: 800;
  color: #000;
  background: var(--amber-gold);
  padding: 2px 7px;
  border-radius: 6px;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.11);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-subtabs {
  display: flex;
  background: #101015;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  flex-shrink: 0;
}

.drawer-subtab {
  flex: 1;
  padding: 11px 8px;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.drawer-subtab.active {
  color: var(--amber-gold);
  border-bottom-color: var(--amber-gold);
  background: rgba(255, 179, 32, 0.06);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================================
   Authentic Dazz Cam 3D Camera Shelf Cards
   ============================================================================ */
.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex-shrink: 0;
}
.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
}

.cat-pill.active {
  background: var(--amber-gold);
  color: #000;
  border-color: var(--amber-gold);
}

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

.cam-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.cam-card:active {
  transform: scale(0.97);
}

.cam-card.selected {
  border-color: var(--amber-gold);
  background: linear-gradient(160deg, rgba(255, 179, 32, 0.14), var(--bg-card));
  box-shadow: 0 0 0 1.5px var(--amber-glow);
}

.cam-thumb-wrap {
  position: relative;
  height: 92px;
  background: #09090c;
  overflow: hidden;
}

.cam-sample-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

/* Floating 3D Skeuomorphic Camera Body over the Sample Photo! */
.cam-3d-body-overlay {
  position: absolute;
  bottom: 6px;
  left: 8px;
  width: 56px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.85));
}

.cam-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--amber-gold);
}

.cam-info {
  padding: 8px 10px 9px;
}

.cam-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.cam-sub {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.25;
}

/* ============================================================================
   Authentic Film Roll Strips & Glass Lenses Grids
   ============================================================================ */
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.film-roll-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease;
}

.film-roll-card:active {
  transform: scale(0.96);
}

.film-roll-card.active {
  border-color: var(--amber-gold);
  box-shadow: 0 0 0 1.5px var(--amber-glow);
}

.film-strip-banner {
  width: 100%;
  height: 28px;
  object-fit: cover;
  display: block;
}

.film-roll-meta {
  padding: 6px 8px;
  text-align: center;
}

.film-roll-meta .pill-title {
  font-size: 12px;
  font-weight: 800;
}

.film-roll-meta .pill-sub {
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

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

.lens-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 13px;
  padding: 9px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: transform 0.1s ease;
}

.lens-card:active {
  transform: scale(0.95);
}

.lens-card.active {
  border-color: var(--amber-gold);
  background: rgba(255, 179, 32, 0.14);
}

.lens-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

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

.option-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 6px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s ease;
}

.option-pill:active {
  transform: scale(0.95);
}

.option-pill.active {
  border-color: var(--amber-gold);
  background: rgba(255, 179, 32, 0.15);
  color: var(--amber-gold);
}

.option-pill .pill-title {
  font-size: 11.5px;
  font-weight: 700;
}

.option-pill .pill-sub {
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.gel-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.gel-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.gel-swatch.active {
  transform: scale(1.16);
  border-color: #fff;
  box-shadow: 0 0 10px var(--amber-gold);
}

/* ============================================================================
   Dazz Color Temp Spectrum Card & Sliders
   ============================================================================ */
.temp-spectrum-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
}

.temp-spectrum-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.temp-spectrum-overlay {
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(16, 16, 22, 0.65);
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.slider-val {
  font-family: 'VCR_OSD_MONO', monospace;
  font-size: 11px;
  color: var(--amber-gold);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #2c2c36;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber-gold);
  border: 2.5px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Inputs & Selects */
.dazz-input {
  flex: 1;
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  user-select: text;
}

.dazz-input.mono {
  color: var(--amber-gold);
  font-family: 'VCR_OSD_MONO', monospace;
}

.dazz-select {
  flex: 1;
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 12px;
}

.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--amber-gold);
  cursor: pointer;
}

/* Photobooth Slots */
.booth-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.booth-slot {
  aspect-ratio: 4/3;
  background: #0e0e12;
  border: 1px dashed var(--border-highlight);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

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

/* ============================================================================
   Cloud Vault Card, Gallery Grid & Lightbox Modal
   ============================================================================ */
.cloud-vault-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(24, 24, 32, 0.96));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cloud-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

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

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: 13px;
  overflow: hidden;
  background: #101014;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.gallery-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #000;
}

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

.cloud-fav-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.cloud-fav-btn.active {
  background: #f43f5e;
  border-color: #f43f5e;
}

.cloud-raw-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  font-family: 'VCR_OSD_MONO', monospace;
  font-size: 9.5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--amber-gold);
  border: 1px solid rgba(255, 179, 32, 0.4);
  cursor: pointer;
}

.gallery-item-bar {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #16161d;
}

.cta-button {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-button.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.mini-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

/* Lightbox Modal */
.lightbox-modal {
  width: min(100%, 520px);
  background: #14141a;
  border: 1px solid var(--border-highlight);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-img-stage {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 280px;
}

.lightbox-img-stage img {
  max-width: 100%;
  max-height: 62dvh;
  object-fit: contain;
}

.lightbox-actions {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #181820;
}
