/* ==========================================================================
   DockDock — Minimalist Apple Design System
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Premium Warm Zinc / Charcoal Palette — feels like high-end hardware */
  --bg-app: #111110;
  --bg-workspace: #161614;
  --bg-sidebar: rgba(20, 20, 18, 0.90);
  --bg-card: rgba(26, 26, 24, 0.80);
  --bg-card-hover: rgba(34, 34, 31, 0.9);
  --bg-input: rgba(16, 16, 14, 0.75);
  --bg-pill: rgba(255, 255, 255, 0.07);
  --bg-pill-hover: rgba(255, 255, 255, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: #a8a29e;

  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-dim: #78716c;

  /* Accent — warm sand/stone, NOT electric blue */
  --accent-apple: #d4c5af;
  --accent-apple-hover: #c4b49f;
  --accent-blue: #3b82f6;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --radius-squircle: 22.37%;

  --header-height: 56px;
  --sidebar-width: 368px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
  user-select: none;
}

/* APP CONTAINER */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-app);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-nav {
  position: relative;
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgba(18, 18, 16, 0.88);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

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

/* CENTERED VIEW SWITCHER ISLAND */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}

.app-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4c5af 0%, #8c7e6c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111110;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.app-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* CENTER NAVIGATION: VIEW SWITCHER ISLAND PILL */
.view-switch-pill {
  display: flex;
  align-items: center;
  background: rgba(26, 26, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-full);
  padding: 3.5px;
  gap: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6.5px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 5.5px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

.view-switch-btn svg {
  opacity: 0.75;
  stroke-width: 2;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.view-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.view-switch-btn:hover svg {
  opacity: 1;
}

.view-switch-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.view-switch-btn.active svg {
  opacity: 1;
  color: #ffffff;
}

/* TOP RIGHT NAVIGATION: BACKDROP TRIGGER + PROFILES */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-right-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

/* RIGHT-ALIGNED BACKDROP TRIGGER */
.backdrop-nav-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.backdrop-nav-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-0.5px);
}

