/* ==============================================
   GLOBAL MLM SOFTWARE — DOCUMENTATION PAGE
   doc.css — Page-specific styles
   Extends: css/style.css
   Theme: Slate / Indigo / Deep Navy / Amber
   ============================================== */

/* ===========================
   CSS CUSTOM PROPERTIES — DOC THEME
   =========================== */
:root {
  --doc-indigo:        #4f46e5;
  --doc-indigo-dark:   #3730a3;
  --doc-indigo-light:  #818cf8;
  --doc-slate:         #334155;
  --doc-slate-light:   #64748b;
  --doc-amber:         #f59e0b;
  --doc-amber-light:   #fcd34d;
  --doc-green:         #10b981;
  --doc-red:           #ef4444;
  --doc-cyan:          #06b6d4;
  --doc-navy:          #0a0f1e;
  --doc-navy-mid:      #111827;
  --doc-glow:          0 0 40px rgba(79,70,229,0.25);
  --radius-2xl:        32px;
  --doc-sidebar-w:     280px;
}

/* ===========================
   BREADCRUMB BAR
   =========================== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.8125rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--doc-indigo); }
.breadcrumb li[aria-current="page"] { color: var(--gray-900); font-weight: 600; }
.breadcrumb i { color: var(--gray-400); font-size: 0.65rem; }

/* ===========================
   HERO — DOC THEME
   =========================== */
.hero-doc {
  background: linear-gradient(135deg, #0a0f1e 0%, #111827 40%, #0a0c18 100%);
  position: relative;
  overflow: hidden;
  padding: calc(var(--gnav-h, 70px) + 4rem) 0 3.5rem;
}
.hero-doc .hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-doc .shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  top: -120px; right: 2%;
}
.hero-doc .shape-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  bottom: -60px; left: 5%;
}
.hero-doc .shape-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  top: 40%; left: 30%;
}
.hero-doc .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-doc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-doc-container { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-doc-copy .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.3);
  color: var(--doc-indigo-light);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-doc-copy .hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero-doc-copy .hero-subheadline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: rgba(255,255,255,0.65); }
.trust-item i { color: var(--doc-indigo-light); }

/* Hero doc diagram */
.doc-hero-diagram {
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(10,15,30,0.95));
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--doc-glow);
  position: sticky;
  top: 90px;
}
.dhd-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--doc-indigo-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(79,70,229,0.15);
}
.dhd-header i { color: var(--doc-indigo-light); font-size: 1rem; }
.dhd-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}
/* Doc module list */
.dhd-modules { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.dhd-module {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(79,70,229,0.12);
  border-radius: 0.625rem;
  padding: 0.6rem 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}
.dhd-module:hover { border-color: rgba(79,70,229,0.35); background: rgba(79,70,229,0.07); }
.dhd-module-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem; flex-shrink: 0;
}
.dhd-module-name { font-weight: 600; font-size: 0.8rem; color: rgba(255,255,255,0.85); flex: 1; }
.dhd-module-status {
  font-size: 0.68rem; font-weight: 700;
  background: rgba(16,185,129,0.15); color: #10b981;
  padding: 0.15rem 0.5rem; border-radius: 100px;
}
/* Key metrics */
.dhd-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.dhd-metric-card {
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.dhd-metric-num { font-size: 1.25rem; font-weight: 800; color: var(--doc-indigo-light); line-height: 1.2; }
.dhd-metric-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
/* Tags */
.dhd-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.dhd-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.2);
  color: var(--doc-indigo-light);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

/* ===========================
   STATS BAR
   =========================== */
.stats-section {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(79,70,229,0.12);
  border-bottom: 1px solid rgba(79,70,229,0.12);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1rem; text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--doc-indigo); line-height: 1; }
.stat-number span { font-size: 1.25rem; color: var(--doc-indigo-light); }
.stat-desc { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.3rem; font-weight: 500; }

/* ===========================
   DOCS LAYOUT — SIDEBAR + CONTENT
   =========================== */
.doc-layout {
  display: grid;
  grid-template-columns: var(--doc-sidebar-w) 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}
@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .doc-sidebar { display: none; }
  .doc-sidebar.mobile-open { display: block; }
}

