/* ============================================================================
   The Mobility House — Energy Relationship Platform
   CRM Frontend Stylesheet
   ============================================================================ */

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

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0055FF; /* Mobility House Blue */
  --primary-light: #3377FF;
  --primary-dark: #001A4D; /* Dark Navy for cards/footers */
  --secondary: #003D2E;
  --accent: #001A4D; /* Adjusted to Navy */
  --accent-light: #335599;
  --bg-main: #F4F4F6; /* Light grey background */
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9FAFB;
  --bg-input: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 85, 255, 0.5);
  --text: #0A0A14;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-inverse: #FFFFFF;
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #0055FF;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
  --header-height: 68px;
}

html { font-size: 14px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ── Lucide Icons ──────────────────────────────────────────────────────────── */
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }
.icon-stat { width: 32px; height: 32px; stroke-width: 1.5; color: var(--primary); }
.search-icon[data-lucide] { width: 16px; height: 16px; color: var(--text-muted); }
.btn-logout [data-lucide] { width: 16px; height: 16px; }

/* ── Login Screen ──────────────────────────────────────────────────────────── */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

#login-screen::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,85,255,0.05) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  color: white;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,85,255,0.25);
}

.btn-primary:active { transform: translateY(0); }

.login-error {
  background: rgba(255,77,77,0.1);
  border: 1px solid rgba(255,77,77,0.3);
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.login-hint code {
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  color: var(--text-secondary);
}

/* ── App Layout ────────────────────────────────────────────────────────────── */
#app {
  display: none;
  min-height: 100vh;
}

#app.active { display: flex; }
#login-screen.hidden { display: none; }

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

.sidebar-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: white;
}

.sidebar-brand h2 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-brand small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav-section {
  margin-bottom: 20px;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  user-select: none;
}

.nav-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}

.nav-item.active {
  background: rgba(0,102,255,0.12);
  color: var(--primary-light);
  font-weight: 500;
}

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

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.user-info:hover { background: rgba(0,0,0,0.04); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.user-details { flex: 1; overflow: hidden; }
.user-details .user-name { font-size: 0.8rem; font-weight: 500; }
.user-details .user-role { font-size: 0.7rem; color: var(--text-muted); }

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
}

.btn-logout:hover { color: var(--error); }

/* ── Main Content ──────────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.content-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.header-actions { display: flex; gap: 10px; align-items: center; }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 240px;
}

.header-search input {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.header-search .search-icon { color: var(--text-muted); font-size: 0.9rem; }

/* Content Body */
.content-body {
  flex: 1;
  padding: 24px 28px;
}

/* ── Dashboard Cards Grid ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.stat-card .stat-change {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

.stat-change.up { background: rgba(0,204,136,0.1); color: var(--success); }
.stat-change.down { background: rgba(255,77,77,0.1); color: var(--error); }

/* ── Data Table ────────────────────────────────────────────────────────────── */
.data-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.data-section-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: rgba(0,0,0,0.02); }

/* ── Badges / Pills ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success { background: rgba(0,204,136,0.12); color: var(--success); }
.badge-warning { background: rgba(255,176,32,0.12); color: var(--warning); }
.badge-error { background: rgba(255,77,77,0.12); color: var(--error); }
.badge-info { background: rgba(0,102,255,0.12); color: var(--info); }
.badge-neutral { background: rgba(0,0,0,0.06); color: var(--text-secondary); }

/* ── Pipeline Board ────────────────────────────────────────────────────────── */
.pipeline-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.pipeline-column {
  min-width: 240px;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 500px;
}

.pipeline-column-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.pipeline-column-header .count {
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.pipeline-cards {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pipeline-card:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-1px);
}

.pipeline-card .card-title { font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; }
.pipeline-card .card-company { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 8px; }

.pipeline-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pipeline-card .card-value { font-weight: 600; color: var(--accent); }

/* ── Activity Feed ─────────────────────────────────────────────────────────── */
.activity-feed { list-style: none; }

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.activity-item:hover { background: rgba(0,0,0,0.02); }
.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(0,102,255,0.12);
}

.activity-content { flex: 1; }
.activity-content .activity-title { font-size: 0.85rem; font-weight: 500; }
.activity-content .activity-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
.activity-content .activity-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ── Two Column Layout ─────────────────────────────────────────────────────── */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .two-columns { grid-template-columns: 1fr; }
}

/* ── Chart placeholder ─────────────────────────────────────────────────────── */
.chart-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-bar-label {
  width: 140px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.chart-bar-track {
  flex: 1;
  height: 24px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 40px;
}

/* ── Loading / Empty States ────────────────────────────────────────────────── */
.loading-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.loading-state .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state p, .empty-state p { color: var(--text-muted); font-size: 0.85rem; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }

/* ── Dashboard Sub-Tabs ────────────────────────────────────────────────────── */
.dashboard-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.dashboard-tab {
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
}

.dashboard-tab:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.dashboard-tab.active { color: white; background: var(--primary); }

/* ── Fade In Animation ─────────────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-board { flex-direction: column; }
  .pipeline-column { min-width: 100%; }
}

/* ── Dashboard Grid Layouts ────────────────────────────────────────────────── */
.dashboard-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 24px;
  margin-bottom: 24px;
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }

