@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #111827;
  --bg-code: #0d1220;
  --bg-sidebar: #0f1424;
  --bg-hover: #1a2035;
  --border: #1e293b;
  --border-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.1);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.1);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.1);
  --purple: #a855f7;
  --cyan: #06b6d4;
  --orange: #f97316;
  --sidebar-width: 280px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --json-key: #7dd3fc;
  --json-string: #86efac;
  --json-number: #fbbf24;
  --json-bool: #c084fc;
  --json-null: #94a3b8;
  --json-bracket: #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
code, pre { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.sidebar-logo-text { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sidebar-logo-badge {
  font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px; border-radius: 10px;
  margin-top: 2px; display: inline-block;
}
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  padding: 8px 24px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted);
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 24px; font-size: 13.5px; font-weight: 450;
  color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
  font-weight: 600;
}
.nav-link .nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-link .method-badge-sm {
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(34, 197, 94, 0.15); color: var(--green);
  margin-left: auto; font-family: 'JetBrains Mono', monospace;
}

.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; }
.content-wrapper { max-width: 960px; margin: 0 auto; padding: 40px 48px 80px; }

.mobile-menu-btn {
  display: none; position: fixed; top: 16px; left: 16px;
  z-index: 200; width: 44px; height: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 20px;
  cursor: pointer; align-items: center; justify-content: center;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 99;
}

section { margin-bottom: 64px; scroll-margin-top: 24px; }
section:last-child { margin-bottom: 0; }

.hero { margin-bottom: 64px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -1px;
}
.hero-desc {
  font-size: 18px; color: var(--text-secondary);
  max-width: 600px; line-height: 1.7; margin-bottom: 28px;
}
.hero-url-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-code); border: 1px solid var(--border);
  padding: 14px 20px; border-radius: var(--radius);
  margin-bottom: 28px; max-width: 600px;
}
.hero-url-box code { flex: 1; font-size: 14px; color: var(--cyan); word-break: break-all; }
.hero-url-box .label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-right: 8px; white-space: nowrap;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff; box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(59,130,246,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); color: var(--text-secondary);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary); border-color: var(--border-hover);
}
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: var(--radius-xs); }

.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 6px 12px; border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); border-color: var(--border-hover); }
.copy-btn.copied { background: var(--green-dim); border-color: var(--green); color: var(--green); }

.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 700px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }

.quickstart-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 32px; display: flex; align-items: center; gap: 16px;
}
.quickstart-banner .icon { font-size: 32px; flex-shrink: 0; }
.quickstart-banner .text h3 { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.quickstart-banner .text p { font-size: 14px; color: var(--text-secondary); }

.info-box {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.info-box-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.info-box-content { display: flex; align-items: center; gap: 12px; }
.info-box-content code { flex: 1; font-size: 13.5px; color: var(--cyan); word-break: break-all; line-height: 1.5; }
.info-box-content code.token-code { color: var(--green); }
.info-box-note { margin-top: 10px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.playground-section { margin-top: 32px; }
.playground-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.playground-presets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.preset-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  transition: all var(--transition); text-align: left;
}
.preset-btn:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-glow); }
.preset-btn.loading { opacity: 0.6; pointer-events: none; }
.preset-btn .preset-method {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
  background: rgba(34,197,94,0.15); color: var(--green);
}
.preset-btn .preset-path { flex: 1; }

.custom-url-row { display: flex; gap: 0; margin-bottom: 20px; }
.custom-url-prefix {
  display: flex; align-items: center;
  padding: 0 16px; background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 12px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}
.custom-url-input {
  flex: 1; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: none;
  color: var(--text-primary); font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none; transition: border-color var(--transition);
}
.custom-url-input:focus { border-color: var(--accent); }
.custom-url-go {
  padding: 12px 20px;
  background: var(--accent); border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fff; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.custom-url-go:hover { background: var(--accent-hover); }

.try-now-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--transition);
  margin: 16px 0;
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
}
.try-now-btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(59,130,246,0.3); }
.try-now-btn.loading { opacity: 0.6; pointer-events: none; }

.inline-result { margin-top: 16px; }
.inline-result .curl-box { margin-bottom: 12px; }
.inline-result .response-panel { margin-top: 0; }

.curl-box {
  margin-top: 16px; background: var(--bg-code);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; animation: slideDown 0.3s ease;
}
.curl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.curl-label {
  font-size: 12px; font-weight: 700; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 1px;
}
.curl-code {
  padding: 14px 16px; margin: 0; overflow-x: auto;
  font-size: 13px; line-height: 1.6;
  color: var(--green); white-space: pre-wrap; word-break: break-all;
}
.curl-code code { font-size: 13px; color: var(--green); background: none; border: none; padding: 0; }

