/* ══════════════════════════════════════════════════════════════
   CONFIANCE ENERGY — Dashboard de Projetos
   Design System & Styles
   Identity: Navy #002966 / Gold #ffbf00 / DM Sans + Outfit
══════════════════════════════════════════════════════════════ */

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

:root {
  /* Core Palette */
  --primary:          #002966;
  --primary-dark:     #001d4d;
  --primary-light:    #003d99;
  --blue-600:         #2563eb;
  --blue-900:         #1e3a8a;
  --accent:           #ffbf00;
  --accent-soft:      #fff3cc;
  --accent-ring:      hsla(45,100%,50%,.25);

  /* Surfaces */
  --bg:               #f0f4f8;
  --bg-card:          #ffffff;
  --bg-elevated:      #ffffff;
  --bg-sidebar:       linear-gradient(180deg, #001d4d 0%, #002966 50%, #003d99 100%);

  /* Text */
  --text-primary:     #0f172a;
  --text-secondary:   #475569;
  --text-muted:       #94a3b8;
  --text-inverse:     #ffffff;

  /* Borders */
  --border:           #e2e8f0;
  --border-light:     #f1f5f9;

  /* Status Colors */
  --green:            #10b981;
  --green-bg:         #ecfdf5;
  --green-text:       #065f46;
  --red:              #ef4444;
  --red-bg:           #fef2f2;
  --red-text:         #991b1b;
  --orange:           #f59e0b;
  --orange-bg:        #fffbeb;
  --orange-text:      #92400e;
  --blue:             #3b82f6;
  --blue-bg:          #eff6ff;
  --blue-text:        #1e40af;
  --purple:           #8b5cf6;
  --purple-bg:        #f5f3ff;
  --purple-text:      #5b21b6;
  --cyan:             #06b6d4;
  --cyan-bg:          #ecfeff;
  --cyan-text:        #155e75;

  /* Misc */
  --radius:           12px;
  --radius-lg:        16px;
  --shadow-sm:        0 1px 2px rgba(0,0,0,0.05);
  --shadow:           0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:        0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:        0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.sidebar-logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px 6px;
  object-fit: contain;
}

.sidebar-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.sidebar-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  padding: 1rem 0.75rem 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(255,191,0,0.15);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active svg { color: var(--accent); }

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
}

.sidebar-footer-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── Mobile Sidebar Toggle ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--primary);
  z-index: 99;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-title {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  .mobile-header {
    display: flex;
  }
  .main-content {
    margin-left: 0 !important;
    padding-top: 60px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ── */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Page Container ── */
.page-content {
  padding: 1.5rem 2rem 3rem;
  flex: 1;
}

/* ── Tab Panels ── */
.tab-panel {
  display: none;
  animation: fadeSlideIn 0.35s ease-out forwards;
}

.tab-panel.active { display: block; }

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

/* ══════════════════════════════════════════════════════════════
   KPI CARDS
══════════════════════════════════════════════════════════════ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card.accent-blue::after { background: var(--blue); }
.kpi-card.accent-green::after { background: var(--green); }
.kpi-card.accent-orange::after { background: var(--orange); }
.kpi-card.accent-red::after { background: var(--red); }
.kpi-card.accent-purple::after { background: var(--purple); }
.kpi-card.accent-cyan::after { background: var(--cyan); }

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.kpi-icon.blue { background: var(--blue-bg); color: var(--blue); }
.kpi-icon.green { background: var(--green-bg); color: var(--green); }
.kpi-icon.orange { background: var(--orange-bg); color: var(--orange); }
.kpi-icon.red { background: var(--red-bg); color: var(--red); }
.kpi-icon.purple { background: var(--purple-bg); color: var(--purple); }
.kpi-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO WELCOME BANNER
══════════════════════════════════════════════════════════════ */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-900) 60%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(0,41,102,0.35);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,191,0,0.08);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   CARDS / PANELS
══════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.card-header h3 {
  font-size: 1rem;
  color: var(--text-primary);
}

.card-body {
  padding: 1.5rem;
}

.card-body.no-pad { padding: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PIPELINE / FUNNEL
══════════════════════════════════════════════════════════════ */
.pipeline {
  display: flex;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 40px;
  margin-bottom: 0.75rem;
}

.pipeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  transition: flex 0.5s ease;
  position: relative;
  cursor: default;
  min-width: 2px;
}

.pipeline-segment:hover { filter: brightness(1.15); }

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

.pipeline-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-count {
  font-weight: 700;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

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

thead th {
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr { transition: background 0.15s; }
tbody tr:hover { background: #f8fafc; }

.task-title-cell {
  font-weight: 600;
  max-width: 280px;
}

.task-id {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green  { background: var(--green-bg);  color: var(--green-text); }
.badge-red    { background: var(--red-bg);    color: var(--red-text); }
.badge-orange { background: var(--orange-bg); color: var(--orange-text); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue-text); }
.badge-purple { background: var(--purple-bg); color: var(--purple-text); }
.badge-cyan   { background: var(--cyan-bg);   color: var(--cyan-text); }
.badge-gray   { background: #f1f5f9;         color: #475569; }

/* ── Days Tag ── */
.days-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
}

.days-pill.critical { color: var(--red); }
.days-pill.warning  { color: var(--orange); }
.days-pill.ok       { color: var(--green); }

/* ── Urgency bar ── */
.urgency-bar {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.urgency-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ══════════════════════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════════════════════ */
.comment-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.comment-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.comment-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

.comment-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comment-task-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIBLE AVATARS
══════════════════════════════════════════════════════════════ */
.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.responsible-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-bar select,
.filter-bar input {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,41,102,0.08);
}

/* ══════════════════════════════════════════════════════════════
   BOTTLENECK & INSIGHTS
══════════════════════════════════════════════════════════════ */
.insight-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
}

.insight-card.warning {
  background: var(--orange-bg);
  border-color: hsla(38,92%,50%,0.25);
}

.insight-card.danger {
  background: var(--red-bg);
  border-color: hsla(0,84%,60%,0.25);
}

.insight-card.info {
  background: var(--blue-bg);
  border-color: hsla(217,91%,60%,0.25);
}

.insight-card.success {
  background: var(--green-bg);
  border-color: hsla(160,84%,39%,0.25);
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.insight-card.warning .insight-icon { background: rgba(245,158,11,0.15); color: var(--orange); }
.insight-card.danger .insight-icon  { background: rgba(239,68,68,0.15); color: var(--red); }
.insight-card.info .insight-icon    { background: rgba(59,130,246,0.15); color: var(--blue); }
.insight-card.success .insight-icon { background: rgba(16,185,129,0.15); color: var(--green); }

.insight-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.insight-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   RANKING TABLE
══════════════════════════════════════════════════════════════ */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.ranking-item:last-child { border-bottom: none; }

.ranking-pos {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

.ranking-bar-wrap {
  width: 100px;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-right: 0.75rem;
}

.ranking-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.ranking-count {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  min-width: 24px;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   DEADLINE
══════════════════════════════════════════════════════════════ */
.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.deadline-badge.overdue { color: var(--red); }
.deadline-badge.soon    { color: var(--orange); }
.deadline-badge.ok      { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL STYLING
══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .hero-banner { padding: 1.5rem; }
  .hero-title { font-size: 1.25rem; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .kpi-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
}
