:root {
  --bg: #0b1220;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-soft: rgba(15, 23, 42, 0.68);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #9fb2d1;
  --primary: #22c55e;
  --primary-2: #16a34a;
  --chip: rgba(34, 197, 94, 0.14);
  --shadow: 0 18px 40px rgba(2, 8, 23, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 26%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

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

.docs-topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-bottom: 18px;
}

.docs-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(11, 18, 32, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.docs-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  isolation: isolate;
}
.docs-brand img {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}
.docs-brand__logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04110a;
  font-size: 28px;
}
.docs-brand > span:not(.docs-brand__logo) {
  position: relative;
  z-index: 1;
  color: #16a34a;
  background: linear-gradient(115deg, #065f46 0%, #16a34a 42%, #22c55e 72%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.docs-brand::after {
  content: "";
  position: absolute;
  top: -24%;
  bottom: -24%;
  left: -34px;
  z-index: 2;
  width: 28px;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 46%, rgba(255,255,255,0) 100%);
  filter: blur(.2px);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
  animation: docsBrandShine 4.2s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes docsBrandShine {
  0%, 54% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }

  64% {
    opacity: .9;
  }

  82%, 100% {
    opacity: 0;
    transform: translateX(260px) skewX(-18deg);
  }
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(460px, 100%);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.08);
}
.docs-search__icon,
.docs-search__kbd { color: var(--muted); }
.docs-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
}
.docs-search input::placeholder { color: #8ca0c4; }
.docs-search__kbd {
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
}

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

.sidebar,
.docs-content,
.toc {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sidebar,
.toc {
  position: sticky;
  top: 112px;
  padding: 22px;
}

.sidebar__section + .sidebar__section { margin-top: 24px; }
.sidebar__title,
.toc__title {
  margin: 0 0 12px;
  font-size: 14px;
  color: #c6d4ee;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sidebar__links,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar__links li + li,
.toc li + li { margin-top: 8px; }
.sidebar__links a,
.toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: .2s ease;
}
.sidebar__links a:hover,
.sidebar__links a.is-active,
.toc a:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #f8fffb;
}
.sidebar__powered {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bfd0eb;
  font-size: 14px;
}
.sidebar__powered-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4ade80);
  box-shadow: 0 0 18px rgba(34, 197, 94, .45);
}

.docs-content {
  padding: 28px;
}
.docs-copy {
  display: flex;
  justify-content: flex-end;
}
.docs-copy button {
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: var(--chip);
  color: #d7ffe4;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.eyebrow {
  margin: 6px 0 10px;
  color: #97f0b5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.docs-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}
.docs-lead {
  margin: 12px 0 0;
  max-width: 760px;
  color: #b9c9e4;
  font-size: 18px;
}

.docs-section {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.docs-section h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 28px);
}
.docs-section p {
  margin: 0;
  color: #bfd0eb;
}
.docs-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.docs-list li {
  position: relative;
  padding-left: 18px;
  color: #e4eefc;
}
.docs-list li + li { margin-top: 10px; }
.docs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4ade80);
}
.doc-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}
.doc-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}
.doc-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03140b;
}
.doc-btn.soft {
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--line);
  color: #edf5ff;
}

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

@media (max-width: 860px) {
  .docs-shell {
    width: min(100%, calc(100% - 20px));
    margin: 10px auto 18px;
  }
  .docs-topbar { position: static; }
  .docs-topbar__inner,
  .docs-layout { display: block; }
  .docs-search {
    min-width: 0;
    margin-top: 14px;
  }
  .sidebar,
  .toc {
    position: static;
    margin-bottom: 16px;
  }
  .docs-content { padding: 20px; }
  .docs-section { padding: 18px; }
}

