/* Dashboard shared styles */
.page-header {
  background: var(--nav-bg);
  padding: 64px 40px 48px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,146,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,42,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header-content { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; }
.page-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.page-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--nav-fg); line-height: 1.1; }
.page-header-right { text-align: right; }
.client-count { font-family: 'Playfair Display', Georgia, serif; font-size: 48px; font-weight: 700; color: var(--nav-fg); line-height: 1; margin-bottom: 4px; }
.client-count-label { font-size: 12px; color: rgba(248,247,242,0.45); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-container { max-width: 1200px; margin: 0 auto; padding: 40px 40px 80px; }
.stage-filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.stage-filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.stage-filter:hover { border-color: var(--accent); color: var(--accent); }
.stage-filter.active { background: var(--accent); border-color: var(--accent); color: white; }
.stage-filter .count { display: inline-block; background: rgba(255,255,255,0.25); border-radius: 100px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.stage-filter.active .count { background: rgba(255,255,255,0.3); }
.clients-table { width: 100%; border-collapse: collapse; }
.clients-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
  padding: 0 16px 16px 0;
  border-bottom: 2px solid var(--border);
}
.clients-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.clients-table tr:last-child td { border-bottom: none; }
.client-company { font-weight: 600; font-size: 15px; color: var(--fg); display: flex; align-items: center; gap: 10px; }
.client-company a { color: inherit; text-decoration: none; }
.client-company a:hover { color: var(--accent); }
.client-meta { font-size: 13px; color: var(--fg-muted); margin-top: 3px; }
.client-email { font-size: 13px; color: var(--fg-muted); }
.client-email a { color: var(--fg-muted); text-decoration: none; }
.client-email a:hover { color: var(--accent); }
.pain-points-cell { max-width: 260px; font-size: 13px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
.stage-intake { background: #E3F2FD; color: #0D47A1; border-color: #BBDEFB; }
.stage-diagnostic { background: #FFF8E1; color: #E65100; border-color: #FFE082; }
.stage-roadmap { background: #E8F5E9; color: #1B5E20; border-color: #C8E6C9; }
.stage-playbook { background: #F3E5F5; color: #4A148C; border-color: #E1BEE7; }
.stage-done { background: #F8F7F2; color: var(--fg-muted); border-color: var(--border); }
.client-date { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.no-clients { text-align: center; padding: 80px 40px; }
.no-clients-title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.no-clients-sub { font-size: 14px; color: var(--fg-muted); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 100; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--card-bg); border-radius: 8px; padding: 32px; max-width: 380px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.modal-title { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 24px; }
.modal-stages { display: flex; flex-direction: column; gap: 8px; }
.modal-stage-btn { padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--fg); background: var(--card-bg); cursor: pointer; transition: all 0.2s; text-align: left; font-family: 'DM Sans', sans-serif; }
.modal-stage-btn:hover { border-color: var(--accent); background: #FFFBF4; }
.modal-stage-btn.selected { background: var(--accent); border-color: var(--accent); color: white; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-primary { flex: 1; padding: 12px 24px; background: var(--accent); color: white; border: none; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-cancel { flex: 1; padding: 12px 24px; background: transparent; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-cancel:hover { border-color: var(--fg-muted); }
.toast { position: fixed; bottom: 32px; right: 32px; background: var(--nav-bg); color: var(--nav-fg); padding: 14px 20px; border-radius: 6px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 200; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: #C62828; }
@media (max-width: 768px) {
  .page-header { padding: 48px 24px 36px; }
  .page-header-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-header-right { text-align: left; }
  .dash-container { padding: 24px; }
  .clients-table { display: block; overflow-x: auto; }
}