:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-secondary: rgba(15, 23, 42, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.4);
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #f43f5e;
  
  --agent-scout: #38bdf8;
  --agent-synth: #a855f7;
  --agent-auditor: #f59e0b;
  --agent-strat: #10b981;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* BACKGROUND GRAPHICS */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at top center, #0f172a 0%, #07090e 100%);
}

#neuralCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.orb-2 {
  bottom: 10%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation-delay: -7s;
}

.orb-3 {
  top: 40%;
  left: 40%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* APP SHELL */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0.75rem 2rem 2rem 2rem;
}

/* LIVE TICKER BAR */
.live-ticker-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.45rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pulse-red {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseDot 1.2s infinite;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.ticker-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ticker-signal-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

.ticker-badge {
  font-size: 0.65rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  font-weight: 700;
}

.refresh-ticker-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.refresh-ticker-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* HEADER */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.logo-text h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.sub-logo {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upgrade-pill-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(244, 63, 94, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.upgrade-pill-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(244, 63, 94, 0.35));
  color: #fff;
}

.header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.shield-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.shield-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.shield-grade {
  font-weight: 800;
  font-family: var(--font-mono);
}

.key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}

.key-status-dot.inactive {
  background: var(--accent-amber);
}

.ping-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* MAIN LAYOUT */
.main-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  flex: 1;
}

/* GLASS PANEL */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* SIDEBAR CONTROLS */
.control-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.panel-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.panel-header .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-section label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-select, .custom-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.custom-select:focus, .custom-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

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

.agent-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.agent-mode-selector label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.mode-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.action-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #07090e;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

.primary-btn:active {
  transform: translateY(0);
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }
  50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.75); }
  100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 0.2rem 0;
}

