@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #0a0b10;
  --bg-glass: rgba(16, 18, 27, 0.4);
  --bg-glass-bright: rgba(25, 28, 41, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.4);
  
  --primary: #00f2fe; /* Cyber Cyan */
  --primary-glow: rgba(0, 242, 254, 0.35);
  --secondary: #4facfe; /* Deep Blue */
  --accent: #a18cd1; /* Soft Violet */
  --accent-glow: rgba(161, 140, 209, 0.25);
  
  --success: #05f3a2; /* Emerald Green */
  --success-glow: rgba(5, 243, 162, 0.2);
  --warning: #fbc2eb; /* Rosy Pink */
  --danger: #ff5e62; /* Hot Coral */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 10% 20%, rgba(79, 172, 254, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(161, 140, 209, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-glow);
}

/* OS Container and Grid Layout */
.os-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: rgba(10, 11, 16, 0.85);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 10;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-left: 8px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #c2e9fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.nav-item.active {
  border-color: var(--border-active);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-item.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--border-glass);
}

.founder-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.founder-title {
  font-size: 0.7rem;
  color: var(--primary);
  font-family: var(--font-mono);
}

/* Main OS Workspace Area */
.main-workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

/* System Header / Status Bar */
.system-header {
  height: 64px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 11, 16, 0.4);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.dot.processing {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite;
}

.system-clock {
  color: var(--text-muted);
}

/* App View Containers */
.view-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.view-container.active {
  display: block;
}

/* Glass Card & Elements */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Typography & Headings */
h2.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

h3.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* OS Buttons */
.btn {
  background: var(--bg-glass-bright);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35), rgba(79, 172, 254, 0.35));
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-danger {
  border-color: var(--danger);
  background: rgba(255, 94, 98, 0.1);
}
.btn-danger:hover {
  background: rgba(255, 94, 98, 0.25);
  box-shadow: 0 0 15px rgba(255, 94, 98, 0.25);
}

/* Interactive Input Panel */
.search-container {
  display: flex;
  gap: 12px;
  background: var(--bg-glass-bright);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 8px;
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Idea Cards list */
.preseeded-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.idea-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.idea-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}

.idea-card.active .idea-badge {
  border-color: var(--primary);
  color: var(--primary);
}

.idea-stats {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.stat-item span:first-child {
  color: var(--text-dim);
  display: block;
}
.stat-item span:last-child {
  font-weight: bold;
}

.score-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.score-high {
  color: var(--success);
  background: rgba(5, 243, 162, 0.1);
  border: 1px solid rgba(5, 243, 162, 0.2);
}
.score-medium {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Agent Processing Simulator Panel */
.simulator-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.terminal-log-container {
  background: #05060b;
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  flex-grow: 1;
  height: 250px;
  overflow-y: auto;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.log-line {
  margin-bottom: 6px;
  line-height: 1.4;
  opacity: 0.95;
}

.log-line.system {
  color: var(--accent);
}
.log-line.agent {
  color: var(--primary);
}
.log-line.success {
  color: var(--success);
}
.log-line.warning {
  color: var(--warning);
}
.log-line.highlight {
  color: #fff;
  font-weight: 600;
}

/* Agent cards stack */
.agents-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* Investment Committee Voter Cards */
.committee-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  transition: var(--transition);
}

.committee-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.agent-progress-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.agent-progress-card.active {
  background: rgba(161, 140, 209, 0.05);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: borderPulse 1.5s infinite;
}

.agent-progress-card.completed {
  background: rgba(5, 243, 162, 0.03);
  border-color: var(--success);
}

.agent-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.agent-progress-card.active .agent-icon-wrap {
  background: var(--accent-glow);
  color: var(--accent);
}

.agent-progress-card.completed .agent-icon-wrap {
  background: var(--success-glow);
  color: var(--success);
}

.agent-mini-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-mini-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.agent-mini-status {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.agent-progress-card.active .agent-mini-status {
  color: var(--accent);
}

.agent-progress-card.completed .agent-mini-status {
  color: var(--success);
}

/* Report View Layout & Styling */
.report-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.report-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.report-tab:hover {
  color: var(--text-main);
  background: var(--border-glass);
}

.report-tab.active {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
}

.report-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.report-section.active {
  display: block;
}

/* Score Summary Circular Progress Widget */
.score-circle-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8;
}

.score-circle-bar {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1s ease-in-out;
}

.score-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Metric row details */
.metric-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.metric-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Radar Chart Canvas Container */
.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
  position: relative;
}

.radar-chart-container canvas {
  max-width: 100%;
  max-height: 100%;
}

/* Competitor Matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.matrix-table th, .matrix-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
}

.matrix-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table td {
  color: var(--text-muted);
}

.matrix-table tr:hover td {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.01);
}

/* Timeline/Roadmap */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 20px;
  margin-top: 16px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-glass);
}

