/* ==========================================================================
   The Machine Economy — Design System
   "Obsidian Observatory" — industrial precision meets deep-space atmosphere
   ========================================================================== */

/* Font Loading */
/* Fonts loaded via <link> in HTML for faster rendering */

/* ==========================================================================
   Custom Properties
   ========================================================================== */

:root {
  /* Backgrounds — warm dark navy, not pure black */
  --bg-primary: #0b0d12;
  --bg-card: #10131a;
  --bg-surface: #0d1017;
  --border: #1a1e2a;
  --border-hover: #2a2f3d;

  /* Text — slightly warm whites with blue-gray tint */
  --text-primary: #e4e7ec;
  --text-secondary: #8890a0;
  --text-muted: #4a5060;

  /* Layer colors — muted professional tones */
  --color-identity: #6db8ad;
  --color-reputation: #8b92c9;
  --color-payments: #a688bf;
  --color-orchestration: #c08a9e;
  --color-services: #6ba8c4;
  --color-money-markets: #c4956a;

  /* Status colors — desaturated indicators */
  --color-live: #6fbf8a;
  --color-testnet: #c9a95e;
  --color-building: #7a7a7a;
  --color-announced: #4a4a4a;

  /* Fonts */
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border radius — larger for card feel */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ==========================================================================
   Page Load — Branded Splash
   ========================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.loaded .loader-tag,
.page-loader.loaded .loader-title,
.page-loader.loaded .loader-subtitle,
.page-loader.loaded .loader-pulse {
  transform: translateY(-8px);
  opacity: 0;
}

/* Observatory tag */
.loader-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(6px);
  animation: loader-reveal 0.5s ease forwards 0.1s;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Title */
.loader-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: loader-reveal 0.5s ease forwards 0.25s;
  transition: transform 0.4s ease 0.05s, opacity 0.3s ease 0.05s;
}

/* Subtitle */
.loader-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(6px);
  animation: loader-reveal 0.5s ease forwards 0.4s;
  transition: transform 0.4s ease 0.1s, opacity 0.3s ease 0.1s;
}

@keyframes loader-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Pulsing dots */
.loader-pulse {
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: 0;
  animation: loader-reveal 0.4s ease forwards 0.6s;
  transition: transform 0.4s ease 0.15s, opacity 0.3s ease 0.15s;
}

.loader-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: loader-breathe 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
  background: var(--color-identity);
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  background: var(--color-payments);
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  background: var(--color-services);
  animation-delay: 0.4s;
}

@keyframes loader-breathe {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.4); }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 60% 40% at 10% -5%, rgba(109, 184, 173, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 105%, rgba(166, 136, 191, 0.03) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 200px 200px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Page Load Animations
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.page-content .container {
  animation: fadeUp 0.25s ease both;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(11, 13, 18, 0.95) 0%, rgba(16, 19, 26, 0.97) 50%, rgba(11, 13, 18, 0.95) 100%);
  background-size: 150px 150px, 100% 100%;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 54px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease both;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-header .wordmark {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* Navigation */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--text-secondary);
}

.nav-links a.active {
  color: var(--text-primary);
}


/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Content */
.page-content {
  padding-top: 80px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-line {
  margin: 0;
}

.footer-curator {
  margin: 0;
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-curator:hover {
  opacity: 0.85;
}

.footer-curator a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.footer-curator a:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--text-muted);
}

.footer-x-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
  border-bottom: none !important;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-x-icon:hover {
  opacity: 1;
  border-bottom: none !important;
}

/* Section Title */
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  padding: 24px 0 32px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 52px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 14px auto 0;
  line-height: 1.65;
  font-weight: 400;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
  margin: 20px auto 0;
}

/* Metrics Row */
.metrics-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.metric-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* Phase Roadmap */
.phase-roadmap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 28px;
  flex-wrap: wrap;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
}

.phase-step.phase-active {
  border-color: var(--color-identity);
  color: var(--color-identity);
  background: rgba(109, 184, 173, 0.06);
  box-shadow: 0 0 12px rgba(109, 184, 173, 0.08);
}

.phase-step.phase-emerging {
  border-style: dashed;
  border-color: rgba(139, 146, 201, 0.35);
  color: var(--color-reputation);
  opacity: 0.7;
}

.phase-step.phase-future {
  border-style: dashed;
  border-color: rgba(192, 138, 158, 0.25);
  color: var(--color-orchestration);
  opacity: 0.55;
}

