/* BrazilGrid Insights Portal — Design System */

/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #151d2e;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --border: #1e293b;
  --border-hover: #374151;
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #1a2744 50%, #0a0f1a 100%);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1200px;
  --max-width-article: 720px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
}
a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
ul, ol { padding-left: 1.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-width-article); margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.nav-brand img { height: 32px; width: 32px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-cta {
  background: var(--accent-green);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-cta:hover { background: #059669; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent-green); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
}
.stat-number.red { color: var(--accent-red); }
.stat-number.amber { color: var(--accent-amber); }
.stat-number.blue { color: var(--accent-blue); }
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ===== HERO CTA ===== */
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent-green); color: #fff; }
.btn-primary:hover { background: #059669; color: #fff; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn-secondary:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ===== SECTION ===== */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--bg-secondary); }
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-tertiary);
}
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.cat-regulatorio { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.cat-mercado { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.cat-tecnico { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.cat-bess { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.cat-previsao { background: rgba(236,72,153,0.15); color: #ec4899; }
.cat-transmissao { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.cat-fundacao { background: rgba(148,163,184,0.15); color: #94a3b8; }
.article-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== FEATURED STAT IN CARD ===== */
.article-card-stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}
.article-card-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ===== NUMBERS GRID (infographic) ===== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.number-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.number-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  white-space: nowrap;
  min-width: 80px;
}
.number-card-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.number-card-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== FILTER BUTTONS ===== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn, .status-filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .status-filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active, .status-filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* ===== HYPOTHESIS TABLE ===== */
.hyp-table { width: 100%; border-collapse: collapse; }
.hyp-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.hyp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}
.hyp-table tr:hover { background: var(--bg-tertiary); }
.hyp-id { font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-confirmed { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge-partial { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.badge-refuted { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.badge-inverted { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.badge-explored { background: rgba(59,130,246,0.15); color: var(--accent-blue); }

/* ===== DISCOVERY CARDS ===== */
.discovery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}
.discovery-card:hover { border-color: var(--border-hover); }
.discovery-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.discovery-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.discovery-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.discovery-chart {
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 200px;
}
.discovery-chart img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

/* Article card thumbnails */
.article-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}
.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}

/* Chart gallery in articles */
.chart-gallery {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.chart-gallery h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.chart-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== ARTICLE DETAIL ===== */
.article-header {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}
.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.article-header-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.article-header h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.article-header-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-hero-stat {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 1.5rem 0 0.5rem;
}
.article-hero-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Article body */
.article-body {
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-body p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.article-body h2 { color: var(--text-primary); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-body h3 { color: var(--text-primary); }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { margin-bottom: 0; color: var(--text-secondary); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.article-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-body pre code { background: none; padding: 0; font-size: 0.85rem; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-body th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.article-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.article-body tr:hover { background: var(--bg-tertiary); }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; color: var(--text-secondary); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Chart images in articles */
.chart-container {
  margin: 2rem 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chart-img { width: 100%; cursor: zoom-in; }
.chart-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Related articles at bottom */
.related-articles { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ===== ABOUT PAGE ===== */
.about-section { padding: 3rem 0; }
.about-section + .about-section { border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-stat { text-align: center; padding: 1.5rem; }
.about-stat-number { font-size: 2rem; font-weight: 700; color: var(--accent-green); }
.about-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== PRODUCTS ROW ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-hero);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-section h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); max-width: 300px; }
.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}
.lightbox-overlay img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius); }

/* ===== PAGE HEADER (reusable) ===== */
.page-header {
  background: var(--gradient-hero);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header h1, .page-header p { position: relative; z-index: 1; }
.page-header p { color: var(--text-secondary); max-width: 600px; margin: 0.75rem auto 0; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.lang-toggle:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ===== FALLBACK NOTICE ===== */
.fallback-notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--accent-blue);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero { padding: 4rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .stat-number { font-size: 1.5rem; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .numbers-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .article-header h1 { font-size: 1.75rem; }
  .article-hero-stat { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem 0.75rem; }
  .stat-number { font-size: 1.25rem; }
  .stat-label { font-size: 0.7rem; }
  .filter-bar { gap: 0.35rem; }
  .filter-btn, .status-filter-btn { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
}

.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-primary); }