.response-panel {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-top: 16px; animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.response-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.status-badge {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.status-badge.success { background: var(--green-dim); color: var(--green); }
.status-badge.warning { background: var(--yellow-dim); color: var(--yellow); }
.status-badge.error { background: var(--red-dim); color: var(--red); }
.cache-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.cache-badge.hit { background: var(--green-dim); color: var(--green); }
.cache-badge.miss { background: var(--yellow-dim); color: var(--yellow); }
.response-meta {
  font-size: 12px; color: var(--text-muted);
  margin-left: auto; display: flex; gap: 16px;
}
.response-actions { display: flex; gap: 8px; margin-left: 12px; }
.response-body { padding: 20px; max-height: 500px; overflow: auto; }
.response-body.collapsed { max-height: 200px; }
.response-body pre {
  font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  margin: 0;
}

.json-key { color: var(--json-key); }
.json-string { color: var(--json-string); }
.json-number { color: var(--json-number); }
.json-bool { color: var(--json-bool); }
.json-null { color: var(--json-null); }
.json-bracket { color: var(--json-bracket); }

.architecture-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 32px 0; flex-wrap: wrap;
}
.arch-node {
  padding: 20px 28px; border-radius: var(--radius); text-align: center; min-width: 140px;
}
.arch-node.client {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border: 1px solid rgba(59,130,246,0.3);
}
.arch-node.worker {
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.05));
  border: 1px solid rgba(249,115,22,0.3);
}
.arch-node.api {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
}
.arch-node .node-icon { font-size: 28px; margin-bottom: 8px; }
.arch-node .node-label { font-size: 14px; font-weight: 700; }
.arch-node .node-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.arch-arrow { font-size: 24px; color: var(--text-muted); padding: 0 16px; }
.flow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 32px;
}
.flow-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.flow-step-num {
  position: absolute; top: -10px; left: 16px;
  background: var(--accent); color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.flow-step h4 { font-size: 14px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--text-secondary); }

.endpoint-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.endpoint-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.endpoint-title { font-size: 20px; font-weight: 700; }
.method-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.method-get { background: rgba(34,197,94,0.15); color: var(--green); }
.ttl-badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(6,182,212,0.1); color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
}
.endpoint-body { padding: 24px; }
.endpoint-url {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-code); padding: 14px 18px;
  border-radius: var(--radius-sm); margin-bottom: 24px;
  border: 1px solid var(--border);
}
.endpoint-url .method {
  font-size: 12px; font-weight: 700; color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}
.endpoint-url code { font-size: 13.5px; color: var(--text-primary); }
.endpoint-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.try-btn { margin-top: 16px; }

.table-wrapper {
  overflow-x: auto; margin-bottom: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  background: rgba(255,255,255,0.03);
  text-align: left; padding: 12px 16px;
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary); vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
td code {
  font-size: 12.5px; background: var(--bg-code);
  padding: 2px 7px; border-radius: 4px; color: var(--cyan);
}
.required-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  background: var(--red-dim); color: var(--red);
  text-transform: uppercase;
}
.optional-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(255,255,255,0.05); color: var(--text-muted);
}

.collapsible {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px; overflow: hidden;
}
.collapsible-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; cursor: pointer;
  background: rgba(255,255,255,0.02);
  transition: background var(--transition); user-select: none;
}
.collapsible-header:hover { background: rgba(255,255,255,0.04); }
.collapsible-header .arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted); font-size: 12px;
}
.collapsible-header .arrow.open { transform: rotate(90deg); }
.collapsible-header .title { font-size: 13.5px; font-weight: 600; }
.collapsible-body {
  display: none; padding: 0; border-top: 1px solid var(--border);
}
.collapsible-body.open { display: block; }
.collapsible-body pre {
  padding: 20px; margin: 0;
  font-size: 13px; line-height: 1.6; overflow-x: auto;
}

.code-tabs { margin-bottom: 32px; }
.code-tab-header {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border); overflow-x: auto;
}
.code-tab-btn {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition); white-space: nowrap;
}
.code-tab-btn:hover { color: var(--text-secondary); }
.code-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.code-tab-panel { display: none; }
.code-tab-panel.active { display: block; }
.code-tab-panel pre {
  background: var(--bg-code); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 20px; margin: 0;
  font-size: 13px; line-height: 1.6; overflow-x: auto;
}

pre.code-block {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  font-size: 13px; line-height: 1.6;
  overflow-x: auto; position: relative;
}
pre.code-block .copy-btn { position: absolute; top: 10px; right: 10px; }

.subsection-title {
  font-size: 15px; font-weight: 700;
  margin: 24px 0 12px; display: flex;
  align-items: center; gap: 8px; color: var(--text-primary);
}
.subsection-title .icon { color: var(--accent); }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.info-card .icon { font-size: 24px; margin-bottom: 12px; }
.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--text-secondary); }

.cache-table td:nth-child(2),
.cache-table td:nth-child(3),
.cache-table td:nth-child(4) {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
}

.type-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; margin: 16px 0;
}
.type-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--bg-code);
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  font-size: 12.5px;
}
.type-item code { color: var(--cyan); font-size: 12px; }
.type-item span { color: var(--text-secondary); font-size: 12px; }

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; opacity: 0; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.loading-pulse { animation: pulse 1.5s ease infinite; }

@media (max-width: 1024px) {
  .content-wrapper { padding: 32px 24px 60px; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .content-wrapper { padding: 70px 16px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .architecture-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .playground-presets { grid-template-columns: 1fr; }
  .custom-url-row { flex-direction: column; }
  .custom-url-prefix {
    border-right: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: none; padding: 10px 16px;
  }
  .custom-url-input { border-radius: 0; border-left: 1px solid var(--border); }
  .custom-url-go { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .response-header { gap: 8px; }
  .response-meta { margin-left: 0; flex-wrap: wrap; }
  .endpoint-header { gap: 8px; }
  .info-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .code-tab-btn { padding: 8px 12px; font-size: 12px; }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  color: var(--text-muted); font-size: 13px;
}

.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition); z-index: 50;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-2px); background: var(--accent-hover); }

.note-box {
  display: flex; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.6; margin: 16px 0;
}
.note-box.info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2); color: var(--text-secondary);
}
.note-box.warning {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.2); color: var(--text-secondary);
}
.note-box.success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2); color: var(--text-secondary);
}
.note-box .note-icon { font-size: 18px; flex-shrink: 0; }

.cmd-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan); font-size: 12.5px;
}
