@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Colors */
  --bg-darkest: #070a13;
  --bg-darker: #0d1222;
  --bg-dark: #121829;
  --bg-card: rgba(20, 27, 47, 0.6);
  --bg-card-hover: rgba(28, 38, 65, 0.85);
  
  --border-glow: rgba(255, 255, 255, 0.05);
  --border-glow-hover: rgba(59, 130, 246, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #2563eb;       /* Royal Blue */
  --accent-secondary: #06b6d4;     /* Cyan */
  --accent-purple: #7c3aed;        /* Violet */
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

  /* Transitions & Animation */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow: hidden; /* Desktop app layout */
  height: 100vh;
  display: flex;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- LAYOUT UTILITIES --- */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--grad-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  top: -150px;
  right: -100px;
}

/* --- APP LAYOUT --- */
.app-sidebar {
  width: 260px;
  background-color: var(--bg-darker);
  border-right: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 10;
  flex-shrink: 0;
}

.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* --- SIDEBAR COMPONENTS --- */
.sidebar-brand {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  animation: pulse 2s infinite;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.sidebar-menu {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.sidebar-status {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glow);
  font-size: 0.85rem;
}

.status-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  padding: 0.75rem;
  border-radius: 12px;
}

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.agent-info h5 {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.agent-info p {
  font-size: 0.7rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: inline-block;
}

/* --- MAIN PAGE COMPONENTS --- */
.main-header {
  height: 75px;
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(7, 10, 19, 0.3);
  backdrop-filter: blur(8px);
}

.header-title h2 {
  font-size: 1.5rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
}

.live-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* --- VIEWPORT TABS --- */
.view-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* --- PROSPECTOR VIEW --- */
.search-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 1.25rem;
  align-items: flex-end;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(7, 10, 19, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.btn-search {
  background: var(--grad-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
  transition: var(--transition-fast);
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Scanner Simulation Card */
.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 160px;
}

.scanner-radar {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(6, 182, 212, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.scanner-radar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-secondary);
  border-radius: 50%;
  animation: radar-sweep 2s linear infinite;
  opacity: 0;
}

.scanner-icon {
  color: var(--accent-secondary);
}

.scanner-radar.active::after {
  opacity: 1;
}

.scanner-radar.active {
  border-color: rgba(6, 182, 212, 0.35);
}

.scanner-status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.scanner-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 0.75rem;
  overflow: hidden;
  display: none;
}

.scanner-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}

/* Results Table */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.results-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.01);
}

.results-header h3 {
  font-size: 1.15rem;
}

.results-table-wrapper {
  overflow-x: auto;
  max-height: 450px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.results-table th {
  padding: 1rem 1.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glow);
  background: rgba(255,255,255,0.02);
}

.results-table td {
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.results-table tbody tr {
  cursor: pointer;
  transition: var(--transition-fast);
}

.results-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.results-table tbody tr.selected {
  background: rgba(6, 182, 212, 0.06);
  border-left: 3px solid var(--accent-secondary);
}

/* Tech Maturity Badges */
.badge-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
}

.grade-a { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.grade-b { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.grade-c { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.grade-d { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.grade-f { background: rgba(239, 68, 68, 0.25); color: #f43f5e; border: 1px solid rgba(239, 68, 68, 0.5); }

.tag-status {
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-detected { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.tag-missing { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

/* --- AUDIT DRAWER PANEL --- */
.audit-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--bg-darker);
  border-left: 1px solid var(--border-glow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.audit-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.01);
}

.drawer-title h3 {
  font-size: 1.25rem;
}

.drawer-title p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audit-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audit-grade-large {
  width: 54px;
  height: 54px;
  font-size: 1.75rem;
}

.deficiency-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deficiency-item {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glow);
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.def-icon {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.def-text h5 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

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

.opportunity-card {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
}

.opp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-purple);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.opp-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.opp-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glow);
  display: flex;
  gap: 1rem;
}

.btn-drawer-action {
  flex-grow: 1;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-drawer-pitch {
  background: var(--grad-primary);
  color: #fff;
}

.btn-drawer-pitch:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* --- OUTREACH VIEW --- */
.outreach-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}

.prospect-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 0.75rem;
  font-size: 0.88rem;
}

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

.detail-value {
  font-weight: 600;
  color: #fff;
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workspace-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glow);
  gap: 1.5rem;
}

.ws-tab-btn {
  padding-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
}

.ws-tab-btn.active {
  color: #fff;
}

.ws-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
}

.workspace-panels {
  flex-grow: 1;
}

.workspace-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.3s ease-out forwards;
}

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