.roadmap-step {
  position: relative;
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-glass);
  border: 2px solid var(--bg-deep);
  transition: var(--transition);
}

.roadmap-step.active::before {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  border-color: var(--primary);
}

.roadmap-content {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 16px;
}

.roadmap-content h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-v {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--primary-glow);
  color: var(--primary);
}

.feature-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li::before {
  content: '→';
  color: var(--primary);
}

/* Revenue Forecast / Calculator Sliders */
.calc-widget {
  background: var(--bg-glass-bright);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-glass);
}

.slider-group {
  margin-bottom: 20px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.slider-val {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 600;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  cursor: pointer;
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.projections-table {
  width: 100%;
  margin-top: 16px;
}

.projection-box {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.projection-box:last-child {
  border-bottom: none;
}

.projection-box span:first-child {
  color: var(--text-muted);
}

.projection-box span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Founder Profile Settings Grid */
.skills-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Personas Deck */
.persona-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-display);
}

.persona-meta h4 {
  font-family: var(--font-display);
  font-size: 1rem;
}

.persona-meta span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Evidence Cards */
.evidence-card {
  border-left: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.01);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  transition: var(--transition);
}

.evidence-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--accent);
}

.evidence-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 8px;
}

.evidence-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.evidence-link:hover {
  color: var(--primary);
  border-color: var(--primary-glow);
  background: rgba(0, 242, 254, 0.06);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
  text-shadow: 0 0 6px var(--primary-glow);
}

.evidence-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { transform: scale(1.1); opacity: 0.7; box-shadow: 0 0 2px var(--accent); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent); }
}

@keyframes borderPulse {
  0% { border-color: rgba(161, 140, 209, 0.25); }
  50% { border-color: rgba(161, 140, 209, 0.8); }
  100% { border-color: rgba(161, 140, 209, 0.25); }
}

/* Boot Splash Screen */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030407;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--primary);
  transition: opacity 0.8s ease;
}

.boot-terminal {
  width: 80%;
  max-width: 600px;
  height: 300px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.05);
}

.boot-logo {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px var(--primary-glow);
}

.boot-loader {
  margin-top: 24px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.boot-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s linear;
}

/* Status tags and layout improvements */
.tag-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: bold;
}

.tag-success { background: rgba(5, 243, 162, 0.1); color: var(--success); border: 1px solid rgba(5, 243, 162, 0.2); }
.tag-warning { background: rgba(251, 194, 235, 0.1); color: var(--warning); border: 1px solid rgba(251, 194, 235, 0.2); }
.tag-danger { background: rgba(255, 94, 98, 0.1); color: var(--danger); border: 1px solid rgba(255, 94, 98, 0.2); }
.tag-primary { background: rgba(0, 242, 254, 0.1); color: var(--primary); border: 1px solid rgba(0, 242, 254, 0.2); }
.tag-accent { background: rgba(161, 140, 209, 0.1); color: var(--accent); border: 1px solid rgba(161, 140, 209, 0.2); }

