/* ==========================================================================
   ALDO COLASE - SKEUOMORPHIC MASTER DESIGN SYSTEM
   Wood, Brushed Metal, Brass, Leather, Glass, Springs, Physical Gauges
   ========================================================================== */

:root {
  --wood-dark: #2b1810;
  --wood-mid: #3d2314;
  --wood-light: #52311c;
  --metal-base: #d1d5db;
  --metal-highlight: #ffffff;
  --metal-shadow: #6b7280;
  --brass-gold: #c8963e;
  --brass-dark: #825a17;
  --brass-light: #fbe38e;
  --leather-dark: #1f1917;
  --leather-surface: #2c2420;
  --glass-tint: rgba(255, 255, 255, 0.15);
  --dial-red: #c0392b;
  --led-green: #2ecc71;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-vintage: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: #140d09;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(255, 220, 150, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.25) 0px,
      rgba(0, 0, 0, 0.25) 2px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(90deg, #180e07 0%, #2f190e 25%, #231209 50%, #3a1f12 75%, #180e07 100%);
  color: #f3e8dc;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Master Desk / Workbench Frame */
.workbench-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   SKEUOMORPHIC HEADER & NAVIGATION TAPE
   -------------------------------------------------------------------------- */
.skeuo-topbar {
  background: linear-gradient(180deg, #3a2215 0%, #23140c 50%, #170d07 100%);
  border: 3px solid #5a3821;
  border-top-color: #7b4f30;
  border-bottom-color: #0d0704;
  border-radius: 16px;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.9);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.brass-screw {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #fff0a8, #b8860b 60%, #4a3300 95%);
  border-radius: 50%;
  position: absolute;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.8);
}
.screw-tl { top: 8px; left: 8px; }
.screw-tr { top: 8px; right: 8px; }
.screw-bl { bottom: 8px; left: 8px; }
.screw-br { bottom: 8px; right: 8px; }
.brass-screw::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #2b1d03;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) rotate(42deg);
}

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

.gold-emblem {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 30%, #fff6cc 0%, #d4af37 40%, #8b6b1b 80%, #463406 100%);
  border-radius: 12px;
  border: 2px solid #ffea8f;
  box-shadow: 
    0 6px 14px rgba(0,0,0,0.7),
    inset 0 2px 3px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #3b2803;
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

.gold-emblem::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  );
  animation: metalShimmer 5s infinite;
}

.brand-info h1 {
  font-family: var(--font-vintage);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #fff3cf 0%, #dfb867 50%, #9e7520 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.9));
}

.brand-info p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bfa17e;
  text-shadow: 0 1px 2px #000;
}

/* Nav Switches / Heavy Push Buttons */
.nav-rack {
  display: flex;
  gap: 12px;
  background: #110a06;
  padding: 6px;
  border-radius: 14px;
  border: 2px solid #361f13;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.9);
}

.nav-tab-btn {
  background: linear-gradient(180deg, #442a1b 0%, #2f1b0f 50%, #1f1109 100%);
  border: 1px solid #633e27;
  border-top-color: #8f5a3a;
  border-bottom-color: #000;
  border-radius: 10px;
  color: #e5cdb4;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.25);
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.nav-tab-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 
    0 7px 12px rgba(0,0,0,0.7),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

.nav-tab-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.8),
    inset 0 3px 6px rgba(0,0,0,0.9);
}

.nav-tab-btn.active {
  background: linear-gradient(180deg, #d49f38 0%, #9e6d18 50%, #68450a 100%);
  border-color: #ffd875 #ffd875 #3a2202 #ffd875;
  color: #fff9ea;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,0.6);
}

.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background: #73ff00;
  border-radius: 2px;
  box-shadow: 0 0 8px #73ff00;
}

/* --------------------------------------------------------------------------
   PHYSICAL DRAWER / PAGE FLIP TRANSITIONS
   -------------------------------------------------------------------------- */
