:root {
  /* Ultra-luxurious warm cream & linen base */
  --bg-main: #FDFBF7;
  --bg-liquid-1: #FFF5EA;
  --bg-liquid-2: #EFEBE3;
  --bg-liquid-3: #F5EFEB;
  
  /* Milky glass layers */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 16px 40px -10px rgba(180, 170, 150, 0.15);

  /* Map standard color references to the new theme variables */
  --bg-page: var(--bg-main);
  --bg-card: var(--glass-bg);
  --border-color: var(--glass-border);
  
  /* Text & Accents */
  --text-primary: #2C2A27;
  --text-secondary: #706B63;
  --accent-gold: #D4AF37;
  --accent-cyan: #0284c7; /* Luxury sky/ocean blue */
  
  /* Inherited status codes */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  --sidebar-width: 250px;
  --logs-width: 320px;
}

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

.hidden {
  display: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Liquid Morphism Backdrop Blobs */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: morph 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(254,230,138,0.6) 0%, rgba(251,191,36,0.2) 100%);
  animation-duration: 28s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(186,230,253,0.7) 0%, rgba(2,132,199,0.25) 100%);
  animation-duration: 32s;
  animation-delay: -6s;
}

.blob-3 {
  top: 35%;
  right: 15%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(204,251,241,0.65) 0%, rgba(13,148,136,0.2) 100%);
  animation-duration: 26s;
  animation-delay: -12s;
}