/* Custom grid spacing adjustments */
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-1-2, .grid-2-1 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .os-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 16px;
  }
  .sidebar-footer {
    display: none;
  }
  .main-workspace {
    height: calc(100vh - 120px);
  }
}

/* ============================================================
   RESEARCH DEPTH ENGINE v3.0 — NEW STYLES
   ============================================================ */

/* Research Pipeline Steps (Discovery Hub) */
.research-pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.pipeline-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.pipeline-step span {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pipeline-arrow {
  color: var(--border-glass);
  font-size: 0.7rem;
  margin-bottom: 18px;
}

/* Research Completeness Badge */
.research-completeness-badge {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* Threshold Meters Grid */
.threshold-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.threshold-meter {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  transition: var(--transition);
}

.threshold-meter.met {
  border-color: rgba(5, 243, 162, 0.3);
  background: rgba(5, 243, 162, 0.04);
}

.threshold-meter-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.threshold-meter-label .count {
  color: var(--text-muted);
}

.threshold-meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.threshold-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--danger), var(--warning));
  transition: width 0.6s ease, background 0.4s ease;
  min-width: 0;
}

.threshold-meter.met .threshold-meter-fill {
  background: linear-gradient(90deg, var(--success), var(--primary));
  box-shadow: 0 0 8px var(--success-glow);
}

/* Research Phase Cards */
.research-phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.research-phase-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: var(--transition);
  opacity: 0.4;
}

.research-phase-card.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.06);
  opacity: 1;
  box-shadow: 0 0 16px var(--primary-glow);
}

.research-phase-card.completed {
  border-color: rgba(5, 243, 162, 0.4);
  background: rgba(5, 243, 162, 0.04);
  opacity: 1;
}

.research-phase-card i {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: block;
  color: var(--text-dim);
}

.research-phase-card.active i {
  color: var(--primary);
}

.research-phase-card.completed i {
  color: var(--success);
}

.research-phase-card .phase-name {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
}