.phase-step.phase-vision {
  border-style: dashed;
  border-color: rgba(196, 149, 106, 0.2);
  color: var(--color-money-markets);
  opacity: 0.45;
}

.phase-number {
  font-weight: 700;
}

.phase-current-marker {
  font-size: 8px;
  letter-spacing: 1.5px;
  background: var(--color-identity);
  color: var(--bg-primary);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 2px;
}

.phase-future-marker {
  font-size: 8px;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 2px;
}

.phase-connector {
  width: 16px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================================================
   Stack Visualization (Homepage)
   ========================================================================== */

.stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  margin-top: 36px;
}

.stack-layer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
}

/* Layer: Identity & Wallets */
.stack-layer[data-layer="identity-wallets"] {
  border: 1px solid rgba(109, 184, 173, 0.2);
  background: rgba(109, 184, 173, 0.03);
}
.stack-layer[data-layer="identity-wallets"]:hover {
  border-color: rgba(109, 184, 173, 0.55);
  background: rgba(109, 184, 173, 0.07);
  box-shadow: 0 0 20px rgba(109, 184, 173, 0.08), inset 0 0 20px rgba(109, 184, 173, 0.03);
}
.stack-layer[data-layer="identity-wallets"] .layer-name {
  color: #6db8ad;
}
.stack-layer[data-layer="identity-wallets"].expanded {
  border-color: rgba(109, 184, 173, 0.65);
  box-shadow: 0 0 24px rgba(109, 184, 173, 0.1), inset 0 0 24px rgba(109, 184, 173, 0.04);
}

/* Layer: Reputation & Verification */
.stack-layer[data-layer="reputation-verification"] {
  border: 1px solid rgba(139, 146, 201, 0.2);
  background: rgba(139, 146, 201, 0.03);
}
.stack-layer[data-layer="reputation-verification"]:hover {
  border-color: rgba(139, 146, 201, 0.55);
  background: rgba(139, 146, 201, 0.07);
  box-shadow: 0 0 20px rgba(139, 146, 201, 0.08), inset 0 0 20px rgba(139, 146, 201, 0.03);
}
.stack-layer[data-layer="reputation-verification"] .layer-name {
  color: #8b92c9;
}
.stack-layer[data-layer="reputation-verification"].expanded {
  border-color: rgba(139, 146, 201, 0.65);
  box-shadow: 0 0 24px rgba(139, 146, 201, 0.1), inset 0 0 24px rgba(139, 146, 201, 0.04);
}

/* Layer: Payments & Settlement */
.stack-layer[data-layer="payments-settlement"] {
  border: 1px solid rgba(166, 136, 191, 0.2);
  background: rgba(166, 136, 191, 0.03);
}
.stack-layer[data-layer="payments-settlement"]:hover {
  border-color: rgba(166, 136, 191, 0.55);
  background: rgba(166, 136, 191, 0.07);
  box-shadow: 0 0 20px rgba(166, 136, 191, 0.08), inset 0 0 20px rgba(166, 136, 191, 0.03);
}
.stack-layer[data-layer="payments-settlement"] .layer-name {
  color: #a688bf;
}
.stack-layer[data-layer="payments-settlement"].expanded {
  border-color: rgba(166, 136, 191, 0.65);
  box-shadow: 0 0 24px rgba(166, 136, 191, 0.1), inset 0 0 24px rgba(166, 136, 191, 0.04);
}

/* Layer: Orchestration & Coordination */
.stack-layer[data-layer="orchestration-coordination"] {
  border: 1px solid rgba(192, 138, 158, 0.2);
  background: rgba(192, 138, 158, 0.03);
}
.stack-layer[data-layer="orchestration-coordination"]:hover {
  border-color: rgba(192, 138, 158, 0.55);
  background: rgba(192, 138, 158, 0.07);
  box-shadow: 0 0 20px rgba(192, 138, 158, 0.08), inset 0 0 20px rgba(192, 138, 158, 0.03);
}
.stack-layer[data-layer="orchestration-coordination"] .layer-name {
  color: #c08a9e;
}
.stack-layer[data-layer="orchestration-coordination"].expanded {
  border-color: rgba(192, 138, 158, 0.65);
  box-shadow: 0 0 24px rgba(192, 138, 158, 0.1), inset 0 0 24px rgba(192, 138, 158, 0.04);
}