.relative-z {
  position: relative;
  z-index: 10;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(4vw, -4vh) scale(1.08) rotate(120deg);
  }
  66% {
    border-radius: 50% 50% 30% 70% / 40% 60% 30% 70%;
    transform: translate(-3vw, 5vh) scale(0.92) rotate(240deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* Main Layout Structure */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styling */
.app-header {
  height: 70px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 40;
}

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

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.brand-meta h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-meta p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--success); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Workspace Layout split */
.workspace-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar Navigation */
.sidebar-navigation {
  width: var(--sidebar-width);
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 24px;
}

.sidebar-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 8px;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.nav-links li:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.nav-links li.active {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
  font-weight: 600;
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px 8px 8px 4px;
}

.active-client-card {
  margin-top: auto;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.active-client-card label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.client-meta-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.meta-label {
  color: var(--text-secondary);
}

.meta-value {
  font-weight: 600;
}

/* Main Viewport panel */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  background-color: transparent;
}

.tab-panel {
  display: none;
  animation: fade-in 0.3s ease-in-out;
}

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Standard Components: Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-b: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.card-header i {
  font-size: 16px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Controls */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.flex-group {
  display: flex;
  gap: 12px;
}

.flex-item {
  flex: 1;
}

.input-hint {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 18px;
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
}

.btn-primary:hover {
  background-color: #e5a100;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.w-full {
  width: 100%;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-info {
  background-color: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.alert-list {
  list-style: disc;
  margin-left: 16px;
  margin-top: 4px;
}

/* Visualizer & Code Preview containers */
.visualizer-container {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.02);
  padding: 20px;
}

.flow-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.dash-flow {
  animation: svg-flow 20s infinite linear;
}

@keyframes svg-flow {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

.code-preview-container {
  background-color: #050507;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  max-height: 280px;
}

.code-pre-box {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-pre-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a78bfa;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.data-table th {
  background-color: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.progress-track {
  width: 100px;
  height: 6px;
  background-color: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-cyan);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* KPI Cards Layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 576px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

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

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

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-trend {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Compliance Document box */
.compliance-document-box {
  background-color: #050507;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #d4d4d8;
  overflow-y: auto;
  max-height: 400px;
}

.compliance-document-box h1 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.compliance-document-box h2 { font-size: 13px; font-weight: 700; color: #fff; margin-top: 14px; margin-bottom: 6px; }
.compliance-document-box p { margin-bottom: 10px; }

/* Right Logs Console Sidebar */
.right-logs-sidebar {
  width: var(--logs-width);
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logs-console {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  animation: slide-up-log 0.2s ease-out;
}

@keyframes slide-up-log {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-time {
  color: var(--text-secondary);
}

.log-type {
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 4px;
}

.log-type.system { color: #818cf8; }
.log-type.bitgo { color: var(--accent-gold); }
.log-type.client { color: var(--accent-cyan); }

.sidebar-logs-footer {
  padding: 10px;
  border-top: 1px solid var(--border-color);
}

#terminal-cmd {
  width: 100%;
  background-color: rgba(0,0,0,0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  font-size: 11px;
}

/* Colors & Helpers */
.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Checklist Items */
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.check-item.checked {
  color: var(--text-primary);
}

.check-item.checked i {
  color: var(--success);
}

/* AI Command Console Badges */
.badge-cmd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.badge-cmd:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

#ai-verbal-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15) !important;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

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

/* ----------------------------------------------------
   Simple / Advanced Console Mode Layout Overrides
   ---------------------------------------------------- */
.switch input:checked + .slider {
  background-color: var(--accent-cyan);
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-cyan);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

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

/* Simple AI Mode Layout Rules */
.simple-ai-mode .sidebar-navigation {
  display: none !important;
}

.simple-ai-mode .right-logs-sidebar {
  display: none !important;
}

.simple-ai-mode .main-viewport {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 10px;
}

.simple-ai-mode .tab-panel {
  display: none !important; /* Hide direct form panels in simple mode */
}

/* Slide animation helper */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   Sovereign AI Gateway surface styles
   ---------------------------------------------------- */
.ai-hero-gateway {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: fadeIn 0.8s ease;
}

.hero-text-block h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-text-block .highlight {
  font-weight: 400;
  color: var(--text-secondary);
}

.sub-narrative {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.simple-mint-wizard {
  width: 100%;
  max-width: 750px;
  background: var(--glass-bg);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  box-shadow: var(--glass-shadow);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.console-prompt {
  position: absolute;
  left: 20px;
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: bold;
}

#ai-command-input {
  width: 100%;
  padding: 20px 24px;
  padding-left: 45px;
  padding-right: 180px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

#ai-command-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.mic-btn {
  position: absolute;
  right: 145px;
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

.mic-btn:hover {
  transform: scale(1.15);
}

.ask-btn {
  position: absolute;
  right: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.ask-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.suggestion-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1.5px);
}

/* Blueprint card styles */
.agent-proposal-card {
  width: 100%;
  max-width: 700px;
  background: var(--glass-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  animation: fadeIn 0.4s ease;
}

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

.card-header h3 {
  margin: 0;
  color: var(--accent-gold);
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.status-pill {
  font-size: 0.72rem;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.blueprint-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.bp-row {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.primary-launch-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-launch-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.35);
}

/* Advanced Dashboard Wrapper */
.expert-dashboard-matrix {
  animation: fadeIn 0.5s ease;
}

.expert-dashboard-matrix.hidden {
  display: none !important;
}

/* main-header updates */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  z-index: 50;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area h1 {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--text-primary);
}

.logo-area .lightning {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.logo-area .badge {
  font-size: 0.65rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.system-status {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.toggle-advanced-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--glass-shadow);
}

.toggle-advanced-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Guided Modal Styles */
.guided-registration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 42, 39, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.guided-registration-overlay.hidden {
  display: none !important;
}

.modal-window {
  width: 90%;
  max-width: 500px;
  background: rgba(253, 251, 247, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  text-align: center;
  color: var(--text-primary);
}

.progress-bar-container {
  background: rgba(0, 0, 0, 0.05);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.terminal-feed {
  background: rgba(15, 14, 12, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 15px;
  height: 140px;
  overflow-y: auto;
  text-align: left;
  font-family: monospace;
  font-size: 0.78rem;
  color: #00ff88;
  line-height: 1.6;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

/* ----------------------------------------------------
   Agent Credit Ledger Styles
   ---------------------------------------------------- */
.agent-credit-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: -15px;
}

.credit-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.credit-metric strong {
  color: var(--text-primary);
}

.btn-topup {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-topup:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-0.5px);
}

/* Model Selector inside Prompt Input Wrapper */
.model-select-dropdown {
  position: absolute;
  right: 185px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.model-select-dropdown:hover, .model-select-dropdown:focus {
  border-color: var(--accent-gold);
}

/* Adjust prompt input padding to prevent overlapping dropdown selector */
#ai-command-input {
  padding-right: 320px !important;
}

.mic-btn {
  right: 152px !important;
}

/* Liquid Morphism Backdrop CSS */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background-color: var(--bg-liquid-1);
}

.blob-2 {
  top: 35%;
  right: -10%;
  width: 700px;
  height: 700px;
  background-color: var(--bg-liquid-2);
}

.blob-3 {
  bottom: -10%;
  left: 15%;
  width: 550px;
  height: 550px;
  background-color: var(--bg-liquid-3);
}

.relative-z {
  position: relative;
  z-index: 10;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(40px, -60px) rotate(180deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0px, 0px) rotate(360deg);
  }
}

@keyframes morphDelayed {
  0% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(0px, 0px) rotate(180deg);
  }
  50% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(-50px, 40px) rotate(0deg);
  }
  100% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: translate(0px, 0px) rotate(180deg);
  }
}

.animate-morph {
  animation: morph 22s infinite alternate ease-in-out;
}

.animate-morph-delayed {
  animation: morphDelayed 26s infinite alternate ease-in-out;
}

@keyframes slow-fluid {
  0% { border-radius: 45% 55% 65% 35% / 40% 45% 60% 55%; transform: translate(0, 0) scale(1); }
  50% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; transform: translate(20px, -40px) scale(1.05); }
  100% { border-radius: 45% 55% 65% 35% / 40% 45% 60% 55%; transform: translate(0, 0) scale(1); }
}

.liquid-backdrop-blob {
  animation: slow-fluid 22s infinite alternate ease-in-out;
}
