.docs-shell {
  padding-top: 28px;
  padding-bottom: 64px;
}

.docs-hero {
  margin-bottom: 28px;
}

.docs-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.docs-search-input {
  flex: 1;
  min-width: 240px;
  max-width: 520px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 14px;
}

.docs-search-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.docs-search-count {
  font-size: 13px;
  color: #94a3b8;
}

.docs-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.docs-toc-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 16px;
}

.docs-toc-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 12px;
}

.docs-toc-module {
  margin-bottom: 14px;
}

.docs-toc-module-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  text-decoration: none;
}

.docs-toc-module-title:hover {
  color: #a5b4fc;
}

.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-toc-link {
  display: block;
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.35;
}

.docs-toc-link:hover,
.docs-toc-link.active {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.15);
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.docs-module-block {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 26px;
}

.docs-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.docs-module-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.docs-module-title {
  margin: 0;
  font-size: 23px;
  color: #f8fafc;
}

.docs-video-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 500;
}

.docs-section-card {
  padding: 22px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.docs-section-card:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.docs-section-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #ddd6fe;
  font-size: 13px;
  font-weight: 700;
}

.docs-section-summary {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
}

.docs-steps-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.65;
}

.docs-steps-list li {
  margin-bottom: 6px;
}

.docs-steps-list code,
.docs-callout code {
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.docs-callout {
  background: rgba(16, 185, 129, 0.09);
  border-left: 3px solid #34d399;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #d1fae5;
  margin-bottom: 14px;
}

.docs-figure {
  margin: 14px 0 0;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

.docs-figure img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.docs-figure img:hover {
  transform: scale(1.008);
}

.docs-figure figcaption {
  padding: 9px 14px;
  font-size: 12.5px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.docs-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

/* Lightbox */
.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 12px;
}

.docs-lightbox.hidden {
  display: none;
}

.docs-lightbox img {
  max-width: min(1240px, 95vw);
  max-height: 82vh;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.docs-lightbox-caption {
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  text-align: center;
}

.docs-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
  }
}