/* Layer: Services & Skills */
.stack-layer[data-layer="services-skills"] {
  border: 1px solid rgba(107, 168, 196, 0.2);
  background: rgba(107, 168, 196, 0.03);
}
.stack-layer[data-layer="services-skills"]:hover {
  border-color: rgba(107, 168, 196, 0.55);
  background: rgba(107, 168, 196, 0.07);
  box-shadow: 0 0 20px rgba(107, 168, 196, 0.08), inset 0 0 20px rgba(107, 168, 196, 0.03);
}
.stack-layer[data-layer="services-skills"] .layer-name {
  color: #6ba8c4;
}
.stack-layer[data-layer="services-skills"].expanded {
  border-color: rgba(107, 168, 196, 0.65);
  box-shadow: 0 0 24px rgba(107, 168, 196, 0.1), inset 0 0 24px rgba(107, 168, 196, 0.04);
}

/* Layer: Money Markets & DeFi */
.stack-layer[data-layer="money-markets-defi"] {
  border: 1px solid rgba(196, 149, 106, 0.2);
  background: rgba(196, 149, 106, 0.03);
}
.stack-layer[data-layer="money-markets-defi"]:hover {
  border-color: rgba(196, 149, 106, 0.55);
  background: rgba(196, 149, 106, 0.07);
  box-shadow: 0 0 20px rgba(196, 149, 106, 0.08), inset 0 0 20px rgba(196, 149, 106, 0.03);
}
.stack-layer[data-layer="money-markets-defi"] .layer-name {
  color: #c4956a;
}
.stack-layer[data-layer="money-markets-defi"].expanded {
  border-color: rgba(196, 149, 106, 0.65);
  box-shadow: 0 0 24px rgba(196, 149, 106, 0.1), inset 0 0 24px rgba(196, 149, 106, 0.04);
}

/* Layer inner elements */
.layer-info {
  flex: 1;
  min-width: 0;
}

.layer-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.layer-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: none; /* Hidden — info is conveyed by project pills + layer name */
}

