/* ============================================================
   VINCULUM INTELLIGENCE — Premium Design System
   Bloomberg Terminal / Enterprise SaaS Aesthetic
   ============================================================ */

:root {
  /* Core palette */
  --bg-primary: #0A0F1C;
  --bg-secondary: #111827;
  --bg-card: #1A2035;
  --bg-card-hover: #1E2744;
  --bg-elevated: #222B45;
  --bg-surface: #F8FAFC;
  --bg-page: #F1F5F9;

  /* Accent */
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-dark: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.15);

  /* Status */
  --green: #10B981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --green-border: rgba(16, 185, 129, 0.25);
  --yellow: #F59E0B;
  --yellow-bg: rgba(245, 158, 11, 0.1);
  --yellow-border: rgba(245, 158, 11, 0.25);
  --red: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --red-border: rgba(239, 68, 68, 0.25);
  --purple: #8B5CF6;
  --purple-bg: rgba(139, 92, 246, 0.1);

  /* Text */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-white: #F8FAFC;
  --text-sidebar: #94A3B8;
  --text-sidebar-active: #FFFFFF;

  /* Borders */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-dark: rgba(255,255,255,0.06);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-page); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A0F1C 0%, #1A2035 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2%,2%); } }
.login-container {
  position: relative;
  z-index: 1;
  width: 420px;
  padding: 48px;
  background: rgba(26,32,53,0.8);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.login-brand { text-align: center; margin-bottom: 40px; }
.login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}
.login-brand h1 { font-size: 22px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.login-subtitle { font-size: 13px; color: var(--text-sidebar); margin-top: 8px; letter-spacing: 0.02em; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-sidebar); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.login-field input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: white; font-size: 15px; font-family: inherit;
  transition: all 0.2s;
}
.login-field input:focus { outline: none; border-color: var(--accent); background: rgba(59,130,246,0.06); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.login-field input::placeholder { color: rgba(255,255,255,0.25); }
.login-button {
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.login-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.login-button:active { transform: translateY(0); }
.login-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; text-align: center; min-height: 20px; }
.login-footer { text-align: center; font-size: 12px; color: rgba(255,255,255,0.2); margin-top: 32px; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app { display: flex; height: 100vh; overflow: hidden; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border-dark);
  z-index: 100;
}
.sidebar-brand {
  padding: 24px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.sidebar-title { font-size: 16px; font-weight: 700; color: white; display: block; letter-spacing: -0.01em; }
.sidebar-label { font-size: 11px; color: var(--accent-light); display: block; letter-spacing: 0.04em; font-weight: 500; }
.sidebar-user {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar-avatar {
  width: 34px; height: 34px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--accent-light);
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: white; display: block; }
.sidebar-user-role { font-size: 11px; color: var(--text-sidebar); display: block; margin-top: 2px; text-transform: capitalize; }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.04); }
.nav-item.active {
  color: white;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
}
.nav-item.active svg { stroke: var(--accent-light); }
.nav-divider { height: 1px; background: var(--border-dark); margin: 8px 14px; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border-dark); }
.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: var(--text-sidebar);
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
  padding: 8px 12px; border-radius: var(--radius-sm); width: 100%;
  transition: all 0.15s;
}
.sidebar-logout:hover { color: var(--red); background: rgba(239,68,68,0.08); }

/* MAIN CONTENT */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-page);
}
.page-container { padding: 32px; max-width: 1400px; margin: 0 auto; }
.page-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 60vh; gap: 16px; color: var(--text-muted);
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.page-header p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   METRIC CARDS
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.metric-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.metric-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.metric-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.metric-card.status-green::before { background: var(--green); }
.metric-card.status-yellow::before { background: var(--yellow); }
.metric-card.status-red::before { background: var(--red); }
.metric-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.metric-value {
  font-size: 36px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
}
.metric-trend {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
}
.metric-trend.up { color: var(--green); }
.metric-trend.down { color: var(--red); }
.metric-trend.neutral { color: var(--text-muted); }

/* ============================================================
   CARDS / CONTENT
   ============================================================ */
.content-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}
.content-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.content-card-header h2 {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.content-card-header .card-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px;
}
.content-card-body { padding: 24px; }

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px; margin-bottom: 32px;
}
.chart-container { padding: 24px; }
.chart-container h3 {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 16px;
}
.chart-wrapper { position: relative; height: 260px; }

