/* ================================================================
   KERO SDR — DESIGN SYSTEM v1.0
   Light Professional SaaS Theme
   Reference: /prospecting page
   ================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Background */
  --ds-bg:            #f8f9fb;
  --ds-bg-alt:        #f1f5ff;

  /* Surfaces */
  --ds-surface:       #ffffff;
  --ds-surface-2:     #f8fafc;
  --ds-surface-3:     #f1f5ff;

  /* Borders */
  --ds-border:        #e5e7eb;
  --ds-border-hover:  #c7d2fe;
  --ds-border-focus:  rgba(79, 70, 229, 0.5);

  /* Text */
  --ds-text:          #111827;
  --ds-text-2:        #4b5563;
  --ds-text-muted:    #9ca3af;

  /* Primary — Indigo/Purple */
  --ds-primary:       #4f46e5;
  --ds-primary-dark:  #4338ca;
  --ds-primary-light: #6366f1;
  --ds-primary-bg:    #eef2ff;
  --ds-primary-grad:  linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --ds-primary-glow:  rgba(79, 70, 229, 0.18);

  /* Semantic colours */
  --ds-success:       #10b981;
  --ds-success-bg:    rgba(16, 185, 129, 0.1);
  --ds-success-border:rgba(16, 185, 129, 0.35);

  --ds-warning:       #f59e0b;
  --ds-warning-bg:    rgba(245, 158, 11, 0.1);
  --ds-warning-border:rgba(245, 158, 11, 0.35);

  --ds-danger:        #ef4444;
  --ds-danger-bg:     rgba(239, 68, 68, 0.1);
  --ds-danger-border: rgba(239, 68, 68, 0.35);

  --ds-info:          #3b82f6;
  --ds-info-bg:       rgba(59, 130, 246, 0.1);
  --ds-info-border:   rgba(59, 130, 246, 0.35);

  /* Radius */
  --ds-r-xs:   6px;
  --ds-r-sm:   8px;
  --ds-r:      12px;
  --ds-r-lg:   16px;
  --ds-r-xl:   20px;
  --ds-r-full: 999px;

  /* Shadows */
  --ds-shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --ds-shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --ds-shadow:    0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --ds-shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
  --ds-shadow-xl: 0 24px 48px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);

  /* Layout */
  --ds-sidebar-w:  240px;
  --ds-topbar-h:   64px;

  /* Transition */
  --ds-ease: all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body.ds-theme,