.layer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.layer-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Expanded layer content */
.layer-expanded-content {
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.stack-layer.expanded .layer-expanded-content {
  max-height: 480px;
  overflow-y: auto;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  align-content: start;
}

/* Scrollbar styling for expanded layers */
.layer-expanded-content::-webkit-scrollbar {
  width: 4px;
}
.layer-expanded-content::-webkit-scrollbar-track {
  background: transparent;
}
.layer-expanded-content::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

/* Project Card (inside expanded layer) */
.project-card {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: border-color 0.2s, opacity 0.2s, background 0.2s;
  color: inherit;
  text-decoration: none;
}

.project-card.dimmed {
  opacity: 0.2;
}

.project-card.filter-match {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.project-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.project-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

/* ==========================================================================
   Pills & Tags
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill.dimmed {
  opacity: 0.2;
}

.stack-layer.dimmed {
  opacity: 0.3;
  pointer-events: none;
}

/* Layer-colored pills */
.pill[data-layer="identity-wallets"] {
  color: var(--color-identity);
  border-color: rgba(109, 184, 173, 0.25);
}
.pill[data-layer="identity-wallets"]:hover {
  border-color: rgba(109, 184, 173, 0.6);
}

.pill[data-layer="reputation-verification"] {
  color: var(--color-reputation);
  border-color: rgba(139, 146, 201, 0.25);
}
.pill[data-layer="reputation-verification"]:hover {
  border-color: rgba(139, 146, 201, 0.6);
}

.pill[data-layer="payments-settlement"] {
  color: var(--color-payments);
  border-color: rgba(166, 136, 191, 0.25);
}
.pill[data-layer="payments-settlement"]:hover {
  border-color: rgba(166, 136, 191, 0.6);
}

.pill[data-layer="orchestration-coordination"] {
  color: var(--color-orchestration);
  border-color: rgba(192, 138, 158, 0.25);
}
.pill[data-layer="orchestration-coordination"]:hover {
  border-color: rgba(192, 138, 158, 0.6);
}

.pill[data-layer="services-skills"] {
  color: var(--color-services);
  border-color: rgba(107, 168, 196, 0.25);
}
.pill[data-layer="services-skills"]:hover {
  border-color: rgba(107, 168, 196, 0.6);
}

.pill[data-layer="money-markets-defi"] {
  color: var(--color-money-markets);
  border-color: rgba(196, 149, 106, 0.25);
}
.pill[data-layer="money-markets-defi"]:hover {
  border-color: rgba(196, 149, 106, 0.6);
}

/* ==========================================================================
   Filter Bar (Homepage + Data Page)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.filter-group-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.filter-group-row:last-child {
  border-bottom: none;
}

.filter-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  min-width: 52px;
  flex-shrink: 0;
}

.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   Status Badge
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge[data-status="live"] .status-dot {
  background: var(--color-live);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.status-badge[data-status="testnet"] .status-dot {
  background: var(--color-testnet);
}

.status-badge[data-status="building"] .status-dot {
  background: var(--color-building);
}

.status-badge[data-status="announced"] .status-dot {
  background: transparent;
  border: 1px solid var(--text-muted);
}

/* ==========================================================================
   Activity Feed (Homepage)
   ========================================================================== */

.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: opacity 0.2s;
}

.activity-item:hover {
  opacity: 0.85;
}

.activity-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.activity-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 48px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cta-button.primary {
  border-color: rgba(107, 168, 196, 0.4);
  color: var(--color-services);
}

.cta-button.primary:hover {
  background: rgba(107, 168, 196, 0.08);
  border-color: rgba(107, 168, 196, 0.7);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   Data Page — Stats Bar
   ========================================================================== */

.stats-bar {
  display: flex;
  gap: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Data Page — Filters
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  align-items: center;
}

.filter-group {
  position: relative;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.filter-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-trigger.has-active {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-chevron {
  font-size: 9px;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.filter-trigger.open .filter-chevron {
  transform: rotate(180deg);
}

.filter-count {
  background: var(--text-muted);
  color: var(--bg-primary);
  border-radius: 999px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

/* Filter Dropdown */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: none;
}

.filter-group.open .filter-dropdown {
  display: block;
  animation: fadeUp 0.15s ease both;
}

/* Filter Option */
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.filter-option.selected {
  color: var(--text-primary);
}

.filter-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-hover);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-option.selected .filter-checkbox {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.filter-option.selected .filter-checkbox::after {
  content: "\2713";
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  white-space: nowrap;
}

.active-filter-remove {
  margin-left: 5px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
}

.active-filter-remove:hover {
  color: var(--text-primary);
}

/* Search Input */
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  width: 200px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--border-hover);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   Data Page — Project Table
   ========================================================================== */

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

.project-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.project-table th:hover {
  color: var(--text-secondary);
}

.sort-indicator {
  margin-left: 4px;
  font-size: 9px;
}

.project-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: top;
}

.project-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.project-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Guide Page — Machine Type Selector
   ========================================================================== */

.machine-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.machine-type-card {
  padding: 22px 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.machine-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-muted);
  opacity: 0;
  transition: opacity 0.25s;
}

.machine-type-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.machine-type-card:hover::before {
  opacity: 0.3;
}

.machine-type-card.selected {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.machine-type-card.selected::before {
  opacity: 0.6;
  background: var(--text-muted);
}

.machine-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.machine-icon svg {
  width: 20px;
  height: 20px;
}

.machine-icon-lg {
  display: block;
}

.machine-icon-lg svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.machine-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.machine-type-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   Guide Page — Summary Bar
   ========================================================================== */

.needs-summary {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.needs-summary-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.needs-summary-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.needs-summary-stat--gap .needs-summary-value {
  color: rgba(251, 191, 36, 0.8);
}

.needs-summary-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Guide Page — Needs Matrix
   ========================================================================== */

.needs-matrix {
  margin-top: 20px;
}

.needs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: background 0.2s;
  min-height: 72px;
}

.needs-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.needs-row--gap {
  background: rgba(251, 191, 36, 0.012);
}

.needs-row--gap:hover {
  background: rgba(251, 191, 36, 0.025);
}

.needs-layer {
  min-width: 210px;
  flex-shrink: 0;
}

.needs-layer-name {
  font-size: 14px;
  font-weight: 600;
}

.needs-layer-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
  opacity: 0.7;
}

.needs-status {
  min-width: 80px;
  flex-shrink: 0;
}

.needs-status.gap {
  color: var(--text-muted);
  font-size: 12px;
}

.gap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(251, 191, 36, 0.5);
}

.gap-badge svg {
  color: rgba(251, 191, 36, 0.4);
}

/* Coverage micro-bar */
.needs-coverage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  flex-shrink: 0;
}

