/* ════════════════════════════════════════════════════
   PulsarServers Docs — shared stylesheet
   Brand: sky #0ea5e9 on near-black #060709
   ════════════════════════════════════════════════════ */

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

:root {
    --brand-dark:     #060709;
    --brand-base:     #0a0c10;
    --brand-card:     #10131a;
    --brand-elevated: #161a24;
    --brand-border:   rgba(255, 255, 255, 0.06);
    --brand-border-strong: rgba(255, 255, 255, 0.10);
    --sky:        #0ea5e9;
    --sky-deep:   #0284c7;
    --sky-light:  #38bdf8;
    --sky-glow:   rgba(14, 165, 233, 0.15);
    --text:       #ffffff;
    --text-body:  #b0bdd0;
    --text-sub:   #8694a9;
    --text-muted: #5e6a7e;

    --sidebar-w: 280px;
    --toc-w:     240px;
    --nav-h:     80px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--brand-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

::selection { background: var(--sky); color: white; }

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-base); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 2px solid var(--brand-base);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ── Animations ───────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: -200% center; } }
@keyframes pulseGlow { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes driftOrb { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(25px, -20px); } 66% { transform: translate(-15px, 10px); } }

.fade-in { animation: fadeIn .6s cubic-bezier(.16, 1, .3, 1) both; }

.txt-glow {
    background: linear-gradient(110deg, #0ea5e9 0%, #67d4ff 22%, #38bdf8 44%, #0ea5e9 56%, #0284c7 78%, #0ea5e9 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

/* ── Navbar (matches pulsar-front exactly) ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--brand-card);
    border-bottom: 1px solid var(--brand-border);
    z-index: 100;
}
.nav-inner {
    position: relative;
    max-width: 1440px; margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 6px;
}
.nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    transition: all .15s ease;
}
.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: white; background: rgba(255, 255, 255, 0.05); }

.nav-login-wrap { position: relative; flex-shrink: 0; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px 10px 20px;
    border-radius: 8px;
    background: var(--sky);
    color: white;
    font-size: 15px; font-weight: 600;
    transition: background .15s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-cta:hover { background: var(--sky-deep); }
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-cta .chevron {
    width: 14px; height: 14px;
    transition: transform .2s ease;
}
.nav-cta[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-login-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #0f1218;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 50;
}
.nav-login-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-login-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-login-head p {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-sub);
    margin: 0;
}
.nav-login-items {
    padding: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.nav-login-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background .15s ease;
}
.nav-login-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-login-item-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.20);
    color: var(--sky);
    transition: all .15s ease;
}
.nav-login-item:hover .nav-login-item-icon {
    background: rgba(14, 165, 233, 0.20);
    border-color: rgba(14, 165, 233, 0.40);
}
.nav-login-item-icon svg { width: 20px; height: 20px; }
.nav-login-item-body { flex: 1; min-width: 0; }
.nav-login-item-title {
    font-size: 14px; font-weight: 700;
    color: white;
    line-height: 1.2;
}
.nav-login-item-sub {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
}
.nav-login-item-arrow {
    width: 16px; height: 16px;
    color: var(--text-sub);
    transition: color .15s ease;
    flex-shrink: 0;
}
.nav-login-item:hover .nav-login-item-arrow { color: var(--sky); }

.nav-burger {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    width: 20px; height: 1.5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    margin: 3px 0;
}

/* ── Layout ───────────────────────────────── */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: var(--nav-h);
    min-height: 100vh;
}
.layout.no-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.layout.no-sidebar { grid-template-columns: 1fr; max-width: 1100px; }

/* ── Sidebar ──────────────────────────────── */
.sidebar {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 24px 20px 40px;
    border-right: 1px solid var(--brand-border);
}
.sidebar-search {
    position: relative;
    margin-bottom: 24px;
}
.sidebar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brand-border);
    border-radius: 9px;
    padding: 9px 36px 9px 36px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    transition: all .2s ease;
}
.sidebar-search input::placeholder { color: var(--text-muted); }
.sidebar-search input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}
.sidebar-search-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}
.sidebar-search-kbd {
    position: absolute;
    right: 9px; top: 50%;
    transform: translateY(-50%);
    font-size: 10px; font-weight: 700;
    color: var(--text-muted);
    padding: 2px 6px;
    border: 1px solid var(--brand-border);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.sidebar-group { margin-bottom: 20px; }
.sidebar-group-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0 10px;
    margin-bottom: 6px;
}
.sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13.5px;
    color: var(--text-sub);
    transition: all .15s ease;
    line-height: 1.4;
}
.sidebar-item:hover { color: white; background: rgba(255, 255, 255, 0.04); }
.sidebar-item.active {
    color: white;
    background: rgba(14, 165, 233, 0.10);
    box-shadow: inset 2px 0 0 var(--sky);
}
.sidebar-item svg {
    width: 14px; height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-item.active svg { color: var(--sky); }

/* ── Content area ─────────────────────────── */
.content {
    min-width: 0;
    padding: 48px 56px 80px;
}

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { transition: color .15s ease; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }

.content h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.content .lead {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 700px;
}
.content h2 {
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.01em;
    margin: 48px 0 14px;
    padding-top: 12px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}
.content h3 {
    font-size: 18px; font-weight: 700;
    margin: 32px 0 10px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}
.content p { color: var(--text-body); margin: 0 0 16px; line-height: 1.7; }
.content a {
    color: var(--sky-light);
    text-decoration: underline;
    text-decoration-color: rgba(56, 189, 248, 0.4);
    text-underline-offset: 3px;
    transition: all .15s ease;
}
.content a:hover { color: white; text-decoration-color: var(--sky-light); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-body); }
.content li { margin-bottom: 6px; line-height: 1.65; }
.content li::marker { color: var(--sky); }
.content strong { color: white; font-weight: 600; }
.content code {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
    padding: 2px 6px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 5px;
    color: #93d3f9;
}
.content hr {
    border: none;
    border-top: 1px solid var(--brand-border);
    margin: 40px 0;
}