/* ROSTER */
.roster-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.roster-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-text-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.agent-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agent-roster-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.agent-roster-item.active-speaking {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.agent-avatar.scout { border-color: var(--agent-scout); background: rgba(56, 189, 248, 0.15); }
.agent-avatar.synth { border-color: var(--agent-synth); background: rgba(168, 85, 247, 0.15); }
.agent-avatar.auditor { border-color: var(--agent-auditor); background: rgba(245, 158, 11, 0.15); }
.agent-avatar.strat { border-color: var(--agent-strat); background: rgba(16, 185, 129, 0.15); }

.agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.agent-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.agent-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.agent-badge {
  font-size: 0.6rem;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.agent-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.agent-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.agent-state-dot.idle { background: var(--text-muted); }
.agent-state-dot.thinking {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulseDot 1s infinite;
}
.agent-state-dot.speaking {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* WORKSPACE AREA */
.workspace-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.metric-card .card-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card .card-body {
  display: flex;
  flex-direction: column;
}

.metric-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.metric-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.15rem 0;
}

.metric-number-row .metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.metric-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-change {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

.metric-change.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.metric-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* TABS CONTAINER */
.tabs-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.tab-buttons {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

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

.tab-actions {
  display: flex;
  gap: 0.4rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.tab-content {
  flex: 1;
  padding: 1.25rem;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}

.tab-pane {
  display: none;
  height: 100%;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* STREAM VIEW */
.stream-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.2rem;
}

.active-task-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.task-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.blink-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
  animation: pulseDot 1s infinite;
}

.agent-dialogue-stream {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* WELCOME CARD */
.stream-welcome-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  text-align: left;
}

.welcome-icon {
  font-size: 3rem;
  background: rgba(56, 189, 248, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.welcome-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.welcome-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.quick-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-tag:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

/* AGENT MESSAGE BUBBLE */
.agent-message-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  animation: messageSlideUp 0.35s ease-out forwards;
  transition: var(--transition-fast);
}

@keyframes messageSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-message-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.agent-message-card.scout-card { border-left: 4px solid var(--agent-scout); }
.agent-message-card.synth-card { border-left: 4px solid var(--agent-synth); }
.agent-message-card.auditor-card { border-left: 4px solid var(--agent-auditor); }
.agent-message-card.strat-card { border-left: 4px solid var(--agent-strat); }

.msg-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.msg-body-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

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

.msg-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.msg-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.msg-role-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.48rem;
  border-radius: var(--radius-full);
}

.tag-scout { background: rgba(56, 189, 248, 0.15); color: var(--agent-scout); border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-synth { background: rgba(168, 85, 247, 0.15); color: var(--agent-synth); border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-auditor { background: rgba(245, 158, 11, 0.15); color: var(--agent-auditor); border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-strat { background: rgba(16, 185, 129, 0.15); color: var(--agent-strat); border: 1px solid rgba(16, 185, 129, 0.3); }

.msg-timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.agent-thought-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msg-text-content {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.msg-text-content p {
  margin-bottom: 0.5rem;
}

.msg-text-content ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.msg-text-content li {
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.msg-text-content li strong {
  color: var(--text-primary);
}

.msg-metrics-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.mini-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mini-badge b {
  color: var(--text-primary);
}

/* THINKING SPINNER */
.agent-thinking-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.thinking-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.thinking-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* REPORT DOSSIER */
.report-container {
  padding: 0.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 3.5rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 500px;
  font-size: 0.9rem;
}

.dossier-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.dossier-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dossier-title-group h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.dossier-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dossier-grade-badge {
  padding: 0.6rem 1.2rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  text-align: right;
}

.grade-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.grade-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

.dossier-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dossier-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-section p, .dossier-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dossier-section ul {
  padding-left: 1.25rem;
}

.dossier-section li {
  margin-bottom: 0.45rem;
}

.dossier-section li strong {
  color: var(--text-primary);
}

.radar-quadrant-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.quadrant-cell {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.quadrant-cell h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quadrant-cell p {
  font-size: 0.84rem !important;
  color: var(--text-secondary);
}

/* SAAS PRICING VIEW */
.pricing-view {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

.pricing-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.saas-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pricing-header-center h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-tier-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: var(--transition-fast);
}

.pricing-tier-card.featured-tier {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  transform: scale(1.03);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  color: #07090e;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.tier-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0.3rem 0;
}

.tier-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tier-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tier-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 40px;
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.tier-features-list li strong {
  color: var(--text-primary);
}

.tier-features-list li.disabled-feature {
  color: var(--text-muted);
  opacity: 0.6;
}

.stripe-integration-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.stripe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stripe-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.stripe-integration-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CHECKOUT MODAL */
.checkout-summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

.plan-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-summary-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.checkout-price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.stripe-sim-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.9rem;
  border-radius: var(--radius-md);
}

.sim-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

/* LAUNCH & MARKETING KIT */
.launch-kit-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.launch-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.launch-assets-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.launch-asset-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.asset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-top h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.launch-code {
  background: #05070c;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

/* SAVED DOSSIERS LIBRARY */
.library-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.saved-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.saved-dossier-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition-fast);
}

.saved-dossier-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.saved-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.saved-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.saved-dossier-card h4 {
  font-size: 1rem;
  font-weight: 700;
}

.saved-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saved-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.saved-load-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.saved-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.saved-del-btn:hover {
  color: var(--accent-red);
}

/* RADAR TAB */
.radar-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.radar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.sub-p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.radar-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.radar-item-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.radar-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.radar-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.radar-item-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.sentiment-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.sentiment-badge.bullish {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment-badge.high-friction {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.radar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.radar-progress-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.progress-label {
  color: var(--text-muted);
}

.progress-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: var(--radius-full);
}

/* TERMINAL VIEW */
.terminal-container {
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.clear-term-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.clear-term-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.terminal-body {
  flex: 1;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5b4fc;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* SECURITY AUDIT MODAL */
.security-score-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sec-score {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.sec-score-sub {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
}

.security-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sec-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.sec-icon {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sec-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sec-item-text strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.sec-item-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sec-item-text code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #fff;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.agent-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.agent-edit-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.agent-edit-box label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* FOOTER */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0.5rem 0.5rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-sm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

/* PRINT & PDF STYLES */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-background, .app-header, .control-sidebar, .metrics-grid, .tabs-header, .app-footer, .live-ticker-bar {
    display: none !important;
  }
  .app-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .main-layout {
    display: block !important;
  }
  .tabs-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .tab-pane {
    display: none !important;
  }
  #reportTab {
    display: block !important;
  }
  .dossier-card {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    padding: 1rem !important;
  }
  .dossier-title-group h2 {
    color: #000 !important;
  }
  .dossier-section h3 {
    color: #0284c7 !important;
  }
  .dossier-section p, .dossier-section li {
    color: #333 !important;
  }
  .quadrant-cell {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #111 !important;
  }
  .quadrant-cell p {
    color: #475569 !important;
  }
}

/* CUSTOM SCROLLBARS */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 0.75rem;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .tabs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .tab-buttons {
    overflow-x: auto;
    width: 100%;
  }
}
