/* ═══════════════════════════════════════════════════════════════════════════
   InsightReport — style.css
   Professional dark analytics dashboard theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:          #0b0d14;
  --surface:     #13161f;
  --surface2:    #1c2030;
  --surface3:    #242840;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --accent:      #4f8ef7;
  --accent-dim:  rgba(79,142,247,0.12);
  --purple:      #7c3aed;
  --purple-dim:  rgba(124,58,237,0.12);
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,0.12);
  --amber:       #f59e0b;
  --amber-dim:   rgba(245,158,11,0.12);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.12);
  --text:        #e8ecf4;
  --text-2:      #c2c8d6;
  --muted:       #7a8499;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --font:        'DM Sans', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;
}

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

html { font-size: 14px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,142,247,0.12) 0%, transparent 60%), var(--bg);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 52px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-family: var(--font-serif);
  font-size: 34px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--accent); }

.auth-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
  text-align: left;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.auth-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--surface2); border-color: var(--border2); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #3b7de8; border-color: #3b7de8; }

.btn-danger {
  background: transparent;
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.btn-danger:hover { background: var(--red-dim); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.google-btn:hover { background: var(--surface3); border-color: rgba(255,255,255,0.2); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.app-wrap { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.topbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}
.topbar-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: transparent;
  font-family: var(--font);
  transition: all 0.12s;
  white-space: nowrap;
}
.topbar-nav-item:hover { color: var(--text); background: var(--surface3); }
.topbar-nav-item.active { color: var(--accent); background: var(--accent-dim); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Body layout (sidebar + main) ───────────────────────────────────────── */
.body-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-section { padding: 20px 16px 8px; }

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding: 0 6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-label-action {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 2px 4px;
  border-radius: 4px;
}
.sidebar-label-action:hover { background: var(--accent-dim); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.1s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }

/* Client list in sidebar */
.client-list { padding: 4px 0; }

.client-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  margin-bottom: 3px;
}

.client-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.1s;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: var(--font);
  min-width: 0;
}
.client-badge:hover { background: var(--surface2); border-color: var(--border); }
.client-badge.active { background: var(--accent-dim); border-color: rgba(79,142,247,0.25); }

.client-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.client-info { flex: 1; min-width: 0; }
.client-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-domain { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.client-edit-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  transition: all 0.1s;
  font-family: var(--font);
}
.client-edit-btn:hover { background: var(--surface3); color: var(--text); }

/* ── Main content area ──────────────────────────────────────────────────── */
.main {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.page { display: none; }
.page.active { display: block; }

.page-inner { padding: 32px; max-width: 1400px; }

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }

.filter-input,
.filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  color-scheme: dark;
  transition: border-color 0.15s;
  min-width: 160px;
}
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-divider { width: 1px; height: 36px; background: var(--border); align-self: flex-end; }

.quick-range { display: flex; gap: 4px; }
.quick-range-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font);
}
.quick-range-btn:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.quick-range-btn.active { background: var(--accent-dim); color: var(--accent); border-color: rgba(79,142,247,0.3); }

.filter-actions { margin-left: auto; display: flex; align-items: flex-end; gap: 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   METRICS GRID
   ══════════════════════════════════════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.metric-card:hover { border-color: var(--border2); }

.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}
.icon-blue   { background: var(--accent-dim); }
.icon-purple { background: var(--purple-dim); }
.icon-green  { background: var(--green-dim); }
.icon-amber  { background: var(--amber-dim); }
.icon-red    { background: var(--red-dim); }

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-status {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-status.good  { color: var(--green); }
.metric-status.warn  { color: var(--amber); }
.metric-status.bad   { color: var(--red); }

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS & CHART CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.report-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.report-section-title { font-family: var(--font-serif); font-size: 20px; }
.report-section-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.chart-grid-3 { grid-template-columns: repeat(3, 1fr); }
.chart-grid-2-1 { grid-template-columns: 2fr 1fr; }
.chart-grid-1-2 { grid-template-columns: 1fr 2fr; }

.chart-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.chart-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.chart-card-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.chart-wrap { position: relative; }

/* Legend below charts */
.chart-legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.legend-row:last-child { border-bottom: none; }
.legend-key { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-val { font-weight: 600; color: var(--text); }

/* Demographics unavailable card */
.demo-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  gap: 10px;
  padding: 20px;
}
.demo-unavailable-icon { font-size: 28px; }
.demo-unavailable-title { font-size: 13px; font-weight: 600; color: var(--amber); }
.demo-unavailable-desc { font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 240px; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════════ */
.table-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.table-title { font-size: 13px; font-weight: 600; }
.table-count { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--accent-dim); color: var(--accent); font-weight: 600; }

.report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-table thead tr { background: rgba(0,0,0,0.2); }
.report-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  white-space: nowrap;
}
.report-table td {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-2);
  vertical-align: middle;
}
.report-table tr:hover td { background: rgba(255,255,255,0.02); }
.report-table td:first-child { color: var(--text); font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-amber  { background: var(--amber-dim);  color: var(--amber); }
.badge-red    { background: var(--red-dim);    color: var(--red); }
.badge-blue   { background: var(--accent-dim); color: var(--accent); }

/* Bar in table cells */
.cell-bar { display: flex; align-items: center; gap: 8px; }
.cell-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; max-width: 80px; }
.cell-bar-fill  { height: 100%; border-radius: 2px; background: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   REPORT HEADER BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.report-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.report-banner-title { font-family: var(--font-serif); font-size: 22px; }
.report-banner-meta  { font-size: 13px; color: var(--muted); margin-top: 4px; }
.report-banner-meta a { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; }
.modal-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── Form elements ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY & LOADING STATES
   ══════════════════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
}
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty-desc { font-size: 13px; color: var(--muted); max-width: 280px; line-height: 1.6; margin-bottom: 22px; }

.loading-state { display: flex; flex-direction: column; align-items: center; padding: 56px; gap: 14px; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--muted); }

.placeholder-box {
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SESSION EXPIRED BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.session-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD PAGE SPECIFICS
   ══════════════════════════════════════════════════════════════════════════ */
.dash-welcome {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-welcome-text h2 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; }
.dash-welcome-text p  { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .chart-grid-3, .chart-grid-2-1, .chart-grid-1-2 { grid-template-columns: 1fr; }
  .topbar-center { display: none; }
  .page-inner { padding: 20px; }
}
@media (max-width: 600px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-actions { margin-left: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 36px 24px; }
  .auth-features { grid-template-columns: 1fr; }
}
