/* SheetShirt — 3D Human Model Apparel Studio & Styling System */
@import url('./sheetshirt_theme_styles.css');

:root {
  --bg-dark: var(--color-bg-obsidian, #08090d);
  --bg-surface: var(--color-surface-glass, rgba(12, 12, 22, 0.65));
  --bg-card: var(--color-card-glass, rgba(18, 18, 30, 0.55));
  --border-card: var(--color-hairline-border, rgba(255, 255, 255, 0.08));
  --border-glow: rgba(0, 232, 216, 0.6);
  
  --accent-cyan: var(--signal-cyan, #00e8d8);
  --accent-magenta: var(--signal-magenta, #ff2d8b);
  --accent-lime: var(--signal-lime, #c4fb4f);
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  
  --gradient-main: linear-gradient(135deg, #00e8d8 0%, #ff2d8b 100%);
  --gradient-button: linear-gradient(135deg, #00e8d8 0%, #00b0a3 100%);
  --gradient-active: linear-gradient(135deg, #ff2d8b 0%, #d81b6f 100%);
  
  --text-primary: #f5f6f9;
  --text-secondary: #8e95a5;
  --text-muted: #535969;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 { width: 550px; height: 550px; background: radial-gradient(circle, #6366f1 0%, rgba(0,0,0,0) 70%); top: -120px; left: -120px; }
.orb-2 { width: 650px; height: 650px; background: radial-gradient(circle, #ec4899 0%, rgba(0,0,0,0) 70%); bottom: -160px; right: -160px; animation-delay: -5s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* LIVE SOCIAL PROOF ORDER TOAST TICKER */
.social-proof-toast {
  position: absolute;
  bottom: 24px;
  left: 450px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-glass, rgba(12, 12, 22, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 45, 139, 0.25);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 45, 139, 0.1);
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon { font-size: 22px; }
.toast-content { display: flex; flex-direction: column; line-height: 1.3; }
.toast-user { font-size: 12px; font-weight: 800; color: #fff; }
.toast-text { font-size: 11px; color: var(--accent-cyan); font-weight: 600; }
.toast-time { font-size: 9px; color: var(--accent-emerald); font-weight: 700; margin-top: 2px; }

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px;
  gap: 16px;
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
}

/* Header */
.app-header {
  position: fixed !important; top: 12px !important; left: 50% !important; transform: translateX(-50%) !important;
  height: 46px !important; padding: 0 18px !important; border-radius: 24px !important;
  width: auto !important; max-width: 900px !important;
  background: rgba(12, 12, 22, 0.85) !important; backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  z-index: 500 !important;
  display: flex !important; align-items: center !important; gap: 16px !important; justify-content: space-between !important;
}

.logo-container { display: flex; align-items: center; gap: 14px; }

.logo-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.rainbow-glow { animation: rainbowGlow 4s linear infinite; }

@keyframes rainbowGlow {
  0% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.8); }
  33% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.8); }
  66% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.8); }
  100% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.8); }
}

.logo-text-group { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-subtitle { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); }

.header-metrics { display: flex !important; gap: 6px !important; }

/* PRAGCORE LOCALIZATION & COUNTRY / CURRENCY BAR */
.localization-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loc-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.loc-dropdown-wrapper:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
}

.styled-select-header {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-family: var(--font-heading, "Syne", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.styled-select-header option {
  background: #0f172a !important;
  color: #ffffff !important;
  font-family: sans-serif;
}

.sound-toggle-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.sound-toggle-btn:hover {
  background: rgba(0, 242, 254, 0.2) !important;
  border-color: rgba(0, 242, 254, 0.5) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3) !important;
}

.header-nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-hdr-pill {
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-family: var(--font-heading, "Syne", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  white-space: nowrap !important;
}

.btn-hdr-pill:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(0, 242, 254, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3) !important;
  transform: translateY(-1px) !important;
}

.btn-hdr-pill.active {
  background: rgba(0, 242, 254, 0.25) !important;
  border-color: rgba(0, 242, 254, 0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4) !important;
}

.btn-hdr-svg,
.cam-btn-svg,
.brand-logo-svg,
.sound-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pip-online {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  margin-right: 5px;
  vertical-align: middle;
}

.btn-hdr-cart {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.2) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2) !important;
}

