/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: #2a2a3a;
  --border2: #3a3a4a;
  --text: #e2e2f0;
  --text2: #9090b0;
  --text3: #8080b8;
  --accent: #7c3aed;
  --accent2: #9f67ff;
  --accent-glow: rgba(124,58,237,.25);
  --green: #10b981;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; white-space: nowrap;
  color: var(--text);
}
.logo svg { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: .9rem; transition: all .15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: all .15s;
}
.search-toggle:hover { color: var(--text); background: var(--bg3); }
.github-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .875rem;
  color: var(--text2); transition: all .15s;
}
.github-btn:hover { color: var(--text); border-color: var(--border2); background: var(--bg3); }

/* ─── Search Overlay ─────────────────────────────────────────── */
.search-overlay {
  display: none; position: fixed; inset: 64px 0 0;
  background: rgba(0,0,0,.7); z-index: 99;
  padding: 24px;
}
.search-overlay.open { display: block; }
.search-box {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 1rem; padding: 8px 0;
}
.search-box button {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--text2); transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.search-box button:hover { color: var(--text); background: var(--bg3); }
.search-results {
  max-width: 640px; margin: 8px auto 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-height: calc(100vh - 200px); overflow-y: auto;
}
.search-result-item {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.search-result-item:hover { background: var(--bg3); }
.search-result-item:last-child { border-bottom: none; }
.sri-title { font-weight: 600; font-size: .9rem; }
.sri-desc { font-size: .8rem; color: var(--text2); margin-top: 2px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,58,237,.15) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(124,58,237,.4);
  background: rgba(124,58,237,.1);
  font-size: .8rem; color: var(--accent2); margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #a78bfa, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.125rem; color: var(--text2); max-width: 540px; margin: 0 auto 40px; }

.hero-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 540px; margin: 0 auto 48px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 4px 12px 4px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search svg { color: var(--text3); flex-shrink: 0; }
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 1rem; padding: 10px 0;
}
.hero-search kbd {
  font-family: var(--font-mono); font-size: .75rem;
  padding: 2px 8px; border-radius: 4px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text2); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-dark { background: var(--bg2); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.section-desc { color: var(--text2); margin-top: -16px; margin-bottom: 24px; }
.view-all { font-size: .875rem; color: var(--accent2); transition: color .15s; }
.view-all:hover { color: var(--text); }

/* ─── Category Grid ──────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  transition: all .2s; position: relative;
}
.category-card:hover {
  border-color: var(--accent); background: var(--bg3);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.15);
}
.cat-icon { font-size: 1.75rem; }
.cat-name { font-size: .875rem; font-weight: 600; }
.cat-count {
  font-size: .75rem; color: var(--text);
  background: var(--bg3); padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border);
}

/* ─── Server Grid ────────────────────────────────────────────── */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.server-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s; position: relative;
}
.server-card:hover {
  border-color: var(--accent); background: var(--bg3);
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.15);
}
.plugin-card:hover { box-shadow: 0 8px 32px rgba(16,185,129,.12); border-color: var(--green); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-icon-fallback {
  font-size: .75rem; font-weight: 700; color: var(--accent2);
  font-family: var(--font-mono);
}
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.card-desc { font-size: .875rem; color: var(--text2); line-height: 1.5; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-stars { font-size: .8rem; color: var(--text3); }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  font-size: .7rem; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; letter-spacing: .02em;
}
.badge-official { background: rgba(124,58,237,.3); color: #d4b8ff; border: 1px solid rgba(124,58,237,.6); }
.badge-hosted { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-verified { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-cat { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }

/* ─── Tags ───────────────────────────────────────────────────── */
.tag {
  font-size: .7rem; padding: 2px 8px; border-radius: 999px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); white-space: nowrap;
}
.tag-filter, .tag-link { transition: all .15s; cursor: pointer; }
.tag-filter:hover, .tag-link:hover, .tag-filter.active {
  background: rgba(124,58,237,.2); border-color: var(--accent);
  color: var(--accent2);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: var(--bg3); border-color: var(--border2); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent2); }
.btn-outline { border-color: var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--border2); color: var(--text); }

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-section { padding: 64px 0; }
.cta-box {
  text-align: center; padding: 64px 32px;
  background: linear-gradient(135deg, rgba(124,58,237,.15) 0%, rgba(99,102,241,.1) 100%);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--radius-lg);
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text2); max-width: 480px; margin: 0 auto 32px; }

