/**
 * Algorizms 3D Logo Studio™ & WebGL Motion Lab
 * Design System: Marcelo Design X (Dark Luxury & Cybernetic HUD)
 */

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

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

:root {
  --studio-bg: #05070C;
  --studio-surface: #0A0F1A;
  --studio-surface-alt: #0D1524;
  --studio-panel: rgba(13, 21, 36, 0.72);
  --studio-panel-border: rgba(56, 189, 248, 0.16);
  --studio-panel-border-hover: rgba(56, 189, 248, 0.42);
  --studio-gold: #FCD34D;
  --studio-gold-glow: rgba(252, 211, 77, 0.28);
  --studio-cyan: #38BDF8;
  --studio-cyan-glow: rgba(56, 189, 248, 0.32);
  --studio-purple: #C084FC;
  --studio-purple-glow: rgba(192, 132, 252, 0.28);
  --studio-text: #FAF8F4;
  --studio-text-muted: #94A3B8;
  --studio-text-dim: #64748B;
  --studio-focus: #38BDF8;
  --studio-line: rgba(255, 255, 255, 0.08);
  --studio-radius-sm: 8px;
  --studio-radius-md: 12px;
  --studio-radius-lg: 18px;
  --studio-radius-xl: 24px;
  --studio-font-mono: 'Space Grotesk', 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #111C30 0%, #060911 50%, #030508 100%);
  color: var(--studio-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting & Grids */
.studio-ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(192, 132, 252, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(252, 211, 77, 0.03) 0%, transparent 50%);
}

.studio-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

.studio-app-container {
  position: relative;
  z-index: 1;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   00.0 // EXECUTIVE SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(9, 14, 25, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-mini {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FAF8F4;
  background: linear-gradient(135deg, #FAF8F4 0%, #38BDF8 60%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 9px;
  color: var(--studio-text-dim);
  font-family: var(--studio-font-mono);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--studio-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.nav-link.active {
  color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  border-color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.1);
}

.lang-badge-segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--studio-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.pill-lang {
  color: var(--studio-text-dim);
  transition: color 0.15s ease;
}

.pill-lang.active {
  color: var(--studio-cyan);
}

.pill-divider {
  color: var(--studio-text-dim);
  opacity: 0.4;
}

/* ==========================================================================
   00 // EXECUTIVE UPPER COMMAND BAR (TELEMETRY & VIEWPORT CONTROLLER)
   ========================================================================== */
.studio-cmd-bar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-lg);
  background: rgba(9, 14, 25, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.studio-cmd-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-cmd-monogram {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.studio-cmd-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.4));
}

.studio-cmd-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--studio-text);
}

.studio-cmd-badge {
  font-family: var(--studio-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

.studio-cmd-sep {
  width: 1px;
  height: 22px;
  background: var(--studio-line);
}

.studio-telemetry-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  font-family: var(--studio-font-mono);
  font-size: 10px;
}

.studio-fps-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #10B981;
}

.studio-fps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: fpsPulse 2s ease-in-out infinite;
}

@keyframes fpsPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.studio-telemetry-item {
  color: var(--studio-text-muted);
}

.studio-telemetry-val {
  color: var(--studio-text);
  font-weight: 600;
}

/* Center Pipeline Switcher */
.studio-cmd-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 8, 15, 0.6);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--studio-line);
}

.studio-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--studio-text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.studio-mode-btn:hover {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.04);
}

.studio-mode-btn.active {
  color: #05070C;
  background: var(--studio-cyan);
  border-color: var(--studio-cyan);
  box-shadow: 0 0 14px var(--studio-cyan-glow);
}

.studio-cmd-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-cmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--studio-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-cmd:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn-export-cmd {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.2), rgba(252, 211, 77, 0.08));
  border-color: rgba(252, 211, 77, 0.45);
  color: var(--studio-gold);
  font-weight: 700;
}