.btn-hdr-cart:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35) 0%, rgba(79, 172, 254, 0.35) 100%) !important;
  border-color: rgba(0, 242, 254, 0.7) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4) !important;
}
.metric-pill {
  padding: 3px 10px !important; font-size: 10px !important; border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.metric-value { font-weight: 800; color: var(--accent-cyan); }
.metric-label { font-weight: 600; color: var(--text-muted); margin-left: 4px; }

.badge-tag { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(168, 85, 247, 0.4); display: flex; align-items: center; gap: 6px; }
.pulse-dot { width: 7px; height: 7px; background-color: var(--accent-pink); border-radius: 50%; box-shadow: 0 0 10px var(--accent-pink); animation: blink 1.5s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.header-nav { display: flex; gap: 12px; }

.badge-count {
  background: var(--accent-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.btn {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-glass { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--border-card); }
.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-glow { background: rgba(99, 102, 241, 0.2); color: #fff; border: 1px solid rgba(99, 102, 241, 0.4); }

.btn-sparkle {
  background: var(--gradient-main);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
}

.btn-sparkle:hover { transform: scale(1.05); box-shadow: 0 10px 35px rgba(236, 72, 153, 0.6); }

/* Studio Viewport & Floating WebGL HUD Architecture */
.studio-viewport-layout {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 100px);
  display: flex;
  overflow: hidden;
}

/* 100% FULL-VIEWPORT SEAMLESS ARCHITECTURAL WHITE STUDIO */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #090d16 !important;
  color: #f8fafc !important;
}

.studio-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 15%, rgba(15, 23, 42, 0.4) 0%, rgba(9, 13, 22, 0.9) 100%);
  pointer-events: none;
  z-index: 0;
}

.white-studio-container {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

.glass-header-white {
  position: fixed !important; top: 12px !important; left: 50% !important; transform: translateX(-50%) !important;
  height: 46px !important; padding: 0 18px !important; border-radius: 24px !important;
  width: auto !important; max-width: 900px !important;
  background: rgba(12, 12, 22, 0.85) !important; backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  z-index: 500 !important;
  display: flex !important; align-items: center !important; gap: 16px !important; justify-content: space-between !important;
}

.brand-identity {
  display: flex !important; align-items: center !important; gap: 8px !important; flex-shrink: 0 !important;
}

.brand-logo-icon {
  font-size: 18px !important;
}

.brand-name {
  font-family: var(--font-heading) !important; font-size: 15px !important; font-weight: 800 !important;
  color: #ffffff !important; margin: 0 !important; line-height: 1 !important; white-space: nowrap !important;
}

.brand-tagline {
  display: none !important;
}

.chip-300dpi {
  font-size: 9px !important; padding: 2px 8px !important; margin-left: 4px !important;
}

#threeJsCanvasContainer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10 !important;
  background: transparent !important;
  pointer-events: auto !important;
  cursor: grab;
}

#threeJsCanvasContainer canvas {
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto !important;
}

/* CENTER STAGE: IMMERSIVE 3D WEBGL VIEWPORT */
.photorealistic-studio-stage {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: transparent !important;
  border: none !important;
  z-index: 1 !important;
  overflow: hidden;
  pointer-events: none !important;
}

.central-bottom-prompt-bar,
.central-bottom-prompt-bar * {
  pointer-events: auto !important;
  z-index: 500 !important;
}

.top-spotlight-cone {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 90%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  clip-path: polygon(25% 0%, 75% 0%, 98% 100%, 2% 100%);
  pointer-events: none !important;
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(14px);
  animation: spotlightPulse 4s ease-in-out infinite alternate;
}

.studio-floor-reflection {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(180deg, transparent 0%, rgba(226, 232, 240, 0.5) 100%);
  pointer-events: none;
  z-index: 2;
}



