:root {
  --bg-main: #060814;
  --bg-panel: rgba(13, 18, 36, 0.75);
  --bg-card: rgba(20, 27, 51, 0.65);
  --bg-input: rgba(10, 14, 28, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-main: 'Outfit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #050711 0%, #0a0d1d 100%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* APP LAYOUT */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* TOP TELEMETRY BAR */
.top-nav {
  height: 65px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #050711;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-hub {
  font-size: 11px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #050711;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tele-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.tele-info {
  display: flex;
  flex-direction: column;
}

.tele-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.tele-val {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.meter-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 3px 0;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.bg-purple { background: var(--purple) !important; }

.btn-clean-vram {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-clean-vram:hover {
  background: rgba(244, 63, 94, 0.3);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* MAIN BODY */
.main-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.nav-btn i {
  font-size: 16px;
  width: 20px;
}

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

.nav-btn.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.dot-online {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
  animation: pulse 2s infinite;
}

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

/* CONTENT AREA */
.content-area {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}

.tab-panel.active {
  display: flex;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.panel-header h2 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   📋 FORMS, INPUTS & CONTROLS DESIGN SYSTEM
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 16px;
}

.select-input, .text-input, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  line-height: 1.5;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.select-input:focus, .text-input:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  background: rgba(15, 22, 44, 0.95);
}

/* Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

output {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  font-size: 13px;
  margin-top: 4px;
}

/* STYLE ENGINE GRID */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.style-card i {
  font-size: 20px;
}

.style-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.style-card.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(0, 240, 255, 0.15));
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 15px var(--purple-glow);
}

/* ART MODE SWITCHER */
.art-mode-switch {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.art-mode-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.art-mode-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 240, 255, 0.2));
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ============================================================
   🎨 WORKSPACE LAYOUTS FOR ALL STUDIOS
   ============================================================ */
.art-workspace {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.code-workspace, .video-workspace, .audio-workspace, .vision-workspace {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1100px) {
  .art-workspace, .code-workspace, .video-workspace, .audio-workspace, .vision-workspace {
    grid-template-columns: 1fr;
  }
}

.art-controls-panel, .code-prompt-panel, .video-config, .audio-config, .vision-config {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.code-prompt-panel textarea {
  width: 100%;
  min-height: 140px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.code-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px 0;
}

.code-quick-actions .btn-action {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.code-quick-actions .btn-action:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.art-preview-panel, .code-output-panel, .video-preview-panel, .audio-result, .vision-result-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 520px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.code-output-panel {
  padding: 0;
  background: #080b12;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-output-panel .output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0d121f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan);
}

.code-display-container {
  flex: 1;
  padding: 20px;
  margin: 0;
  overflow-y: auto;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  min-width: 0;
}

.code-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

.code-placeholder i {
  font-size: 48px;
  color: var(--cyan);
  opacity: 0.4;
}

/* Chat & Studio Code Block (VS Code / Dark Theme) */
.chat-code-block {
  background: #060911;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chat-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111726;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
}

.chat-code-header span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy, .btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy:hover, .btn-copy-code:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.chat-code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: transparent;
  font-family: var(--font-mono);
}

.chat-code-block code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
}

/* Syntax Highlighting Tokens */
.tok-str { color: #a5d6ff; }
.tok-comment { color: #8b949e; font-style: italic; }
.tok-kw { color: #ff7b72; font-weight: 600; }
.tok-num { color: #79c0ff; }
.tok-obj { color: #d2a8ff; font-weight: 600; }
.tok-inline {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}
.md-h1 { font-size: 20px; color: var(--cyan); margin: 16px 0 8px 0; font-weight: 700; }
.md-h2 { font-size: 17px; color: var(--cyan); margin: 14px 0 6px 0; font-weight: 700; }
.md-h3 { font-size: 15px; color: var(--text-primary); margin: 12px 0 4px 0; font-weight: 600; }
.md-li-disc { margin-left: 20px; list-style-type: disc; color: var(--text-secondary); margin-bottom: 4px; }
.md-li-num { margin-left: 20px; list-style-type: decimal; color: var(--text-secondary); margin-bottom: 4px; }

.preview-box, .vision-image-display {
  flex: 1;
  min-height: 420px;
  background: rgba(5, 8, 20, 0.85);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.preview-placeholder i {
  font-size: 48px;
  opacity: 0.4;
}

.art-actions {
  display: flex;
  gap: 12px;
}

.art-actions .btn-action.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  background: rgba(10, 14, 28, 0.6);
  border-radius: 12px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  text-align: center;
}

.upload-dropzone:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  color: var(--cyan);
}

.upload-dropzone i {
  font-size: 32px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #050711;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-glow {
  box-shadow: 0 0 15px var(--purple-glow);
}

.btn-glow:hover {
  box-shadow: 0 0 25px var(--purple-glow);
}

.badge-installed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.w-full { width: 100%; }
.mt-2 { margin-top: 10px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }

/* ============================================================
   🌟 GOOGLE GEMINI ADVANCED AI STUDIO
   ============================================================ */
.gemini-layout {
  display: flex;
  height: calc(100vh - 110px);
  min-height: 620px;
  background: #0f121d;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* LEFT GEMINI SIDEBAR */
.gemini-sidebar {
  width: 280px;
  background: #090c15;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.gemini-sidebar.collapsed {
  width: 0;
  padding: 0;
  border-right: none;
  opacity: 0;
  pointer-events: none;
}

.gemini-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px 4px;
}

.gemini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.3px;
}

.gemini-sparkle-logo {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
}

.btn-gemini-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-gemini-new-chat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gemini-new-chat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.gemini-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.gemini-search-box i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.gemini-search-box input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.gemini-search-box input:focus {
  border-color: var(--cyan);
}

.gemini-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 8px 0 8px;
}

.gemini-history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gemini-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.btn-gemini-clear {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.btn-gemini-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--rose);
}

/* MAIN GEMINI VIEWPORT */
.gemini-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.05), transparent 50%),
              #0d111a;
  position: relative;
  overflow: hidden;
}

