/* docs.html page styles (moved out of the page). */
:root { --void: #08061a; --void-2: #0e0b26; --panel: #141034; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16); --txt: #f3f1ff; --txt-2: #b9b4e0; --txt-3: #8a84b8; }
body { background: var(--void); color: var(--txt); }
a { color: #a78bfa; }
code { font-family: var(--mono); font-size: .9em; background: rgba(124,92,255,.14); color: #d6ccff; padding: 1px 6px; border-radius: 6px; }

.nav { position: sticky; top: 0; z-index: 900; background: rgba(8,6,26,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 14px; }
.nav .brand { color: #fff; } .nav .brand small { color: var(--txt-3); }
.nav .tag { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: #c4b5fd; background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.35); padding: 3px 9px; border-radius: 100px; }
.nav-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav-right a { color: var(--txt-2); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; }
.nav-right a:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-neon { background: linear-gradient(135deg, #8b5cff, #5b2df5 55%, #3b82f6); color: #fff !important; box-shadow: 0 8px 22px rgba(124,92,255,.4); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 85% 0%, rgba(91,45,245,.45), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(14,165,233,.18), transparent 70%); }
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 48px 20px 40px; }
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.hero p { color: var(--txt-2); max-width: 680px; margin-top: 10px; font-size: 16px; }
.base { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 14px; font-family: var(--mono); font-size: 13px; }
.base span { color: var(--txt-3); font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: .6px; }
.mini { background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: var(--txt-2); font: 600 11.5px var(--font); padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.mini:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.doc { max-width: 1240px; margin: 0 auto; padding: 32px 20px 80px; display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 13.5px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc .grp { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-3); margin: 18px 0 6px 10px; }
.toc .grp:first-child { margin-top: 0; }
.toc a { display: flex; align-items: center; gap: 8px; color: var(--txt-2); padding: 6px 10px; border-radius: 9px; border-left: 2px solid transparent; }
.toc a:hover { color: #fff; background: rgba(255,255,255,.04); }
.toc a.on { color: #fff; background: rgba(124,92,255,.14); border-left-color: #8b5cff; }
.toc .m { font-family: var(--mono); font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; min-width: 34px; text-align: center; }

.content { min-width: 0; }
.content section { scroll-margin-top: 84px; margin-bottom: 44px; }
.content h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.content p { color: var(--txt-2); margin-bottom: 12px; }
.note { display: flex; gap: 12px; background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.3); border-radius: 14px; padding: 14px 16px; color: var(--txt-2); font-size: 14px; margin: 14px 0; }
.note b.i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(124,92,255,.3); color: #fff; display: grid; place-items: center; font-size: 12px; }
.note.warn { background: rgba(255,194,71,.07); border-color: rgba(255,194,71,.3); }
.note.warn b.i { background: rgba(255,194,71,.3); }

.ep { background: linear-gradient(180deg, var(--panel), var(--void-2)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; scroll-margin-top: 84px; }
.ep-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-head .path { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #fff; }
.ep-head .desc { color: var(--txt-3); font-size: 13px; margin-left: auto; }
.ep > p { margin-top: 10px; font-size: 14px; }
.method { font-family: var(--mono); font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 7px; letter-spacing: .3px; }
.method.get { background: rgba(59,130,246,.18); color: #93c5fd; }
.method.post { background: rgba(34,197,94,.16); color: #86efac; }

table.params { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px; }
table.params th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--txt-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
table.params td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--txt-2); }
table.params tr:last-child td { border-bottom: 0; }
table.params td:first-child { font-family: var(--mono); white-space: nowrap; color: #c4b5fd; font-size: 12.8px; }
.req { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #fca5a5; background: rgba(239,68,68,.14); padding: 1px 6px; border-radius: 5px; margin-left: 6px; }
.opt { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--txt-3); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; margin-left: 6px; }
.http { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.http.s4 { background: rgba(255,194,71,.13); color: #fcd34d; } .http.s5 { background: rgba(239,68,68,.14); color: #fca5a5; }

.codewrap { position: relative; margin-top: 14px; }
.codewrap .lbl { position: absolute; top: 9px; left: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; color: var(--txt-3); text-transform: uppercase; }
.codewrap .mini { position: absolute; top: 7px; right: 8px; }
pre.code { background: #0b0920; border: 1px solid var(--line); color: #e6e1ff; border-radius: 14px; padding: 36px 16px 16px; font-size: 12.8px; }
pre.code .k { color: #c792ea; } pre.code .s { color: #c3e88d; } pre.code .c { color: #6b7394; } pre.code .n { color: #f78c6c; }

.foot { border-top: 1px solid var(--line); color: var(--txt-3); font-size: 13px; }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 22px 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--txt-2); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc .grp { display: none; }
  .toc a { border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; font-size: 12.5px; }
  .toc .m { display: none; }
  .hero h1 { font-size: 30px; }
  .ep-head .desc { margin-left: 0; width: 100%; }
  .nav-right a.hide-sm { display: none; }
}
