/* ================================================================
   Inactive Client Google Review Performance Dashboard
   style.css — Full custom dark dashboard UI
   [COMPANY NAME: Update COMPANY_NAME in your .env file]
   Design reference: Dark green dashboard with neon accent
   ================================================================ */

/* ── CSS CUSTOM PROPERTIES (Design Tokens) ─────────────────────
   All colors, spacing, and typography defined here as variables.
   Change a token here and it updates everywhere automatically.
   ──────────────────────────────────────────────────────────────*/
:root {
  /* Background layers */
  --bg-base:        #0a1810;   /* Deepest background — app body */
  --bg-surface:     #0f2218;   /* Card/panel background */
  --bg-surface-2:   #152d20;   /* Slightly lighter panel (hover states) */
  --bg-sidebar:     #0c1e14;   /* Left sidebar background */
  --bg-topbar:      #0c1e14;   /* Top navigation bar */

  /* Border */
  --border:         rgba(255, 255, 255, 0.07);   /* Subtle card borders */
  --border-active:  rgba(168, 255, 62, 0.3);     /* Active/focus borders */

  /* Accent — neon green */
  --accent:         #a8ff3e;   /* Primary accent — CTAs, active nav, highlights */
  --accent-dim:     #7acc2e;   /* Dimmer accent for secondary elements */
  --accent-glow:    rgba(168, 255, 62, 0.15);    /* Glow effect behind accent elements */

  /* Text */
  --text-primary:   #e8f5e9;   /* Main readable text */
  --text-secondary: #7a9e82;   /* Subdued labels, metadata */
  --text-muted:     #4a6b50;   /* Placeholder text, disabled states */
  --text-inverse:   #0a1810;   /* Text on accent-colored buttons */

  /* Semantic colors */
  --color-red:      #ff4d4d;   /* 0–5 reviews — danger/inactive */
  --color-red-bg:   rgba(255, 77,  77,  0.12);
  --color-yellow:   #ffc107;   /* 6–9 reviews — warning */
  --color-yellow-bg:rgba(255, 193, 7,   0.12);
  --color-green:    #4cff72;   /* 10+ reviews — good */
  --color-green-bg: rgba(76,  255, 114, 0.12);

  /* Star rating color */
  --star-color:     #ffc107;

  /* Typography */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:999px;

  /* Sidebar width */
  --sidebar-width: 240px;

  /* Topbar height */
  --topbar-height: 64px;

  /* Transition */
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* ── SCROLLBAR (Webkit) ─────────────────────────────────────────*/
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-base); }
::-webkit-scrollbar-thumb  { background: var(--bg-surface-2); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── LAYOUT — APP SHELL ─────────────────────────────────────────
   Fixed sidebar on left, topbar at top, scrollable main content
   ──────────────────────────────────────────────────────────────*/
.app-layout {
  display: flex;
  min-height: 100vh;
}

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

/* Logo / Brand area */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-height);
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-brand-tagline {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Navigation links */
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-4) var(--space-3) var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  opacity: 1;
}

/* Active nav state — green pill highlight */
.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-active);
}

.nav-link.active .nav-icon svg { fill: var(--accent); }

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: fill var(--transition);
}

/* Sidebar footer — user info */
.sidebar-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; overflow: hidden; }

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
  white-space: nowrap;
}

/* ── MAIN CONTENT WRAPPER ───────────────────────────────────────*/
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ─────────────────────────────────────────────────────*/
.topbar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── PAGE CONTENT ───────────────────────────────────────────────*/
.page-content {
  padding: var(--space-6);
  flex: 1;
}

/* ── CARDS ──────────────────────────────────────────────────────*/
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border-active); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── KPI STAT CARDS (Dashboard) ─────────────────────────────────*/
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover { border-color: var(--border-active); }

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-value.accent { color: var(--accent); }

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  margin-top: var(--space-2);
  color: var(--text-muted);
}

.kpi-icon {
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* ── TABLES ─────────────────────────────────────────────────────*/
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-surface-2); }

tbody td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  vertical-align: middle;
}

/* ── COLOR-CODED REVIEW COUNT BADGES ────────────────────────────
   Used in the History table — 0-5 red, 6-9 yellow, 10+ green
   ──────────────────────────────────────────────────────────────*/
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
}

.color-red    { background: var(--color-red-bg);    color: var(--color-red);    border: 1px solid rgba(255,77,77,0.3); }
.color-yellow { background: var(--color-yellow-bg); color: var(--color-yellow); border: 1px solid rgba(255,193,7,0.3); }
.color-green  { background: var(--color-green-bg);  color: var(--color-green);  border: 1px solid rgba(76,255,114,0.3); }

