:root {
  --docs-green: #2dad62;
  --docs-green-bright: #77e3a2;
  --docs-bg: #080a09;
  --docs-panel: rgba(255, 255, 255, 0.035);
  --docs-border: rgba(255, 255, 255, 0.09);
  --docs-muted: #949b96;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -10%, rgba(45, 173, 98, 0.12), transparent 34rem),
    radial-gradient(circle at -10% 35%, rgba(0, 255, 106, 0.045), transparent 30rem),
    var(--docs-bg);
  color: #e7eae8;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

::selection {
  background: rgba(45, 173, 98, 0.35);
  color: #fff;
}

.docs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid rgba(45, 173, 98, 0.12);
  background: rgba(8, 10, 9, 0.84);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.docs-nav-inner {
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.docs-brand img { height: 31px; width: auto; }

.docs-brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
}

.docs-brand-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd1cd;
}

.docs-nav-actions { display: flex; align-items: center; gap: 12px; }

.docs-nav-link,
.docs-nav-cta {
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: 160ms ease;
}

.docs-nav-link { color: #a5aba7; }
.docs-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.docs-nav-cta {
  border: 1px solid rgba(45, 173, 98, 0.28);
  background: rgba(45, 173, 98, 0.12);
  color: var(--docs-green-bright);
}

.docs-nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(45, 173, 98, 0.2);
}

.docs-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.docs-hero {
  position: relative;
  padding: 92px 0 60px;
}

.docs-kicker {
  margin: 0 0 14px;
  color: var(--docs-green-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-hero h1,
.docs-article-header h1 {
  margin: 0;
  max-width: 900px;
  color: #fff;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.docs-hero-copy,
.docs-article-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #a9afab;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.8;
}

.docs-search {
  position: relative;
  max-width: 680px;
  margin-top: 34px;
}

.docs-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #667069;
  transform: translateY(-50%);
}

.docs-search input {
  width: 100%;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  outline: none;
  background: rgba(0, 0, 0, 0.44);
  padding: 16px 18px 16px 48px;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.docs-search input:focus {
  border-color: rgba(45, 173, 98, 0.65);
  box-shadow: 0 0 0 4px rgba(45, 173, 98, 0.08);
}

.docs-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  padding: 0 0 110px;
}

.docs-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: 20px;
  background: var(--docs-panel);
  padding: 26px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.docs-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(45, 173, 98, 0.08);
  content: "";
  filter: blur(2px);
}

.docs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 173, 98, 0.34);
  background: rgba(45, 173, 98, 0.05);
}

.docs-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(45, 173, 98, 0.24);
  border-radius: 13px;
  background: rgba(45, 173, 98, 0.11);
  color: var(--docs-green-bright);
}

.docs-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #747d77;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-card h2 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.4;
}

.docs-card p {
  margin: 0;
  color: #929a95;
  font-size: 0.84rem;
  line-height: 1.72;
}

.docs-card-action {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  color: var(--docs-green-bright);
  font-size: 0.78rem;
  font-weight: 800;
}

.docs-empty-search {
  display: none;
  border: 1px dashed var(--docs-border);
  border-radius: 18px;
  padding: 40px;
  color: var(--docs-muted);
  text-align: center;
}

.docs-empty-search.is-visible { display: block; }

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px) 220px;
  gap: 42px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 110px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 98px;
}