/* ── AI Morning Briefing Card ──────────────────────────────────────────────── */
.ai-briefing {
  background: var(--bg-card);
  position: relative; overflow: hidden; padding: 32px;
  border-top: 2px solid var(--primary);
}
.ai-briefing::before {
  content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,85,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.briefing-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-badge {
  background: rgba(0,85,255,0.1); color: var(--primary);
  padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; border: 1px solid rgba(0,85,255,0.2);
  display: inline-flex; align-items: center; gap: 4px;
}
.ai-badge i { width: 12px; height: 12px; }
.briefing-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.typewriter-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; min-height: 60px; }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--primary); vertical-align: middle; animation: blink 1s step-end infinite; }

/* ── Live Tickers & Counters ───────────────────────────────────────────────── */
.ticker-card {
  display: flex; flex-direction: column; justify-content: center;
}
.ticker-header { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: flex; justify-content: space-between; }
.live-dot {
  width: 8px; height: 8px; background: var(--error); border-radius: 50%;
  box-shadow: 0 0 8px rgba(220,38,38,0.5); animation: pulse-glow 2s infinite;
}
.ticker-value { font-size: 2.2rem; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.ticker-unit { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.ticker-trend { font-size: 0.85rem; padding: 2px 8px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); background: rgba(5,150,105,0.1); }
.trend-down { color: var(--error); background: rgba(220,38,38,0.1); }

.mini-chart { height: 40px; margin-top: 12px; position: relative; width: 100%; display: flex; align-items: flex-end; gap: 4px; }
.chart-bar { flex: 1; background: rgba(0,0,0,0.05); border-radius: 2px 2px 0 0; min-height: 4px; transition: height 1s ease; }
.chart-bar.active { background: var(--primary); }

/* ── Gauge Chart ───────────────────────────────────────────────────────────── */
.gauge-container { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.gauge-svg { width: 160px; height: 80px; overflow: hidden; }
.gauge-bg { fill: none; stroke: rgba(0,0,0,0.05); stroke-width: 12; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: url(#primary-gradient); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 2s cubic-bezier(0.2, 1, 0.3, 1); }
.gauge-content { position: absolute; bottom: 0; text-align: center; }
.gauge-val { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; }
.gauge-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Progress & Radar Lists ────────────────────────────────────────────────── */
.list-header { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.list-item { padding: 12px; background: var(--bg-card-hover); border-radius: var(--radius-xs); margin-bottom: 8px; border: 1px solid var(--border); transition: var(--transition); }
.list-item:hover { border-color: rgba(0,85,255,0.2); transform: translateY(-1px); }
.item-title { font-size: 0.85rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; margin-bottom: 8px; }
.item-meta { font-size: 0.75rem; color: var(--text-secondary); }

.progress-track { width: 100%; height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 3px; transition: width 1.5s ease; }

.risk-high { border-left: 3px solid var(--error); }
.risk-medium { border-left: 3px solid var(--warning); }
.risk-indicator { font-size: 0.7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.indicator-high { background: rgba(220,38,38,0.1); color: var(--error); }
.indicator-medium { background: rgba(217,119,6,0.1); color: var(--warning); }

/* ── Regulatory Alert Banner ───────────────────────────────────────────────── */
.alert-banner {
  background: rgba(220,38,38,0.05);
  border: 1px solid rgba(220,38,38,0.2);
  border-left: 4px solid var(--error); padding: 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.alert-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(220,38,38,0.1);
  color: var(--error); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  animation: pulse-glow 2s infinite;
}
.alert-content h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.alert-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.alert-action { margin-top: 10px; font-size: 0.8rem; color: var(--error); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.alert-action:hover { text-decoration: underline; }

/* ── Market News Feed ──────────────────────────────────────────────────────── */
.news-feed { max-height: 250px; overflow-y: auto; padding-right: 8px; }
.news-item { padding-left: 16px; position: relative; margin-bottom: 20px; }
.news-item::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.news-item::after { content: ''; position: absolute; left: 2px; top: 16px; bottom: -20px; width: 2px; background: rgba(0,0,0,0.05); }
.news-item:last-child::after { display: none; }
.news-time { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.news-title { font-size: 0.85rem; color: var(--text); font-weight: 500; line-height: 1.4; }

/* ── Meeting Prep & Cross-Sell ─────────────────────────────────────────────── */
.prep-card { background: var(--bg-card-hover); padding: 16px; border-radius: var(--radius-sm); border: 1px dashed rgba(0,0,0,0.1); }
.prep-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.prep-time { font-size: 0.8rem; color: var(--primary); font-weight: 500; background: rgba(0,85,255,0.08); padding: 4px 8px; border-radius: 6px; }
.prep-client { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.prep-topic { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }
.ai-suggestion { background: rgba(0,85,255,0.04); border-left: 2px solid var(--info); padding: 10px 12px; border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.ai-suggestion-text { font-size: 0.8rem; color: var(--text-secondary); }

.cross-sell-item { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); align-items: center; }
.cross-sell-item:last-child { border-bottom: none; }
.cs-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,85,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; }
.cs-info { flex: 1; }
.cs-product { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cs-target { font-size: 0.75rem; color: var(--text-secondary); }
.cs-score { display: flex; flex-direction: column; align-items: flex-end; }
.cs-match { font-size: 1.1rem; font-weight: 700; color: var(--success); font-family: 'Space Grotesk', sans-serif; }
.cs-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-glow {
  0% { opacity: 0.6; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up { animation: slide-up 0.4s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }

@media (max-width: 1200px) {
  .dashboard-bento { grid-template-columns: repeat(8, 1fr); }
  .col-span-4, .col-span-6, .col-span-8, .col-span-12 { grid-column: span 8; }
}