.btn-export-cmd:hover {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.35), rgba(252, 211, 77, 0.15));
  border-color: var(--studio-gold);
  box-shadow: 0 0 18px var(--studio-gold-glow);
}

.lang-toggle-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--studio-line);
  cursor: pointer;
  font-family: var(--studio-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-text-muted);
}

.lang-toggle-btn .pill-lang.active {
  color: var(--studio-cyan);
}

/* ==========================================================================
   01 // BENTO WORKSPACE LAYOUT (3-PANE COCKPIT)
   ========================================================================== */
.studio-cockpit {
  display: grid;
  grid-template-columns: 330px minmax(500px, 1fr) 340px;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 750px;
  margin-bottom: 24px;
  transition: grid-template-columns 0.3s cubic-bezier(0.16, 1, 0.3, 1), gap 0.3s ease;
}

/* Branded Focus Modes */
.studio-cockpit.focus-zen {
  grid-template-columns: 0px 1fr 0px;
  gap: 0px;
}
.studio-cockpit.focus-zen .studio-rail-left,
.studio-cockpit.focus-zen .studio-rail-right {
  display: none !important;
}

.studio-cockpit.focus-lockup {
  grid-template-columns: 380px 1fr 0px;
  gap: 12px;
}
.studio-cockpit.focus-lockup .studio-rail-right {
  display: none !important;
}

.studio-cockpit.focus-geometry {
  grid-template-columns: 380px 1fr 0px;
  gap: 12px;
}
.studio-cockpit.focus-geometry .studio-rail-right {
  display: none !important;
}
.studio-cockpit.focus-geometry #card-geometry {
  border-color: var(--studio-gold);
  box-shadow: 0 0 24px var(--studio-gold-glow);
}

.studio-cockpit.focus-materials {
  grid-template-columns: 0px 1fr 380px;
  gap: 12px;
}
.studio-cockpit.focus-materials .studio-rail-left {
  display: none !important;
}

.studio-cockpit.focus-lighting {
  grid-template-columns: 0px 1fr 380px;
  gap: 12px;
}
.studio-cockpit.focus-lighting .studio-rail-left {
  display: none !important;
}

.studio-cockpit.focus-staging,
.studio-cockpit.focus-motion {
  grid-template-columns: 0px 1fr 380px;
  gap: 12px;
}
.studio-cockpit.focus-staging .studio-rail-left,
.studio-cockpit.focus-motion .studio-rail-left {
  display: none !important;
}

.studio-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.studio-card {
  background: var(--studio-panel);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

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

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--studio-line);
}

.card-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--studio-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge {
  font-family: var(--studio-font-mono);
  font-size: 9px;
  color: var(--studio-text-dim);
}

/* Forms & Controls */
.control-group {
  margin-bottom: 12px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.control-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-text-muted);
}

.control-output {
  font-family: var(--studio-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-cyan);
}

.studio-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--studio-cyan);
}

.studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--studio-cyan);
  box-shadow: 0 0 10px var(--studio-cyan-glow);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.studio-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.studio-select, .studio-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--studio-surface-alt);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-sm);
  color: var(--studio-text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.studio-select:focus, .studio-input:focus {
  border-color: var(--studio-cyan);
  box-shadow: 0 0 10px var(--studio-cyan-glow);
}

/* Ingestion Source Tabs Content */
.source-tab-content {
  display: none;
}

.source-tab-content.active {
  display: block;
}

/* Preset Logo Grid */
.preset-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.preset-logo-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.preset-logo-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.preset-logo-card.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--studio-cyan);
  box-shadow: inset 2px 0 0 var(--studio-cyan);
}

.preset-logo-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 3px;
}

.preset-logo-info strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-text);
  line-height: 1.2;
}

.preset-logo-info small {
  display: block;
  font-size: 8px;
  color: var(--studio-text-dim);
  margin-top: 1px;
}

