@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --g-bg: #f4f6f9;
  --g-bg-panel: rgba(255, 255, 255, 0.82);
  --g-text: #0f172a;
  --g-muted: #475569;
  --g-border: rgba(15, 23, 42, 0.1);
  --g-accent: #2563eb;
  --g-accent-soft: #dbeafe;
  --g-gold: #b45309;
  --g-ok: #059669;
  --g-down: #dc2626;
  --g-warn: #d97706;
  --g-font: 'IBM Plex Sans', system-ui, sans-serif;
  --g-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html[data-theme='dark'] {
  --g-bg: #020617;
  --g-bg-panel: rgba(15, 23, 42, 0.72);
  --g-text: #f8fafc;
  --g-muted: #94a3b8;
  --g-border: rgba(255, 255, 255, 0.08);
  --g-accent: #38bdf8;
  --g-accent-soft: rgba(56, 189, 248, 0.12);
  --g-gold: #fbbf24;
}

body.genesis402-hub {
  font-family: var(--g-font) !important;
  background-color: var(--g-bg) !important;
  color: var(--g-text) !important;
}

.genesis402-hub .glass-panel {
  background: var(--g-bg-panel);
  border-color: var(--g-border);
}

.genesis402-hub .theme-toggle {
  border: 1px solid var(--g-border);
  background: var(--g-bg-panel);
  color: var(--g-text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.genesis402-hub .hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--g-border);
  background: var(--g-accent-soft);
  color: var(--g-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.genesis402-hub .registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.genesis402-hub .registry-table th,
.genesis402-hub .registry-table td {
  border-bottom: 1px solid var(--g-border);
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.genesis402-hub .registry-table th {
  color: var(--g-muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.genesis402-hub .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.genesis402-hub .status-pill.up { background: rgba(5, 150, 105, 0.15); color: var(--g-ok); }
.genesis402-hub .status-pill.down { background: rgba(220, 38, 38, 0.15); color: var(--g-down); }
.genesis402-hub .status-pill.weak { background: rgba(217, 119, 6, 0.15); color: var(--g-warn); }
.genesis402-hub .status-pill.pending { background: rgba(148, 163, 184, 0.15); color: var(--g-muted); }

.genesis402-hub .deprecated {
  text-decoration: line-through;
  opacity: 0.65;
}

.genesis402-hub code,
.genesis402-hub .font-mono {
  font-family: var(--g-mono) !important;
}

.genesis402-hub .hub-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.genesis402-hub .hub-card {
  border: 1px solid var(--g-border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--g-bg-panel);
}

.genesis402-hub .hub-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.genesis402-hub .hub-card p {
  margin: 0;
  color: var(--g-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.genesis402-hub .g402-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genesis402-hub .g402-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.35);
}