/* ─── Catalog Layout ─────────────────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1280px; margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}
.sidebar {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 24px;
}
.sidebar-section h3 { font-size: .8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text2); text-align: left;
  transition: all .15s;
}
.filter-btn:hover { background: var(--bg3); color: var(--text); }
.filter-btn.active { background: rgba(124,58,237,.2); color: var(--accent2); }
.filter-count {
  font-size: .75rem; background: var(--bg3);
  padding: 1px 6px; border-radius: 999px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text2); cursor: pointer; }
.checkbox-label input { accent-color: var(--accent); }

.catalog-main { display: flex; flex-direction: column; gap: 24px; }
.catalog-header { display: flex; flex-direction: column; gap: 16px; }
.catalog-title-row { display: flex; align-items: center; gap: 16px; }
.catalog-title-row h1 { font-size: 1.75rem; font-weight: 800; }
.result-count {
  font-size: .8rem; color: var(--text2);
  background: var(--bg2); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
}
.catalog-desc { color: var(--text2); max-width: 600px; }
.catalog-controls { display: flex; gap: 12px; align-items: center; }
.search-inline {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px;
  transition: border-color .2s;
}
.search-inline:focus-within { border-color: var(--accent); }
.search-inline svg { color: var(--text3); flex-shrink: 0; }
.search-inline input { flex: 1; background: none; border: none; outline: none; padding: 9px 0; font-size: .9rem; }
.sort-controls select {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: .9rem; outline: none; cursor: pointer;
  transition: border-color .2s;
}
.sort-controls select:focus { border-color: var(--accent); }

.no-results {
  text-align: center; padding: 64px 32px; color: var(--text2);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.no-results svg { color: var(--text3); }
.hidden { display: none !important; }

/* ─── Page Layout ────────────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1280px; margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text2); margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span:not([aria-current]) { color: var(--text3); }
.page-hero {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px;
}
.page-icon-wrap { flex-shrink: 0; }
.page-icon {
  width: 72px; height: 72px; border-radius: 16px;
  border: 1px solid var(--border);
}
.page-icon-fallback {
  width: 72px; height: 72px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: var(--accent2);
  font-family: var(--font-mono);
}
.page-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.page-header-info h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.page-desc { color: var(--text2); font-size: 1.05rem; margin-bottom: 16px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Install Card ───────────────────────────────────────────── */
.install-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 32px; overflow: hidden;
}
.install-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text2);
}
.install-body {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; gap: 16px;
}
.install-body code {
  font-family: var(--font-mono); font-size: .9rem;
  color: var(--accent2); flex: 1; overflow-x: auto;
}
.copy-btn {
  color: var(--text3); padding: 6px;
  border-radius: var(--radius-sm); transition: all .15s;
}
.copy-btn:hover { color: var(--text); background: var(--bg3); }

/* ─── Prose ──────────────────────────────────────────────────── */
.prose { color: var(--text); line-height: 1.75; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700; margin: 2em 0 .75em;
  line-height: 1.3; color: var(--text);
}
.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.375rem; border-bottom: 1px solid var(--border); padding-bottom: .5em; }
.prose h3 { font-size: 1.125rem; }
.prose p { margin: 1em 0; }
.prose a { color: var(--accent2); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.5em; margin: 1em 0; }
.prose li { margin: .4em 0; }
.prose code {
  font-family: var(--font-mono); font-size: .875em;
  background: var(--bg3); padding: .15em .4em;
  border-radius: 4px; color: var(--accent2);
}
.prose pre {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  overflow-x: auto; margin: 1.5em 0;
}
.prose pre code { background: none; padding: 0; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 1.5em 0;
  padding: 8px 20px; color: var(--text2);
  background: rgba(124,58,237,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg2); font-weight: 600; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1em 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.page-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; font-size: .875rem; }
.page-tags strong { color: var(--text2); }

/* ─── Info Card (Sidebar) ────────────────────────────────────── */
.page-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.info-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.info-card h3 { font-size: .8rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text2); }
.info-val { font-weight: 600; }
.info-link { color: var(--accent2); word-break: break-all; }
.info-link:hover { text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .875rem; color: var(--text2); max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h3 { font-size: .8rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-links a { font-size: .9rem; color: var(--text2); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: .8rem; color: var(--text2); }
.footer-bottom a { color: #c0c0e0; text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent2); }

/* ─── Taxonomy ───────────────────────────────────────────────── */
.taxonomy-page { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.taxonomy-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.taxonomy-page .desc { color: var(--text2); margin-bottom: 40px; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.taxonomy-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .15s;
}
.taxonomy-item:hover { border-color: var(--accent); background: var(--bg3); }
.taxonomy-item-name { font-weight: 600; }
.taxonomy-item-count { font-size: .8rem; color: var(--text2); background: var(--bg3); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }

/* ─── Issues & Solutions section ────────────────────────────── */
.issues-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.issues-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text1);
}
.issue-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color .15s;
}
.issue-card:hover { border-color: var(--accent); }
.issue-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.issue-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 36px;
  font-size: .8rem;
  font-weight: 700;
  color: #e05c7a;
  padding-top: 2px;
}
.issue-votes svg { fill: #e05c7a; }
.issue-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.issue-title a { color: var(--text1); text-decoration: none; }
.issue-title a:hover { color: var(--accent); }
.issue-problem {
  font-size: .9rem;
  color: var(--text2);
  margin: 0 0 16px 50px;
  line-height: 1.6;
}
.issue-solution {
  margin-left: 50px;
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
}
.solution-badge {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.solution-body p {
  font-size: .9rem;
  color: var(--text1);
  margin: 0 0 10px 0;
  line-height: 1.6;
}
.solution-cmd {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-block;
}
.solution-cmd code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .85rem;
  color: var(--text1);
}

/* ─── Related sidebar list ──────────────────────────────────── */
.related-list {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-list li a {
  font-size: .85rem;
  color: var(--text1);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
  line-height: 1.4;
}
.related-list li a:hover { color: var(--accent); }
.view-all-link {
  display: inline-block;
  font-size: .8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: 4px;
}
.view-all-link:hover { text-decoration: underline; }

/* ─── Prev / Next page navigation ───────────────────────────── */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 48px auto 0;
  max-width: 900px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.page-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  transition: border-color .15s, background .15s;
  max-width: 46%;
}
.page-nav-item:hover { border-color: var(--accent); background: var(--bg3); }
.page-nav-dir { font-size: .75rem; color: var(--text2); }
.page-nav-title { font-size: .9rem; font-weight: 600; color: var(--text1); line-height: 1.3; }
.page-nav-next { text-align: right; margin-left: auto; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .main-nav { display: none; }
  .server-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 8px; }
  .stat-divider { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
