:root {
  --sidebar-w: 280px;
  --brand-blue: #1e5aa8;
  --brand-red: #e53935;
  --brand-blue-soft: #e8f1fb;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --border: #dde3ea;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #94a3b8;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(59, 130, 246, 0.18);
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --ok-bg: #ecfdf5;
  --ok-border: #6ee7b7;
  --tip-bg: #eff6ff;
  --tip-border: #93c5fd;
  --placeholder-bg: #f8fafc;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

.docs-shell {
  display: flex;
  min-height: 100vh;
}

/* â”€â”€ Sidebar â”€â”€ */
.docs-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.docs-sidebar__brand {
  padding: 1.1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-sidebar__brand img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.docs-sidebar__title {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  font-weight: 600;
}

.docs-sidebar__search {
  padding: 0.75rem 1rem 0.5rem;
}

.docs-sidebar__search input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.docs-sidebar__search input::placeholder { color: var(--sidebar-muted); }

.docs-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0 1.25rem;
}

.docs-nav::-webkit-scrollbar { width: 6px; }
.docs-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.docs-nav-group { margin-bottom: 0.35rem; }

.docs-nav-group__label {
  padding: 0.65rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.docs-nav a {
  display: block;
  padding: 0.45rem 1rem 0.45rem 1.15rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.docs-nav a:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.docs-nav a.is-active {
  background: var(--sidebar-active);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

.docs-nav a.is-placeholder {
  color: var(--sidebar-muted);
  font-style: italic;
}

.docs-nav a.is-placeholder:hover { color: #e2e8f0; }

.docs-sidebar__footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--sidebar-muted);
}

.docs-sidebar__footer a {
  color: #93c5fd;
  text-decoration: none;
}

.docs-sidebar__footer a:hover { text-decoration: underline; }

/* â”€â”€ Main â”€â”€ */
.docs-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.docs-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.75rem;
}

.docs-topbar button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
}

.docs-topbar img {
  height: 32px;
  width: auto;
}

.docs-content {
  max-width: 920px;
  padding: 2rem 2.25rem 4rem;
}

.docs-hero {
  background: linear-gradient(135deg, #1e5aa8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.docs-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

.docs-hero p {
  margin: 0;
  opacity: 0.95;
  max-width: 680px;
}

.docs-hero__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}

section.doc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 1.25rem;
}

section.doc-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  color: var(--brand-blue);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--brand-blue-soft);
}

section.doc-section h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.12rem;
  color: var(--text);
}

section.doc-section p,
section.doc-section li {
  color: var(--text);
}

section.doc-section ul,
section.doc-section ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
}

section.doc-section li { margin-bottom: 0.35rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0.25rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #fafbfd;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.feature-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--brand-blue);
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-card a {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.feature-card a:hover { text-decoration: underline; }

.box-ok, .box-tip, .box-placeholder {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.85rem 0;
}

.box-ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.box-tip {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
}

.box-placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  font-size: 0.93rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 700;
}

code {
  background: #eef2f7;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: Consolas, "Courier New", monospace;
}

.module-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.section-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-nav a:hover { text-decoration: underline; }

.setup-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.setup-overview span {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.setup-phase {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  background: #fafbfd;
}

.setup-phase h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.setup-phase__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.setup-phase__module {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-phase p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.setup-phase ol {
  margin: 0;
  padding-left: 1.2rem;
}

.setup-phase li {
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.route {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.08rem 0.4rem;
  border-radius: 5px;
  background: #eef2f7;
  color: #334155;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82em;
  white-space: nowrap;
}

.depends {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.module-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.module-overview-grid a {
  display: block;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.module-overview-grid a:hover {
  border-color: #93c5fd;
  background: var(--brand-blue-soft);
}

.module-overview-grid small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.guide-step {
  border-left: 4px solid var(--brand-blue);
  padding: 0.85rem 0 0.85rem 1rem;
  margin: 1.35rem 0 0.5rem;
}

.guide-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--brand-blue);
}

.guide-step__route {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-step p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.doc-faq {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
}

.doc-faq h4 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-faq-item {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.2);
}

.doc-faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.doc-faq-q {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.doc-faq-a {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.perm-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
}

.hidden-by-search { display: none !important; }

/* Screenshots + usage examples (CodeCanyon documentation) */
.doc-figure {
  margin: 1.15rem 0 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.doc-figure figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

.doc-figure figcaption strong {
  color: var(--ink, #0f172a);
}

.doc-example {
  margin: 0.85rem 0 1.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--tip-border, #bfdbfe);
  background: var(--tip-bg, #eff6ff);
}

.doc-example h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.doc-example ol {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.25rem;
}

.doc-example li {
  margin: 0.28rem 0;
  color: var(--ink, #0f172a);
  font-size: 0.92rem;
  line-height: 1.5;
}

.doc-example .doc-example__result {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-example .doc-example__result strong {
  color: var(--ink, #0f172a);
}

@media (max-width: 960px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .docs-sidebar.is-open { transform: translateX(0); }

  .docs-main { margin-left: 0; }

  .docs-topbar { display: flex; }

  .docs-content { padding: 1.25rem 1rem 3rem; }

  .docs-hero h1 { font-size: 1.55rem; }
}

.guide-part-heading {
  margin-top: 2rem;
  border: none;
  padding: 0;
}