.app-section {
  display: none;
  animation: drawerSlide 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.app-section.active {
  display: block;
}

@keyframes drawerSlide {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.985);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* --------------------------------------------------------------------------
   SKEUOMORPHIC MASTER CARD / BEZEL
   -------------------------------------------------------------------------- */
.skeuo-panel {
  background: linear-gradient(165deg, #311c11 0%, #20120b 60%, #130a06 100%);
  border: 3px solid #57331c;
  border-top-color: #794a2b;
  border-left-color: #653c21;
  border-bottom-color: #080402;
  border-radius: 18px;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.28),
    inset 0 -3px 6px rgba(0, 0, 0, 0.9);
  padding: 28px;
  position: relative;
  margin-bottom: 24px;
}

.metal-inlay {
  background: linear-gradient(180deg, #d6d9dc 0%, #9aa0a6 50%, #70757a 100%);
  border: 2px solid #5f6368;
  border-top-color: #ffffff;
  border-bottom-color: #3c4043;
  border-radius: 12px;
  color: #1f2937;
  padding: 16px 20px;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.6),
    0 4px 10px rgba(0,0,0,0.5);
  position: relative;
}

/* --------------------------------------------------------------------------
   DASHBOARD SPECIFICS
   -------------------------------------------------------------------------- */
.tagline-box {
  text-align: center;
  margin-bottom: 30px;
  padding: 18px;
  background: radial-gradient(ellipse at center, rgba(60, 36, 21, 0.8) 0%, rgba(20, 11, 6, 0.95) 100%);
  border-radius: 14px;
  border: 1px dashed #73482a;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7);
}

.tagline-title {
  font-family: var(--font-vintage);
  font-size: 28px;
  color: #ffde94;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 16px rgba(224, 168, 64, 0.4);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tagline-sub {
  color: #cdb29b;
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Navigation Jumbo Buttons */
.hero-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.jumbo-btn {
  background: linear-gradient(180deg, #4b2d1c 0%, #351e12 45%, #24140b 100%);
  border: 3px solid #6b432a;
  border-top-color: #9c6541;
  border-bottom-color: #0d0704;
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -3px 5px rgba(0, 0, 0, 0.8);
  transition: all 0.22s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.jumbo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.jumbo-btn:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 
    0 18px 32px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(212, 160, 56, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.jumbo-btn:hover::before {
  left: 200%;
}

.jumbo-btn:active {
  transform: translateY(3px) scale(0.985);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.9),
    inset 0 4px 10px rgba(0, 0, 0, 0.9);
}

.jumbo-icon-plate {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, #fff1b8 0%, #d49f38 50%, #774f10 100%);
  border: 2px solid #ffec9e;
  box-shadow: 
    0 5px 12px rgba(0,0,0,0.6),
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.jumbo-btn.hd-theme .jumbo-icon-plate {
  background: radial-gradient(circle at 30% 30%, #d8f5ff 0%, #38a5d4 50%, #104e77 100%);
  border-color: #9eeaff;
}

.jumbo-text h3 {
  font-family: var(--font-vintage);
  font-size: 20px;
  color: #fff2d4;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.jumbo-text p {
  font-size: 13px;
  color: #bfa58d;
  line-height: 1.45;
}

.jumbo-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  color: #63e6be;
}

/* User Info Instrument Panel */
.telemetry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.instrument-gauge {
  background: #190f09;
  border: 2px solid #3d2315;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 
    inset 0 3px 8px rgba(0,0,0,0.85),
    0 3px 6px rgba(0,0,0,0.5);
  position: relative;
}

.instrument-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8c6a51;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.instrument-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #79f79b;
  text-shadow: 0 0 10px rgba(121, 247, 155, 0.4);
  word-break: break-all;
}

.instrument-sub {
  font-size: 12px;
  color: #bfa18a;
  margin-top: 4px;
}

/* Analog Stats Section */
.stats-dashboard {
  background: linear-gradient(180deg, #1f120a 0%, #150b06 100%);
  border: 2px solid #4a2b19;
  border-radius: 16px;
  padding: 24px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.analog-meter {
  background: radial-gradient(circle at 50% 30%, #301c10 0%, #170d06 100%);
  border: 2px solid #58351e;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  position: relative;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.6),
    inset 0 2px 4px rgba(255,255,255,0.15);
}

.meter-glass {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

.meter-number {
  font-family: var(--font-vintage);
  font-size: 32px;
  font-weight: 800;
  color: #ffdf9e;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 12px rgba(255, 200, 90, 0.3);
  margin-bottom: 4px;
}

.meter-label {
  font-size: 12px;
  color: #af927d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   MENU 2: EDIT COLASE ENGINE STYLES
   -------------------------------------------------------------------------- */
.studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

.control-rack {
  background: linear-gradient(180deg, #2b180e 0%, #1d1009 100%);
  border: 2px solid #4b2b18;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.7),
    inset 0 1px 2px rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rack-section-title {
  font-family: var(--font-vintage);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffde9c;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #412616;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Template Picker Cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.template-card {
  background: #150c07;
  border: 2px solid #3c2213;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: #c8963e;
  box-shadow: 0 4px 8px rgba(0,0,0,0.7);
}

.template-card.active {
  border-color: #ffd670;
  background: #2b190f;
  box-shadow: 
    0 0 10px rgba(255, 214, 112, 0.4),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

.template-preview-wire {
  width: 100%;
  height: 48px;
  background: #24140b;
  border-radius: 6px;
  border: 1px solid #482a17;
  display: flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 6px;
}

.template-preview-wire .wire-cell {
  background: #3f2515;
  border-radius: 3px;
  flex: 1;
}

.template-card span {
  font-size: 11px;
  color: #c4ab94;
  font-weight: 600;
}

/* Physical Slider & Rotary Controls */
.skeuo-control-group {
  margin-bottom: 12px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cfb39b;
  margin-bottom: 6px;
  font-weight: 600;
}

.control-label .val-tag {
  font-family: var(--font-mono);
  color: #79f79b;
}

.skeuo-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  background: #110905;
  border-radius: 5px;
  border: 1px solid #3c2213;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
  outline: none;
}

.skeuo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b8b8b8 50%, #5e5e5e 100%);
  border: 1px solid #222;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.8),
    inset 0 1px 2px rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform 0.1s ease;
}

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

.skeuo-slider::-webkit-slider-thumb:active {
  transform: scale(0.95);
  background: radial-gradient(circle at 35% 35%, #ffeb99 0%, #c9932d 50%, #684809 100%);
}

/* Background Texture Picker */
.texture-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.texture-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #4a2c1a;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.texture-chip:hover {
  transform: scale(1.1);
}

.texture-chip.active {
  border-color: #ffd670;
  box-shadow: 0 0 10px rgba(255, 214, 112, 0.6);
}

/* Canvas Workplace */
.canvas-desk {
  background: radial-gradient(circle at 50% 40%, #2f190e 0%, #150b06 100%);
  border: 3px solid #57331c;
  border-top-color: #794a2b;
  border-bottom-color: #0d0603;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 
    0 16px 36px rgba(0,0,0,0.9),
    inset 0 1px 2px rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.desk-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #190f09;
  border: 1px solid #3c2214;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
}

.desk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Interactive Collage Canvas Container */
.collage-board-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  overflow: hidden;
}

.collage-board {
  width: 580px;
  height: 580px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #2b170c;
  box-shadow: 
    0 24px 50px rgba(0,0,0,0.9),
    0 4px 12px rgba(0,0,0,0.6);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Collage Slots */
.collage-slot {
  background: #170c07;
  border: 2px dashed #5a3822;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.collage-slot:hover {
  border-color: #ffd670;
  transform: scale(1.008);
}

.collage-slot.selected {
  border-color: #79f79b !important;
  box-shadow: 0 0 14px rgba(121, 247, 155, 0.4);
}

.slot-empty-notice {
  text-align: center;
  color: #9f7d66;
  font-size: 13px;
  pointer-events: none;
  padding: 10px;
}

.slot-empty-notice .plus-icon {
  font-size: 28px;
  margin-bottom: 4px;
  display: block;
  color: #c8963e;
}

.slot-img-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease, transform 0.1s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Polaroid physical effect */
.polaroid-mode .collage-slot {
  background: #fdfcf7;
  padding: 10px 10px 34px 10px;
  border: none;
  border-radius: 2px;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.65),
    0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.polaroid-mode .collage-slot:hover {
  transform: scale(1.03) rotate(-1deg);
  z-index: 10;
}

/* Per-slot floating action bar */
.slot-action-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  background: rgba(18, 9, 5, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid #633f28;
  border-radius: 8px;
  padding: 4px 6px;
  z-index: 15;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.collage-slot:hover .slot-action-overlay,
.collage-slot.selected .slot-action-overlay {
  opacity: 1;
  transform: translateY(0);
}

.slot-tool-btn {
  background: #311c11;
  border: 1px solid #58331d;
  color: #f7e6d4;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: all 0.15s ease;
}

.slot-tool-btn:hover {
  background: #c8963e;
  color: #1a0f08;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   PHYSICAL BUTTON SYSTEM
   -------------------------------------------------------------------------- */
.skeuo-btn {
  background: linear-gradient(180deg, #4f301e 0%, #351e12 50%, #22120a 100%);
  border: 2px solid #6a4228;
  border-top-color: #925c38;
  border-bottom-color: #0c0603;
  border-radius: 12px;
  color: #faecd9;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.skeuo-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 
    0 9px 18px rgba(0, 0, 0, 0.8),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.skeuo-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.9),
    inset 0 3px 8px rgba(0, 0, 0, 0.95);
}

/* Gold / Brass Accent Button */
.skeuo-btn.btn-gold {
  background: linear-gradient(180deg, #e6b247 0%, #b88628 50%, #7d5711 100%);
  border: 2px solid #ffd875;
  border-top-color: #fffae0;
  border-bottom-color: #3f2b05;
  color: #2b1a03;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(230, 178, 71, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.skeuo-btn.btn-gold:hover {
  box-shadow: 
    0 10px 22px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(230, 178, 71, 0.65),
    inset 0 1px 4px rgba(255, 255, 255, 0.9);
}

/* Cyan / HD Accent Button */
.skeuo-btn.btn-cyan {
  background: linear-gradient(180deg, #3db5e6 0%, #1c7fa8 50%, #0d4e69 100%);
  border: 2px solid #75d5ff;
  border-top-color: #e0f6ff;
  border-bottom-color: #032b3f;
  color: #052636;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(61, 181, 230, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.skeuo-btn.btn-cyan:hover {
  box-shadow: 
    0 10px 22px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(61, 181, 230, 0.65),
    inset 0 1px 4px rgba(255, 255, 255, 0.9);
}

/* Green / Success Button */
.skeuo-btn.btn-emerald {
  background: linear-gradient(180deg, #38c172 0%, #20874c 50%, #10522c 100%);
  border: 2px solid #79f79b;
  border-top-color: #d4ffd8;
  border-bottom-color: #042412;
  color: #082b16;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(56, 193, 114, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   MENU 3: HD ENHANCER (WINK & REMINI HYBRID ENGINE)
   -------------------------------------------------------------------------- */
.hd-console {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 960px) {
  .hd-console {
    grid-template-columns: 1fr;
  }
}

/* Quota Token Vault */
.quota-meter-plate {
  background: #150c07;
  border: 2px solid #4a2c1a;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.9);
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tokens-cluster {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brass-token {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6cc 0%, #d4af37 50%, #7e5c15 100%);
  border: 2px solid #ffea8f;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.7),
    inset 0 2px 3px rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #3b2803;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.brass-token.used {
  background: radial-gradient(circle at 35% 35%, #3c2317 0%, #1e110a 70%, #0d0603 100%);
  border-color: #4b2a1a;
  color: #55331f;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.9);
  filter: grayscale(0.8);
}

.quota-status-text h4 {
  font-family: var(--font-vintage);
  font-size: 17px;
  color: #ffde9c;
  margin-bottom: 4px;
}

.quota-status-text p {
  font-size: 12px;
  color: #a88d77;
}

/* Locked Quota Warning Banner */
.quota-depleted-box {
  background: linear-gradient(180deg, #421616 0%, #280a0a 100%);
  border: 2px solid #842e2e;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  display: none;
  animation: shakeSpring 0.6s ease;
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.8),
    inset 0 1px 2px rgba(255,255,255,0.2);
}

.quota-depleted-box.active {
  display: flex;
  gap: 16px;
  align-items: center;
}

.quota-countdown-clock {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #ff7675;
  text-shadow: 0 0 12px rgba(255, 118, 117, 0.5);
  margin-top: 6px;
}

/* Quality Profile Selectors */
.quality-rack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.quality-card {
  background: #170d07;
  border: 2px solid #3d2315;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.quality-card:hover {
  border-color: #38a5d4;
  transform: translateY(-2px);
}

.quality-card.active {
  background: linear-gradient(180deg, #0f3448 0%, #081e2b 100%);
  border-color: #6ed1ff;
  box-shadow: 
    0 0 14px rgba(110, 209, 255, 0.4),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

.quality-card h4 {
  font-family: var(--font-vintage);
  font-size: 15px;
  color: #e0f3ff;
  margin-bottom: 4px;
}

.quality-card span {
  font-size: 11px;
  color: #7ab3cc;
}

/* Before / After Split Slider Instrument */
.split-slider-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  background: #140b07;
  border: 3px solid #57331c;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 45px rgba(0,0,0,0.9),
    inset 0 1px 2px rgba(255,255,255,0.25);
  user-select: none;
}

.split-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.split-layer.after-layer {
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #ffd670;
  box-shadow: 5px 0 15px rgba(0,0,0,0.5);
  z-index: 5;
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, #ffd670 0%, #b8860b 100%);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.split-handle-dial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b8b8b8 50%, #4a4a4a 100%);
  border: 2px solid #ffd670;
  box-shadow: 
    0 6px 14px rgba(0,0,0,0.8),
    inset 0 2px 3px rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #222;
}

.split-tag {
  position: absolute;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(18, 9, 5, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 6;
}

.tag-before { left: 14px; color: #ffbe76; }
.tag-after { right: 14px; color: #70a1ff; }

/* --------------------------------------------------------------------------
   PHYSICAL MERCURY GAUGE & PROGRESS BAR
   -------------------------------------------------------------------------- */
.gauge-tube {
  width: 100%;
  height: 24px;
  background: #110804;
  border: 2px solid #4a2c1a;
  border-radius: 12px;
  padding: 3px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}

.mercury-fluid {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #ff9f43 0%,
    #ee5253 45%,
    #b33939 100%
  );
  box-shadow: 
    0 0 10px rgba(238, 82, 83, 0.6),
    inset 0 1px 2px rgba(255,255,255,0.8);
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
}

.mercury-fluid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(255,255,255,0.2) 8px,
    rgba(255,255,255,0.2) 10px
  );
  animation: mercuryFlow 2s linear infinite;
}

@keyframes mercuryFlow {
  from { background-position: 0 0; }
  to { background-position: 20px 0; }
}

/* --------------------------------------------------------------------------
   SKEUOMORPHIC ANIMATIONS & PHYSICS
   -------------------------------------------------------------------------- */
@keyframes metalShimmer {
  0% { transform: translate(-100%, -100%) rotate(45deg); }
  30%, 100% { transform: translate(150%, 150%) rotate(45deg); }
}

@keyframes shakeSpring {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(10px) rotate(1deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.anim-shake {
  animation: shakeSpring 0.5s ease-in-out;
}

/* Analog Clock Spinner */
.analog-clock-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1b8, #b8860b 60%, #463406 100%);
  border: 3px solid #ffea8f;
  box-shadow: 
    0 6px 14px rgba(0,0,0,0.7),
    inset 0 2px 4px rgba(255,255,255,0.8);
  position: relative;
  display: inline-block;
}

.clock-hand-long {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 18px;
  background: #1e1104;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  animation: rotateHand 1.2s cubic-bezier(0.4, 0.1, 0.2, 1) infinite;
}

.clock-hand-short {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 12px;
  background: #c0392b;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(45deg);
  animation: rotateHand 6s linear infinite;
}

.clock-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #ffd670;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

@keyframes rotateHand {
  from { transform: translate(-50%, -100%) rotate(0deg); }
  to { transform: translate(-50%, -100%) rotate(360deg); }
}

/* Photo Dropping onto Desk Animation */
@keyframes photoDrop {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(1.15) rotate(6deg);
    box-shadow: 0 40px 60px rgba(0,0,0,0.9);
  }
  60% {
    transform: translateY(4px) scale(0.98) rotate(-1deg);
  }
  80% {
    transform: translateY(-2px) scale(1.01) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.65);
  }
}

.anim-photo-drop {
  animation: photoDrop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* Polaroid Development Fade-In */
@keyframes polaroidDevelop {
  0% {
    filter: brightness(2) contrast(0.4) saturate(0.2) sepia(0.6);
  }
  40% {
    filter: brightness(1.5) contrast(0.7) saturate(0.6) sepia(0.3);
  }
  100% {
    filter: brightness(1) contrast(1) saturate(1) sepia(0);
  }
}

.anim-develop {
  animation: polaroidDevelop 1.8s ease-out forwards;
}

/* Physical Mechanical Rocker Switch */
.rocker-switch {
  width: 58px;
  height: 30px;
  background: #110905;
  border-radius: 15px;
  border: 2px solid #4a2c1a;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: all 0.25s ease;
}

.rocker-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #bbb 50%, #666 100%);
  border: 1px solid #333;
  position: absolute;
  top: 2px;
  left: 3px;
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.8),
    inset 0 1px 2px rgba(255,255,255,0.9);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.rocker-switch.on {
  background: #1a4329;
  border-color: #2ecc71;
}

.rocker-switch.on .rocker-knob {
  transform: translateX(28px);
  background: radial-gradient(circle at 35% 35%, #eafff0, #2ecc71 50%, #15733b 100%);
}

/* Spring Notification Toast */
.skeuo-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(180deg, #3d2416 0%, #20110a 100%);
  border: 2px solid #704427;
  border-radius: 14px;
  padding: 16px 22px;
  color: #fff1dc;
  box-shadow: 
    0 16px 36px rgba(0,0,0,0.85),
    inset 0 1px 2px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(120px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skeuo-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #150c07;
  border: 1px solid #3c2213;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5c3720 0%, #3a2213 100%);
  border-radius: 5px;
  border: 1px solid #734529;
}

/* ==========================================================================
   PROFESSIONAL COLLAGE EDITOR - TOP TABS, 4-COL LAYOUT & BOTTOM DOCK
   ========================================================================== */

.collage-studio-panel {
  padding: 22px 20px 24px 20px;
}

/* TOP TAB NAVIGATION BAR */
.editor-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #331d10 0%, #1c0e07 100%);
  border: 2px solid #57331c;
  border-top-color: #7b4a2a;
  border-bottom-color: #0d0603;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.8),
    0 4px 10px rgba(0,0,0,0.6);
  gap: 12px;
}

.editor-tabs-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.editor-tab-btn {
  background: linear-gradient(180deg, #442a1b 0%, #29160c 100%);
  border: 1px solid #633e27;
  border-top-color: #8f5a3a;
  border-bottom-color: #0b0502;
  border-radius: 10px;
  color: #e5cdb4;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.25);
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.editor-tab-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: #ffd670;
}

.editor-tab-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
}

.editor-tab-btn.active {
  background: linear-gradient(180deg, #0e3d5a 0%, #072334 100%) !important;
  border: 1px solid #38a5d4 !important;
  border-top-color: #7ad1f5 !important;
  color: #e0f4ff !important;
  text-shadow: 0 0 8px rgba(56, 165, 212, 0.8);
  box-shadow: 
    0 0 12px rgba(56, 165, 212, 0.5),
    inset 0 1px 2px rgba(255,255,255,0.4) !important;
}

/* Checkmark Confirm Button */
.btn-confirm-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #79f79b 0%, #27ae60 55%, #145a32 100%);
  border: 2px solid #a3f7ba;
  box-shadow: 
    0 5px 12px rgba(0,0,0,0.7),
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.6);
  color: #062b14;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-confirm-check:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 8px 18px rgba(0,0,0,0.8),
    0 0 16px rgba(121, 247, 155, 0.7);
}

.btn-confirm-check:active {
  transform: scale(0.92);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.9);
}

/* SUB-DRAWER ACCORDION PANEL */
.editor-sub-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease, padding 0.38s ease;
  background: linear-gradient(180deg, #221208 0%, #150a05 100%);
  border: 2px solid #482815;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.9);
  padding: 0 18px;
}

.editor-sub-drawer.open {
  max-height: 480px;
  opacity: 1;
  padding: 18px;
  box-shadow: 
    inset 0 3px 8px rgba(0,0,0,0.9),
    0 10px 24px rgba(0,0,0,0.7);
}

.drawer-panel {
  display: none;
}

.drawer-panel.active {
  display: block;
  animation: drawerSlide 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.drawer-panel-header {
  font-family: var(--font-vintage);
  font-size: 13px;
  color: #ffd670;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #412615;
  padding-bottom: 8px;
}

/* RASIO OPTIONS */
.ratio-btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.ratio-btn {
  background: #180d07;
  border: 2px solid #3d2315;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  color: #d6beaa;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.ratio-btn:hover {
  transform: translateY(-2px);
  border-color: #38a5d4;
  color: #fff;
}

.ratio-btn.active {
  background: linear-gradient(180deg, #0e3449 0%, #071f2d 100%);
  border-color: #38a5d4;
  color: #e0f4ff;
  box-shadow: 
    0 0 12px rgba(56, 165, 212, 0.6),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

.ratio-shape {
  border: 2px dashed #7a5438;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}
.ratio-btn.active .ratio-shape {
  border-color: #38a5d4;
  background: rgba(56, 165, 212, 0.15);
}

.ratio-shape-custom { width: 30px; height: 30px; border-style: dotted; }
.ratio-shape-1-1 { width: 28px; height: 28px; }
.ratio-shape-4-5 { width: 24px; height: 30px; }
.ratio-shape-25x35mm { width: 22px; height: 32px; }
.ratio-shape-35x45mm { width: 25px; height: 32px; }
.ratio-shape-9-16 { width: 18px; height: 32px; }

.ratio-title { font-weight: 700; font-size: 13px; }
.ratio-desc { font-size: 10px; color: #9f836d; }
.ratio-btn.active .ratio-desc { color: #8dd7fa; }

/* 4-COLUMN SCROLLABLE VISUAL TEMPLATE GRID */
.layout-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
}

@media (max-width: 860px) {
  .layout-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .layout-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.layout-icon-card {
  background: #140b06;
  border: 2px solid #3c2213;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.layout-icon-card:hover {
  transform: translateY(-2px);
  border-color: #38a5d4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

/* BLUE ACTIVE HIGHLIGHT AS REQUESTED */
.layout-icon-card.active {
  border: 2px solid #38a5d4 !important;
  background: #0c2a3b !important;
  box-shadow: 
    0 0 14px rgba(56, 165, 212, 0.75),
    inset 0 1px 2px rgba(255,255,255,0.4) !important;
}

.layout-wireframe-box {
  width: 100%;
  height: 52px;
  background: #201108;
  border-radius: 8px;
  border: 1px solid #4a2b17;
  display: grid;
  gap: 3px;
  padding: 4px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.layout-icon-card.active .layout-wireframe-box {
  background: #081d29;
  border-color: #1f6488;
}

.wf-cell {
  background: linear-gradient(135deg, #5c3b24 0%, #3a2213 100%);
  border-radius: 3px;
  border: 1px solid #7a4e30;
}

.layout-icon-card.active .wf-cell {
  background: linear-gradient(135deg, #1f6b94 0%, #0c3e59 100%);
  border-color: #38a5d4;
}

.wf-polaroid {
  background: #f7f3e8;
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.layout-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #cdb29b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout-icon-card.active .layout-card-label {
  color: #e0f4ff;
  text-shadow: 0 0 6px rgba(56, 165, 212, 0.8);
}

/* TEPI & BORDER SLIDERS */
.border-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* BACKGROUND OPTIONS */
.bg-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.bg-swatch-card {
  background: #170d07;
  border: 2px solid #3d2315;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-swatch-card:hover {
  transform: translateY(-2px);
  border-color: #38a5d4;
}

.bg-swatch-card.active {
  border-color: #38a5d4;
  background: #0d2838;
  box-shadow: 0 0 10px rgba(56, 165, 212, 0.5);
}

.bg-swatch-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bg-swatch-card span {
  font-size: 12px;
  font-weight: 600;
  color: #dfc8b4;
}

/* CUSTOM MANUAL CONTROLS */
.custom-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: center;
}

.custom-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* MAIN COLLAGE DESK */
.canvas-workspace-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  overflow: hidden;
}

/* BOTTOM SKEUOMORPHIC DOCK */
.editor-bottom-dock {
  background: linear-gradient(180deg, #382113 0%, #201109 100%);
  border: 2px solid #57331c;
  border-top-color: #7b4a2b;
  border-bottom-color: #0c0603;
  border-radius: 14px;
  padding: 12px 18px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.25),
    0 8px 20px rgba(0,0,0,0.7);
}

.dock-buttons-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dock-buttons-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dock-btn {
  background: linear-gradient(180deg, #442a1b 0%, #29160c 100%);
  border: 1px solid #633e27;
  border-top-color: #8c5938;
  border-bottom-color: #0d0603;
  border-radius: 10px;
  color: #ebd4bd;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.2);
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.dock-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: #ffd670;
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}

.dock-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
}

.dock-action-btn {
  padding: 10px 18px !important;
}

/* RESPONSIVE SAFETY FOR MOBILE */
@media (max-width: 768px) {
  .skeuo-topbar {
    flex-direction: column;
    gap: 14px;
    padding: 16px 14px;
    text-align: center;
  }
  .brand-badge {
    flex-direction: column;
    gap: 8px;
  }
  .nav-rack {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .editor-bottom-dock {
    flex-direction: column;
    align-items: stretch;
  }
  .dock-buttons-left, .dock-buttons-right {
    justify-content: center;
  }
  .dock-btn, .dock-action-btn {
    flex: 1;
    justify-content: center;
  }
  .collage-board {
    width: 100% !important;
    max-width: 100% !important;
  }
}