/* CHAT THREAD CONSOLE CONTAINER */
.star-wars-crawl-container {
  flex: 1 !important;
  min-height: 0 !important;
  width: 100% !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  border-radius: 16px !important;
  background: rgba(8, 12, 22, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

.star-wars-crawl-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.star-wars-intro-msg {
  font-family: var(--font-heading, "Syne", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.5;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-shadow: none !important;
}

.star-wars-crawl-item {
  font-family: var(--font-heading, "Syne", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  word-break: break-word;
  animation: chatBubblePopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatBubblePopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.star-wars-crawl-item.user-bubble {
  align-self: flex-end !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
  max-width: 88% !important;
}

.star-wars-crawl-item.ai-bubble {
  align-self: flex-start !important;
  background: linear-gradient(135deg, rgba(0, 232, 216, 0.2), rgba(15, 23, 42, 0.6)) !important;
  border: 1px solid rgba(0, 232, 216, 0.35) !important;
  color: #00e8d8 !important;
  text-shadow: 0 0 10px rgba(0, 232, 216, 0.5) !important;
  max-width: 90% !important;
}

/* PROMPT SUGGESTION PILLS INSIDE CONSOLE */
.hud-panel.chat-hud-console .prompt-suggestion-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 10px 16px 4px 16px !important;
}

.hud-panel.chat-hud-console .suggestion-pill {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.08)) !important;
  color: var(--text-primary, #f5f6f9) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}

.hud-panel.chat-hud-console .suggestion-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--signal-cyan, #00e8d8) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 14px rgba(0, 232, 216, 0.25) !important;
}

/* STUDIO TIMELINE VERSION HISTORY BAR */
.studio-timeline-bar {
  width: 100%;
  background: rgba(18, 18, 30, 0.75);
  border: 1px solid var(--color-hairline-border);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.hud-panel.chat-hud-console .studio-timeline-bar {
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
}

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

.timeline-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-hairline-border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-nav-btn:hover {
  background: rgba(0, 232, 216, 0.2);
  border-color: var(--signal-cyan);
  transform: scale(1.08);
}

.timeline-title {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}

.timeline-counter {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--signal-cyan);
}

.timeline-scroll-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.timeline-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-hairline-border);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.timeline-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--signal-cyan);
  transform: translateY(-1px);
}

.timeline-chip.active {
  background: var(--gradient-signal-cyan);
  color: #08090d;
  border-color: var(--signal-cyan);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 232, 216, 0.35);
}

/* INTEGRATED INPUT FORM INSIDE CONSOLE */
.hud-panel.chat-hud-console .chat-console-form {
  width: 100% !important;
  padding: 8px 16px 16px 16px !important;
}

.hud-panel.chat-hud-console .central-input-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(18, 18, 30, 0.85) !important;
  border: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 16px !important;
  padding: 6px 8px 6px 14px !important;
  transition: border-color 0.25s ease !important;
}

.hud-panel.chat-hud-console .central-input-wrapper:focus-within {
  border-color: var(--signal-cyan, #00e8d8) !important;
  box-shadow: 0 0 16px rgba(0, 232, 216, 0.25) !important;
}

.hud-panel.chat-hud-console input#chatInput {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-primary, #ffffff) !important;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13px !important;
  padding: 0 4px !important;
}

.hud-panel.chat-hud-console input#chatInput::placeholder {
  color: var(--text-muted, #64748b) !important;
}