.gemini-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.gemini-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gemini-model-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.gemini-model-select {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
}

.gemini-model-select option {
  background: #0f172a;
  color: #fff;
}

.gemini-tone-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.gemini-tone-select {
  background: transparent;
  border: none;
  color: #fde68a;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
}

.gemini-tone-select option {
  background: #0f172a;
  color: #fff;
}

/* GEMINI MODAL */
.gemini-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.gemini-modal-content {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 540px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gemini-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gemini-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gemini-textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.gemini-textarea:focus {
  border-color: var(--cyan);
}

.gemini-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-gemini-save-prompt {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gemini-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gemini-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-gemini-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--cyan);
}

/* GEMINI SCROLL AREA */
.gemini-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 140px 32px;
  display: flex;
  flex-direction: column;
}

/* GEMINI HERO */
.gemini-hero {
  max-width: 780px;
  margin: 40px auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gemini-hero-sparkle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.gemini-hero-heading {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #f8fafc;
}

.gemini-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gemini-quick-prompts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gemini-prompt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gemini-prompt-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* GEMINI MESSAGES STREAM */
.gemini-stream {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gemini-msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: fadeIn 0.25s ease-out;
}

.gemini-msg-row.user {
  align-items: flex-end;
}

.gemini-user-bubble-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 78%;
  gap: 4px;
}

.gemini-user-bubble {
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 24px;
  border-bottom-right-radius: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  word-break: break-word;
}

.gemini-user-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.gemini-msg-row.user:hover .gemini-user-action-bar {
  opacity: 1;
}

.gemini-assistant-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.gemini-assistant-sparkle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.gemini-assistant-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gemini-text-body {
  font-size: 15px;
  line-height: 1.7;
  color: #e2e8f0;
  word-break: break-word;
}

.gemini-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  opacity: 0.85;
}

.btn-gemini-act {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gemini-act:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

/* FLOATING GEMINI BOTTOM DOCK */
.gemini-dock-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 16px 24px;
  background: linear-gradient(to top, #0d111a 75%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.gemini-dock {
  max-width: 820px;
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.gemini-dock:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.btn-gemini-dock-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-gemini-dock-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gemini-dock textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  padding: 8px 4px;
  min-height: 24px;
  max-height: 140px;
  resize: none;
  outline: none;
  overflow-y: hidden;
}

.gemini-dock-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-gemini-dock-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  color: #0f172a;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-gemini-dock-send:hover {
  transform: scale(1.06);
  background: #38bdf8;
  color: #030712;
}

