/* ===========================================================
   GARAGE OS — Desktop immersif après-vente
   DuoMind × DYTECHNO · maquette démonstrative
   =========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  background: #050508;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ============ BOOT SCREEN ============ */
.boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 50%, #0a1f15 0%, #050508 70%);
  display: flex; align-items: center; justify-content: center;
  animation: bootFade 0.5s ease forwards;
}
.boot-screen.hide { animation: bootFadeOut 0.6s ease forwards; }
@keyframes bootFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bootFadeOut { to { opacity: 0; visibility: hidden; } }
.boot-logo { text-align: center; }
.boot-spinner {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border: 3px solid rgba(5, 150, 105, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-brand {
  font-size: 38px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.boot-version { color: #64748b; font-size: 13px; margin-bottom: 36px; }
.boot-loader {
  width: 280px; height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden; margin: 0 auto 16px;
}
.boot-loader-bar {
  width: 0%; height: 100%; background: linear-gradient(90deg, #10b981, #34d399);
  animation: load 2.2s ease forwards;
}
@keyframes load { to { width: 100%; } }
.boot-status { font-size: 12px; color: #94a3b8; font-family: "JetBrains Mono", monospace; }

/* ============ WALLPAPER ============ */
.desktop {
  position: relative; width: 100vw; height: 100vh;
  overflow: hidden;
}
.wallpaper {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #050a08 0%, #0a1f15 35%, #082519 70%, #050508 100%);
  z-index: 0;
}
.wallpaper-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.wallpaper-glow {
  position: absolute; border-radius: 50%; filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  top: -10%; left: -10%;
  animation: float1 18s ease-in-out infinite;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  bottom: -10%; right: -5%;
  animation: float2 22s ease-in-out infinite;
}
.glow-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
  top: 40%; left: 50%;
  animation: float3 26s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }

/* ============ TASKBAR ============ */
.taskbar {
  position: relative; z-index: 100;
  height: 52px;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.taskbar-left, .taskbar-right { display: flex; align-items: center; gap: 12px; }
.taskbar-center { flex: 1; max-width: 560px; margin: 0 24px; }

.start-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.start-btn:hover { background: rgba(16, 185, 129, 0.2); }
.start-logo {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}
.taskbar-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.08); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.bc-org { color: #cbd5e1; font-weight: 600; }
.bc-site { color: #34d399; font-weight: 600; }
.bc-user { color: #64748b; }
.bc-sep { color: #475569; }

.quick-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
}
.qs-icon { font-size: 14px; opacity: 0.6; }
.quick-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #e2e8f0; font-size: 13px; font-family: inherit;
}
.quick-search input::placeholder { color: #64748b; }
.qs-shortcut {
  font-size: 11px; color: #64748b;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", monospace;
}

.tb-icon {
  position: relative;
  background: transparent; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 8px; font-size: 16px;
  transition: background 0.15s;
}
.tb-icon:hover { background: rgba(255,255,255,0.06); }
.tb-badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 800;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tb-badge-blue { background: #3b82f6; }
.tb-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; font-weight: 700; color: #e2e8f0;
  padding: 0 8px;
}
.tb-user { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.08); }
.tb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(16, 185, 129, 0.3);
}
.tb-user-name { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.tb-user-role { font-size: 10px; color: #64748b; }

/* ============ DESKTOP ICONS ============ */
.desktop-icons {
  position: absolute; top: 80px; left: 24px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  z-index: 5;
}
.desk-icon {
  width: 86px; padding: 12px 8px;
  text-align: center; border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
}
.desk-icon:hover { background: rgba(255,255,255,0.06); }
.di-emoji { font-size: 36px; margin-bottom: 6px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.di-label { font-size: 11px; color: #e2e8f0; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* ============ WIDGETS ============ */
.desktop-widgets {
  position: absolute; top: 80px; right: 24px;
  display: flex; flex-direction: column; gap: 14px;
  width: 280px; z-index: 5;
}
.widget {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.widget-title { font-size: 12px; font-weight: 700; color: #cbd5e1; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
.widget-kpis strong { display: block; font-size: 22px; font-weight: 800; color: #34d399; }
.widget-kpis span { font-size: 10px; color: #94a3b8; }
.widget-alert ul { list-style: none; font-size: 12px; color: #cbd5e1; }
.widget-alert li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.dot.orange { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.dot.blue { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.widget-weather { display: flex; align-items: center; gap: 16px; }
.weather-temp { font-size: 42px; font-weight: 200; color: #fff; }
.weather-meta { font-size: 12px; color: #94a3b8; }
.weather-meta div:first-child { color: #e2e8f0; font-weight: 700; margin-bottom: 4px; }

/* ============ WINDOWS LAYER ============ */
.windows-layer {
  position: absolute; inset: 52px 0 96px 0;
  pointer-events: none; z-index: 10;
}
.os-window {
  position: absolute;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: auto;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 480px; min-height: 320px;
  animation: winOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes winOpen {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.os-window.minimized { display: none; }
.os-window.maximized { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.os-window-titlebar {
  display: flex; align-items: center;
  background: rgba(8, 12, 18, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 12px;
  height: 40px;
  cursor: move;
  user-select: none;
}
.os-window-traffic { display: flex; gap: 7px; margin-right: 12px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: filter 0.1s; }
.tl-dot:hover { filter: brightness(1.3); }
.tl-close { background: #ef4444; }
.tl-min { background: #f59e0b; }
.tl-max { background: #10b981; }
.os-window-icon { font-size: 14px; margin-right: 8px; }
.os-window-title { flex: 1; font-size: 13px; font-weight: 600; color: #e2e8f0; }
.os-window-status { font-size: 11px; color: #64748b; font-family: "JetBrains Mono", monospace; }
.os-window-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
  color: #cbd5e1;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(8, 12, 18, 0.4));
}
.os-window-body::-webkit-scrollbar { width: 8px; }
.os-window-body::-webkit-scrollbar-track { background: transparent; }
.os-window-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.os-window-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* ============ DOCK ============ */
.dock {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 6px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.dock-app {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 0;
  cursor: pointer;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.dock-app:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-8px) scale(1.15);
}
.dock-app.active::after {
  content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 6px #34d399;
}
.dock-pulse {
  position: absolute; top: -2px; right: -2px;
  background: #3b82f6; color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(8, 12, 18, 0.9);
  animation: pulse 2s ease infinite;
}
.dock-pulse.red { background: #ef4444; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.dock-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.08); margin: 0 4px; }

/* ============ NOTIF CENTER ============ */
.notif-center {
  position: absolute; top: 60px; right: 16px;
  width: 360px; max-height: 480px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  z-index: 200;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: ncOpen 0.2s ease;
}
@keyframes ncOpen {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.nc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nc-header h3 { font-size: 14px; font-weight: 700; }
.nc-header button { background: transparent; border: 0; color: #94a3b8; cursor: pointer; font-size: 14px; }
.nc-list { padding: 8px; overflow: auto; }
.nc-item {
  display: flex; gap: 12px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  cursor: pointer; transition: background 0.15s;
}
.nc-item:hover { background: rgba(255,255,255,0.04); }
.nc-icon { font-size: 22px; flex-shrink: 0; }
.nc-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.nc-msg { font-size: 11px; color: #94a3b8; line-height: 1.4; }
.nc-time { font-size: 10px; color: #64748b; margin-top: 4px; }
.nc-red { border-left: 3px solid #ef4444; }
.nc-orange { border-left: 3px solid #f59e0b; }
.nc-blue { border-left: 3px solid #3b82f6; }

/* ============================================================
   MODULES — contenu intérieur fenêtres
   ============================================================ */
.os-window-body h3 { font-size: 14px; font-weight: 700; color: #e2e8f0; margin: 18px 0 10px; }
.os-window-body h3:first-child { margin-top: 0; }
.os-window-body h4 { font-size: 13px; font-weight: 700; color: #cbd5e1; margin: 14px 0 8px; }
.os-window-body p { line-height: 1.55; color: #cbd5e1; margin-bottom: 8px; }

.mod-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.mod-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px;
}
.mod-stat strong { display: block; font-size: 22px; font-weight: 800; color: #e2e8f0; margin-bottom: 2px; }
.mod-stat span { font-size: 11px; color: #94a3b8; }
.mod-stat.green strong { color: #34d399; }
.mod-stat.orange strong { color: #fbbf24; }
.mod-stat.red strong { color: #f87171; }
.mod-section { margin-top: 18px; }

.mod-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden;
}
.mod-table thead { background: rgba(255,255,255,0.04); }
.mod-table th {
  text-align: left; font-weight: 700; color: #94a3b8;
  padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.mod-table td { padding: 10px 12px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,0.04); }
.mod-table tbody tr:hover { background: rgba(16, 185, 129, 0.04); }

.pill {
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pill.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.pill.orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pill.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.btn-mini {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-mini:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-mini.green { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.btn-mini.green:hover { background: rgba(16, 185, 129, 0.25); }
.btn-mini.orange { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.btn-mini.orange:hover { background: rgba(245, 158, 11, 0.25); }
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 0; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

/* MODULE STANDARD */
.transcript {
  background: rgba(8, 12, 18, 0.5);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
}
.msg { padding: 6px 0; line-height: 1.5; color: #cbd5e1; }
.msg-client strong { color: #60a5fa; }
.msg-ai strong { color: #34d399; }
.msg-ai-meta { color: #64748b; font-style: italic; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; font-size: 11px; }

/* MODULE DEVIS */
.mod-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mod-toolbar input, .mod-toolbar select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0; font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
}
.mod-toolbar input { flex: 1; }
.devis-preview {
  background: rgba(8, 12, 18, 0.5);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12px;
}
.dp-row { display: flex; justify-content: space-between; padding: 5px 0; color: #cbd5e1; }
.dp-row.dp-total { border-top: 1px dashed rgba(255,255,255,0.1); margin-top: 6px; padding-top: 8px; font-weight: 700; color: #34d399; }
.mod-cta { display: flex; gap: 8px; margin-top: 12px; }

/* MODULE GARANTIE */
.alert-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #fecaca;
  font-size: 12px;
}
.ab-icon { font-size: 28px; }
.ai-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.ai-card-title { font-size: 12px; font-weight: 700; color: #34d399; margin-bottom: 6px; }
.ai-card p { font-size: 12px; }

/* MODULE MECANO */
.diag-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.diag-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
}
.diag-card.diag-ai { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.2); }
.diag-title { font-size: 12px; font-weight: 700; color: #34d399; margin-bottom: 10px; }
.diag-card:not(.diag-ai) .diag-title { color: #cbd5e1; }
.diag-list { list-style: none; font-size: 12px; }
.diag-list li { padding: 4px 0; display: flex; align-items: center; gap: 10px; color: #cbd5e1; }
.code {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.part-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
}
.part-card strong { display: block; color: #e2e8f0; font-size: 12px; margin-bottom: 4px; }
.part-card span { color: #94a3b8; }
.part-card.green { border-left: 3px solid #10b981; }
.part-card.orange { border-left: 3px solid #f59e0b; }

/* MODULE PNL */
.pnl-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pnl-chart-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
}
.canvas-wrap { position: relative; height: 220px; }
.sim-row {
  display: grid; grid-template-columns: 1fr 32px 1fr auto;
  gap: 14px; align-items: center;
  background: rgba(8, 12, 18, 0.5);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0;
}
.sim-before, .sim-after { font-size: 12px; }
.sim-before span, .sim-after span { display: block; color: #94a3b8; font-size: 11px; margin-bottom: 4px; }
.sim-before strong, .sim-after strong { font-size: 18px; color: #e2e8f0; }
.sim-after strong { color: #34d399; }
.sim-arrow { text-align: center; color: #34d399; font-size: 20px; }
.sim-delta { background: rgba(16, 185, 129, 0.15); color: #34d399; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; }

/* MODULE PLANNING */
.mod-planning-grid { width: 100%; border-collapse: collapse; font-size: 11px; }
.mod-planning-grid th, .mod-planning-grid td {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px;
}
.mod-planning-grid th { background: rgba(255,255,255,0.04); color: #94a3b8; font-weight: 700; }
.pg-name { background: rgba(16, 185, 129, 0.08); font-weight: 700; color: #34d399; width: 80px; }
.pg-cell { vertical-align: top; padding: 6px !important; }
.slot {
  display: block; font-size: 10px; font-weight: 600;
  padding: 4px 6px; border-radius: 5px; margin-bottom: 3px;
  background: rgba(16, 185, 129, 0.15); color: #34d399;
}
.slot.orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.slot.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.slot.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* MODULE ROI (iframe) */
.mod-roi { width: 100%; height: 100%; min-height: 600px; }

/* MODULE SETTINGS */
.set-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.set-section:last-child { border-bottom: 0; }
.set-section select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0; font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
}
.int-list, .team-list { list-style: none; font-size: 12px; }
.int-list li, .team-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #cbd5e1; }
.team-list li strong { color: #34d399; margin-right: 6px; }

/* ============================================================
   HEADER INTERACTIVE — clickable breadcrumb, quick search button
   ============================================================ */
.bc-clickable {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  color: #34d399; font-weight: 600; font-size: 12px;
  padding: 3px 6px; border-radius: 6px;
  font-family: inherit;
  transition: background 0.15s;
}
.bc-clickable:hover { background: rgba(16, 185, 129, 0.12); }
.bc-caret { font-size: 9px; opacity: 0.6; margin-left: 2px; }

.qs-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  color: #94a3b8;
  font-size: 13px; font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.qs-trigger:hover { background: rgba(255,255,255,0.07); border-color: rgba(16, 185, 129, 0.2); }
.qs-trigger .qs-icon { font-size: 14px; opacity: 0.7; }
.qs-trigger .qs-placeholder { flex: 1; text-align: left; color: #64748b; }

.tb-user { background: transparent; border: 0; cursor: pointer; transition: background 0.15s; padding: 4px 8px; border-radius: 8px; }
.tb-user:hover { background: rgba(255,255,255,0.04); }
.tb-caret { font-size: 9px; opacity: 0.5; margin-left: 4px; color: #94a3b8; }

/* ============================================================
   OVERLAYS — start menu, site switcher, user menu
   ============================================================ */
.start-menu, .site-switcher, .user-menu {
  position: absolute; top: 58px;
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 300;
  animation: dropOpen 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* START MENU */
.start-menu {
  left: 16px;
  width: 380px;
  padding: 16px;
}
.sm-header { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sm-title { font-size: 14px; font-weight: 800; color: #e2e8f0; margin-bottom: 2px; }
.sm-sub { font-size: 11px; color: #64748b; }
.sm-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.sm-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.sm-app:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}
.sm-app span { font-size: 24px; }
.sm-app div { font-size: 10px; color: #cbd5e1; font-weight: 600; text-align: center; line-height: 1.2; }
.sm-footer { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.sm-link {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0;
  color: #94a3b8;
  font-size: 12px; font-family: inherit; text-decoration: none;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer; text-align: left;
  transition: all 0.15s;
}
.sm-link:hover { background: rgba(255,255,255,0.04); color: #e2e8f0; }
.sm-exit, .um-exit {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
}
.sm-exit:hover, .um-exit:hover { background: rgba(245, 158, 11, 0.18) !important; color: #fcd34d !important; }

/* SITE SWITCHER */
.site-switcher {
  left: 180px;
  width: 280px;
  padding: 12px;
}
.ss-title { font-size: 12px; font-weight: 700; color: #94a3b8; padding: 6px 10px 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.ss-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent; border: 0;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit; text-align: left;
  transition: all 0.15s;
}
.ss-item:hover { background: rgba(255,255,255,0.04); }
.ss-item.active { background: rgba(16, 185, 129, 0.12); }
.ss-item.active .ss-name { color: #34d399; }
.ss-pin { font-size: 16px; }
.ss-name { flex: 1; font-size: 13px; font-weight: 600; color: #e2e8f0; }
.ss-meta { font-size: 10px; color: #64748b; }
.ss-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 0; }
.ss-group .ss-pin { color: #34d399; }
.ss-group .ss-name { color: #34d399; }

/* USER MENU */
.user-menu {
  right: 16px;
  width: 280px;
  padding: 12px;
}
.um-header {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.um-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.um-info { flex: 1; }
.um-name { font-size: 14px; font-weight: 800; color: #e2e8f0; }
.um-role { font-size: 11px; color: #94a3b8; }
.um-item {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0;
  width: 100%; padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer; text-align: left;
  color: #cbd5e1;
  font-size: 13px; font-family: inherit; text-decoration: none;
  transition: all 0.15s;
}
.um-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.um-item-icon { font-size: 15px; }
.um-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 0; }
.um-logout { color: #f87171 !important; }
.um-logout:hover { background: rgba(239, 68, 68, 0.1) !important; }

/* ============================================================
   COMMAND PALETTE — ⌘K
   ============================================================ */
.cmd-palette {
  position: fixed; inset: 0;
  z-index: 500;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: dropOpen 0.16s ease;
}
.cmd-palette[hidden],
.start-menu[hidden],
.site-switcher[hidden],
.user-menu[hidden] { display: none !important; }
.cmd-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(8px);
}
.cmd-modal {
  position: relative; z-index: 1;
  width: 600px; max-width: 92vw;
  background: rgba(10, 14, 22, 0.96);
  backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  overflow: hidden;
}
.cmd-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmd-icon { font-size: 18px; opacity: 0.7; }
.cmd-input-row input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  color: #fff;
  font-size: 15px; font-family: inherit;
}
.cmd-input-row input::placeholder { color: #64748b; }
.cmd-esc {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 7px;
  font-family: "JetBrains Mono", monospace;
}
.cmd-results { max-height: 50vh; overflow: auto; padding: 8px; }
.cmd-section-title {
  font-size: 11px; font-weight: 700; color: #64748b;
  padding: 8px 12px 6px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.cmd-result {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: transparent; border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer; text-align: left;
  font-family: inherit;
  transition: background 0.1s;
}
.cmd-result:hover, .cmd-result.cmd-active { background: rgba(16, 185, 129, 0.1); }
.cmd-result-icon { font-size: 18px; }
.cmd-result-body { flex: 1; }
.cmd-result-title { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.cmd-result-sub { font-size: 11px; color: #64748b; }
.cmd-result-shortcut {
  font-size: 10px; color: #94a3b8;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
}
.cmd-empty { padding: 28px; text-align: center; color: #64748b; font-size: 12px; }

/* ============================================================
   DOCK EXIT — escape hatch
   ============================================================ */
.dock-exit {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
  text-decoration: none;
  margin-left: 4px;
}
.dock-exit:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  transform: translateY(-8px) scale(1.15);
}

/* ============================================================
   MODULE LOUNGE CLIENT
   ============================================================ */
.mod-lounge .lounge-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: #dbeafe;
}
.lounge-banner-icon { font-size: 28px; }
.lounge-banner strong { color: #60a5fa; font-weight: 700; }

.feedback-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.fb-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.fb-card.fb-positive { border-left: 3px solid #10b981; }
.fb-card.fb-neutral { border-left: 3px solid #f59e0b; }
.fb-card.fb-negative { border-left: 3px solid #ef4444; background: rgba(239, 68, 68, 0.05); }
.fb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.fb-positive .fb-avatar { background: linear-gradient(135deg, #10b981, #059669); }
.fb-negative .fb-avatar { background: linear-gradient(135deg, #ef4444, #dc2626); }
.fb-content { font-size: 12px; }
.fb-name { font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.fb-meta { font-size: 10px; color: #64748b; margin-bottom: 4px; }
.fb-msg { color: #cbd5e1; line-height: 1.4; }
.stars { font-size: 13px; color: #fbbf24; letter-spacing: 1px; }
.stars-dim { color: #475569; }

.lounge-sms-table { margin-top: 8px; }

/* ============================================================
   MODULE BIG BOSS GROUPE
   ============================================================ */
.mod-bigboss .bb-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.bb-banner-icon { font-size: 32px; }
.bb-banner-content { flex: 1; }
.bb-banner-title { font-size: 14px; font-weight: 800; color: #c084fc; margin-bottom: 2px; }
.bb-banner-sub { font-size: 11px; color: #94a3b8; }

.bb-alerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 16px; }
.bb-alert-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
}
.bb-alert-card.bb-warn {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
}
.bb-alert-site { font-size: 13px; font-weight: 800; color: #fca5a5; margin-bottom: 4px; }
.bb-alert-card.bb-warn .bb-alert-site { color: #fbbf24; }
.bb-alert-issue { font-size: 11px; color: #cbd5e1; margin-bottom: 8px; line-height: 1.4; }
.bb-alert-fix { font-size: 11px; color: #94a3b8; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.08); }
.bb-alert-fix strong { color: #34d399; }

.mod-table-bb .bb-rank { font-size: 18px; }
.mod-table-bb .bb-trend-up { color: #34d399; font-weight: 700; }
.mod-table-bb .bb-trend-down { color: #f87171; font-weight: 700; }

.bb-levier {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
}
.bb-levier-title { font-size: 13px; font-weight: 800; color: #34d399; margin-bottom: 8px; }
.bb-levier-total {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 10px;
}
.bb-levier-total strong { font-size: 26px; font-weight: 800; color: #34d399; }
.bb-levier-total span { font-size: 12px; color: #94a3b8; }
.bb-levier-list { list-style: none; font-size: 12px; }
.bb-levier-list li { padding: 4px 0; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.bb-levier-list li::before { content: '▸'; color: #34d399; font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .desktop-widgets { display: none; }
  .desktop-icons { top: 70px; left: 16px; }
  .desk-icon { width: 72px; }
}
@media (max-width: 900px) {
  .desktop-icons { display: none; }
  .breadcrumb { display: none; }
  .taskbar-center { display: none; }
  .pnl-charts { grid-template-columns: 1fr; }
  .diag-grid { grid-template-columns: 1fr; }
  .mod-stats { grid-template-columns: 1fr 1fr; }
}