body.modern-app,
body.premium-saas {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ds-bg);
  color: var(--ds-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Override dark-theme pages: force light vars */
body.ds-theme,
body.modern-app.premium-saas {
  --bg:           var(--ds-bg) !important;
  --bg-deep:      var(--ds-bg-alt) !important;
  --surface:      var(--ds-surface) !important;
  --surface-2:    var(--ds-surface-2) !important;
  --surface-hover:var(--ds-surface-3) !important;
  --card:         var(--ds-surface) !important;
  --border:       var(--ds-border) !important;
  --text:         var(--ds-text) !important;
  --text-muted:   var(--ds-text-2) !important;
  --text-dim:     var(--ds-text-muted) !important;
  --primary:      var(--ds-primary) !important;
  --primary-dark: var(--ds-primary-dark) !important;
  --accent:       var(--ds-primary) !important;
  --accent-2:     var(--ds-primary-light) !important;
  --accent-grad:  var(--ds-primary-grad) !important;
  --accent-glow:  var(--ds-primary-glow) !important;
  --muted:        var(--ds-text-2) !important;
  --sidebar-bg:   rgba(255,255,255,0.95) !important;
}

/* ── GLOBAL BACKGROUND ───────────────────────────────────────── */
body.ds-theme,
body.modern-app,
body.premium-saas {
  background: radial-gradient(ellipse at top right, #eef2ff 0%, #f8f9fb 55%) !important;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.ds-layout {
  display: flex;
  min-height: 100vh;
}

.ds-main {
  margin-left: var(--ds-sidebar-w);
  flex: 1;
  padding: 2rem;
  min-height: 100vh;
  max-width: calc(100vw - var(--ds-sidebar-w));
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.ds-sidebar {
  width: var(--ds-sidebar-w);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  background: rgba(255,255,255,0.95) !important;
  border-right: 1px solid var(--ds-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

/* Override legacy sidebar colors */
.modern-app .sidebar,
.premium-saas .sidebar,
body .sidebar {
  background: rgba(255,255,255,0.95) !important;
  border-right: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow-sm) !important;
}

.ds-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}

.ds-logo-icon {
  width: 38px; height: 38px;
  border-radius: var(--ds-r-sm);
  background: var(--ds-primary-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px var(--ds-primary-glow);
}

.ds-logo-name {
  font-weight: 700;
  color: var(--ds-text);
  font-size: 0.975rem;
}

.ds-logo-tagline {
  font-size: 0.68rem;
  color: var(--ds-text-muted);
  margin-top: 1px;
}

/* Nav items — override legacy styles */
.modern-app .sidebar .nav-item,
.premium-saas .sidebar .nav-item,
body .sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--ds-r-sm);
  color: var(--ds-text-2) !important;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ds-ease);
  text-decoration: none;
  margin: 1px 0;
}

.modern-app .sidebar .nav-item i,
.premium-saas .sidebar .nav-item i,
body .sidebar .nav-item i {
  color: var(--ds-text-muted) !important;
  width: 16px; text-align: center;
  font-size: 0.875rem;
}

.modern-app .sidebar .nav-item:hover,
.premium-saas .sidebar .nav-item:hover,
body .sidebar .nav-item:hover {
  background: var(--ds-primary-bg) !important;
  color: var(--ds-primary) !important;
}

.modern-app .sidebar .nav-item:hover i,
.premium-saas .sidebar .nav-item:hover i,
body .sidebar .nav-item:hover i {
  color: var(--ds-primary) !important;
}

.modern-app .sidebar .nav-item.active,
.premium-saas .sidebar .nav-item.active,
body .sidebar .nav-item.active {
  background: var(--ds-primary-bg) !important;
  color: var(--ds-primary) !important;
  font-weight: 600 !important;
  border-left: 3px solid var(--ds-primary) !important;
  padding-left: calc(0.875rem - 3px) !important;
  box-shadow: none !important;
}

.modern-app .sidebar .nav-item.active i,
.premium-saas .sidebar .nav-item.active i,
body .sidebar .nav-item.active i {
  color: var(--ds-primary) !important;
}

/* ── TOPBAR ──────────────────────────────────────────────────── */
.ds-topbar {
  position: sticky; top: 0; z-index: 150;
  height: var(--ds-topbar-h);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--ds-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.75rem;
}

/* Override legacy topbars */
body .navbar, body nav.navbar, body .top-bar, body .topbar {
  background: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid var(--ds-border) !important;
  backdrop-filter: blur(16px) !important;
  color: var(--ds-text) !important;
}

body .nav-link, body .nav-links a, body .nav-menu a {
  color: var(--ds-text-2) !important;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.ds-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-lg);
  box-shadow: var(--ds-shadow);
  padding: 1.5rem;
}

.ds-card-sm { padding: 1rem; border-radius: var(--ds-r); }
.ds-card-lg { padding: 2rem; border-radius: var(--ds-r-xl); }

/* Override legacy cards to light */
body .section-card,
body .analytics-card,
body .meeting-card,
body .kpi-card,
body .metric-card,
body .stats-card,
body .panel,
body .settings-section,
body .billing-card {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  color: var(--ds-text) !important;
  box-shadow: var(--ds-shadow) !important;
  border-radius: var(--ds-r-lg) !important;
}

/* ── KPI / STAT CARDS ────────────────────────────────────────── */
.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.ds-kpi {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-lg);
  box-shadow: var(--ds-shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--ds-ease);
}

.ds-kpi:hover {
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-2px);
}

.ds-kpi-icon {
  width: 46px; height: 46px;
  border-radius: var(--ds-r-sm);
  background: var(--ds-primary-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px var(--ds-primary-glow);
}

.ds-kpi-icon.icon-success { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 6px 18px rgba(16,185,129,.2); }
.ds-kpi-icon.icon-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 6px 18px rgba(245,158,11,.2); }
.ds-kpi-icon.icon-danger  { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: 0 6px 18px rgba(239,68,68,.2); }
.ds-kpi-icon.icon-info    { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 6px 18px rgba(59,130,246,.2); }

.ds-kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ds-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ds-kpi-label {
  font-size: 0.8rem;
  color: var(--ds-text-muted);
  margin-top: 0.2rem;
}

.ds-kpi-delta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds-success);
  margin-top: 0.2rem;
}

.ds-kpi-delta.down { color: var(--ds-danger); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.ds-btn, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--ds-r-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ds-ease);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
}