.btn-gemini-dock-stop {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gemini-dock-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* CODE WORKSPACE */
.code-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.code-prompt-panel, .code-output-panel {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-display {
  flex: 1;
  background: #04060d;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  overflow: auto;
  border: 1px solid var(--border-color);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ART & ANIME STUDIO */
.art-workspace {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  flex: 1;
}

.art-controls-panel, .art-preview-panel {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

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

.style-card.active {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  box-shadow: 0 0 12px var(--purple-glow);
}

.form-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.preview-box {
  flex: 1;
  background: #04060d;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}

.preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.preview-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
}

/* VIDEO, AUDIO & VISION */
.video-workspace, .vision-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.video-config, .video-preview, .vision-input-panel, .vision-result-panel {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.upload-dropzone:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.audio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.audio-card {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col-span-2 { grid-column: span 2; }

.card-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ENGINES MANAGER */
.engines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.engine-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.engine-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.engine-title {
  font-size: 16px;
  font-weight: 700;
}

.engine-port {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ============================================================ */
/* ⚡ LIVE DOWNLOAD MONITOR BANNER                              */
/* ============================================================ */

.live-download-monitor {
  background: linear-gradient(135deg, rgba(13, 24, 48, 0.9), rgba(24, 15, 48, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monitor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.pulse-fast {
  animation: pulse 1s infinite !important;
}

.monitor-speed {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.monitor-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitor-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  width: 0%;
  border-radius: 5px;
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 0.4s ease;
}

.monitor-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.font-bold { font-weight: 700; }

/* ============================================================ */
/* 🤖 SECTION A: AI AUTO-DEVELOPER & DEVOPS AGENT PROMPT UI     */
/* ============================================================ */

.devops-agent-wrapper {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.08);
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.agent-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.agent-target-info {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.agent-console {
  background: rgba(5, 8, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  max-height: 280px;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.agent-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.25s ease-out;
}

.agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
}

.agent-avatar.user {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple);
}

.agent-avatar.ai {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.agent-msg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-text-body {
  color: var(--text-primary);
  word-break: break-word;
}

.agent-msg.system {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
}

.agent-msg.user .agent-text-body {
  color: #f1f5f9;
  font-weight: 500;
}

.agent-msg.assistant .agent-text-body {
  color: #e2e8f0;
}

.typing-cursor {
  display: inline-block;
  color: var(--cyan);
  font-weight: 800;
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.agent-msg-cmd {
  background: #02040a;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-exec-inline {
  background: var(--cyan);
  color: #050711;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.agent-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.pill-btn:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* PROMPT BOX MATCHING IMAGE 2 EXACTLY */
.agent-prompt-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s;
}

.agent-prompt-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.agent-prompt-box textarea {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 0;
  resize: none;
  height: 56px;
  outline: none !important;
  overflow: hidden;
  box-shadow: none !important;
}

.agent-prompt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.agent-model-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.agent-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-terminal-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-terminal-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-agent-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan);
  color: #050711;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: all 0.2s;
}

.btn-agent-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px var(--cyan);
}

/* ============================================================ */
/* 💻 SECTION B: REMOTE TERMINAL / POWERSHELL CONSOLE           */
/* ============================================================ */

.remote-terminal-wrapper {
  background: #03050c;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.terminal-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.terminal-quick-cmds {
  display: flex;
  gap: 6px;
}

.btn-term-cmd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-term-cmd:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.terminal-body {
  background: #010206;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #070a14;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
}

.term-prompt {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.terminal-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.btn-term-exec {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #050711;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* ============================================================ */
/* 📦 SECTION C: 1-CLICK MODEL CATALOG & DOWNLOADER             */
/* ============================================================ */

.model-catalog-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
}

.cat-filter-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.model-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.catalog-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

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

.catalog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.catalog-tag {
  font-size: 10px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.catalog-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.catalog-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.catalog-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.card-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  width: 0%;
  transition: width 0.3s ease;
}

.btn-install-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-install-card:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-install-card.installed {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald);
  color: var(--emerald);
  cursor: default;
}

/* CUSTOM DOWNLOADER */
.custom-downloader-box {
  background: rgba(5, 8, 20, 0.8);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.downloader-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.downloader-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   📱 BUSINESS AUTOMATION & MESSAGING (SMS & WHATSAPP)
   ============================================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.biz-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.biz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.biz-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   📈 OPEN-SEO & CONTENT GROWTH SUITE
   ============================================================ */
.seo-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-input-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.seo-results-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.seo-score-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seo-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0deg 315deg, rgba(255, 255, 255, 0.1) 315deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.seo-score-circle::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0d1224;
}

.seo-score-num {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}

.seo-details-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-kw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ============================================================
   ⚡ OMNIROUTE & PORTKEY AI GATEWAY
   ============================================================ */
.gateway-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gw-stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.gw-stat-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.gw-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gw-test-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

/* ============================================================
   🏋️‍♂️ LORA TRAINER, DEEP RESEARCH & CODE SANDBOX STYLES
   ============================================================ */
.trainer-workspace,
.research-workspace {
  margin-top: 10px;
}

.trainer-controls-card,
.trainer-monitor-card,
.research-controls-card,
.research-output-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.trainer-controls-card:hover,
.research-controls-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.agent-bridge-grid .audio-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.agent-bridge-grid .audio-card:hover {
  transform: translateY(-2px);
}

.sandbox-terminal-box pre::-webkit-scrollbar,
#train-log-output::-webkit-scrollbar,
#research-report-content::-webkit-scrollbar {
  width: 6px;
}

.sandbox-terminal-box pre::-webkit-scrollbar-thumb,
#train-log-output::-webkit-scrollbar-thumb,
#research-report-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* ============================================================
   ⚡ OPENTHAI-SYSTEMONE (JEV THAI) STUDIO STYLES
   ============================================================ */
.btn-preset:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.5) !important;
}

#btn-run-systemone:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45) !important;
}

#btn-run-systemone:active {
  transform: scale(0.99);
}

/* ============================================================
   🤖 JARVIS VOICE AI & OPERATING SYSTEM STUDIO STYLES
   ============================================================ */
.jarvis-studio-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 4px 30px 4px;
}

.jarvis-header-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.85), rgba(20, 27, 51, 0.75));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
}

