/* ============================================
   NEURAL VISUALIZER - Master Stylesheet
   Production-grade CSS for the ultimate JS neural visualizer
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0d1117;
  --bg-tertiary: #161b22;
  --border-color: #21262d;
  --border-hover: #30363d;
  --text-primary: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --text-faint: #484f58;
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-red: #ff7b72;
  --accent-purple: #d2a8ff;
  --accent-orange: #ffa657;
  --accent-cyan: #79c0ff;
  --sidebar-width: 300px;
  --sidebar-width-mobile: 100vw;
  --header-height: 60px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  --shadow-soft: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.6);
}

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

html, body {
  font-family: 'SF Mono', Monaco, 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

.homepage {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.homepage-header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  z-index: 100;
}

.homepage-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.homepage-header h1 .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.homepage-header .header-actions {
  display: flex;
  gap: 12px;
}

.homepage-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Project Grid ---- */
.projects-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.projects-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.project-card:hover::before { opacity: 1; }

.project-card.selected {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.05);
}

.project-card.selected::before { opacity: 1; }

.project-card .project-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'SF Mono', Monaco, monospace;
}

.project-card .project-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.project-card .project-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.project-card .project-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}

.project-card .project-stat .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-card .project-stat .stat-dot.functions { background: var(--accent-blue); }
.project-card .project-stat .stat-dot.edges { background: var(--accent-purple); }
.project-card .project-stat .stat-dot.broken { background: var(--accent-red); }

.project-card .project-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-actions { opacity: 1; }

.project-card .project-actions button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.project-card .project-actions button:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* ---- Create New Card ---- */
.create-card {
  background: transparent;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  gap: 8px;
}

.create-card:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.03);
}

.create-card .plus-icon {
  font-size: 32px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.create-card:hover .plus-icon { color: var(--accent-blue); }

.create-card span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  max-width: 400px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: var(--border-hover);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #79b8ff;
  border-color: #79b8ff;
}

.btn-danger {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.btn-danger:hover {
  background: #ff9a8f;
  border-color: #ff9a8f;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-heavy);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal .modal-body {
  margin-bottom: 20px;
}

.modal .modal-body label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal .modal-body input[type="text"] {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal .modal-body input[type="text"]:focus {
  border-color: var(--accent-blue);
}

.modal .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---- File Upload Zone ---- */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--bg-primary);
}

.upload-zone:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.03);
}

.upload-zone.dragover {
  border-color: var(--accent-green);
  background: rgba(63, 185, 80, 0.05);
}

.upload-zone .upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--text-dim);
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.upload-zone .upload-hint {
  font-size: 11px;
  color: var(--text-faint);
}

/* ============================================
   NEURAL SPACE STYLES
   ============================================ */

.neural-space {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ---- Top Bar ---- */
.neural-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.neural-topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.neural-topbar .topbar-left .back-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.neural-topbar .topbar-left .back-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.neural-topbar .project-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', Monaco, monospace;
}