.research-phase-card .phase-status {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

.research-phase-card.completed .phase-status {
  color: var(--success);
}

/* Ecosystem Segment Chips */
.ecosystem-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(161, 140, 209, 0.08);
  border: 1px solid rgba(161, 140, 209, 0.2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: var(--transition);
  animation: chipFadeIn 0.3s ease forwards;
}

.eco-chip:hover {
  background: rgba(161, 140, 209, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.eco-chip .chip-count {
  font-size: 0.6rem;
  color: var(--text-dim);
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

@keyframes chipFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Pain Cluster Cards */
.pain-clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.pain-cluster-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pain-cluster-card:hover {
  border-color: rgba(255, 94, 98, 0.4);
  background: rgba(255, 94, 98, 0.04);
  transform: translateY(-2px);
}

.pain-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pain-cluster-rank {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.pain-cluster-name {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-bottom: 4px;
}

.pain-cluster-segment {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 8px;
}

.pain-cluster-scores {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pain-score-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.pain-score-badge.freq { border-color: rgba(0, 242, 254, 0.3); color: var(--primary); }
.pain-score-badge.sev { border-color: rgba(255, 94, 98, 0.3); color: var(--danger); }
.pain-score-badge.val { border-color: rgba(5, 243, 162, 0.3); color: var(--success); }

.pain-cluster-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Competitor Intelligence Table */
.competitor-intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.competitor-intel-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.competitor-intel-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  vertical-align: top;
}

.competitor-intel-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.competitor-intel-table .comp-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.competitor-intel-table .comp-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(161, 140, 209, 0.1);
  color: var(--accent);
  white-space: nowrap;
  display: inline-block;
}

.competitor-intel-table .comp-pricing {
  font-family: var(--font-mono);
  color: var(--primary);
  white-space: nowrap;
}

.comp-sentiment-positive { color: var(--success); }
.comp-sentiment-mixed { color: var(--warning); }
.comp-sentiment-neutral { color: var(--text-muted); }
.comp-sentiment-negative { color: var(--danger); }

/* Market Gap Cards */
.market-gaps-list {
  display: grid;
  gap: 12px;
}

.market-gap-card {
  background: rgba(5, 243, 162, 0.03);
  border: 1px solid rgba(5, 243, 162, 0.15);
  border-radius: 8px;
  padding: 16px;
  transition: var(--transition);
}

.market-gap-card:hover {
  border-color: rgba(5, 243, 162, 0.4);
  background: rgba(5, 243, 162, 0.06);
}

.market-gap-title {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--success);
  margin-bottom: 6px;
}

.market-gap-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.market-gap-evidence {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-style: italic;
}

/* Top Picks Grid (Compare View) */
.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.top-pick-card {
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.top-pick-card:hover {
  transform: translateY(-3px);
}

.top-pick-card.pick-overall {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(5, 243, 162, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.top-pick-card.pick-lowrisk {
  background: linear-gradient(135deg, rgba(5, 243, 162, 0.1), rgba(79, 172, 254, 0.1));
  border: 1px solid rgba(5, 243, 162, 0.3);
}
.top-pick-card.pick-solo {
  background: linear-gradient(135deg, rgba(161, 140, 209, 0.1), rgba(251, 194, 235, 0.1));
  border: 1px solid rgba(161, 140, 209, 0.3);
}
.top-pick-card.pick-fastest {
  background: linear-gradient(135deg, rgba(251, 194, 235, 0.1), rgba(255, 94, 98, 0.1));
  border: 1px solid rgba(251, 194, 235, 0.3);
}
.top-pick-card.pick-longterm {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.top-pick-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.top-pick-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.top-pick-name {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-bottom: 4px;
}

.top-pick-score {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary);
}

/* Comparison Matrix Table */
.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.comparison-matrix-table th {
  text-align: center;
  padding: 10px 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.comparison-matrix-table th:nth-child(1),
.comparison-matrix-table th:nth-child(2),
.comparison-matrix-table th:nth-child(3) {
  text-align: left;
}

.comparison-matrix-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  color: var(--text-muted);
}

.comparison-matrix-table td:nth-child(1),
.comparison-matrix-table td:nth-child(2),
.comparison-matrix-table td:nth-child(3) {
  text-align: left;
}

.comparison-matrix-table tr:hover td {
  background: rgba(0, 242, 254, 0.03);
}

.comparison-matrix-table tr:first-child td {
  background: rgba(0, 242, 254, 0.04);
}

.matrix-rank {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 0.9rem;
}

.matrix-startup-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.matrix-model {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(161, 140, 209, 0.1);
  color: var(--accent);
  white-space: nowrap;
  display: inline-block;
}

.matrix-score-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
}

.matrix-score-cell.score-high { color: var(--success); }
.matrix-score-cell.score-mid { color: var(--warning); }
.matrix-score-cell.score-low { color: var(--danger); }

.matrix-composite {
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.matrix-composite.comp-high {
  background: rgba(5, 243, 162, 0.15);
  color: var(--success);
  border: 1px solid rgba(5, 243, 162, 0.3);
}

.matrix-composite.comp-mid {
  background: rgba(251, 194, 235, 0.1);
  color: var(--warning);
  border: 1px solid rgba(251, 194, 235, 0.2);
}

.matrix-composite.comp-low {
  background: rgba(255, 94, 98, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 94, 98, 0.2);
}

.matrix-dive-btn {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: var(--transition);
  white-space: nowrap;
}

.matrix-dive-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--primary);
}

.idea-delete-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 98, 0.25);
  background: rgba(255, 94, 98, 0.08);
  color: var(--danger);
  cursor: pointer;
  transition: var(--transition);
}

.idea-delete-btn:hover {
  background: rgba(255, 94, 98, 0.2);
  border-color: var(--danger);
}

/* Button large variant */
.btn-lg {
  padding: 14px 40px !important;
  font-size: 1rem !important;
}