/* ===========================
   SIDEBAR — dsnav-*
   =========================== */
.doc-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,70,229,0.25) transparent;
}
.doc-sidebar::-webkit-scrollbar { width: 4px; }
.doc-sidebar::-webkit-scrollbar-track { background: transparent; }
.doc-sidebar::-webkit-scrollbar-thumb { background: rgba(79,70,229,0.25); border-radius: 2px; }

.dsnav-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.dsnav-title:first-child { margin-top: 0; }
.dsnav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.dsnav-link:hover { background: rgba(79,70,229,0.07); color: var(--doc-indigo); }
.dsnav-link.active { background: rgba(79,70,229,0.1); color: var(--doc-indigo); font-weight: 700; }
.dsnav-link i { width: 16px; text-align: center; flex-shrink: 0; }
.dsnav-divider { height: 1px; background: var(--gray-100); margin: 1rem 0; }

/* Mobile sidebar toggle */
.doc-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--doc-indigo);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
@media (max-width: 1024px) { .doc-sidebar-toggle { display: flex; } }

/* ===========================
   DOC CONTENT AREA — dcc-*
   =========================== */
.doc-content { min-width: 0; }

/* Section wrapper */
.doc-section {
  margin-bottom: 4rem;
  scroll-margin-top: 90px;
}
.doc-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(79,70,229,0.12);
}
.doc-section-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; flex-shrink: 0;
}
.doc-section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.doc-section-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Section tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(79,70,229,0.08);
  color: var(--doc-indigo);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.875rem;
  border: 1px solid rgba(79,70,229,0.18);
}

/* Body text */
.doc-body { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.85; }
.doc-body p { margin-bottom: 1.25rem; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--gray-900); }