.coverage-bar {
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.coverage-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
  opacity: 0.7;
}

.coverage-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.needs-projects {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.needs-opportunity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opportunity-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(251, 191, 36, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.opportunity-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Overflow expand for many pills */
.needs-expand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.needs-expand:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.needs-overflow {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}

.needs-overflow.visible {
  display: contents;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.about-content h3 {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-content ul {
  list-style: none;
  padding-left: 0;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-content li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.about-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.about-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.about-content a {
  color: var(--color-services);
  border-bottom: 1px solid rgba(107, 168, 196, 0.3);
  transition: border-color 0.2s;
}

.about-content a:hover {
  border-color: rgba(107, 168, 196, 0.7);
}

.about-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.about-cta-card h2 {
  margin-top: 0;
}

/* ==========================================================================
   Result Count
   ========================================================================== */

.result-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 8px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Project Detail Page
   ========================================================================== */

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.project-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.project-breadcrumb a:hover {
  color: var(--text-secondary);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.project-favicon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--bg-card);
}

.project-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.project-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-desc-full {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

.project-editorial {
  border-left: 2px solid var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
}

.project-editorial p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.project-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Card Grid */
.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.project-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.project-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.project-card-subsection {
  margin-top: 12px;
}

.project-card-subsection:first-child {
  margin-top: 0;
}

.project-card-sublabel {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.project-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  transition: all 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.project-visit-btn:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.project-visit-arrow {
  font-size: 13px;
}

.project-links-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.project-links-row a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.project-links-row a:hover {
  color: var(--text-primary);
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  gap: 8px;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.project-meta-value {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

.project-related-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.project-related-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.project-related-missing {
  opacity: 0.4;
  cursor: default;
}

/* Prev/Next */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.project-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.project-nav-link:hover {
  color: var(--text-primary);
}

/* Not Found */
.project-not-found {
  text-align: center;
  padding: 80px 0;
}

.project-not-found h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.project-not-found p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-not-found code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Responsive — Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .metrics-row {
    gap: 28px;
  }

  .metric-value {
    font-size: 32px;
  }

  .stack-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .layer-right {
    width: 100%;
  }

  .machine-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .needs-summary {
    gap: 20px;
    padding: 16px 18px;
  }

  .needs-summary-value {
    font-size: 22px;
  }

  .needs-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .needs-layer {
    min-width: auto;
  }

  .needs-status {
    min-width: auto;
  }

  .needs-coverage {
    min-width: auto;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .search-input {
    width: 100%;
  }

  .stats-bar {
    gap: 20px;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }


  .nav-links {
    gap: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .project-table {
    display: block;
    overflow-x: auto;
  }

  .about-content h2 {
    font-size: 18px;
    margin-top: 36px;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-header-right {
    margin-left: 0;
  }

  .project-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Data Page — Sidebar Layout
   ========================================================================== */

.data-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-top: 16px;
}

.filter-sidebar {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar-section {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  user-select: none;
}

.sidebar-section-label:hover {
  color: var(--text-secondary);
}

.sidebar-chevron {
  font-size: 8px;
  transition: transform 0.2s;
}

.sidebar-section.open .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sidebar-section.open .sidebar-section-body {
  max-height: 500px;
  margin-top: 8px;
}

.sidebar-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.sidebar-option:hover {
  color: var(--text-primary);
}

.sidebar-option.selected {
  color: var(--text-primary);
}

.sidebar-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-hover);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-option.selected .sidebar-checkbox {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.sidebar-option.selected .sidebar-checkbox::after {
  content: "\2713";
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
}

.sidebar-option-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-option-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Data Results */
.data-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-submit-prompt {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.data-submit-prompt a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.data-submit-prompt a:hover {
  border-bottom-color: var(--text-muted);
}

.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
  color: inherit;
  text-decoration: none;
}

.result-row:hover {
  border-color: var(--border-hover);
  color: inherit;
}

.result-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-row[data-status="live"] .result-status-dot { background: var(--color-live); }
.result-row[data-status="building"] .result-status-dot { background: var(--color-building); }
.result-row[data-status="announced"] .result-status-dot { background: var(--color-announced); border: 1px solid var(--text-muted); }
.result-row[data-status="testnet"] .result-status-dot { background: var(--color-testnet); }

.result-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.result-desc {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.result-chain {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .data-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }
  .sidebar-section {
    min-width: 140px;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