.hud-panel.chat-hud-console .btn-central-generate {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-family: var(--font-heading, "Syne", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 9px 16px !important;
  border-radius: 12px !important;
  background: var(--gradient-signal-cyan, linear-gradient(135deg, #00e8d8, #00b0a3)) !important;
  border: none !important;
  color: var(--color-bg-obsidian, #08090d) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 232, 216, 0.35) !important;
}

.hud-panel.chat-hud-console .btn-central-generate:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 232, 216, 0.5) !important;
}

/* THREE.JS CANVAS CONTAINER OVERLAY */
.three-canvas-container {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  cursor: grab;
}

/* 3D Camera Angle Preset UI */
.camera-angle-controls {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 500 !important;
  display: flex !important;
  gap: 4px !important;
  padding: 4px 8px !important;
  background: rgba(12, 12, 22, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
  pointer-events: auto !important;
  max-width: calc(100vw - 780px) !important;
  justify-content: center !important;
}

.cam-angle-btn {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 7px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f5f6f9 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.cam-angle-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--signal-cyan, #00e8d8) !important;
  transform: translateY(-1px) !important;
}

.cam-angle-btn.active {
  background: var(--gradient-signal-cyan, linear-gradient(135deg, #00e8d8 0%, #00b0a3 100%)) !important;
  color: #08090d !important;
  border-color: #00e8d8 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(0, 232, 216, 0.4) !important;
}

/* LEFT & RIGHT FLOATING HUD: PRAGCORE OBSIDIAN GLASS ARCHITECTURE */
.hud-panel {
  position: fixed !important;
  top: 68px !important;
  bottom: 24px !important;
  height: calc(100vh - 92px) !important;
  width: 360px !important;
  max-width: 380px !important;
  z-index: 150 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: var(--color-surface-glass, rgba(12, 12, 22, 0.88)) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.08)) !important;
  box-shadow: var(--shadow-glass, 0 24px 60px rgba(0, 0, 0, 0.6)) !important;
  color: var(--text-primary, #f5f6f9) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: auto !important;
}

.hud-panel:hover {
  border-color: var(--signal-cyan, #00e8d8) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 232, 216, 0.2) !important;
}

.hud-left {
  left: 24px !important;
}

/* LEFT FLOATING HUD: INTEGRATED AI CHAT STUDIO CONSOLE */
.hud-panel.chat-hud-console {
  left: 24px !important;
  top: 68px !important;
  bottom: 84px !important;
  height: calc(100vh - 152px) !important;
  max-height: calc(100vh - 152px) !important;
  width: 440px !important;
  max-width: 440px !important;
  padding: 0 !important;
  gap: 0 !important;
  z-index: 100 !important;
}

.hud-right {
  right: 24px !important;
}

.hud-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.08)) !important;
  background: rgba(18, 18, 30, 0.6) !important;
  flex-shrink: 0 !important;
}

.hud-title {
  font-family: var(--font-heading, "Syne", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #f5f6f9) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.hud-subtitle {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 11px !important;
  color: var(--text-secondary, #8e95a5) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-top: 2px !important;
}

.hud-icon-glow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cyan-glow {
  background: rgba(0, 232, 216, 0.15);
  border-color: rgba(0, 232, 216, 0.5);
  color: #00998c;
}

.hud-panel:hover .hud-icon-glow {
  transform: scale(1.08) rotate(-4deg);
}

.control-label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #475569 !important;
  display: block;
  margin-bottom: 6px;
}

/* Prompt Chips (Left HUD) */
.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.prompt-chips .chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  color: #1e293b;
  font-family: var(--font-body, sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.prompt-chips .chip:hover {
  background: #ffffff;
  border-color: #00e8d8;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 232, 216, 0.3);
  transform: translateX(4px) scale(1.01);
}

/* Style Chips (Left HUD) */
.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.style-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-family: var(--font-body, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.style-chip:hover {
  background: #ffffff;
  border-color: #00e8d8;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 232, 216, 0.25);
}

.style-chip.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

/* CENTRAL BOTTOM FLOATING PROMPT BAR */
.central-bottom-prompt-bar {
  position: fixed !important;
  bottom: 48px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 720px !important;
  max-width: min(720px, calc(100vw - 400px)) !important;
  z-index: 500 !important;
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.prompt-suggestion-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.suggestion-pill {
  background: rgba(255, 255, 255, 0.60) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
  font-family: var(--font-body, sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
}

.suggestion-pill:hover {
  background: #ffffff !important;
  border-color: #00e8d8 !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 232, 216, 0.3) !important;
  color: #00998c !important;
}

.central-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.central-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.85);
  border-color: #00e8d8;
  box-shadow: 0 25px 60px rgba(0, 232, 216, 0.25), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(1.01);
}

.input-sparkle-icon {
  font-size: 18px;
}

.central-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}

.central-input-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-central-generate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-family: var(--font-heading, "Syne", sans-serif);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-central-generate:hover {
  background: linear-gradient(135deg, #00e8d8 0%, #00b0a3 100%);
  color: #08090d;
  box-shadow: 0 12px 30px rgba(0, 232, 216, 0.45);
  transform: translateY(-1px);
}

/* Config Sections (HUD Scrollable Container) */
.config-sections {
  flex: 1;
  min-height: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pill-selector {
  display: flex;
  gap: 8px;
  width: 100%;
}.control-label {
  font-family: var(--font-mono, "JetBrains Mono", monospace) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--text-secondary, #8e95a5) !important;
  display: block !important;
  margin-bottom: 6px !important;
}

.model-btn, .place-btn {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f5f6f9);
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-btn:hover, .place-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--signal-cyan, #00e8d8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 232, 216, 0.25);
}

.model-btn.active, .place-btn.active {
  background: var(--gradient-signal-cyan, linear-gradient(135deg, #00e8d8 0%, #00b0a3 100%));
  border-color: var(--signal-cyan, #00e8d8);
  color: var(--color-bg-obsidian, #08090d);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 232, 216, 0.4);
}

.styled-select-v2 {
  width: 100%;
  background: rgba(18, 18, 30, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #f5f6f9);
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.25s ease;
}

.styled-select-v2:hover, .styled-select-v2:focus {
  border-color: var(--signal-cyan, #00e8d8);
  box-shadow: 0 0 18px rgba(0, 232, 216, 0.3);
}

.styled-select-v2 option {
  background: #08090d;
  color: #ffffff;
  font-weight: 600;
  padding: 8px;
}

.color-swatches-v2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 4px 2px;
  flex-wrap: wrap;
}

.color-swatches-v2 .swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  outline: none;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.color-swatches-v2 .swatch:hover {
  transform: scale(1.25);
  border-color: #00e8d8;
  box-shadow: 0 0 20px rgba(0, 232, 216, 0.5);
}

.color-swatches-v2 .swatch.active {
  transform: scale(1.25);
  border-color: #00e8d8;
  box-shadow: 0 0 22px rgba(0, 232, 216, 0.7), 0 0 0 2px rgba(15, 23, 42, 0.2);
}

.size-pills-v2 {
  display: flex;
  gap: 6px;
  width: 100%;
}

.size-pill {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-hairline-border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #f5f6f9);
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.size-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--signal-cyan, #00e8d8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 232, 216, 0.25);
}

.size-pill.active {
  background: var(--gradient-signal-cyan, linear-gradient(135deg, #00e8d8 0%, #00b0a3 100%));
  border-color: var(--signal-cyan, #00e8d8);
  color: var(--color-bg-obsidian, #08090d);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0, 232, 216, 0.4);
}

.studio-utility-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

.hud-footer {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 18px !important;
  background: rgba(10, 14, 26, 0.94) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hud-footer-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.price-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.price-amount {
  font-family: var(--font-heading, "Syne", sans-serif);
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.shipping-tag {
  font-size: 10px;
  color: #00f2fe !important;
  font-weight: 700;
  margin-top: 1px;
}

.btn-glass-v2 {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-glass-v2:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.btn-luxury-buy {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.btn-luxury-buy::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shimmerLight 3.5s infinite;
}

@keyframes shimmerLight {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.btn-luxury-buy:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.65), 0 0 25px rgba(79, 172, 254, 0.5) !important;
  filter: brightness(1.08) !important;
}

.btn-luxury-buy:active:not(:disabled) {
  transform: translateY(0) scale(0.99) !important;
}

.stage-overlay-badge {
  position: fixed;
  top: 68px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 100 !important;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.badge-live-3d { font-size: 10px; font-weight: 800; color: #00b0a3; letter-spacing: 1px; }
.hint-text { font-size: 10px; color: #64748b; font-weight: 600; }

.three-canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
}

.three-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.three-canvas-container:active { cursor: grabbing; }

.stage-2d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background: transparent !important;
}

.laser-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-rainbow);
  box-shadow: 0 0 30px var(--accent-pink);
  z-index: 12;
  animation: laserScan 1.1s ease-in-out infinite alternate;
}

@keyframes laserScan { 0% { top: 8%; } 100% { top: 92%; } }

/* Mandatory Legal Disclaimer Checkbox Bar */
.disclaimer-checkbox-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-purple);
  width: 14px;
  height: 14px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label a { color: var(--accent-purple); text-decoration: underline; font-weight: 700; }

/* Modals System Base */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 85vh;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-card); padding-bottom: 12px; }
.modal-header h3 { font-family: var(--font-heading); font-size: 18px; color: #fff; }
.close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.close-btn:hover { color: #fff; }

.modal-body { flex: 1; overflow-y: auto; font-size: 12px; line-height: 1.6; color: var(--text-secondary); display: flex; flex-direction: column; gap: 14px; }
.modal-body h4 { font-size: 13px; font-weight: 800; color: var(--accent-purple); }

/* Live Order Tracker Modal Timeline Styling */
.tracker-modal-card { max-width: 580px; }

.order-status-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--border-card);
}

.timeline-step { display: flex; align-items: center; gap: 14px; position: relative; }
.step-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-card); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.step-info { display: flex; flex-direction: column; }
.step-title { font-size: 13px; font-weight: 800; color: #fff; }
.step-date { font-size: 11px; color: var(--text-muted); }

.step-done .step-icon { background: rgba(16, 185, 129, 0.2); border-color: var(--accent-emerald); }
.step-active .step-icon { background: rgba(139, 92, 246, 0.3); border-color: var(--accent-purple); animation: pulseDot 1.5s infinite; }

/* Cart Drawer Styling */
.cart-modal-card { max-width: 680px; }

.cart-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  padding: 12px 16px;
  border-radius: 14px;
  gap: 14px;
}

.cart-item-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-card); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-size: 13px; font-weight: 800; color: #fff; }
.cart-item-specs { font-size: 11px; color: var(--accent-cyan); font-weight: 600; }
.cart-item-price { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: #fff; }

.cart-summary-footer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-card); padding-top: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); }
.total-line { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: #fff; margin-top: 6px; }

/* Stripe Checkout Modal Styling */
.checkout-modal-card { max-width: 640px; }
.checkout-section { display: flex; flex-direction: column; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.span-2 { grid-column: span 2; }

.styled-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
}

.styled-input:focus { border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }

/* Accessible keyboard navigation focus rings */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(0, 232, 216, 0.85);
  outline-offset: 2px;
}

.card-input-mock {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
}

.order-summary-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); padding: 12px 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }

/* Order Config Bar & Action Button Group */
.order-config-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-card); gap: 12px; }
.action-btn-group { display: flex; gap: 8px; }

.size-selector-group { display: flex; align-items: center; gap: 8px; }
.size-pills { display: flex; gap: 4px; }

.size-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.size-pill.active, .size-pill:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--accent-purple);
  color: #fff;
}

.price-display { display: flex; flex-direction: column; align-items: flex-end; }
.price-amount { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: #fff; }
.shipping-tag { font-size: 11px; color: var(--accent-emerald); font-weight: 600; }

.btn-buy-now {
  background: var(--gradient-button);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.btn-buy-text { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; }
.btn-subtext { font-size: 10px; opacity: 0.8; font-weight: 500; }

.pulse-btn:not(:disabled) { animation: buyPulse 2.5s infinite; }

@keyframes buyPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 12px 45px rgba(236, 72, 153, 0.8), 0 0 20px rgba(139, 92, 246, 0.6); }
}

.hidden { display: none !important; }

/* Pristine Custom Glass Scrollbar Engine */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(0, 232, 216, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 232, 216, 0.65); }

.config-sections, .chat-history, .prompt-chips, .style-chips, .timeline-scroll-container {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.stage-nav-btn {
  position: fixed;
  top: 50% !important;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(12, 12, 22, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-hairline-border);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.stage-nav-btn:hover:not(:disabled) {
  background: rgba(0, 232, 216, 0.25);
  border-color: var(--signal-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 232, 216, 0.4);
}

.stage-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.stage-nav-prev {
  left: 396px !important;
}

.stage-nav-next {
  right: 396px !important;
}

/* PragCore Standard SemVer Release Badge (Bottom-Left, Non-Obstructing) */
.pragcore-version-badge {
  position: fixed !important;
  bottom: 14px !important;
  left: 18px !important;
  z-index: 99999 !important;
  font-family: var(--font-mono, "JetBrains Mono", monospace) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(8, 12, 22, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  pointer-events: auto !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.pragcore-version-badge:hover {
  color: #00f2fe !important;
  background: rgba(8, 12, 22, 0.95) !important;
  border-color: rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3) !important;
}

/* MOBILE RESPONSIVE DRAWER & SEGMENTED DOCK ENGINE (max-width: 768px) */
.mobile-mode-dock {
  display: none !important;
}

.drawer-drag-handle {
  display: none;
  width: 42px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 6px auto 12px auto;
  cursor: grab;
}

@media (max-width: 768px) {
  .mobile-mode-dock {
    display: flex !important;
    position: fixed !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background: rgba(8, 12, 22, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 4px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    gap: 4px !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
  }

  .mobile-dock-btn {
    padding: 6px 10px !important;
    border-radius: 18px !important;
    font-family: var(--font-heading, "Syne", sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .mobile-dock-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(79, 172, 254, 0.25) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(0, 242, 254, 0.5) !important;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.3) !important;
  }

  .glass-header-white {
    width: 92vw !important;
    max-width: 92vw !important;
    height: 42px !important;
    padding: 0 12px !important;
    top: 8px !important;
  }

  .brand-name {
    font-size: 13px !important;
  }

  .hud-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 70vh !important;
    max-height: 70vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    transform: translateY(110%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7) !important;
  }

  .hud-panel.mobile-drawer-open {
    transform: translateY(0) !important;
  }

  .drawer-drag-handle {
    display: block !important;
  }

  .camera-angle-controls {
    bottom: 64px !important;
    padding: 3px 6px !important;
  }

  .cam-angle-btn {
    padding: 4px 8px !important;
    font-size: 9px !important;
  }

  .stage-nav-prev {
    left: 12px !important;
  }

  .stage-nav-next {
    right: 12px !important;
  }

  .pragcore-version-badge {
    bottom: 64px !important;
    left: 12px !important;
  }

  .stage-overlay-badge {
    top: 56px !important;
    padding: 4px 10px !important;
    font-size: 9px !important;
  }
}

/* 🔍 4K PRINT INSPECTION LOUPE STYLING */
.print-lens-loupe {
  position: fixed !important;
  width: 240px !important;
  height: 240px !important;
  border-radius: 50% !important;
  border: 3px solid #00e8d8 !important;
  box-shadow: 0 0 35px rgba(0, 232, 216, 0.75), inset 0 0 25px rgba(0, 0, 0, 0.95), 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  background: #08090d !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.2s ease !important;
}

.print-lens-loupe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 10;
}

.print-lens-loupe canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.print-lens-loupe .close-lens-btn {
  position: absolute !important;
  top: 8px !important;
  right: 12px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 30 !important;
  transition: all 0.2s ease !important;
}

.print-lens-loupe .close-lens-btn:hover {
  background: #ef4444 !important;
  transform: scale(1.15) !important;
}

/* 🎙️ VOICE DICTATION BUTTON STYLING */
.mic-dictate-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 6px 10px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.mic-dictate-btn:hover {
  background: rgba(0, 232, 216, 0.2) !important;
  border-color: #00e8d8 !important;
  transform: scale(1.05) !important;
}

.mic-dictate-btn.listening {
  background: #ef4444 !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  animation: micPulse 1.2s infinite alternate !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
}

@keyframes micPulse {
  0% { transform: scale(1.0); filter: brightness(1.0); }
  100% { transform: scale(1.15); filter: brightness(1.3); }
}

/* 💳 EXPRESS APPLE PAY & GOOGLE PAY BUTTONS */
.express-pay-options {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.btn-express-pay {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-heading, "Syne", sans-serif);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  border: none;
}

.btn-apple-pay {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-apple-pay:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-gpay {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-gpay:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}