.pitch-composer {
  background: rgba(7, 10, 19, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.pitch-textarea {
  width: 100%;
  min-height: 260px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  resize: vertical;
  background: none;
  border: none;
  outline: none;
}

.pitch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-pitch-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-pitch-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-pitch-primary {
  background: var(--grad-primary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-pitch-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-whatsapp-color {
  background: var(--grad-success);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-whatsapp-color:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Cadence Timeline Indicator */
.cadence-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-glow);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.active {
  color: var(--accent-secondary);
}

.timeline-step.completed {
  color: var(--color-success);
}

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

.timeline-step.active .timeline-dot {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.timeline-step.completed .timeline-dot {
  background: var(--color-success);
}

.timeline-line {
  flex-grow: 1;
  height: 1px;
  background: var(--border-glow);
  margin: 0 1rem;
}

.timeline-line.active {
  background: var(--accent-secondary);
}

/* --- CRM BOARD VIEW --- */
.crm-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  align-items: flex-start;
  min-height: 500px;
}

.crm-column {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 250px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
}

.column-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.column-header .lead-count {
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text-secondary);
}

.column-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 400px;
}

/* CRM Card */
.crm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1rem;
  cursor: grab;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.crm-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow-hover);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.crm-card:active {
  cursor: grabbing;
}

.crm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.crm-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 75%;
  line-height: 1.3;
}

.crm-card-body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.crm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.02);
  padding-top: 0.65rem;
  font-size: 0.75rem;
}

.crm-card-meta {
  color: var(--text-muted);
}

/* --- ANALYTICS VIEW --- */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-content h4 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.primary { color: var(--accent-primary); background: rgba(59, 130, 246, 0.08); }
.stat-icon.secondary { color: var(--accent-secondary); background: rgba(6, 182, 212, 0.08); }
.stat-icon.purple { color: var(--accent-purple); background: rgba(124, 58, 237, 0.08); }
.stat-icon.success { color: var(--color-success); background: rgba(16, 185, 129, 0.08); }

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.5rem;
}

.chart-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 110px;
  flex-shrink: 0;
}

.bar-wrapper {
  flex-grow: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  width: 40px;
  text-align: right;
}

/* Pie Chart Simulation SVG */
.chart-pie-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0;
}

.svg-pie {
  transform: rotate(-90deg);
  border-radius: 50%;
}

.pie-segment {
  fill: none;
  stroke-width: 18;
  transition: stroke-dasharray 1s ease-in-out;
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* --- MOCK ALERTS / NOTIFICATION STREAM --- */
.notification-stream {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
}

.toast {
  background: rgba(13, 18, 34, 0.95);
  border: 1px solid var(--border-glow);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-left-color: var(--color-success);
}

.toast-icon {
  margin-top: 0.15rem;
}

.toast-icon.success { color: var(--color-success); }
.toast-icon.info { color: var(--accent-secondary); }

.toast-content h5 {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.toast-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.05); opacity: 0.9; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes radar-sweep {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

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

/* --- PRINT CUSTOMS (For Proposals PDF exports) --- */
@media print {
  body {
    background: #fff;
    color: #000;
    overflow: visible;
    height: auto;
  }
  .app-sidebar, .main-header, .search-container, .ws-tab-btn, .pitch-actions, .timeline-line, .timeline-dot {
    display: none !important;
  }
  .app-main {
    height: auto;
  }
  .main-content {
    padding: 0;
  }
  .workspace-card {
    background: none;
    border: none;
    padding: 0;
  }
  .pitch-composer {
    border: 1px solid #ccc;
    background: #fff;
  }
  .pitch-textarea {
    color: #000;
  }
}

/* --- RESPONSIVITY STYLING --- */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
    overflow: auto;
    height: auto;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
  }
  .app-main {
    height: auto;
    overflow: visible;
  }
  .search-container {
    grid-template-columns: 1fr;
  }
  .outreach-container {
    grid-template-columns: 1fr;
  }
  .crm-board {
    padding-bottom: 1.5rem;
  }
  .charts-container {
    grid-template-columns: 1fr;
  }
}
