.api-docs-page {
  background: var(--dark-bg);
  color: var(--text-primary);
}

.api-docs-hero {
  position: relative;
  overflow: hidden;
  padding: 126px 24px 72px;
  border-bottom: 1px solid var(--dark-border);
}

.api-docs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.api-docs-hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 20px;
  color: #f0f4ff;
}

.api-docs-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.api-docs-hero h1 span {
  background: linear-gradient(135deg, #6fb6ff 0%, #2d7de0 60%, #1363c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.api-docs-hero .hero-sub {
  color: var(--text-secondary);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.api-docs-hero .btn-hero-primary {
  color: #ffffff;
}

.api-docs-hero .btn-hero-ghost {
  color: var(--text-secondary);
}

.api-docs-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.api-docs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.api-docs-meta span {
  border: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.api-docs-meta strong {
  color: #7ab3f5;
  font-weight: 600;
  margin-right: 6px;
}

.api-docs-content {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  color: #0f172a;
}

.api-docs-content .container {
  max-width: 1120px;
}

.api-docs-content .page-header {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f1f3a;
}

.api-docs-content h3 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #17294a;
}

.api-docs-content h5 {
  font-size: 18px;
  font-weight: 700;
  color: #1f335a;
}

.api-docs-content p,
.api-docs-content li,
.api-docs-content td,
.api-docs-content th {
  color: #465a80;
  line-height: 1.68;
}

.api-docs-content a {
  color: #0f56ad;
  text-decoration: none;
}

.api-docs-content a:hover {
  color: #1363c6;
  text-decoration: underline;
}

.api-docs-page .alert {
  border-radius: 12px;
  border: 1px solid #d7e2f3;
  background: #f7faff;
  color: #385177;
}

.api-docs-page .alert-secondary {
  border-color: #d7deeb;
  background: #f5f7fb;
}

.api-docs-page .alert-success {
  border-color: #cde8dc;
  background: #f2fbf6;
}

.api-docs-page .alert-danger {
  border-color: #f1c0c8;
  background: #fef2f4;
}

.api-docs-page .alert-warning {
  border-color: #f1dfb8;
  background: #fffaee;
}

.api-docs-page .alert-info {
  border-color: #c9dffb;
  background: #f2f8ff;
}

.api-docs-page .alert-light {
  border-color: #dde5f3;
  background: #ffffff;
}

.api-docs-page .badge {
  font-weight: 700;
}

.api-docs-page .bg-success {
  background-color: #0f9f69 !important;
}

.api-docs-page .bg-danger {
  background-color: #d33c56 !important;
}

.api-docs-page .nav-tabs {
  border-bottom-color: #d7e2f3;
}

.api-docs-page .nav-tabs .nav-link {
  border: 1px solid transparent;
  color: #40577d;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: 550;
}

.api-docs-page .nav-tabs .nav-link:hover {
  border-color: #d7e2f3;
  color: #194586;
}

.api-docs-page .nav-tabs .nav-link.active {
  color: #0f56ad;
  background: #ffffff;
  border-color: #d7e2f3 #d7e2f3 #ffffff;
}

.api-docs-page .tab-content {
  border-color: #d7e2f3 !important;
  background: #ffffff !important;
}

.api-docs-page pre {
  margin: 0;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #f7faff;
  padding: 14px;
  overflow-x: auto;
}

.api-docs-page code {
  color: #134a96;
  font-family: var(--mono);
  font-size: 12.5px;
}

.api-docs-page pre code {
  color: #364f75;
}

.api-docs-page .table {
  margin-bottom: 0;
  border-color: #d9e4f3;
}

.api-docs-page .table > :not(caption) > * > * {
  border-color: #d9e4f3;
  background: #ffffff;
  padding: 11px 12px;
}

.api-docs-page .table-light > tr > th,
.api-docs-page .table-light > th,
.api-docs-page .table-light > * > tr > * {
  background: #f5f8fd !important;
  color: #1f335a !important;
}

.api-docs-page .table-responsive-md {
  border: 1px solid #d9e4f3;
  border-radius: 12px;
  background: #ffffff;
}

.api-docs-page .offcanvas {
  background: #0f1728;
  color: #e8efff;
}

.api-docs-page .offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.api-docs-page .offcanvas .offcanvas-title {
  color: #f0f4ff;
  letter-spacing: -0.01em;
}

.api-docs-page .offcanvas .alert-secondary {
  background: #111f35;
  border-color: rgba(255, 255, 255, 0.12);
}

.api-docs-page .offcanvas img {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .api-docs-hero {
    padding-top: 114px;
    padding-bottom: 56px;
  }

  .api-docs-hero-actions {
    flex-direction: column;
  }

  .api-docs-hero-actions a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .api-docs-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .api-docs-page h3 {
    font-size: 24px;
  }
}
