:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-soft: #eef2ff;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 1000;
}
nav .logo-img { height: 36px; margin-right: 10px; }
nav .logo { font-weight: 800; margin-right: 24px; font-size: 1.1rem; letter-spacing: 0.3px; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
nav a { color: var(--text); font-weight: 500; }
nav .nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-login { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); }
.nav-cta { background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 20px rgba(99,102,241,0.25); }
.docs-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 60px auto 0;
}
.sidebar {
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: #fff;
  padding: 20px;
  position: sticky;
  overflow: auto;
}
.nav-group h3 { font-size: .9rem; color: var(--muted); margin: 16px 0 8px; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #0f172a;
  font-size: .92rem;
}
.nav-group a:hover, .nav-group a.active {
  background: var(--primary-soft);
  color: #3730a3;
  text-decoration: none;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tier-badge.pro { background: #ede9fe; color: #5b21b6; }
.tier-badge.business { background: #dcfce7; color: #166534; }
.tier-badge.enterprise { background: #dbeafe; color: #1e3a8a; }
.content { padding: 28px 36px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(15,23,42,.06);
}
h1 { margin: 0 0 12px; font-size: 1.8rem; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
p, li { line-height: 1.65; }
figure { margin: 18px 0; }
img { max-width: 100%; border-radius: 10px; border: 1px dashed #94a3b8; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; }
th, td { border: 1px solid var(--border); padding: 9px; text-align: left; vertical-align: top; }
th { background: #f8fafc; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow: auto; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 10px 12px; display: inline-block; }
.btn.next { margin-left: auto; }
@media (max-width: 980px) {
  nav { padding: 14px 18px; }
  nav ul { display: none; }
  .docs-layout { grid-template-columns: 1fr; margin-top: 78px; }
  .sidebar { position: static; min-height: auto; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
}