/* ============================================================
   OPPORTUNITY CARDS
   ============================================================ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.opp-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.opp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--accent); }
.opp-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.opp-card-company { font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.opp-card-location { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.opp-card-score {
  min-width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.opp-card-score.high { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.opp-card-score.medium { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.opp-card-score.low { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.opp-card-score small { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.opp-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.opp-card-segment {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; background: var(--accent-glow);
  color: var(--accent); border: 1px solid rgba(59,130,246,0.15);
}
.badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px;
}
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(139,92,246,0.25); }
.badge-blue { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }
.opp-card-insight {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 16px; padding: 12px;
  background: #F8FAFC; border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.opp-card-actions { display: flex; gap: 8px; }
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: all 0.15s;
  border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-secondary { background: var(--bg-page); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-page); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ============================================================
   DRAWER (Opportunity Detail)
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.drawer {
  position: fixed; top: 0; right: 0;
  width: 560px; height: 100vh;
  background: white;
  box-shadow: -16px 0 48px rgba(0,0,0,0.12);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s ease;
}
.drawer.hidden { transform: translateX(100%); }
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-header h2 { font-size: 18px; font-weight: 700; }
.drawer-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.drawer-close:hover { background: var(--bg-page); color: var(--text-primary); }
.drawer-content { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-section { margin-bottom: 28px; }
.drawer-section-title {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.drawer-field { margin-bottom: 12px; }
.drawer-field-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.drawer-field-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.drawer-insight-box {
  padding: 16px; background: #F0F7FF;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59,130,246,0.15);
  font-size: 14px; line-height: 1.6; color: var(--text-primary);
}
.decisor-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.decisor-avatar {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.decisor-info { flex: 1; }
.decisor-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.decisor-role { font-size: 12px; color: var(--text-secondary); }
.decisor-contact { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* ============================================================
   TABLES
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: var(--bg-page);
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px; color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.data-table tr:hover td { background: #F8FAFC; }
.data-table .priority-high { color: var(--red); font-weight: 600; }
.data-table .priority-medium { color: var(--yellow); font-weight: 600; }
.data-table .priority-low { color: var(--green); font-weight: 600; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
}
.status-badge.active { background: var(--green-bg); color: var(--green); }
.status-badge.active::before { background: var(--green); }
.status-badge.warning { background: var(--yellow-bg); color: var(--yellow); }
.status-badge.warning::before { background: var(--yellow); }
.status-badge.danger { background: var(--red-bg); color: var(--red); }
.status-badge.danger::before { background: var(--red); }
.status-badge.info { background: var(--accent-glow); color: var(--accent); }
.status-badge.info::before { background: var(--accent); }
.status-badge.neutral { background: #F1F5F9; color: var(--text-secondary); }
.status-badge.neutral::before { background: var(--text-muted); }

/* ============================================================
   PROFILE FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  transition: all 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(59,130,246,0.15);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-container { margin-bottom: 20px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.progress-value { font-size: 14px; font-weight: 700; color: var(--accent); }
.progress-bar {
  height: 8px; background: var(--border-light);
  border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transition: width 0.5s ease;
}

/* ============================================================
   PIPELINE KANBAN
   ============================================================ */
.pipeline-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pipeline-column {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 300px;
}
.pipeline-column-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.pipeline-column-title { font-size: 13px; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.pipeline-column-count {
  width: 24px; height: 24px;
  background: var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.pipeline-card {
  background: white; border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pipeline-card-company { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.pipeline-card-segment { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.pipeline-card-meta { display: flex; gap: 6px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 40px;
  color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 400px; margin: 0 auto; line-height: 1.6; }

/* ============================================================
   HEATMAP PLACEHOLDER
   ============================================================ */
.heatmap-container {
  padding: 24px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  width: 100%;
}
.heatmap-cell {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.15s;
}
.heatmap-cell:hover { transform: scale(1.05); }
.heatmap-cell .heatmap-label { display: block; margin-bottom: 4px; }
.heatmap-cell .heatmap-value { display: block; font-size: 18px; font-weight: 800; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .charts-grid { grid-template-columns: 1fr; }
  .pipeline-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { width: 72px; min-width: 72px; }
  .sidebar-brand-text, .sidebar-user-info, .nav-item span, .sidebar-logout span { display: none; }
  .sidebar-brand { padding: 16px; justify-content: center; }
  .sidebar-user { padding: 12px; justify-content: center; }
  .nav-item { justify-content: center; padding: 12px; }
  .sidebar-logout { justify-content: center; }
  .opp-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
}