/* ── Page meta + last-updated ─────────────── */
.page-meta {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.page-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.20);
    color: var(--sky-light);
}
.page-updated {
    font-size: 12.5px;
    color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 6px;
}
.page-updated svg { width: 13px; height: 13px; }

/* ── Code blocks ──────────────────────────── */
.code-block {
    position: relative;
    margin: 20px 0 24px;
    background: #0c0e13;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    overflow: hidden;
}
.code-block-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid var(--brand-border);
    background: rgba(255, 255, 255, 0.02);
}
.code-block-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}
.code-copy {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--brand-border);
    color: var(--text-sub);
    font-family: inherit;
    font-size: 11.5px; font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}
.code-copy:hover { color: white; border-color: rgba(14, 165, 233, 0.3); background: rgba(14, 165, 233, 0.06); }
.code-copy.copied { color: var(--sky-light); border-color: rgba(14, 165, 233, 0.4); }
.code-copy svg { width: 13px; height: 13px; }
.code-block pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #d8e2f0;
}
.code-block pre code {
    background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}

/* ── Callouts ─────────────────────────────── */
.callout {
    display: flex; gap: 14px;
    padding: 16px 18px;
    margin: 22px 0;
    border-radius: 12px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.02);
}
.callout-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.callout-body { flex: 1; min-width: 0; }
.callout-title { font-weight: 700; color: white; margin-bottom: 4px; font-size: 14px; }
.callout-body p { margin: 0; font-size: 14px; color: var(--text-body); }
.callout-body p + p { margin-top: 8px; }

.callout.info     { border-color: rgba(14, 165, 233, 0.25); background: rgba(14, 165, 233, 0.05); }
.callout.info .callout-icon { color: var(--sky-light); }
.callout.tip      { border-color: rgba(34, 197, 94, 0.22); background: rgba(34, 197, 94, 0.05); }
.callout.tip .callout-icon  { color: #4ade80; }
.callout.warning  { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.05); }
.callout.warning .callout-icon { color: #fbbf24; }
.callout.danger   { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.05); }
.callout.danger .callout-icon  { color: #f87171; }

/* ── Pager (prev/next) ────────────────────── */
.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--brand-border);
}
.pager-link {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    background: var(--brand-card);
    transition: all .2s ease;
}
.pager-link:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: var(--brand-elevated);
    transform: translateY(-2px);
}
.pager-link.next { text-align: right; }
.pager-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}
.pager-link.next .pager-label { justify-content: flex-end; }
.pager-label svg { width: 12px; height: 12px; }
.pager-title { font-size: 15px; font-weight: 600; color: white; }

/* ── Right TOC ────────────────────────────── */
.toc {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 56px 24px 40px;
    border-left: 1px solid var(--brand-border);
}
.toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-link {
    display: block;
    padding: 5px 10px;
    margin-left: -10px;
    font-size: 12.5px;
    color: var(--text-sub);
    border-left: 2px solid transparent;
    transition: all .15s ease;
    line-height: 1.5;
}
.toc-link:hover { color: var(--text); }
.toc-link.active { color: var(--sky-light); border-left-color: var(--sky); }
.toc-link.h3 { padding-left: 24px; font-size: 12px; }

/* ── Home page (index) ────────────────────── */
.docs-hero {
    position: relative;
    padding: calc(var(--nav-h) + 80px) 24px 80px;
    text-align: center;
    overflow: hidden;
}
.docs-hero-orb {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.10), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}
.docs-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.docs-hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(14, 165, 233, 0.07);
    border: 1px solid rgba(14, 165, 233, 0.18);
    margin-bottom: 22px;
}
.docs-hero-pill span:first-child {
    position: relative;
    display: flex;
    width: 6px; height: 6px;
}
.docs-hero-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sky);
}
.docs-hero-pill .dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--sky);
    opacity: 0.55;
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.docs-hero-pill-text {
    font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
}
.docs-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 18px;
}
.docs-hero h1 .accent { color: var(--sky); }
.docs-hero p.subtitle {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 30px;
}
.docs-hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.docs-hero-search input {
    width: 100%;
    padding: 16px 56px 16px 52px;
    border-radius: 12px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border-strong);
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all .2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.docs-hero-search input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 5px rgba(14, 165, 233, 0.10);
}
.docs-hero-search input::placeholder { color: var(--text-muted); }
.docs-hero-search-icon {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--text-sub);
    pointer-events: none;
}
.docs-hero-search-kbd {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px; font-weight: 700;
    color: var(--text-muted);
    padding: 4px 8px;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

/* ── Category grid ───────────────────────── */
.categories {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--brand-border), transparent);
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.cat-card {
    position: relative;
    padding: 22px;
    border-radius: 14px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    transition: all .25s ease;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}