/* Text Generator Input */
.text-gen-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-preview-tag {
  font-size: 9px;
  color: var(--studio-text-dim);
  text-align: right;
  font-family: var(--studio-font-mono);
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--studio-radius-md);
  padding: 24px 16px;
  text-align: center;
  background: rgba(56, 189, 248, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.dropzone-icon {
  font-size: 24px;
  color: var(--studio-cyan);
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-text);
}

.dropzone-hint {
  font-size: 9px;
  color: var(--studio-text-dim);
  margin-top: 4px;
}

/* Material Lab Grid */
.material-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  cursor: pointer;
  color: var(--studio-text);
  text-align: left;
  transition: all 0.2s ease;
}

.mat-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.mat-btn.active {
  border-color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 2px 0 0 var(--studio-cyan);
}

.mat-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-gold { background: radial-gradient(circle at 35% 35%, #FFF0A8, #E5A812); }
.swatch-obsidian { background: radial-gradient(circle at 35% 35%, #25334D, #05080E); border-color: #38BDF8; }
.swatch-chrome { background: radial-gradient(circle at 35% 35%, #FFFFFF, #8899AA); }
.swatch-neon { background: radial-gradient(circle at 35% 35%, #38BDF8, #C084FC); box-shadow: 0 0 8px #38BDF8; }
.swatch-glass { background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); }
.swatch-original { background: linear-gradient(135deg, #FCD34D, #38BDF8, #C084FC); }

.mat-info strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.mat-info small {
  display: block;
  font-size: 8px;
  color: var(--studio-text-dim);
}

/* Color Pickers */
.color-picker-row {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.studio-color-input {
  width: 50px;
  height: 32px;
  padding: 2px;
  background: var(--studio-surface-alt);
  border: 1px solid var(--studio-panel-border);
  border-radius: 6px;
  cursor: pointer;
}

/* Motion Lab Controls */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.motion-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  cursor: pointer;
  color: var(--studio-text);
  text-align: left;
  transition: all 0.2s ease;
}

.motion-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.motion-btn.active {
  border-color: var(--studio-gold);
  background: rgba(252, 211, 77, 0.14);
  box-shadow: inset 2px 0 0 var(--studio-gold);
}

.motion-btn strong {
  font-size: 10px;
  font-weight: 700;
}

.motion-btn small {
  font-size: 8px;
  color: var(--studio-text-dim);
}

/* AI Prompt-to-Motion Box */
.motion-prompt-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(252, 211, 77, 0.2);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.motion-prompt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.motion-ai-sparkle {
  font-size: 12px;
}

.motion-prompt-label strong {
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-gold);
  letter-spacing: 0.04em;
}

.motion-ai-pill {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(252, 211, 77, 0.15);
  color: var(--studio-gold);
  margin-left: auto;
}

.motion-prompt-row {
  display: flex;
  gap: 6px;
}

.motion-prompt-row input {
  font-size: 11px;
  padding: 7px 10px;
}

.btn-motion-ai {
  padding: 0 12px;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: #05070c;
  font-size: 10px;
  font-weight: 800;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-motion-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.4);
}

.motion-prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.motion-prompt-tag {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--studio-line);
  color: var(--studio-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.motion-prompt-tag:hover {
  background: rgba(252, 211, 77, 0.12);
  border-color: var(--studio-gold);
  color: var(--studio-gold);
}

.btn-cloud-motion {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 8px;
  color: var(--studio-purple);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cloud-motion:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--studio-purple);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.3);
}

/* ==========================================================================
   02 // CENTER THREE.JS WEBGL VIEWPORT & HUD
   ========================================================================== */
.studio-center-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-xl);
  background: radial-gradient(circle at 50% 30%, #0F1A2D 0%, #080D17 60%, #04060A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.webgl-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 540px;
  cursor: grab;
}

.webgl-canvas-wrap:active {
  cursor: grabbing;
}

#webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Branded Viewport Focus Dock */
.viewport-focus-dock {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(9, 14, 25, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.focus-dock-label {
  font-family: var(--studio-font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--studio-text-dim);
  padding: 0 4px 0 6px;
  text-transform: uppercase;
}

.dock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--studio-text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dock-toggle-btn:hover {
  color: var(--studio-text);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.dock-toggle-btn.active {
  color: #FAF8F4;
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--studio-cyan);
  box-shadow: 0 0 14px var(--studio-cyan-glow);
}

.btn-zen-pill.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.dot-brand {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-cyan { background: var(--studio-cyan); box-shadow: 0 0 6px var(--studio-cyan); }
.dot-purple { background: var(--studio-purple); box-shadow: 0 0 6px var(--studio-purple); }
.dot-gold { background: var(--studio-gold); box-shadow: 0 0 6px var(--studio-gold); }
.dot-green { background: #10B981; box-shadow: 0 0 6px #10B981; }

/* Viewport Floating Top Toolbar */
.viewport-floating-toolbar {
  position: absolute;
  top: 56px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.vp-tool-btn {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--studio-text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vp-tool-btn:hover {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.06);
}

.vp-tool-btn.active {
  color: var(--studio-cyan);
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Camera Angle Quick Switchers */
.viewport-camera-dock {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.vp-cam-btn {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--studio-text-muted);
  font-family: var(--studio-font-mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vp-cam-btn:hover {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.06);
}

/* Bottom Telemetry HUD Overlay */
.viewport-telemetry-hud {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.hud-left {
  background: rgba(5, 9, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}

.hud-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--studio-text);
}

.hud-sub {
  margin: 2px 0 0;
  font-size: 9px;
  color: var(--studio-text-muted);
}

.hud-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.hud-tag {
  background: rgba(5, 9, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--studio-font-mono);
  font-size: 9px;
  color: var(--studio-cyan);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   03 // EXPORT CENTER MODAL
   ========================================================================== */
.studio-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.studio-modal-card {
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(145deg, #10192A, #080E18);
  border: 1px solid var(--studio-panel-border-hover);
  border-radius: var(--studio-radius-xl);
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-eyebrow {
  margin: 0 0 6px;
  font-family: var(--studio-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-h2 {
  margin: 0;
  font-size: 24px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--studio-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--studio-text-muted);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--studio-text);
}

.export-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.export-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.export-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.export-card-top h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--studio-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.export-ext-pill {
  font-family: var(--studio-font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--studio-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.export-card-desc {
  margin: 0;
  font-size: 10px;
  color: var(--studio-text-muted);
  line-height: 1.45;
}

.btn-download-action {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #E0F2FE;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-download-action:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--studio-cyan);
  box-shadow: 0 0 14px var(--studio-cyan-glow);
  transform: translateY(-1px);
}

.export-modal-notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(252, 211, 77, 0.06);
  border: 1px solid rgba(252, 211, 77, 0.22);
  font-size: 10px;
  color: #D4AF37;
  line-height: 1.5;
}

/* ==========================================================================
   03.5 // RIZ TOKENOMICS, 176+ FONTS & RUNPOD CLOUD AI SUITE
   ========================================================================== */

/* Header RiZ Badge */
.header-riz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.35);
  color: var(--studio-gold);
  font-family: var(--studio-font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-riz-badge:hover {
  background: rgba(252, 211, 77, 0.18);
  border-color: var(--studio-gold);
  box-shadow: 0 0 16px var(--studio-gold-glow);
  transform: translateY(-1px);
}

.riz-spark {
  color: var(--studio-gold);
  font-size: 13px;
  animation: pulse-spark 2s infinite ease-in-out;
}

@keyframes pulse-spark {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.riz-usd-pill {
  font-size: 10px;
  color: var(--studio-text-muted);
  font-weight: 500;
}

/* Command Bar AI Cloud Button */
.btn-runpod-cmd {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22) 0%, rgba(56, 189, 248, 0.22) 100%) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  color: #FAF8F4 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.2);
}

.btn-runpod-cmd:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.38) 0%, rgba(56, 189, 248, 0.38) 100%) !important;
  border-color: var(--studio-purple) !important;
  box-shadow: 0 0 20px var(--studio-purple-glow);
}

.runpod-gpu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  margin-inline-end: 2px;
}

/* 176+ Fonts Search & Category System */
.font-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.font-count-tag {
  font-size: 9px;
  font-family: var(--studio-font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--studio-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.font-search-wrap {
  margin-bottom: 6px;
}

.studio-search-input {
  width: 100%;
  background: rgba(5, 7, 12, 0.8);
  border: 1px solid var(--studio-panel-border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--studio-text);
  font-size: 11px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.studio-search-input:focus {
  outline: none;
  border-color: var(--studio-cyan);
  box-shadow: 0 0 10px var(--studio-cyan-glow);
}

.font-cat-pills {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.font-cat-pills::-webkit-scrollbar {
  display: none;
}

.font-cat-pill {
  white-space: nowrap;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--studio-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.font-cat-pill:hover, .font-cat-pill.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--studio-text);
}

.font-catalog-dropdown {
  max-height: 180px;
  overflow-y: auto;
  background: rgba(6, 10, 18, 0.95);
  border: 1px solid var(--studio-panel-border);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.font-catalog-dropdown::-webkit-scrollbar {
  width: 5px;
}

.font-catalog-dropdown::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}

.font-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: start;
}

.font-item:hover, .font-item.active {
  background: rgba(56, 189, 248, 0.12);
}

.font-item.active {
  border-inline-start: 2px solid var(--studio-cyan);
}

.font-item-names {
  display: flex;
  flex-direction: column;
}

.font-item-primary {
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-text);
}

.font-item-secondary {
  font-size: 9px;
  color: var(--studio-text-dim);
}

.font-item-cat {
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--studio-text-dim);
}

.active-font-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  margin-bottom: 8px;
}

.active-font-left strong {
  display: block;
  font-size: 12px;
  color: var(--studio-text);
}

.active-font-left span {
  font-size: 9px;
  color: var(--studio-cyan);
}

.active-font-cat {
  font-size: 9px;
  font-family: var(--studio-font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--studio-cyan);
}

/* Custom Font File Upload Dropzone */
.custom-font-dropzone {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed rgba(192, 132, 252, 0.35);
  border-radius: 10px;
  background: rgba(192, 132, 252, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-font-dropzone:hover {
  background: rgba(192, 132, 252, 0.08);
  border-color: var(--studio-purple);
  box-shadow: 0 0 12px var(--studio-purple-glow);
}

.custom-font-drop-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-upload-icon {
  font-size: 18px;
}

.font-upload-text strong {
  display: block;
  font-size: 11px;
  color: #FAF8F4;
}

.font-upload-text small {
  font-size: 9px;
  color: var(--studio-text-muted);
}

.uploaded-font-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 10px;
  color: #34D399;
}

.btn-clear-font {
  background: transparent;
  border: none;
  color: var(--studio-text-dim);
  cursor: pointer;
  font-size: 11px;
}

.btn-clear-font:hover {
  color: #EF4444;
}

/* Sidebar RiZ Compute Summary Card */
.riz-summary-card {
  border-color: rgba(252, 211, 77, 0.25) !important;
}

.riz-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.riz-stat-label {
  color: var(--studio-text-muted);
}

.riz-stat-val {
  color: var(--studio-gold);
  font-family: var(--studio-font-mono);
  font-weight: 700;
}

.riz-stat-val-usd {
  color: var(--studio-text-dim);
  font-size: 10px;
}

.riz-pipeline-tag {
  font-size: 9px;
  font-family: var(--studio-font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--studio-cyan);
}

.btn-riz-calc-open {
  margin-top: 4px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: rgba(252, 211, 77, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.3);
  color: var(--studio-gold);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-riz-calc-open:hover {
  background: rgba(252, 211, 77, 0.2);
  border-color: var(--studio-gold);
}

/* RunPod Modal & Models Grid */
/* RunPod Modal & Models Grid */
.runpod-modal-card {
  max-width: 1080px !important;
}

.runpod-models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .runpod-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .runpod-models-grid {
    grid-template-columns: 1fr;
  }
}

.runpod-model-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--studio-panel-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.runpod-model-card:hover {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(192, 132, 252, 0.05);
  transform: translateY(-2px);
}

.runpod-model-card.active {
  border-color: var(--studio-purple);
  background: rgba(192, 132, 252, 0.09);
  box-shadow: 0 0 22px var(--studio-purple-glow);
}

.model-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #020408;
}

.model-actual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.runpod-model-card:hover .model-actual-photo {
  transform: scale(1.06);
}

.runpod-model-card.active .model-actual-photo {
  filter: contrast(1.05) brightness(1.05);
}

.photo-model-chip {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--studio-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(5, 8, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #FAF8F4;
}

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

.model-tag {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--studio-text-muted);
}

.local-tag {
  background: rgba(56, 189, 248, 0.15);
  color: var(--studio-cyan);
}

.sota-tag {
  background: rgba(192, 132, 252, 0.2);
  color: var(--studio-purple);
}

.proptech-tag {
  background: rgba(252, 211, 77, 0.18);
  color: var(--studio-gold);
}

.model-cost-tag {
  font-size: 9px;
  font-family: var(--studio-font-mono);
  color: var(--studio-gold);
  font-weight: 700;
}

.runpod-model-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--studio-text);
}

.runpod-model-card p {
  margin: 0 0 10px;
  font-size: 10px;
  color: var(--studio-text-muted);
  line-height: 1.4;
}

.model-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-family: var(--studio-font-mono);
  color: var(--studio-text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

/* RunPod Dock */
.runpod-dock {
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid var(--studio-panel-border);
  border-radius: 12px;
  padding: 16px;
}

.runpod-dock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.dock-balance-pill {
  font-size: 11px;
  color: var(--studio-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dock-balance-pill strong {
  color: var(--studio-gold);
  font-family: var(--studio-font-mono);
  font-size: 13px;
}

.dock-balance-usd {
  color: var(--studio-text-dim);
  font-size: 10px;
}

.dock-model-cost {
  font-size: 11px;
  color: var(--studio-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dock-model-cost strong {
  color: var(--studio-cyan);
  font-family: var(--studio-font-mono);
  font-size: 13px;
}

.runpod-progress-wrap {
  margin-bottom: 14px;
}

.runpod-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.runpod-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #C084FC, #FCD34D);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.runpod-progress-label {
  font-size: 10px;
  color: var(--studio-cyan);
  text-align: center;
}

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

.btn-runpod-dispatch {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED 0%, #0284C7 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FAF8F4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-runpod-dispatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.6);
}

.btn-runpod-endpoint-toggle {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--studio-line);
  color: var(--studio-text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-runpod-endpoint-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--studio-text);
}

.runpod-config-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 640px) {
  .config-grid {
    grid-template-columns: 1fr;
  }
}

/* RiZ Pricing Table Modal */
.riz-modal-card {
  max-width: 900px !important;
}

.table-scroll-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--studio-panel-border);
  margin-bottom: 20px;
}

.riz-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: start;
}

.riz-pricing-table th {
  background: rgba(13, 21, 36, 0.85);
  color: var(--studio-text-muted);
  padding: 12px 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--studio-panel-border);
}

.riz-pricing-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--studio-text);
}

.riz-pricing-table tr:hover td {
  background: rgba(56, 189, 248, 0.03);
}

.riz-chip {
  font-family: var(--studio-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(252, 211, 77, 0.12);
  color: var(--studio-gold);
  border: 1px solid rgba(252, 211, 77, 0.25);
}

.riz-chip.free {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.25);
}

.riz-topup-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(252, 211, 77, 0.04);
  border: 1px solid rgba(252, 211, 77, 0.2);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.riz-topup-dock h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--studio-gold);
}

.riz-topup-dock p {
  margin: 0;
  font-size: 10px;
  color: var(--studio-text-muted);
}

.riz-topup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-topup-pill {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--studio-line);
  color: var(--studio-text);
  font-family: var(--studio-font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-topup-pill:hover, .btn-topup-pill.active {
  background: rgba(252, 211, 77, 0.18);
  border-color: var(--studio-gold);
  color: var(--studio-gold);
  box-shadow: 0 0 14px var(--studio-gold-glow);
}

.runpod-highlight-card {
  border-color: rgba(192, 132, 252, 0.4) !important;
  background: rgba(192, 132, 252, 0.04) !important;
}

.btn-cloud-action {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(56, 189, 248, 0.3) 100%) !important;
  border-color: var(--studio-purple) !important;
  color: #FAF8F4 !important;
}

.btn-cloud-action:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(56, 189, 248, 0.5) 100%) !important;
  box-shadow: 0 0 16px var(--studio-purple-glow) !important;
}