.docs-sidebar-title,
.docs-toc-title {
  margin: 0 0 12px;
  color: #686f6b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-sidebar-link,
.docs-toc a {
  display: block;
  border-radius: 9px;
  color: #929994;
  font-size: 0.78rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.docs-sidebar-link { margin: 4px 0; padding: 10px 12px; }
.docs-sidebar-link:hover,
.docs-sidebar-link.is-active {
  background: rgba(45, 173, 98, 0.09);
  color: var(--docs-green-bright);
}

.docs-toc a {
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  padding: 7px 0 7px 14px;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  border-left-color: var(--docs-green);
  color: #e5e9e6;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: #6f7772;
  font-size: 0.72rem;
}

.docs-breadcrumbs a { text-decoration: none; }
.docs-breadcrumbs a:hover { color: var(--docs-green-bright); }

.docs-article-header {
  border-bottom: 1px solid var(--docs-border);
  padding-bottom: 38px;
}

.docs-article-header h1 {
  max-width: 800px;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.docs-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: #757d78;
  font-size: 0.72rem;
}

.docs-content { min-width: 0; }

.docs-content section {
  padding-top: 48px;
}

.docs-content h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.62rem;
  letter-spacing: -0.025em;
}

.docs-content h3 {
  margin: 34px 0 12px;
  color: #f0f3f1;
  font-size: 1.05rem;
}

.docs-content p,
.docs-content li {
  color: #a1a8a3;
  font-size: 0.9rem;
  line-height: 1.82;
}

.docs-content strong { color: #e8ece9; }
.docs-content a { color: var(--docs-green-bright); }

.docs-content ul,
.docs-content ol {
  padding-left: 1.3rem;
}

.docs-content li + li { margin-top: 7px; }

.docs-callout {
  margin: 24px 0;
  border: 1px solid rgba(45, 173, 98, 0.2);
  border-radius: 14px;
  background: rgba(45, 173, 98, 0.055);
  padding: 18px 20px;
}

.docs-callout.warning {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.045);
}

.docs-callout-title {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 7px;
  color: #dff7e8;
  font-size: 0.78rem;
  font-weight: 800;
}

.docs-callout.warning .docs-callout-title { color: #fde6a8; }
.docs-callout p { margin: 0; font-size: 0.82rem; }

.docs-code {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: 15px;
  background: #050706;
}

.docs-code-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 12px 0 16px;
  color: #68706b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-copy {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 7px 9px;
  color: #8d9690;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

.docs-copy:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.docs-copy.is-copied { color: var(--docs-green-bright); }

.docs-code pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  color: #cfd5d1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  tab-size: 2;
}

.docs-inline-code {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 2px 6px;
  color: #d5dad7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82em;
}

.docs-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  padding: 14px 16px;
  color: #9ea6a0;
  font-size: 0.76rem;
  line-height: 1.55;
  vertical-align: top;
}

.docs-table th {
  background: rgba(255, 255, 255, 0.025);
  color: #e1e5e2;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-table tr:last-child td { border-bottom: 0; }

.docs-method {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  border-radius: 6px;
  padding: 3px 7px;
  background: rgba(45, 173, 98, 0.12);
  color: var(--docs-green-bright);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
}

.docs-method.delete { background: rgba(248, 113, 113, 0.1); color: #fca5a5; }
.docs-method.patch { background: rgba(96, 165, 250, 0.1); color: #93c5fd; }
.docs-method.post { background: rgba(250, 204, 21, 0.09); color: #fde68a; }

.docs-next {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 56px;
  border: 1px solid rgba(45, 173, 98, 0.2);
  border-radius: 16px;
  background: rgba(45, 173, 98, 0.055);
  padding: 20px;
  text-decoration: none;
}

.docs-next i { color: var(--docs-green-bright); }
.docs-next strong { display: block; color: #fff; font-size: 0.86rem; }
.docs-next span { display: block; margin-top: 4px; color: #849087; font-size: 0.72rem; }

.docs-mobile-menu {
  display: none;
  border: 1px solid var(--docs-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: #dbe0dc;
}

.docs-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.25);
}

.docs-footer-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #606863;
  font-size: 0.7rem;
}

.docs-footer-links { display: flex; gap: 18px; }
.docs-footer a { text-decoration: none; }
.docs-footer a:hover { color: #c8cfca; }

@media (max-width: 1120px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}

@media (max-width: 760px) {
  .docs-nav-inner,
  .docs-shell { padding-left: 18px; padding-right: 18px; }
  .docs-brand-divider,
  .docs-brand-label,
  .docs-nav-link { display: none; }
  .docs-mobile-menu { display: inline-flex; }
  .docs-hero { padding-top: 64px; }
  .docs-layout { display: block; padding-top: 24px; }
  .docs-sidebar {
    position: fixed;
    z-index: 60;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    background: rgba(8, 10, 9, 0.98);
    padding: 28px 22px;
  }
  .docs-sidebar.is-open { display: block; }
  .docs-content section { padding-top: 40px; }
  .docs-footer-inner { flex-direction: column; }
}

@media print {
  .docs-nav,
  .docs-sidebar,
  .docs-toc,
  .docs-footer,
  .docs-copy { display: none !important; }
  body { background: #fff; color: #111; }
  .docs-layout { display: block; padding: 0; }
  .docs-content { max-width: none; }
  .docs-content p,
  .docs-content li { color: #333; }
  .docs-content h1,
  .docs-content h2,
  .docs-content h3 { color: #111; }
  .docs-code { border-color: #ddd; background: #f7f7f7; }
  .docs-code pre { color: #111; white-space: pre-wrap; }
}