/* Code block */
.doc-code {
  background: #0f172a;
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.8375rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.7;
  position: relative;
}
.doc-code-label {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: inherit;
}
.doc-code .kw { color: #818cf8; }
.doc-code .fn { color: #67e8f9; }
.doc-code .str { color: #86efac; }
.doc-code .cm { color: #6b7280; font-style: italic; }
.doc-code .num { color: #fcd34d; }

/* Alert / Note box */
.doc-note {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.doc-note-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 0.1rem; }
.doc-note.note-info   { background: rgba(79,70,229,0.07); border-left: 4px solid var(--doc-indigo); color: var(--gray-700); }
.doc-note.note-warn   { background: rgba(245,158,11,0.08); border-left: 4px solid var(--doc-amber); color: var(--gray-700); }
.doc-note.note-success{ background: rgba(16,185,129,0.07); border-left: 4px solid var(--doc-green); color: var(--gray-700); }
.doc-note.note-danger { background: rgba(239,68,68,0.07);  border-left: 4px solid var(--doc-red);  color: var(--gray-700); }
.doc-note.note-info .doc-note-icon   { color: var(--doc-indigo); }
.doc-note.note-warn .doc-note-icon   { color: var(--doc-amber); }
.doc-note.note-success .doc-note-icon{ color: var(--doc-green); }
.doc-note.note-danger .doc-note-icon { color: var(--doc-red); }

/* Step list */
.doc-steps { counter-reset: step-counter; list-style: none; padding: 0; margin: 1.25rem 0; }
.doc-steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.doc-steps li::before {
  content: counter(step-counter);
  min-width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.doc-steps li p { margin: 0; font-size: 0.9rem; color: var(--gray-600); line-height: 1.75; }
.doc-steps li strong { color: var(--gray-900); }

/* Check list */
.doc-checklist { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.doc-checklist li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.9rem; color: var(--gray-600); line-height: 1.7;
}
.doc-checklist li i { color: var(--doc-green); flex-shrink: 0; margin-top: 0.2rem; }

/* ===========================
   MODULE CARD GRID — dmc-*
   =========================== */
.dmc-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 900px) { .dmc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .dmc-grid { grid-template-columns: 1fr; } }
.dmc-card {
  background: #fff;
  border: 1px solid rgba(79,70,229,0.12);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dmc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.1);
  border-color: rgba(79,70,229,0.3);
}
.dmc-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; margin-bottom: 0.875rem;
}
.dmc-name { font-weight: 700; color: var(--gray-900); font-size: 0.875rem; margin-bottom: 0.3rem; }
.dmc-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.6; }

/* ===========================
   API ENDPOINT TABLE — det-*
   =========================== */
.det-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1.25rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(79,70,229,0.12);
}
.det-table thead tr { background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light)); }
.det-table thead th { color: #fff; font-weight: 700; padding: 0.75rem 1rem; text-align: left; white-space: nowrap; }
.det-table tbody tr { border-bottom: 1px solid rgba(79,70,229,0.07); transition: background 0.15s; }
.det-table tbody tr:last-child { border-bottom: none; }
.det-table tbody tr:hover { background: rgba(79,70,229,0.03); }
.det-table tbody td { padding: 0.75rem 1rem; color: var(--gray-700); vertical-align: top; }
.det-table td:first-child { font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.method-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-family: monospace;
}
.method-get    { background: rgba(16,185,129,0.15); color: #059669; }
.method-post   { background: rgba(79,70,229,0.15);  color: var(--doc-indigo); }
.method-put    { background: rgba(245,158,11,0.15); color: #d97706; }
.method-patch  { background: rgba(6,182,212,0.15);  color: #0891b2; }
.method-delete { background: rgba(239,68,68,0.15);  color: #dc2626; }

/* ===========================
   FAQ / ACCORDION — dfaq-*
   =========================== */
.doc-faq-accordion { display: flex; flex-direction: column; gap: 0.625rem; }
.dfaq-item {
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}
.dfaq-item.open { border-color: var(--doc-indigo); }
.dfaq-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 1.25rem;
  background: transparent; border: none; cursor: pointer;
  text-align: left; font-size: 0.9rem; font-weight: 700;
  color: var(--gray-900); gap: 1rem;
}
.dfaq-trigger:hover { background: rgba(79,70,229,0.03); }
.dfaq-chevron { color: var(--doc-indigo); font-size: 0.875rem; flex-shrink: 0; transition: transform 0.3s; }
.dfaq-item.open .dfaq-chevron { transform: rotate(180deg); }
.dfaq-body {
  display: none; padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem; color: var(--gray-600); line-height: 1.85;
}
.dfaq-item.open .dfaq-body { display: block; }

/* ===========================
   SEARCH BAR — dsearch-*
   =========================== */
.doc-search-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.doc-search-input {
  width: 100%;
  background: #fff;
  border: 2px solid rgba(79,70,229,0.18);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 0.9375rem;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.doc-search-input:focus {
  border-color: var(--doc-indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.doc-search-icon {
  position: absolute;
  left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: 1rem;
  pointer-events: none;
}
.doc-search-results {
  background: #fff;
  border: 1px solid rgba(79,70,229,0.18);
  border-radius: 0.75rem;
  margin-top: 0.5rem;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 32px rgba(79,70,229,0.12);
}
.doc-search-results.open { display: block; }
.doc-search-result-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(79,70,229,0.07);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.doc-search-result-item:last-child { border-bottom: none; }
.doc-search-result-item:hover { background: rgba(79,70,229,0.04); }
.doc-search-result-icon { color: var(--doc-indigo); font-size: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.doc-search-result-title { font-weight: 700; font-size: 0.875rem; color: var(--gray-900); margin-bottom: 0.2rem; }
.doc-search-result-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ===========================
   VERSION BADGE
   =========================== */
.doc-version-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.2);
  color: var(--doc-indigo);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ===========================
   DEMO FORM — ddemo-*
   =========================== */
.ddemo-wrap {
  background: linear-gradient(135deg, #0a0f1e, #111827);
  border-radius: var(--radius-2xl);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .ddemo-wrap { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.5rem; } }
.ddemo-copy h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.3; }
.ddemo-copy p { color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 0.9375rem; margin-bottom: 1.75rem; }
.ddemo-trust { display: flex; flex-direction: column; gap: 0.625rem; }
.ddemo-trust-item { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8375rem; color: rgba(255,255,255,0.65); }
.ddemo-trust-item i { color: var(--doc-indigo-light); }
.ddemo-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.ddemo-form-title { font-size: 1.125rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; }
.ddemo-form-group { margin-bottom: 1rem; }
.ddemo-form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; }
.ddemo-form-group input,
.ddemo-form-group select,
.ddemo-form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: 0.5rem;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.ddemo-form-group input::placeholder,
.ddemo-form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.ddemo-form-group input:focus,
.ddemo-form-group select:focus,
.ddemo-form-group textarea:focus {
  border-color: var(--doc-indigo-light);
  background: rgba(79,70,229,0.08);
}
.ddemo-form-group select option { background: #111827; color: #fff; }
.ddemo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .ddemo-form-row { grid-template-columns: 1fr; } }
.ddemo-form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light));
  color: #fff; border: none;
  border-radius: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.ddemo-form-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.ddemo-form-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.ddemo-form-success {
  display: none; text-align: center; padding: 2.5rem; color: #fff;
}
.ddemo-form-success i { font-size: 3rem; color: var(--doc-green); margin-bottom: 1rem; display: block; }
.ddemo-form-success h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.ddemo-form-success p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ===========================
   FOOTER EXTRAS
   =========================== */
.doc-footer-note {
  background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-dark));
  padding: 3rem 0; text-align: center; color: #fff;
}
.doc-footer-note h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.doc-footer-note p { font-size: 0.9375rem; opacity: 0.85; max-width: 600px; margin: 0 auto 1.75rem; }
.doc-contact-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.doc-contact-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: 100px;
  font-size: 0.875rem; font-weight: 700;
  transition: transform 0.2s, opacity 0.2s;
}
.doc-contact-pill:hover { transform: translateY(-2px); opacity: 0.9; }
.doc-pill-phone { background: rgba(255,255,255,0.15); color: #fff; }
.doc-pill-wa    { background: #25d366; color: #fff; }
.doc-pill-email { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }

/* ===========================
   STICKY MOBILE CTA
   =========================== */
.doc-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  background: rgba(10,15,30,0.97);
  border-top: 1px solid rgba(79,70,229,0.25);
  gap: 0.75rem;
}
@media (max-width: 768px) { .doc-sticky-cta { display: flex; } }
.doc-sticky-demo, .doc-sticky-wa {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; font-weight: 700; font-size: 0.875rem;
  padding: 0.75rem; border-radius: 0.5rem;
}
.doc-sticky-demo { background: linear-gradient(135deg, var(--doc-indigo), var(--doc-indigo-light)); color: #fff; }
.doc-sticky-wa   { background: #25d366; color: #fff; }

/* ===========================
   PROGRESS BAR (Reading)
   =========================== */
.doc-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--doc-indigo), var(--doc-cyan));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===========================
   ON-PAGE TOC (Table of Contents)
   =========================== */
.doc-toc {
  background: rgba(79,70,229,0.04);
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}
.doc-toc-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--doc-indigo); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.doc-toc a { font-size: 0.8375rem; color: var(--gray-600); transition: color 0.15s; display: flex; align-items: center; gap: 0.4rem; }
.doc-toc a:hover { color: var(--doc-indigo); }
.doc-toc a i { font-size: 0.65rem; color: var(--doc-indigo); }

/* ===========================
   SCROLL REVEAL
   =========================== */
.doc-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.doc-reveal.revealed { opacity: 1; transform: none; }
.doc-reveal.delay-1 { transition-delay: 0.1s; }
.doc-reveal.delay-2 { transition-delay: 0.2s; }
.doc-reveal.delay-3 { transition-delay: 0.3s; }
.doc-reveal.delay-4 { transition-delay: 0.4s; }

/* ===========================
   CONTENT SECTION
   =========================== */
.content-section { padding: 5rem 0; }
.bg-light-section { background: linear-gradient(180deg, #f8f9ff 0%, #eef2ff 100%); }
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2.25rem); font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.section-intro { font-size: 1.0625rem; color: var(--gray-500); line-height: 1.8; max-width: 720px; margin: 0 auto; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .doc-layout { padding: 2rem 0 4rem; }
  .ddemo-wrap  { padding: 2rem 1.25rem; }
}