.ds-btn-primary, body .btn-primary {
  background: var(--ds-primary-grad) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--ds-primary-glow) !important;
  border: none !important;
}

.ds-btn-primary:hover, body .btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px var(--ds-primary-glow) !important;
}

.ds-btn-secondary, body .btn-secondary {
  background: var(--ds-primary-bg) !important;
  color: var(--ds-primary) !important;
  border: 1px solid var(--ds-border-hover) !important;
}

.ds-btn-secondary:hover, body .btn-secondary:hover {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
  transform: translateY(-1px);
}

.ds-btn-ghost {
  background: transparent;
  color: var(--ds-text-2);
  border: 1px solid var(--ds-border);
}
.ds-btn-ghost:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}

.ds-btn-danger {
  background: var(--ds-danger-bg);
  color: var(--ds-danger);
  border: 1px solid var(--ds-danger-border);
}
.ds-btn-danger:hover {
  background: rgba(239,68,68,.15);
}

.ds-btn-sm  { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.ds-btn-lg  { padding: 0.8rem 1.75rem; font-size: 1rem; }
.ds-btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--ds-r-sm);
  background: var(--ds-primary-bg);
  color: var(--ds-primary);
  border: 1px solid var(--ds-border-hover);
}

/* ── BADGES ──────────────────────────────────────────────────── */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--ds-r-full);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ds-badge-primary { background: var(--ds-primary-bg); color: var(--ds-primary); }
.ds-badge-success { background: var(--ds-success-bg); color: var(--ds-success); border: 1px solid var(--ds-success-border); }
.ds-badge-warning { background: var(--ds-warning-bg); color: var(--ds-warning); border: 1px solid var(--ds-warning-border); }
.ds-badge-danger  { background: var(--ds-danger-bg);  color: var(--ds-danger);  border: 1px solid var(--ds-danger-border);  }
.ds-badge-neutral { background: #f3f4f6; color: var(--ds-text-2); border: 1px solid var(--ds-border); }

.ds-badge-success.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ds-success);
  animation: ds-pulse 2s ease infinite;
}

@keyframes ds-pulse {
  0%, 100% { opacity:1; transform:scale(1); }
  50%       { opacity:.4; transform:scale(.7); }
}

/* ── INPUTS ──────────────────────────────────────────────────── */
body input:not([type=checkbox]):not([type=radio]),
body select,
body textarea {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  color: var(--ds-text) !important;
  border-radius: var(--ds-r) !important;
  font-family: 'Inter', sans-serif !important;
}

body input::placeholder, body textarea::placeholder {
  color: var(--ds-text-muted) !important;
}

body input:focus, body select:focus, body textarea:focus {
  border-color: var(--ds-border-focus) !important;
  box-shadow: 0 0 0 3px var(--ds-primary-glow) !important;
  outline: none !important;
}

.ds-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ds-text-2);
  margin-bottom: 0.35rem;
}

/* ── TABLE ───────────────────────────────────────────────────── */
body table, body .table {
  color: var(--ds-text) !important;
}

body table thead th, body .table thead th {
  background: #f8fafc !important;
  color: var(--ds-text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  border-bottom: 1px solid var(--ds-border) !important;
}

body table tbody tr, body .table tbody tr {
  background: var(--ds-surface) !important;
  border-color: var(--ds-border) !important;
}

body table tbody tr:hover td, body .table tbody tr:hover {
  background: #f8fafc !important;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.ds-page-header {
  margin-bottom: 1.75rem;
}

.ds-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ds-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}

.ds-page-title span {
  background: var(--ds-primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ds-page-subtitle {
  font-size: 0.925rem;
  color: var(--ds-text-2);
  margin: 0;
}

/* ── SECTION HEADER ──────────────────────────────────────────── */
.ds-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ds-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ds-text);
}

.ds-section-sub {
  font-size: 0.82rem;
  color: var(--ds-text-muted);
  margin-top: 0.1rem;
}

/* ── GRADIENT HERO BLOCK ─────────────────────────────────────── */
.ds-hero-block {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ds-hero-block::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(79,70,229,.09) 0%, transparent 70%);
  pointer-events: none;
}

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.ds-progress {
  height: 6px;
  background: var(--ds-border);
  border-radius: var(--ds-r-full);
  overflow: hidden;
}