.cat-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    background: var(--brand-elevated);
    transform: translateY(-3px);
}
.cat-card:hover::before { opacity: 1; }
.cat-card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: var(--sky-light);
    margin-bottom: 14px;
}
.cat-card-icon svg { width: 20px; height: 20px; }
.cat-card-title {
    font-size: 16px; font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.cat-card-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 14px;
}
.cat-card-links {
    display: flex; flex-direction: column; gap: 2px;
}
.cat-card-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-sub);
    border-bottom: 1px dashed transparent;
    transition: color .15s ease;
}
.cat-card-link:hover { color: var(--sky-light); }
.cat-card-link svg { width: 12px; height: 12px; opacity: 0.5; transition: transform .15s ease; }
.cat-card-link:hover svg { transform: translateX(2px); opacity: 1; }

/* ── Popular guides row ──────────────────── */
.popular {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.pop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.pop-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    transition: all .2s ease;
}
.pop-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    background: var(--brand-elevated);
}
.pop-card-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(14, 165, 233, 0.08);
    color: var(--sky-light);
    font-weight: 700;
    font-size: 13px;
}
.pop-card-body { flex: 1; min-width: 0; }
.pop-card-title {
    font-size: 13.5px; font-weight: 600;
    color: white;
    margin-bottom: 2px;
}
.pop-card-cat {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.pop-card-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .15s ease;
}
.pop-card:hover .pop-card-arrow { color: var(--sky-light); transform: translateX(2px); }
.pop-card-arrow svg { width: 14px; height: 14px; }

/* ── Help banner ─────────────────────────── */
.help-banner {
    max-width: 1180px;
    margin: 0 auto 60px;
    padding: 0 24px;
}
.help-card {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
    border: 1px solid rgba(14, 165, 233, 0.2);
    overflow: hidden;
    flex-wrap: wrap;
}
.help-card::after {
    content: '';
    position: absolute;
    top: -120px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 60%);
    pointer-events: none;
}
.help-text { position: relative; z-index: 1; }
.help-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 4px; }
.help-desc { font-size: 13.5px; color: var(--text-body); }
.help-actions {
    position: relative; z-index: 1;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13.5px; font-weight: 600;
    transition: all .15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: var(--sky); color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover { background: var(--sky-deep); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--brand-border);
    color: white;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 14px; height: 14px; }

/* ── Footer ──────────────────────────────── */
.foot {
    position: relative;
    border-top: 1px solid var(--brand-border);
    background: var(--brand-base);
    padding: 36px 24px 28px;
    margin-top: 40px;
}
.foot-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex; justify-content: space-between; gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.foot-brand {
    display: flex; align-items: center; gap: 12px;
}
.foot-brand img { height: 22px; width: auto; opacity: 0.8; }
.foot-copy { font-size: 12px; color: var(--text-muted); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-link {
    font-size: 12.5px;
    color: var(--text-sub);
    transition: color .15s ease;
}
.foot-link:hover { color: var(--sky-light); }

.foot-legal {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 16px 24px 0;
    border-top: 1px solid var(--brand-border);
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.foot-legal strong { color: var(--text-sub); font-weight: 600; }
.foot-legal-ids span { color: var(--text-sub); }
@media (max-width: 640px) {
    .foot-legal { justify-content: center; text-align: center; }
}

/* ── Mobile ──────────────────────────────── */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 22px; right: 22px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--sky);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    align-items: center;
    justify-content: center;
}
.mobile-sidebar-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1180px) {
    .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
    .toc { display: none; }
    .content { padding: 40px 40px 60px; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
}

@media (max-width: 880px) {
    .nav-inner { padding: 0 20px; }
    .nav-login-wrap { display: none; }
    .nav-burger { display: flex; flex-direction: column; }
    .layout { grid-template-columns: 1fr; }
    .docs-hero { padding: calc(var(--nav-h) + 40px) 22px 50px; }
    .sidebar {
        position: fixed;
        left: 0; top: var(--nav-h);
        width: 280px;
        background: var(--brand-base);
        border-right: 1px solid var(--brand-border);
        z-index: 80;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        z-index: 70;
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }
    .sidebar-overlay.on { opacity: 1; visibility: visible; }
    .mobile-sidebar-toggle { display: flex; }
    .content { padding: 28px 22px 60px; }
    .docs-hero { padding: 56px 22px 40px; }
    .pager { grid-template-columns: 1fr; }
    .help-card { flex-direction: column; align-items: flex-start; }
}