/* ==========================================================================
   03.6 // BRAND LOCKUP ARCHITECTURE & VISUAL PREVIEWS
   ========================================================================== */

/* Brand Lockup Layout Picker */
.lockup-layout-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(5, 7, 12, 0.6);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-md);
}

.layout-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--studio-radius-sm);
  color: var(--studio-text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.layout-btn:hover {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.05);
}

.layout-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--studio-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.layout-icon {
  font-size: 11px;
  line-height: 1;
  letter-spacing: -1px;
  font-family: var(--studio-font-mono);
}

.layout-text {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

/* Lockup Section Containers */
.lockup-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius-md);
  padding: 12px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.lockup-section.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.lockup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lockup-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lockup-badge {
  font-family: var(--studio-font-mono);
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--studio-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.06em;
}

.lockup-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--studio-text);
}

.lockup-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  color: var(--studio-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lockup-toggle-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.toggle-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6B7280;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.lockup-toggle-btn.active .toggle-indicator {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Material Tuning Box */
.material-tuning-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Lighting Preset Chips */
.light-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.light-chip {
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--studio-line);
  color: var(--studio-text-muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.light-chip:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--studio-text);
}

.light-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--studio-cyan);
  color: var(--studio-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Background Color Quick Presets Grid */
.bg-preset-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.bg-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.bg-swatch-btn:hover {
  transform: scale(1.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.bg-swatch-btn.active {
  border-color: var(--studio-cyan);
  box-shadow: 0 0 10px var(--studio-cyan-glow), inset 0 0 0 2px #000;
  transform: scale(1.12);
}

.bg-swatch-transparent {
  background-image: 
    linear-gradient(45deg, #222 25%, transparent 25%), 
    linear-gradient(-45deg, #222 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #222 75%), 
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  background-color: #444;
}

/* Viewport Auto-Frame & Focus Action */
.btn-focus-action {
  color: var(--studio-cyan) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.btn-focus-action:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: var(--studio-cyan) !important;
  box-shadow: 0 0 12px var(--studio-cyan-glow) !important;
}

/* RunPod Visual Previews (Style Cards) */
.model-visual-preview {
  width: 100%;
  height: 94px;
  border-radius: 9px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -20px 40px rgba(0, 0, 0, 0.6);
}

.preview-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--studio-font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(5, 9, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #FAF8F4;
  letter-spacing: 0.04em;
  z-index: 2;
}

.preview-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 1;
}

.preview-icon {
  font-size: 26px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.runpod-model-card:hover .preview-icon {
  transform: scale(1.15) translateY(-2px);
}

.preview-label {
  font-family: var(--studio-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Individual Preview Card Aesthetics */
.preview-browser {
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.28) 0%, rgba(14, 165, 233, 0.12) 50%, #050b14 100%),
              repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(56, 189, 248, 0.05) 12px, rgba(56, 189, 248, 0.05) 13px);
}

.preview-sf3d {
  background: radial-gradient(circle at 60% 30%, rgba(249, 115, 22, 0.3) 0%, rgba(168, 85, 247, 0.2) 60%, #0c0714 100%),
              radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.18) 0%, transparent 50%);
}

.preview-trellis {
  background: radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.35) 0%, rgba(99, 102, 241, 0.25) 50%, #070614 100%),
              linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
}

.preview-blender {
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(252, 211, 77, 0.12) 40%, #040508 100%),
              radial-gradient(circle at 80% 90%, rgba(245, 158, 11, 0.2) 0%, transparent 60%);
}

.preview-proptech {
  background: radial-gradient(circle at 50% 35%, rgba(252, 211, 77, 0.3) 0%, rgba(217, 119, 6, 0.18) 50%, #0c0a06 100%),
              repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(252, 211, 77, 0.04) 16px, rgba(252, 211, 77, 0.04) 17px);
}

/* ==========================================================================
   ALGORIZMATIC TOGGLES & CARD ACCORDION SYSTEM (MARCELO DESIGN X)
   ========================================================================== */

/* Algorizms Cybernetic Toggle Switch */
.algorizms-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-text-main);
  transition: color 0.2s ease;
}

.algorizms-toggle:hover {
  color: #FFFFFF;
}

.algorizms-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.algorizms-toggle-track {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.algorizms-toggle:hover .algorizms-toggle-track {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.algorizms-toggle input[type="checkbox"]:checked + .algorizms-toggle-track {
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.algorizms-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #E2E8F0;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.algorizms-toggle input[type="checkbox"]:checked + .algorizms-toggle-track .algorizms-toggle-thumb {
  transform: translateX(18px);
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.algorizms-toggle-label {
  font-size: 12px;
  letter-spacing: -0.01em;
}

/* Card Accordions */
.studio-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-header.accordion-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: -14px -14px 12px -14px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--studio-panel-border);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card-header.accordion-toggle:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--studio-cyan);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-card.collapsed .accordion-chevron {
  transform: rotate(-90deg);
  color: var(--studio-text-dim);
}

.studio-card.collapsed .card-header.accordion-toggle {
  margin-bottom: -14px;
  border-bottom: none;
  border-radius: 14px;
}

.studio-card.collapsed .card-body {
  display: none !important;
}

.studio-card.focus-highlight {
  border-color: var(--studio-cyan) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35) !important;
}

/* Micro-Control Section Groups */
.micro-section-divider {
  margin: 12px 0 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.micro-section-title {
  font-size: 10px;
  font-family: var(--studio-font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--studio-cyan);
}

.micro-section-badge {
  font-size: 9px;
  font-family: var(--studio-font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--studio-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Zen Presentation Mode */
.studio-cockpit.zen-active {
  grid-template-columns: 1fr !important;
}

.studio-cockpit.zen-active .studio-rail {
  display: none !important;
}

.studio-cockpit.zen-active .studio-center-stage {
  height: calc(100vh - 130px);
}

/* Colored Slider Accents */
.studio-range.accent-gold::-webkit-slider-thumb {
  background: var(--studio-gold);
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.7);
}

.studio-range.accent-purple::-webkit-slider-thumb {
  background: var(--studio-purple);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
}

.studio-range.accent-cyan::-webkit-slider-thumb {
  background: var(--studio-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
@media (max-width: 1280px) {
  .studio-cockpit {
    grid-template-columns: 280px 1fr 280px;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .studio-cockpit {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  
  .studio-center-stage {
    order: -1;
    height: 480px;
    min-height: 480px;
  }
  
  .studio-rail {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .studio-app-container {
    padding: 12px 14px 30px;
  }
  
  .studio-cmd-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  
  .studio-cmd-left, .studio-cmd-right {
    justify-content: space-between;
  }
  
  .studio-center-stage {
    height: 380px;
    min-height: 380px;
  }
  
  .export-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

[dir="rtl"] .studio-cmd-title,
[dir="rtl"] .card-title,
[dir="rtl"] .hud-title {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}
