.docs-body { background: var(--bg-deep); }
.docs-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; padding-top: 48px; padding-bottom: 70px; }
.docs-header .docs-top-nav { margin-left: auto; }
.docs-sidebar { position: relative; }
.docs-sidebar-card {
  position: sticky; top: 104px; border: 1px solid rgba(118, 156, 234, .18); border-radius: 24px; padding: 22px;
  background: linear-gradient(180deg, rgba(8, 24, 58, .86), rgba(5, 16, 42, .92)); box-shadow: 0 28px 70px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.05);
}
.docs-sidebar-head { display:grid; gap:4px; margin-bottom: 18px; }
.docs-sidebar-head strong { font-size: 19px; letter-spacing: -.03em; }
.docs-sidebar-head small { color: var(--muted); }
.docs-search-wrap { display:grid; gap:7px; margin-bottom: 18px; color: #8ea0c8; font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.docs-search-wrap input {
  width:100%; height:46px; border-radius: 14px; border: 1px solid rgba(115,152,228,.2); background: rgba(7,22,53,.92); color: var(--text); padding: 0 14px;
}
.docs-search-wrap input:focus { outline:none; border-color:#3b86ff; box-shadow:0 0 0 3px rgba(52,122,255,.12); }
.docs-nav { display:grid; gap:6px; }
.docs-nav a {
  text-decoration:none; color:#b6c5e2; font-size: 13px; font-weight:700; padding: 12px 14px; border-radius: 14px; transition: .18s ease; border:1px solid transparent;
}
.docs-nav a:hover, .docs-nav a.is-active { color:#fff; background: rgba(255,255,255,.05); border-color: rgba(118,156,234,.16); }
.docs-main { min-width:0; display:grid; gap: 22px; }
.docs-hero, .docs-section {
  border: 1px solid rgba(118, 156, 234, .18); border-radius: 28px; padding: 32px; background: linear-gradient(180deg, rgba(8,24,58,.84), rgba(5,16,42,.92));
  box-shadow: 0 28px 70px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.05);
}
.docs-hero { display:grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.docs-hero h1 { margin: 16px 0 18px; font-size: clamp(42px, 5vw, 72px); line-height: .95; letter-spacing: -.06em; }
.docs-hero p { margin:0; color:#bfcee8; font-size:17px; line-height:1.7; max-width: 780px; }
.docs-hero-card { padding: 22px; border-radius: 24px; border:1px solid rgba(115,152,228,.18); background: radial-gradient(220px 180px at 100% 0%, rgba(53,128,255,.18), transparent 60%), rgba(255,255,255,.03); }
.docs-hero-card strong { font-size: 18px; }
.docs-hero-card ul { margin: 14px 0 0; padding-left: 18px; color: #dce7fb; line-height: 1.8; }
.docs-section-head { display:flex; gap: 16px; align-items:flex-start; margin-bottom: 22px; }
.docs-section-head h2 { margin:0 0 10px; font-size: 34px; letter-spacing: -.04em; }
.docs-section-head p { margin:0; color:#b6c5e2; font-size: 15px; line-height: 1.65; }
.docs-badge { width:44px; height:44px; border-radius: 14px; display:grid; place-items:center; font-weight: 900; background: linear-gradient(112deg, #7750ff 0%, #2a75ff 52%, #2bcdf7 100%); box-shadow: 0 16px 36px rgba(48,113,255,.25), inset 0 1px rgba(255,255,255,.35); }
.docs-code-block { border: 1px solid rgba(120,157,232,.18); border-radius: 20px; overflow:hidden; background: #040f25; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.docs-code-block pre { margin:0; padding: 22px; font-size: 13px; line-height: 1.7; color: #a9c5ff; white-space: pre-wrap; }
.docs-callout { margin-top: 16px; border: 1px solid rgba(112,155,249,.18); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.03); color:#d6e4ff; }
.docs-callout code { color:#7fdcff; }
.docs-code-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.docs-code-grid.two-col { grid-template-columns: repeat(2,1fr); }
.docs-card-row { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.docs-card-row.wide-row { grid-template-columns: repeat(4,1fr); }
.docs-note-card { border: 1px solid rgba(120,157,232,.18); border-radius: 20px; padding: 18px; background: rgba(255,255,255,.03); }
.docs-note-card strong { display:block; font-size: 16px; margin-bottom: 8px; }
.docs-note-card p { margin:0; color:#b7c8e7; line-height: 1.65; font-size: 14px; }
.faq-list { display:grid; gap: 12px; }
.faq-list details { border: 1px solid rgba(120,157,232,.18); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.03); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin: 12px 0 0; color:#b7c8e7; line-height: 1.65; }
.faq-detail { display:grid; gap:12px; margin-top:6px; }
.faq-detail p { margin:0; }
.faq-detail h4 { margin:16px 0 0; font-size:14px; font-weight:820; color:#dbe8ff; }
.faq-detail h4:first-child { margin-top:2px; }
.faq-detail ol { margin:4px 0 0; padding-left:20px; color:#b7c8e7; line-height:1.7; font-size:14px; display:grid; gap:4px; }
.faq-detail code { color:#7fdcff; }
.faq-code { margin:2px 0 0; padding:14px 16px; border:1px solid rgba(120,157,232,.18); border-radius:14px; background:#040f25; overflow-x:auto; }
.faq-code pre { margin:0; font-size:12.5px; line-height:1.7; color:#a9c5ff; white-space:pre; }
.faq-code code { white-space:pre; }
.faq-callout { border:1px solid rgba(112,155,249,.28); border-radius:14px; padding:12px 14px; background:rgba(53,128,255,.08); color:#d6e4ff; font-size:14px; line-height:1.6; }
.faq-callout strong { color:#fff; }
.faq-warn { border:1px solid rgba(255,176,90,.3); border-left:3px solid #ffb05a; border-radius:12px; padding:12px 14px; background:rgba(255,176,90,.07); color:#f6d9bb; font-size:13.5px; line-height:1.6; }
.faq-warn strong { color:#ffcf9e; display:block; }
.faq-note { color:#8b9fc0; font-size:13px; }
@media (max-width: 1080px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar-card { position: static; }
  .docs-hero, .docs-code-grid, .docs-card-row, .docs-card-row.wide-row, .docs-code-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .docs-layout { padding-top: 26px; gap: 18px; }
  .docs-hero, .docs-section { padding: 24px 20px; border-radius: 24px; }
  .docs-section-head { flex-direction: column; }
  .docs-section-head h2 { font-size: 28px; }
  .docs-hero h1 { font-size: 42px; }
}