.neural-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neural-topbar .topbar-stat {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.neural-topbar .topbar-stat strong {
  color: var(--text-secondary);
}

/* ---- Left Sidebar (Filters) ---- */
.left-sidebar {
  position: fixed;
  top: 48px;
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - 48px);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 80;
  overflow-y: auto;
  padding: 16px;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.left-sidebar.open { transform: translateX(0); }

.left-sidebar h2 {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Right Sidebar (Details) ---- */
.right-sidebar {
  position: fixed;
  top: 48px;
  right: 0;
  width: var(--sidebar-width);
  height: calc(100vh - 48px);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 80;
  overflow-y: auto;
  padding: 16px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.right-sidebar.open { transform: translateX(0); }

.right-sidebar h2 {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.right-sidebar .empty-state {
  color: var(--text-faint);
  font-size: 11px;
  font-style: italic;
  padding: 40px 0;
  text-align: center;
}

/* ---- Sidebar Content ---- */
.relation-section { margin-bottom: 14px; }

.relation-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.relation-count {
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9px;
  color: var(--text-muted);
}

.relation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.relation-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'SF Mono', Monaco, monospace;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.relation-tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.3);
}

.relation-tag.parent { background: rgba(218, 54, 51, 0.12); color: var(--accent-red); border-color: rgba(218, 54, 51, 0.2); }
.relation-tag.child { background: rgba(63, 185, 80, 0.12); color: var(--accent-green); border-color: rgba(63, 185, 80, 0.2); }
.relation-tag.sibling { background: rgba(210, 168, 255, 0.12); color: var(--accent-purple); border-color: rgba(210, 168, 255, 0.2); }
.relation-tag.cross { background: rgba(255, 166, 87, 0.12); color: var(--accent-orange); border-color: rgba(255, 166, 87, 0.2); }
.relation-tag.broken { background: rgba(255, 0, 0, 0.15); color: #ff0000; border-color: rgba(255, 0, 0, 0.3); }

/* ---- Legend ---- */
.legend { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.legend-title {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 4px;
  transition: background var(--transition-fast);
  margin: 2px 0;
}

.legend-item:hover { background: var(--bg-tertiary); }
.legend-item.hidden { opacity: 0.4; text-decoration: line-through; }

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

.legend-line {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ---- Depth Filter ---- */
.depth-filter { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.depth-filter label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.depth-filter input[type="range"] {
  width: 100%;
  accent-color: var(--accent-blue);
}
#depth-value {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ---- Toggle Buttons ---- */
.toggle-btn {
  position: fixed;
  z-index: 95;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.toggle-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

#toggle-left { top: 60px; left: 16px; }
#toggle-right { top: 60px; right: 16px; }

/* ---- Graph Container ---- */
#graph-container {
  flex: 1;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  cursor: grab;
  margin-top: 48px;
}

#graph-container:active { cursor: grabbing; }

#graph-container svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Zoom Controls ---- */
#zoom-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 85;
  display: flex;
  gap: 4px;
  flex-direction: column;
}

#zoom-controls button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

#zoom-controls button:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

/* ---- Search Box ---- */
#search-box {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 85;
}

#search-box input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 280px;
  outline: none;
  transition: border-color var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

#search-box input:focus { border-color: var(--accent-blue); }
#search-box input::placeholder { color: var(--text-faint); }

/* ---- Center Upload Button ---- */
#center-upload {
  position: fixed;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  z-index: 85;
}

#center-upload .upload-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

#center-upload .upload-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* ---- Tooltip ---- */
.tooltip {
  position: absolute;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  pointer-events: none;
  z-index: 200;
  box-shadow: var(--shadow-medium);
  max-width: 280px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tooltip.show { opacity: 1; }

.tooltip .name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.tooltip .meta {
  color: var(--text-dim);
  font-size: 11px;
  display: flex;
  gap: 12px;
}

/* ============================================
   SVG STYLES (D3 Elements)
   ============================================ */

.link {
  fill: none;
  stroke-opacity: 0.5;
  transition: all 0.3s ease;
}

.link.tree {
  stroke-width: 2px;
  stroke-opacity: 0.8;
}

.link.cross {
  stroke-width: 0.8px;
  stroke-opacity: 0.25;
  stroke-dasharray: 3,3;
}

.link.highlighted {
  stroke-opacity: 1 !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 4px currentColor);
}

.link.dimmed {
  stroke-opacity: 0.03 !important;
}

.node-group { cursor: pointer; }

.node-circle {
  transition: all 0.2s ease;
  stroke: var(--bg-primary);
  stroke-width: 2px;
}

.node-circle:hover {
  stroke: #fff;
  stroke-width: 3px;
  filter: drop-shadow(0 0 8px currentColor);
}

.node-group.highlighted .node-circle {
  stroke: #fff;
  stroke-width: 4px;
  filter: drop-shadow(0 0 12px currentColor);
}

.node-group.dimmed {
  opacity: 0.08;
}

.node-group.dimmed .node-label {
  opacity: 0;
}

.node-label {
  font-size: 9px;
  fill: var(--text-muted);
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  transition: opacity 0.2s;
  font-family: 'SF Mono', Monaco, monospace;
}

.node-group:hover .node-label {
  fill: var(--text-primary);
  font-weight: 600;
}

.node-group.highlighted .node-label {
  fill: var(--text-primary);
  font-weight: 700;
  font-size: 11px;
}

.depth-ring {
  fill: none;
  stroke-opacity: 0.3;
  stroke-width: 1px;
  pointer-events: none;
}

.level-guide {
  stroke: var(--bg-tertiary);
  stroke-width: 1;
  stroke-dasharray: 4,4;
}

.level-label {
  font-size: 11px;
  fill: var(--border-color);
  font-weight: 600;
  text-anchor: start;
  font-family: 'SF Mono', Monaco, monospace;
}

/* Broken node styling */
.node-group.broken .node-circle {
  stroke: #ff0000;
  stroke-width: 2px;
  stroke-dasharray: 3,3;
}

.node-group.broken.highlighted .node-circle {
  stroke: #ff0000;
  stroke-width: 4px;
  filter: drop-shadow(0 0 12px #ff0000);
}

.node-group.broken .node-label {
  fill: #ff5555;
}

/* Broken heart indicator */
.broken-indicator {
  font-size: 10px;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.node-active-glow {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -12; }
}

.path-trace {
  stroke-dasharray: 8,4;
  animation: dash 1s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .left-sidebar, .right-sidebar { width: var(--sidebar-width-mobile); }
  #search-box { width: 60%; }
  #search-box input { width: 100%; }
  #zoom-controls { right: 8px; bottom: 60px; }
  .projects-grid { grid-template-columns: 1fr; }
  .homepage-body { padding: 16px; }
  .neural-topbar { padding: 0 12px; }
  .neural-topbar .topbar-stat { display: none; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