.jarvis-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.jarvis-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: jarvisPulse 1.8s infinite;
}

@keyframes jarvisPulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px var(--cyan); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--cyan); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px var(--cyan); }
}

.jarvis-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jarvis-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 750px;
  margin-top: 4px;
  line-height: 1.5;
}

.jarvis-header-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.jarvis-settings-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 28, 0.7);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.jarvis-select-compact {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}

/* MAIN GRID */
.jarvis-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
}

@media (max-width: 1100px) {
  .jarvis-main-grid {
    grid-template-columns: 1fr;
  }
}

/* REACTOR PANEL */
.jarvis-reactor-panel {
  background: rgba(13, 18, 36, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ARC REACTOR ANIMATION */
.arc-reactor-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 15px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arc-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.35);
}

.ring-outer {
  width: 190px;
  height: 190px;
  border-color: rgba(0, 240, 255, 0.3);
  animation: arcSpin 20s linear infinite;
}

.ring-mid {
  width: 145px;
  height: 145px;
  border: 2px dotted rgba(168, 85, 247, 0.4);
  animation: arcSpinRev 14s linear infinite;
}

.ring-inner {
  width: 105px;
  height: 105px;
  border: 2px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.arc-core {
  width: 75px;
  height: 75px;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 40%, rgba(2, 132, 199, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}

.arc-core i {
  font-size: 26px;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.arc-reactor-wrapper.listening .arc-core {
  background: radial-gradient(circle, #f43f5e 0%, #e11d48 50%, rgba(225, 29, 72, 0.3) 100%);
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.9);
  animation: pulseListen 1s infinite alternate;
}

.arc-reactor-wrapper.listening .ring-outer {
  border-color: rgba(244, 63, 94, 0.6);
  animation-duration: 6s;
}

.arc-reactor-wrapper.thinking .arc-core {
  background: radial-gradient(circle, #a855f7 0%, #7e22ce 50%, rgba(126, 34, 206, 0.3) 100%);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.9);
  animation: pulseListen 0.6s infinite alternate;
}

.arc-reactor-wrapper.speaking .arc-core {
  background: radial-gradient(circle, #10b981 0%, #059669 50%, rgba(5, 150, 105, 0.3) 100%);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.9);
  animation: pulseListen 0.8s infinite alternate;
}

@keyframes arcSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes arcSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseListen {
  from { transform: scale(0.96); }
  to { transform: scale(1.08); }
}

/* STATE CAPTION */
.jarvis-state-caption {
  margin-bottom: 16px;
}

.state-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--cyan);
}

.state-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* SOUNDWAVE */
.jarvis-soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 35px;
  margin-bottom: 18px;
}

.wave-bar {
  width: 4px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.jarvis-soundwave.active .wave-bar {
  animation: waveDance 0.8s ease-in-out infinite alternate;
}

.jarvis-soundwave.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.jarvis-soundwave.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.jarvis-soundwave.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.jarvis-soundwave.active .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.jarvis-soundwave.active .wave-bar:nth-child(6) { animation-delay: 0.3s; }
.jarvis-soundwave.active .wave-bar:nth-child(7) { animation-delay: 0.2s; }
.jarvis-soundwave.active .wave-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes waveDance {
  0% { height: 6px; }
  100% { height: 32px; background: #a855f7; }
}

/* MIC CONTROLS */
.jarvis-mic-controls {
  width: 100%;
  margin-bottom: 16px;
}

.btn-jarvis-mic {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 14px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.btn-jarvis-mic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.btn-jarvis-mic.active {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: #f43f5e;
  box-shadow: 0 4px 25px rgba(244, 63, 94, 0.5);
}

/* TEXT INPUT */
.jarvis-input-bar {
  display: flex;
  width: 100%;
  gap: 8px;
}

.jarvis-input-bar input {
  flex: 1;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
}

.jarvis-input-bar input:focus {
  border-color: var(--cyan);
}

.btn-jarvis-send {
  background: var(--cyan);
  color: #050711;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

/* RIGHT: MINIMALIST CYBER TERMINAL & HUD CONSOLE */
.jarvis-actions-panel.jarvis-terminal-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jarvis-terminal-card.full-hud {
  background: radial-gradient(circle at top right, rgba(14, 25, 55, 0.7), rgba(6, 9, 19, 0.95) 70%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  position: relative;
}

/* Sci-fi Scanline background pattern */
.jarvis-terminal-card.full-hud::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 25, 45, 0) 50%, rgba(0, 240, 255, 0.015) 50%),
              linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 4px, 40px 100%;
  pointer-events: none;
  opacity: 0.7;
}

.terminal-header {
  background: rgba(13, 20, 38, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
}

.terminal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.terminal-pulse {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: jarvisPulse 1.8s infinite;
}

.terminal-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 9px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.terminal-badge.badge-phone {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.terminal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.terminal-action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.terminal-action-pill:hover {
  transform: translateY(-1px);
}

.terminal-action-pill.pill-rose:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fca5a5;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.terminal-action-pill.pill-sky:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #bae6fd;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.terminal-action-pill.pill-purple:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.btn-clear-term {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-clear-term:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

/* TERMINAL LOG STREAM - EXPANSIVE & SPACIOUS */
.jarvis-log-stream {
  flex: 1;
  padding: 20px 24px;
  min-height: 420px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.jarvis-log-stream::-webkit-scrollbar {
  width: 7px;
}
.jarvis-log-stream::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}
.jarvis-log-stream::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 4px;
}
.jarvis-log-stream::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.log-entry {
  display: flex;
  gap: 12px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  animation: fadeIn 0.25s ease-out;
}

.jarvis-entry {
  background: rgba(0, 240, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.12);
}

.jarvis-entry .entry-speaker {
  color: var(--cyan);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  flex-shrink: 0;
}

.user-entry {
  background: rgba(168, 85, 247, 0.03);
  border-color: rgba(168, 85, 247, 0.15);
}

.user-entry .entry-speaker {
  color: #c084fc;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  flex-shrink: 0;
}

.entry-content {
  color: #e2e8f0;
  word-break: break-word;
}

/* MINIMALIST FOOTER HUD CHIPS */
.terminal-footer-hud {
  background: rgba(10, 15, 30, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.hud-prompt-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.hud-chip {
  background: rgba(13, 20, 38, 0.8) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  color: #e2e8f0 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-family: inherit !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.hud-chip:hover {
  background: rgba(0, 240, 255, 0.18) !important;
  border-color: var(--cyan) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

/* TERMINAL ACTION PILLS (HEADER) */
.terminal-action-pill {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
}

.terminal-action-pill:hover {
  transform: translateY(-1px) !important;
}

.terminal-action-pill.pill-rose:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: #f43f5e !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4) !important;
}

.terminal-action-pill.pill-sky:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #bae6fd !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

.terminal-action-pill.pill-purple:hover {
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: #a855f7 !important;
  color: #e9d5ff !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
}

/* HUD STATIONS */
.jarvis-hud-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .jarvis-hud-stations {
    grid-template-columns: 1fr;
  }
}

.hud-station-card {
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.85), rgba(20, 27, 51, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.hud-station-card.station-ai {
  border-color: rgba(0, 240, 255, 0.25);
}
.hud-station-card.station-phone {
  border-color: rgba(56, 189, 248, 0.25);
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.station-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 7px;
}

.station-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.station-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-btn span {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.station-btn:hover {
  transform: translateY(-2px);
}

/* J.A.R.V.I.S. Self-Healing & Dynamic Code Execution Accordion */
.jarvis-msg details {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.jarvis-msg details[open] {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.jarvis-msg summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  outline: none;
}

.jarvis-msg summary:hover {
  color: #e9d5ff;
}

.jarvis-msg pre {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 6px;
  padding: 10px;
  overflow-x: auto;
}

.jarvis-self-heal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.5);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #e0e7ff;
}