.ds-progress-fill {
  height: 100%;
  background: var(--ds-primary-grad);
  border-radius: inherit;
  transition: width .4s ease;
}

.ds-progress-fill.success { background: linear-gradient(90deg, #10b981, #34d399); }
.ds-progress-fill.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ds-progress-fill.danger  { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ── AVATAR ──────────────────────────────────────────────────── */
.ds-avatar {
  width: 36px; height: 36px;
  border-radius: var(--ds-r-full);
  background: var(--ds-primary-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ds-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

/* ── CHIP / TAG ──────────────────────────────────────────────── */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-full);
  font-size: 0.78rem;
  color: var(--ds-text-2);
}

/* ── MODAL ───────────────────────────────────────────────────── */
.ds-modal-bg {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ds-modal {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-xl);
  box-shadow: var(--ds-shadow-xl);
  padding: 1.75rem;
  width: 90%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.ds-modal-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ds-text);
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.ds-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--ds-text-muted);
}

.ds-empty-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  opacity: 0.35;
  display: block;
}

.ds-empty-title {
  font-size: 1rem; font-weight: 600;
  color: var(--ds-text-2);
  margin-bottom: 0.35rem;
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.ds-divider {
  border: none;
  border-top: 1px solid var(--ds-border);
  margin: 1.25rem 0;
}

/* ── TEXT UTILITIES ──────────────────────────────────────────── */
.ds-text-grad {
  background: var(--ds-primary-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.ds-text-sm    { font-size: 0.82rem; }
.ds-text-xs    { font-size: 0.72rem; }
.ds-text-muted { color: var(--ds-text-muted); }
.ds-text-2     { color: var(--ds-text-2); }
.ds-fw-600     { font-weight: 600; }
.ds-fw-700     { font-weight: 700; }

/* ── SPACING UTILS ───────────────────────────────────────────── */
.ds-mt-2 { margin-top: .5rem; }
.ds-mt-4 { margin-top: 1rem; }
.ds-mt-6 { margin-top: 1.5rem; }
.ds-mt-8 { margin-top: 2rem; }
.ds-mb-4 { margin-bottom: 1rem; }
.ds-mb-6 { margin-bottom: 1.5rem; }
.ds-p-4  { padding: 1rem; }
.ds-p-6  { padding: 1.5rem; }

/* ── GRID UTILS ──────────────────────────────────────────────── */
.ds-grid   { display: grid; }
.ds-g-4    { gap: 1rem; }
.ds-g-6    { gap: 1.5rem; }
.ds-col-2  { grid-template-columns: repeat(2, 1fr); }
.ds-col-3  { grid-template-columns: repeat(3, 1fr); }
.ds-col-4  { grid-template-columns: repeat(4, 1fr); }
.ds-col-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.ds-flex   { display: flex; align-items: center; }
.ds-flex-b { display: flex; align-items: center; justify-content: space-between; }
.ds-flex-wrap { flex-wrap: wrap; }
.ds-w-full { width: 100%; }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ds-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--ds-border-hover); }

/* ── LOGIN / AUTH PAGES ──────────────────────────────────────── */
body.auth-page {
  background: radial-gradient(ellipse at top right, #eef2ff 0%, #f8f9fb 55%) !important;
  color: var(--ds-text) !important;
}

body.auth-page .login-card,
body.auth-page .signup-form-container,
body.auth-page .forgot-password-card,
body.auth-page .reset-card {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: var(--ds-shadow-xl) !important;
  color: var(--ds-text) !important;
}

body.auth-page input, body.auth-page select {
  background: var(--ds-surface) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text) !important;
}

body.auth-page label, body.auth-page p, body.auth-page h1, body.auth-page h2, body.auth-page h3 {
  color: var(--ds-text) !important;
}

body.auth-page .nav-brand span, body.auth-page .brand-name {
  color: var(--ds-text) !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ds-main { margin-left: 0; max-width: 100vw; }
  .ds-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .ds-sidebar.open { transform: translateX(0); }
  .ds-col-4 { grid-template-columns: repeat(2, 1fr); }
  .ds-col-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ds-main { padding: 1rem; }
  .ds-col-2, .ds-col-3, .ds-col-4 { grid-template-columns: 1fr; }
  .ds-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-page-title { font-size: 1.35rem; }
  .ds-kpi { padding: 1rem; }
  .ds-kpi-value { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .ds-kpi-grid { grid-template-columns: 1fr; }
  .ds-hero-block { padding: 1.25rem 1rem; }
}