.active-backdrop-preview {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.backdrop-nav-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.backdrop-nav-trigger svg {
  color: var(--text-secondary);
}
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  outline: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wp-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.wp-swatch.active {
  box-shadow: 0 0 0 2px #ffffff;
  border-color: transparent;
  transform: scale(1.08);
}

.wp-swatch-bigsur {
  background: linear-gradient(135deg, #0b2e3b, #12505a, #c8905a);
}

.wp-swatch-sonoma {
  background: linear-gradient(135deg, #1a3520, #4a7040, #c8b060);
}

.wp-swatch-sequoia {
  background: linear-gradient(135deg, #0c2218, #2a6048, #4a8060);
}

.wp-swatch-midnight {
  background: radial-gradient(circle at 40% 35%, #262628 0%, #141416 100%);
}

.wp-swatch-catalina {
  background: linear-gradient(135deg, #09133a, #0e2060, #0a5890);
}

.wp-swatch-mojave {
  background: linear-gradient(135deg, #3a1a00, #c07828, #e09848);
}

.wp-swatch-custom {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-style: dashed;
}

.wp-swatch-custom:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* SEPARATELY HIGHLIGHTED PROFILE BADGES */
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.github-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf3;
}

.github-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.x-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.x-badge:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   WORKSPACE SPLIT LAYOUT
   ========================================================================== */
.workspace {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--bg-workspace);
}

/* STUDIO CANVAS (ATMOSPHERIC, CLEAN STAGE) */
.studio-canvas {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 52px;
  overflow: hidden;
  /* Warm charcoal with very subtle radial warmth from center */
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(70, 60, 50, 0.18) 0%, #161614 65%, #111110 100%);
}

/* DROPZONE OVERLAY */
.canvas-dropzone {
  position: absolute;
  inset: 16px;
  border: 2px dashed var(--accent-apple);
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.canvas-dropzone.dragover {
  opacity: 1;
  pointer-events: auto;
}

.dropzone-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 20px 32px;
  background: rgba(18, 22, 34, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* MACOS DESKTOP DISPLAY SCREEN (LARGE, CRISP, NEVER COLLAPSED) */
.macos-screen {
  position: relative;
  width: 1040px;
  max-width: calc(100vw - var(--sidebar-width) - 60px);
  height: 650px;
  max-height: calc(100vh - 100px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
  flex-shrink: 0;
}

#bare-screen-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   DEVICE FRAME SYSTEM (SILVER MACBOOK PRO & SILVER IMAC CHASSIS)
   ========================================================================== */
.device-frame-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  background: rgba(24, 24, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.device-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.device-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Screen frame wrapper base */
.screen-frame-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HARDWARE: SILVER MACBOOK PRO MOCKUP (LARGE & HIGH FIDELITY) --- */
.device-shell-macbook {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.85));
}

.screen-frame-wrap.mode-macbook .device-shell-macbook {
  display: flex;
}

.screen-frame-wrap.mode-macbook #bare-screen-slot,
.screen-frame-wrap.mode-macbook .device-shell-imac {
  display: none;
}

.mb-lid {
  position: relative;
  /* Authentic Silver Aluminum Display Housing */
  background: linear-gradient(180deg, #f8f8f6 0%, #dedede 15%, #c2c2bd 85%, #adada8 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px 20px 0 0;
  padding: 10px 10px 4px 10px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mb-camera-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 22px;
  background: #000000;
  border-radius: 0 0 10px 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.mb-camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d3748 0%, #000000 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 3px #000;
}

.mb-camera-indicator {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.95;
  box-shadow: 0 0 7px #10b981;
}

.mb-screen-housing {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.95);
}

.screen-frame-wrap.mode-macbook .macos-screen {
  width: 960px;
  height: 600px;
  max-width: calc(100vw - var(--sidebar-width) - 90px);
  max-height: calc(100vh - 150px);
  border-radius: 4px;
}

.screen-frame-wrap.mode-imac .macos-screen {
  width: 960px;
  height: 600px;
  max-width: calc(100vw - var(--sidebar-width) - 90px);
  max-height: calc(100vh - 220px);
  border-radius: 4px;
}

.mb-base-deck {
  position: relative;
  width: calc(100% + 72px);
  height: 24px;
  /* Authentic Silver Unibody Keyboard Lower Deck */
  background: linear-gradient(180deg, #ffffff 0%, #ecece9 20%, #d2d2cd 60%, #b8b8b3 100%);
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mb-notch-scoop {
  width: 96px;
  height: 7px;
  background: #1c1c1a;
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* --- HARDWARE: SILVER IMAC / STUDIO DISPLAY MOCKUP --- */
.device-shell-imac {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.85));
}

.screen-frame-wrap.mode-imac .device-shell-imac {
  display: flex;
}

.screen-frame-wrap.mode-imac #bare-screen-slot,
.screen-frame-wrap.mode-imac .device-shell-macbook {
  display: none;
}

.imac-enclosure {
  position: relative;
  /* Silver Apple Studio / iMac Chassis */
  background: linear-gradient(170deg, #ffffff 0%, #e2e2df 20%, #cbcbc7 70%, #b5b5b0 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 14px 10px 0 10px;
  box-shadow: 0 35px 95px -10px rgba(0, 0, 0, 0.95),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imac-camera-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d3748 0%, #000000 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.imac-screen-housing {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85);
}

.imac-chin-bar {
  width: 100%;
  height: 54px;
  /* Brushed Silver Chin with Apple Logo */
  background: linear-gradient(180deg, #f8f8f6 0%, #e2e2de 35%, #cdcdc8 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.imac-apple-logo {
  font-size: 20px;
  color: #1a1a18;
  opacity: 0.65;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

.imac-stand-neck {
  width: 110px;
  height: 60px;
  background: linear-gradient(90deg, #969692 0%, #f0f0ed 40%, #c4c4bf 70%, #888884 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35);
  clip-path: polygon(14% 0%, 86% 0%, 100% 100%, 0% 100%);
}

.imac-stand-foot {
  width: 250px;
  height: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d4 30%, #bebeb9 70%, #9e9e9a 100%);
  border-radius: 5px 5px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   VIBRANT STUDIO GRADIENTS & 5K APPLE MACOS WALLPAPER ARCHIVE
   ========================================================================== */

/* Vibrant Studio Gradients */
.wp-ss-sunset {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 40%, #ff8008 75%, #ffc837 100%);
}
.wp-ss-cyberpunk {
  background: linear-gradient(135deg, #1f005c 0%, #5b0060 25%, #870160 50%, #ac255e 75%, #e16b5c 100%);
}
.wp-ss-emerald {
  background: linear-gradient(135deg, #093028 0%, #155745 45%, #237a57 80%, #38ef7d 100%);
}
.wp-ss-supernova {
  background: linear-gradient(135deg, #41295a 0%, #2f0743 45%, #c33764 80%, #1d2671 100%);
}
.wp-ss-velvet {
  background: linear-gradient(135deg, #141e30 0%, #243b55 50%, #4b6cb7 100%);
}
.wp-ss-midnight {
  background: radial-gradient(circle at 45% 40%, #22242b 0%, #111215 65%, #08080a 100%);
}
.wp-ss-ocean {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
.wp-ss-cotton {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 55%, #fad0c4 100%);
}
.wp-ss-cosmic {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}
.wp-ss-warm {
  background: linear-gradient(135deg, #1e130c 0%, #3a2215 35%, #7a4622 75%, #d49a6a 100%);
}
.wp-ss-obsidian {
  background: radial-gradient(ellipse at 50% 30%, #1c1c20 0%, #0d0d0f 70%, #050506 100%);
}

/* Modern Apple macOS Wallpapers */
.wp-sequoia-mist {
  background: linear-gradient(140deg, #0d231a 0%, #1d4837 35%, #3b775c 65%, #e0a96d 100%);
}
.wp-sequoia-dusk {
  background: linear-gradient(145deg, #1a1024 0%, #3a1c38 35%, #a84838 70%, #f59e0b 100%);
}
.wp-sonoma-horizon {
  background: linear-gradient(150deg, #1a3224 0%, #2d583c 30%, #5a8f52 60%, #d4bc62 85%, #9a6020 100%);
}
.wp-sonoma-dusk {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 35%, #3b4b60 70%, #8a6040 100%);
}
.wp-ventura-orange {
  background: linear-gradient(150deg, #1c1917 0%, #7c2d12 30%, #ea580c 60%, #f97316 85%, #fbbf24 100%);
}
.wp-ventura-dusk {
  background: linear-gradient(155deg, #18181b 0%, #3f3f46 35%, #831843 70%, #be123c 100%);
}
.wp-monterey-graphic {
  background: linear-gradient(140deg, #1e1b4b 0%, #4338ca 35%, #7c3aed 60%, #db2777 85%, #f43f5e 100%);
}
.wp-monterey-dark {
  background: linear-gradient(150deg, #09090b 0%, #1e1b4b 40%, #312e81 70%, #4c1d95 100%);
}
.wp-bigsur-coast {
  background: linear-gradient(160deg, #0b2e3b 0%, #12505a 25%, #1a6a5a 45%, #c8905a 72%, #b06030 100%);
}
.wp-bigsur-night {
  background: linear-gradient(160deg, #030712 0%, #0c192c 35%, #162d4a 70%, #1e3a5f 100%);
}

/* Classic macOS Wallpaper Archive */
.wp-catalina-island {
  background: linear-gradient(155deg, #09133a 0%, #0e2060 30%, #0c3880 55%, #0a5890 80%, #062040 100%);
}
.wp-mojave-dunes {
  background: linear-gradient(145deg, #1a0a00 0%, #3a1a00 25%, #6a3810 45%, #c07828 70%, #e09848 100%);
}
.wp-mojave-night {
  background: linear-gradient(150deg, #050814 0%, #0c1228 35%, #152042 70%, #1a2850 100%);
}
.wp-solar-gradient {
  background: linear-gradient(160deg, #0a0f24 0%, #1e1035 30%, #3b1d60 55%, #7e22ce 75%, #d946ef 100%);
}
.wp-high-sierra {
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 30%, #334155 55%, #64748b 80%, #94a3b8 100%);
}
.wp-sierra-alpenglow {
  background: linear-gradient(150deg, #18181b 0%, #3b1d28 35%, #831843 70%, #f472b6 100%);
}
.wp-el-capitan {
  background: linear-gradient(155deg, #101924 0%, #1e334a 35%, #466882 70%, #90a8be 100%);
}
.wp-yosemite {
  background: linear-gradient(150deg, #1b2030 0%, #3a4b6b 40%, #c48b62 75%, #f4a261 100%);
}
.wp-mavericks {
  background: linear-gradient(155deg, #021b2b 0%, #05445e 40%, #189ab4 75%, #75e6da 100%);
}
.wp-mountain-lion {
  background: linear-gradient(160deg, #050614 0%, #141838 45%, #2a2050 75%, #563d82 100%);
}
.wp-lion {
  background: linear-gradient(160deg, #03030d 0%, #0d122b 40%, #1c234a 70%, #39487c 100%);
}
.wp-snow-leopard {
  background: linear-gradient(160deg, #050d24 0%, #0e244d 35%, #1d4b8f 70%, #7da9db 100%);
}
.wp-leopard {
  background: linear-gradient(160deg, #08031d 0%, #1d0f47 35%, #451b75 70%, #853fa8 100%);
}
.wp-tiger {
  background: linear-gradient(145deg, #021e42 0%, #044289 40%, #0b72c4 75%, #42a5f5 100%);
}
.wp-panther {
  background: linear-gradient(150deg, #031b38 0%, #083b70 45%, #1462a8 80%, #2980b9 100%);
}
.wp-cheetah {
  background: linear-gradient(150deg, #081d3a 0%, #0f3d6c 50%, #20639b 100%);
}

/* TOP STATUS MENU BAR */
.screen-menu-bar {
  height: 28px;
  min-height: 28px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 13px;
  color: #ffffff;
  z-index: 40;
  user-select: none;
}

.menu-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.apple-glyph {
  font-size: 15px;
  opacity: 0.95;
  cursor: default;
}

.menu-app-title {
  font-weight: 700;
}

.menu-text {
  opacity: 0.85;
  font-size: 12.5px;
}

.menu-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  opacity: 0.9;
}

.status-symbol {
  font-size: 12px;
}

.status-time {
  font-weight: 500;
}

/* SCREEN CONTENT & PANES */
.screen-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transition: opacity 0.2s ease;
}

.screen-pane.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   RIGHT SIDEBAR PANEL (DOMINATED BY ICONS & OPTIONS)
   ========================================================================== */
.sidebar-panel {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-sidebar);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 22px 20px;
  gap: 20px;
  z-index: 50;
}

.sidebar-panel::-webkit-scrollbar {
  width: 5px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* COMPACT APP TITLE HEADER */
.sidebar-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

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

.app-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-name-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  width: 85px;
  transition: border-color 0.15s ease;
}

.app-name-input:focus {
  border-color: var(--accent-apple);
  box-shadow: 0 0 0 1px var(--accent-apple);
}

.dock-pos-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.dock-pos-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
}

.dock-pos-btn:hover {
  color: #ffffff;
}

.dock-pos-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
}

.btn-bounce-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-bounce-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* SIDEBAR CARD (FROSTED GLASS) */
.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease;
}

.sidebar-card:hover {
  border-color: var(--border-hover);
}

.hero-options-card {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-header-text {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1.45;
}

.add-option-btn.primary-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.add-option-btn.primary-add:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* DYNAMIC CANDIDATE OPTIONS LIST */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.option-card-row:hover {
  border-color: var(--border-hover);
  background: rgba(30, 36, 52, 0.7);
}

.option-card-row.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px #3b82f6, 0 8px 24px -4px rgba(59, 130, 246, 0.35);
}

.option-thumb-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #1b2132;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

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

.option-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity 0.15s ease;
}

.option-thumb-wrap:hover .option-thumb-overlay {
  opacity: 1;
}

.option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.option-name-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-name-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.option-name-input:focus {
  border-color: var(--accent-apple);
  background: rgba(0, 0, 0, 0.4);
}

.option-tag-text {
  font-size: 11px;
  color: var(--text-dim);
  padding-left: 6px;
}

.option-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-select-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.option-select-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.option-card-row.is-active .option-select-btn {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

.option-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s ease;
}

.option-delete-btn:hover {
  color: #ff453a;
}

/* TOGGLES */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-toggle-row {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* APPLE SWITCH */
.mac-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.mac-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mac-switch input:checked + .switch-slider {
  background-color: var(--accent-apple);
}

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

/* ==========================================================================
   EXPORT COMPANION (3-TAB STRUCTURE + LIVE MINI PREVIEW + ACTIONS)
   ========================================================================== */
.export-companion-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 3-Tab Segmented Control */
.export-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(14, 14, 12, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
}

.export-tab-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.export-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.export-tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Live Interactive Mini Preview Card */
.export-preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-preview-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

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

.export-preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 5px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.export-preview-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.export-preview-viewport:hover .export-preview-overlay-btn {
  opacity: 1;
}

.export-template-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
  padding: 0 2px;
}

/* Action Buttons */
.export-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--text-primary);
  color: #111110;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #ededec;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* SIDEBAR FOOTER */
.sidebar-legal {
  margin-top: auto;
  padding-top: 10px;
}

.sidebar-legal p {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 24, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   SPLIT-SCREEN WALLPAPER BACKDROP MODAL WITH LIVE DESKTOP PREVIEW
   ========================================================================== */
.backdrop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 7, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.backdrop-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.backdrop-modal-dialog {
  width: 1100px;
  max-width: 96vw;
  height: 680px;
  max-height: 92vh;
  background: #141412;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.backdrop-modal-backdrop.open .backdrop-modal-dialog {
  transform: scale(1);
}

.backdrop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.backdrop-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.backdrop-modal-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Split Body (Left Live Stage Preview + Right Selector) */
.backdrop-modal-split-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Panel: Live Desktop Stage Preview */
.backdrop-left-panel {
  width: 520px;
  min-width: 520px;
  background: #0d0d0c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.live-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.live-stage-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.live-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.live-stage-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

/* Miniature Live macOS Desktop (Crisp Rounded Corners & Zero Bleed) */
.modal-live-desktop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  transition: background-image 0.25s ease;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
}

.modal-live-menubar {
  height: 20px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9.5px;
  color: #ffffff;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.modal-live-content {
  flex: 1;
  position: relative;
}

.modal-live-dock-wrap {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.modal-live-dock {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal-dock-icon {
  width: 22px;
  height: 22px;
  border-radius: 22.37%;
  object-fit: cover;
}

.modal-dock-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

.modal-live-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.modal-live-actions .btn-primary {
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* Right Panel: Upload + Category Pills + Grid (No Ugly Scrollbars) */
.backdrop-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.backdrop-selector-header {
  padding: 16px 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.upload-custom-compact-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-custom-compact-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.backdrop-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.backdrop-cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.backdrop-cat-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

/* Gallery Grid (Smooth, Zero Scrollbar Track) */
.backdrop-gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.backdrop-gallery-grid::-webkit-scrollbar {
  display: none;
}

.wp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wp-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1.5px);
}

.wp-card.is-active {
  border-color: var(--accent-apple);
  background: rgba(212, 197, 175, 0.12);
  box-shadow: 0 0 0 1.5px var(--accent-apple);
}

.wp-card-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.wp-card-active-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #111110;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.wp-card.is-active .wp-card-active-check {
  display: flex;
}

.wp-card-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}
  display: flex;
  justify-content: center;
}

.modal-live-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.modal-dock-icon {
  width: 26px;
  height: 26px;
  border-radius: 22.37%;
  object-fit: cover;
  display: block;
}

.modal-dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
}

.modal-live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}

.wp-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

/* Custom Upload Zone */
.backdrop-custom-upload-zone {
  padding: 12px 24px 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.upload-drop-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary);
}

.upload-drop-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.upload-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-drop-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-drop-text span {
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   EXPORT FULL-SIZE PREVIEW MODAL
   ========================================================================== */
.export-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 7, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.export-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.export-modal-dialog {
  width: 960px;
  max-width: 95vw;
  max-height: 94vh;
  background: #151513;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.export-modal-backdrop.open .export-modal-dialog {
  transform: scale(1);
}

.export-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.export-modal-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.export-modal-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.export-modal-body {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0c;
  overflow: hidden;
}

.export-canvas-frame {
  width: 100%;
  max-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-preview-canvas {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.export-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(18, 18, 16, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

