/* ================================================================
   ORIJINS ONBOARDING PORTAL — Style
   Dark theme, brand colors: #0A1628 (deep blue), #D4AF37 (gold)
   ================================================================ */

:root {
  --bg-primary: #0A1628;
  --bg-secondary: #0F1D35;
  --bg-card: #14223E;
  --bg-card-hover: #1A2D50;
  --bg-input: #0D1B33;
  --border: #1E3355;
  --border-light: #2A4570;
  --text-primary: #F0F4FA;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gold: #D4AF37;
  --gold-light: #E8C84A;
  --gold-dark: #B8960F;
  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-orange: #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ================================================================
   LAYOUT
   ================================================================ */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 900;
  font-size: 18px;
}

.sidebar-brand .subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  border-left: 3px solid var(--gold);
}

.sidebar-nav a .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 28px 32px;
  min-height: 100vh;
}

/* ================================================================
   HEADER
   ================================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-header .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

.page-header .breadcrumb span { color: var(--text-secondary); }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.stat-card .stat-value.gold { color: var(--gold); }
.stat-card .stat-value.blue { color: var(--accent-blue); }
.stat-card .stat-value.green { color: var(--accent-green); }
.stat-card .stat-value.orange { color: var(--accent-orange); }

.stat-card .stat-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

/* ================================================================
   PIPELINE BOARD
   ================================================================ */
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.phase-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 200px;
}

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

.phase-column-header .phase-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phase-column-header .phase-count {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.phase-column-body {
  padding: 10px;
  min-height: 80px;
}

/* --- Client Card (mini) --- */
.client-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.client-mini-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.client-mini-card .client-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.client-mini-card .client-usage {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.client-mini-card .client-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.client-mini-card .client-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.badge-meddpicc-high { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge-meddpicc-mid  { background: rgba(245,158,11,0.15); color: var(--accent-orange); }
.badge-meddpicc-low  { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.probability-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.probability-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-green));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ================================================================
   MEDDPICC SCOREBOARD
   ================================================================ */
.meddpicc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.meddpicc-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.meddpicc-item:hover {
  border-color: var(--border-light);
}

.meddpicc-letter {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 4px;
}

.meddpicc-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.meddpicc-value {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meddpicc-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin: 0 2px;
}

.meddpicc-dot.filled { background: var(--gold); }
.meddpicc-dot.empty { background: var(--border); }

.meddpicc-master-score {
  text-align: center;
  margin-bottom: 24px;
}

.meddpicc-master-score .score-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}

.meddpicc-master-score .score-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ================================================================
   CLIENT DETAIL PAGE
   ================================================================ */
.client-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* --- Sidebar (Client info) --- */
.client-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 28px;
}

.client-sidebar .client-avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 16px;
}

.client-sidebar h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.client-sidebar .client-usage-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.client-info-list { list-style: none; }
.client-info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.client-info-list li:last-child { border-bottom: none; }
.client-info-list .info-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.client-info-list .info-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Phase Timeline --- */
.phase-timeline {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding: 4px 0;
}

.phase-step {
  flex: 1;
  min-width: 80px;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.phase-step .step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition);
}

.phase-step.active .step-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}

.phase-step.completed .step-dot {
  border-color: var(--accent-green);
  background: var(--accent-green);
  color: white;
}

.phase-step .step-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.phase-step.active .step-label { color: var(--gold); font-weight: 600; }
.phase-step.completed .step-label { color: var(--accent-green); }

.phase-step .step-line {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.phase-step .step-line.completed { background: var(--accent-green); }

/* --- Tab Navigation --- */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Questionnaire Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

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

.data-table tr:hover td { background: rgba(212,175,55,0.03); }

/* --- Documents List --- */
.doc-list {
  display: grid;
  gap: 8px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.doc-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.doc-icon {
  width: 42px; height: 42px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 11px;
}

.doc-icon.pdf { color: var(--accent-red); }
.doc-icon.doc { color: var(--accent-blue); }
.doc-icon.sheet { color: var(--accent-green); }

.doc-info { flex: 1; }
.doc-info .doc-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.doc-info .doc-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- History Timeline --- */
.history-timeline {
  position: relative;
  padding-left: 24px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.history-item {
  position: relative;
  padding-bottom: 20px;
  font-size: 13px;
}

.history-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--bg-primary);
}

.history-item .history-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.history-item .history-title {
  font-weight: 600;
  color: var(--text-primary);
}

.history-item .history-desc {
  color: var(--text-secondary);
  font-size: 12px;
}

/* --- Deliverables --- */
.deliverable-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.deliverable-status {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deliverable-status.done { background: var(--accent-green); }
.deliverable-status.progress { background: var(--accent-orange); }
.deliverable-status.pending { background: var(--border); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.modal-body { padding: 24px; }

/* --- Form Fields --- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   SEARCH & FILTERS
   ================================================================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover { border-color: var(--border-light); color: var(--text-secondary); }
.filter-chip.active { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 13px; }

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: white;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-md);
}

.toast.success { background: var(--accent-green); }
.toast.error { background: var(--accent-red); }
.toast.info { background: var(--accent-blue); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   CLIENT TABLE VIEW (fallback)
   ================================================================ */
.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.client-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.client-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.client-table tr:hover td { background: rgba(212,175,55,0.03); cursor: pointer; }

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .client-layout {
    grid-template-columns: 1fr;
  }
  .client-sidebar {
    position: static;
  }
  .meddpicc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
    overflow: hidden;
  }
  .sidebar-brand .logo span,
  .sidebar-brand .subtitle,
  .sidebar-nav a span,
  .sidebar-footer { display: none; }
  .sidebar-brand { padding: 12px 8px; }
  .sidebar-nav a { justify-content: center; padding: 10px 0; }
  .main-content { margin-left: 60px; padding: 16px; }
  .pipeline-board { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .meddpicc-grid { grid-template-columns: 1fr; }
}