/* === White/black docs sync === */

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-soft: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #667085;
  --primary: #050505;
  --primary-2: #111827;
  --chip: #f1f3f6;
  --shadow: 0 18px 44px rgba(15, 23, 42, .075);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 32rem),
    linear-gradient(180deg, #f8f9fb 0%, var(--bg) 52%, #ffffff 100%);
  font-family: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.docs-shell {
  width: min(1280px, calc(100% - 32px));
}

.docs-topbar__inner,
.sidebar,
.docs-content,
.toc,
.docs-section,
.info-card,
.contact-row {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.docs-topbar__inner {
  border-radius: 22px;
}

.docs-brand {
  color: var(--text);
  letter-spacing: -.02em;
}

.docs-brand img,
.docs-brand__logo {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.docs-search {
  background: #fff;
  border-color: #d0d5dd;
}

.docs-search input {
  color: var(--text);
}

.docs-search input::placeholder,
.docs-search__icon,
.docs-search__kbd,
.sidebar__links a,
.toc a,
.docs-lead,
.docs-section p,
.docs-list li,
.doc-note,
.contact-row__desc,
.info-card__desc {
  color: var(--muted);
}

.docs-search__kbd {
  background: #f8fafc;
  border-color: #d0d5dd;
}

.sidebar__title,
.toc__title,
.eyebrow,
.info-card__label {
  color: var(--text);
  font-weight: 900;
}

.sidebar__links a:hover,
.sidebar__links a.is-active,
.toc a:hover {
  background: #f1f3f6;
  color: var(--text);
}

.sidebar__powered {
  color: var(--muted);
}

.sidebar__powered-dot,
.docs-list li::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(5, 5, 5, .08);
}

.docs-title,
.docs-section h2,
.info-card__title,
.contact-row__name {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -.035em;
}

.docs-copy button,
.doc-btn.primary,
.info-card__link,
.contact-row__link {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(5, 5, 5, .12);
}

.docs-copy button {
  padding: 9px 14px;
  font-weight: 900;
}

.doc-btn.soft {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: var(--text);
}

.doc-note {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.info-card,
.contact-row {
  border-radius: 22px;
}

.info-card {
  margin-top: 24px;
  padding: 22px;
}

.info-card.success,
.contact-row.success {
  border-color: #d0d5dd;
}

.info-card__label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.info-card__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.info-card__link,
.contact-row__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.contact-row__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f1f3f6;
  color: var(--text);
}

.contact-row__icon svg {
  width: 24px;
  height: 24px;
}

.contact-row__name {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-row__desc {
  margin: 0;
}

/* === Professional docs sidebar refresh === */

.sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border-radius: 28px;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #050505, #64748b, transparent);
  opacity: .9;
}

.sidebar__section {
  position: relative;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .82));
}

.sidebar__section + .sidebar__section {
  margin-top: 0;
}

.sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #111827;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
}

.sidebar__title::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 0 0 4px rgba(5, 5, 5, .08);
}

.sidebar__links {
  display: grid;
  gap: 6px;
}

.sidebar__links li + li {
  margin-top: 0;
}

.sidebar__links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 34px 10px 34px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.015em;
}

.sidebar__links a::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: .18s ease;
}

.sidebar__links a::after {
  content: "›";
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: .18s ease;
}

.sidebar__links a:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #111827;
  transform: translateX(2px);
}

.sidebar__links a:hover::before {
  background: #111827;
}

.sidebar__links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.sidebar__links a.is-active {
  border-color: #050505;
  background: #050505;
  color: #fff;
  box-shadow: 0 14px 28px rgba(5, 5, 5, .16);
}

.sidebar__links a.is-active::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.sidebar__links a.is-active::after {
  color: #fff;
  opacity: 1;
  transform: translateX(0);
}

.sidebar__powered {
  margin-top: 2px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #f8fafc;
  color: #667085;
  font-weight: 750;
}

.sidebar__powered-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #050505;
  box-shadow: 0 0 0 4px rgba(5, 5, 5, .08);
}

@media (max-width: 860px) {
  .docs-shell {
    width: min(100% - 20px, 100%);
  }

  .docs-topbar__inner,
  .sidebar,
  .docs-content,
  .toc,
  .docs-section,
  .info-card,
  .contact-row {
    border-radius: 20px;
  }

  .docs-content,
  .docs-section,
  .info-card {
    padding: 18px;
  }

  .docs-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .docs-lead {
    font-size: 15px;
  }

  .contact-row {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .contact-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .sidebar {
    gap: 10px;
    padding: 12px;
  }

  .sidebar__section {
    padding: 12px;
    border-radius: 18px;
  }

  .sidebar__links a {
    min-height: 40px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}
