*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #111113; --bg2: #18181c; --bg3: #1f1f25;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f0; --text-muted: #888;
  --accent: #ff4757; --accent2: #ff6b81;
  --code-bg: #0d0d10; --radius: 12px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; line-height: 1.7; }

/* NAV */
.doc-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(17,17,19,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); height: 60px; display: flex; align-items: center; padding: 0 32px; gap: 16px; }
.doc-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.doc-nav-logo img { height: 30px; width: auto; }
.doc-nav-sep { color: rgba(255,255,255,0.2); font-size: 20px; }
.doc-nav-title { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.doc-nav-back { margin-left: auto; padding: 7px 18px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .2s; }
.doc-nav-back:hover { color: var(--text); border-color: var(--accent); }

/* LAYOUT */
.doc-layout { display: flex; padding-top: 60px; min-height: 100vh; }
.doc-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 32px 20px; border-right: 1px solid var(--border); background: var(--bg); }
.doc-sidebar::-webkit-scrollbar { width: 4px; }
.doc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 8px; padding: 0 8px; }
.sidebar-link { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 450; transition: all .15s; }
.sidebar-link:hover { background: var(--bg3); color: var(--text); }
.sidebar-link.active { background: rgba(255,71,87,0.12); color: #ff6b81; font-weight: 600; }
.sidebar-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* CONTENT */
.doc-content { flex: 1; padding: 56px 64px; max-width: 860px; }
.doc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(255,71,87,0.10); border: 1px solid rgba(255,71,87,0.25); border-radius: 20px; font-size: 11px; font-weight: 600; color: #ff6b81; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.doc-h1 { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; background: linear-gradient(135deg, #fff 40%, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.doc-lead { font-size: 17px; color: var(--text-muted); margin-bottom: 48px; line-height: 1.65; max-width: 600px; }
.doc-divider { height: 1px; background: var(--border); margin: 40px 0; }
h2.section-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
h3.subsection-title { font-size: 15px; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
p { color: #b0b0c0; margin-bottom: 16px; font-size: 15px; }
ul.doc-list { list-style: none; padding: 0; margin-bottom: 20px; }
ul.doc-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #b0b0c0; font-size: 15px; }
ul.doc-list li::before { content: '→'; color: var(--accent); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
pre.code-block { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow-x: auto; margin: 20px 0; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.75; color: #c9d1d9; }
.code-block .kw { color: #ff79c6; }
.code-block .fn { color: #50fa7b; }
.code-block .str { color: #f1fa8c; }
.code-block .num { color: #bd93f9; }
.code-block .cm { color: #6272a4; font-style: italic; }
.info-box { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.info-box p { margin: 0; color: #b0b0c0; font-size: 14px; }
.info-box strong { color: #ff6b81; }
.step-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; transition: border-color .2s; }
.step-card:hover { border-color: rgba(255,71,87,0.3); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,71,87,0.15); color: #ff6b81; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.step-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.step-card p { margin: 0; font-size: 14px; }
.prop-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prop-table th { text-align: left; padding: 10px 14px; background: var(--bg2); color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.prop-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #b0b0c0; vertical-align: top; }
.prop-table td:first-child { color: #50fa7b; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.prop-table td:nth-child(2) { color: #bd93f9; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.prop-table tr:hover td { background: rgba(255,255,255,0.02); }
.doc-footer { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; gap: 16px; }
.doc-footer-link { display: flex; align-items: center; gap: 8px; padding: 14px 22px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all .2s; flex: 1; }
.doc-footer-link:hover { border-color: var(--accent); color: var(--text); }
.doc-footer-link.next { justify-content: flex-end; }
@media (max-width: 768px) { .doc-sidebar { display: none; } .doc-content { padding: 32px 20px; } .doc-h1 { font-size: 28px; } }
