:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --soft: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --warn: #f59e0b;
  --danger: #ef4444;
}

body {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hero {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 30%),
              radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 25%),
              linear-gradient(135deg, #111827, #0f172a);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-pills .nav-link {
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 0.25rem;
}

.nav-pills .nav-link.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #03111c;
  font-weight: 700;
  border: none;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.card-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
}

.code-block {
  background: #020617;
  color: #d1fae5;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 0.85rem;
  padding: 1rem;
  font-family: Consolas, Monaco, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0;
}

.mini-code {
  background: rgba(15, 23, 42, 0.9);
  color: #c7f9cc;
  border-radius: 0.5rem;
  padding: 0.15rem 0.45rem;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.95rem;
}

.badge-soft {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.table-dark-custom {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255,255,255,0.03);
  --bs-table-hover-bg: rgba(255,255,255,0.06);
  color: var(--text);
}

.table-dark-custom td,
.table-dark-custom th {
  color: var(--text);
}

.icon-circle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(56,189,248,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.3rem;
}

.toc a {
  text-decoration: none;
  color: #cbd5e1;
}

.toc a:hover {
  color: white;
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.sticky-top-offset {
  top: 1rem;
}