/* Row-level color accent — left border strip */
tr.row-red    { border-left: 3px solid var(--color-red); }
tr.row-yellow { border-left: 3px solid var(--color-yellow); }
tr.row-green  { border-left: 3px solid var(--color-green); }

/* ── BUTTONS ─────────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--text-inverse);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-active);
  color: var(--accent);
  opacity: 1;
}

.btn-danger {
  background: rgba(255, 77, 77, 0.12);
  color: var(--color-red);
  border: 1px solid rgba(255,77,77,0.2);
}
.btn-danger:hover {
  background: rgba(255,77,77,0.2);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  opacity: 1;
}

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: 15px; }

.btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── FORMS ──────────────────────────────────────────────────────*/
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select.form-control {
  cursor: pointer;
  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='%237a9e82' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Inline form row — for date range pickers */
.form-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-row .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ── FLASH MESSAGES / ALERTS ────────────────────────────────────*/
.alert {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  border: 1px solid transparent;
}

.alert-success  { background: var(--color-green-bg);  color: var(--color-green);  border-color: rgba(76,255,114,0.3); }
.alert-danger   { background: var(--color-red-bg);    color: var(--color-red);    border-color: rgba(255,77,77,0.3); }
.alert-warning  { background: var(--color-yellow-bg); color: var(--color-yellow); border-color: rgba(255,193,7,0.3); }
.alert-info     { background: var(--accent-glow);     color: var(--accent);       border-color: var(--border-active); }

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

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

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  font-size: 20px;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

/* ── STAR RATING DISPLAY ────────────────────────────────────────*/
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star-color);
  font-size: 14px;
}

.rating-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 4px;
}

/* ── GMB ICON LINK ──────────────────────────────────────────────*/
.gmb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  margin-left: var(--space-2);
  transition: all var(--transition);
  vertical-align: middle;
}

.gmb-link:hover {
  background: var(--accent);
  opacity: 1;
}

.gmb-link svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

.gmb-link:hover svg { fill: var(--text-inverse); }

/* ── STATUS PILLS ────────────────────────────────────────────────*/
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-success { background: var(--color-green-bg);  color: var(--color-green); }
.pill-error   { background: var(--color-red-bg);    color: var(--color-red); }
.pill-warning { background: var(--color-yellow-bg); color: var(--color-yellow); }

/* Role pills */
.pill-admin       { background: var(--accent-glow); color: var(--accent); }
.pill-super-admin { background: rgba(168,255,62,0.25); color: var(--accent); border: 1px solid var(--border-active); }

/* ── CHART CONTAINER ─────────────────────────────────────────────*/
.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

/* ── GRID LAYOUTS ────────────────────────────────────────────────*/
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-5); }

/* ── EMPTY STATE ─────────────────────────────────────────────────*/
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  text-align: center;
  gap: var(--space-4);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--text-muted);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
}

/* ── LOGIN PAGE ──────────────────────────────────────────────────*/
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Subtle green radial glow behind login card */
.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,255,62,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  text-align: center;
}

.login-logo-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── DIVIDER ──────────────────────────────────────────────────────*/
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-5) 0;
}

/* ── TOOLTIP ──────────────────────────────────────────────────────*/
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 300;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ── FETCH FORM (History / Dashboard) ───────────────────────────*/
.fetch-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.fetch-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .sidebar.open { transform: translateX(0); }

  .main-wrapper { margin-left: 0; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }

  .page-content { padding: var(--space-4); }

  .topbar { padding: 0 var(--space-4); }
}

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

/* ── UTILITY CLASSES ─────────────────────────────────────────────*/
.text-accent    { color: var(--accent); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger    { color: var(--color-red); }
.text-success   { color: var(--color-green); }
.text-warning   { color: var(--color-yellow); }
.fw-bold        { font-weight: 700; }
.fw-semibold    { font-weight: 600; }
.font-mono      { font-family: var(--font-mono); }
.mt-4           { margin-top: var(--space-4); }
.mb-4           { margin-bottom: var(--space-4); }
.mb-6           { margin-bottom: var(--space-6); }
.d-flex         { display: flex; }
.align-center   { align-items: center; }
.gap-2          { gap: var(--space-2); }
.gap-3          { gap: var(--space-3); }
.gap-4          { gap: var(--space-4); }
.justify-between{ justify-content: space-between; }
.w-100          { width: 100%; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
