/* ============================================================
   contextspa — main.css
   Global styles, design tokens, layout, and components.
   Bubble animation lives in bubbles.css (protected — do not merge).
   ============================================================ */

/* --- Design tokens ----------------------------------------- */
:root {
  --bg:           #06080d;
  --surface:      #0d1520;
  --surface-2:    #111d2e;
  --border:       #1c2a40;
  --border-light: #243350;
  --text:         #dde8f5;
  --text-muted:   #627a96;
  --text-faint:   #3d5470;
  --accent:       #00d4aa;
  --accent-dark:  #009e80;
  --accent-glow:  rgba(0, 212, 170, 0.12);
  --accent-glow2: rgba(0, 212, 170, 0.04);
  --danger:       #f05050;
  --warn:         #f5a623;
  --code-bg:      #07101f;
  --radius:       6px;
  --radius-lg:    12px;
  --font-mono:    'Cascadia Code', 'JetBrains Mono', 'Fira Code', ui-monospace, 'Consolas', monospace;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  --max-content:  1080px;
  --nav-h:        56px;
  --transition:   160ms ease;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
code, pre { font-family: var(--font-mono); }
ul, ol { list-style: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); max-width: 60ch; }
p.wide { max-width: 80ch; }

/* --- Layout ------------------------------------------------ */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(6, 8, 13, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav__links a.active { color: var(--accent); }
.nav__cta {
  background: var(--accent);
  color: #06080d !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 6px 16px !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #06080d;
}
.btn--primary:hover { background: var(--accent-dark); text-decoration: none; color: #06080d; }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-light); color: var(--text); text-decoration: none; }
.btn--sm { padding: 6px 14px; font-size: 0.85rem; }
.btn--lg { padding: 13px 28px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* --- Hero section ------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__headline { color: var(--text); margin-bottom: 12px; }
.hero__headline em { color: var(--accent); font-style: normal; }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin: 20px 0 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: float 2.4s ease-in-out infinite;
}
.hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--border-light), transparent);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Code sample ------------------------------------------- */
.code-sample {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 520px;
}
.code-sample__bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-sample__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}
.code-sample__dot:nth-child(1) { background: #ff5f56; }
.code-sample__dot:nth-child(2) { background: #ffbd2e; }
.code-sample__dot:nth-child(3) { background: #27c93f; }
.code-sample__label {
  margin-left: 4px;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-sans);
}
.code-sample__body { padding: 20px; overflow-x: auto; }
.code-sample pre { margin: 0; }
.tok-key   { color: #7dd3fc; }
.tok-str   { color: #86efac; }
.tok-num   { color: #fbbf24; }
.tok-op    { color: var(--text-muted); }
.tok-comment { color: var(--text-faint); font-style: italic; }
.tok-method  { color: var(--accent); }
.tok-url     { color: #c4b5fd; }

/* --- Two-column feature grid ------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 32px;
  transition: background var(--transition);
}
.feature-card:hover { background: var(--surface-2); }
.feature-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature-card h3 { color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* --- Strategy cards ---------------------------------------- */
.strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.strategy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}
.strategy-card:hover { border-color: var(--border-light); }
.strategy-card__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow2);
  border: 1px solid rgba(0, 212, 170, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.strategy-card h3 { color: var(--text); margin-bottom: 8px; }
.strategy-card p { font-size: 0.88rem; }
.strategy-card__meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* --- Section headings -------------------------------------- */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading { color: var(--text); margin-bottom: 16px; }
.section-desc { margin-bottom: 40px; }

/* --- Horizontal rule --------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- How it works steps ------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { color: var(--text); font-size: 0.95rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; max-width: none; }

/* --- CTA banner -------------------------------------------- */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h2 { color: var(--text); margin-bottom: 12px; }
.cta-banner p { max-width: none; margin: 0 auto 32px; }
.cta-banner .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Footer ------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); }
.footer__logo span { color: var(--accent); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 0.85rem; color: var(--text-faint); }
.footer__links a:hover { color: var(--text-muted); text-decoration: none; }
.footer__copy { font-size: 0.8rem; color: var(--text-faint); }

/* --- Docs layout ------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 32px 0;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 20px 8px;
}
.docs-nav-link {
  display: block;
  padding: 7px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  border-left: 2px solid transparent;
}
.docs-nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.docs-nav-link.active { color: var(--accent); border-left-color: var(--accent); }
.docs-nav-link--method {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.docs-content { padding: 48px 48px 80px; min-width: 0; }
.docs-content > section { margin-bottom: 64px; }
.docs-content h1 { color: var(--text); margin-bottom: 12px; }
.docs-content h2 {
  color: var(--text);
  margin: 48px 0 20px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { color: var(--text); margin: 28px 0 12px; font-size: 1.05rem; }
.docs-content p { margin-bottom: 16px; }
.docs-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.docs-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.docs-content li { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 6px; }
.docs-content a { color: var(--accent); }

/* --- Endpoint badge ---------------------------------------- */
.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.method-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.method-badge--post { background: rgba(0, 212, 170, 0.15); color: var(--accent); }
.method-badge--get  { background: rgba(99, 179, 237, 0.15); color: #63b3ed; }
.endpoint__path { font-size: 0.95rem; color: var(--text); }

/* --- Tables ------------------------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.88rem;
}
th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
td:first-child { font-family: var(--font-mono); color: var(--text); font-size: 0.83rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* --- Inline code ------------------------------------------- */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 16px 0 24px;
  line-height: 1.65;
  font-size: 0.83rem;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

/* --- Playground (pg__) ------------------------------------- */
.pg {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.pg__bar {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.pg__toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.pg__toggle-btn:hover { border-color: var(--accent); color: var(--text); }

.pg__settings {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pg__settings-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pg__settings-row:last-child { margin-bottom: 0; }
.pg__settings-row label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg__select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  padding: 4px 8px;
}
.pg__select:focus { outline: none; border-color: var(--accent); }
.pg__check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}
.pg__check input { accent-color: var(--accent); cursor: pointer; }
.pg__text-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  padding: 5px 10px;
  width: 100%;
  margin-top: 4px;
}
.pg__text-input:focus { outline: none; border-color: var(--accent); }
.pg__hint-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-faint);
  cursor: pointer;
  margin-left: 4px;
}
.pg__hints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pg__hints button {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.76rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.pg__hints button:hover { border-color: var(--accent); color: var(--text); }

.pg__panels {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.pg__panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.pg__panel:last-child { border-right: none; }
.pg__panel-head {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface);
}
.pg__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-faint);
}
.pg__badge--accent {
  background: var(--accent-glow);
  border-color: rgba(0, 212, 170, 0.2);
  color: var(--accent);
}
.pg__textarea {
  width: 100%;
  flex: 1;
  resize: none;
  background: var(--bg);
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 16px;
  outline: none;
  min-height: 360px;
}
.pg__textarea::placeholder { color: var(--text-faint); }
.pg__output {
  flex: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
  overflow-y: auto;
  min-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}
.pg__output--empty { color: var(--text-faint); font-family: var(--font-sans); }
.pg__output--error { color: var(--danger); }

.pg__metrics {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--surface);
}
.pg__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pg__metric-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
}
.pg__metric-val--accent { color: var(--accent); }
.pg__metric-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .pg__panels { grid-template-columns: 1fr; }
  .pg__panel { border-right: none; border-bottom: 1px solid var(--border); }
}

/* --- Loading spinner --------------------------------------- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Alert ------------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert--warn  { background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.25); color: #f5a623; }
.alert--error { background: rgba(240, 80, 80, 0.1);  border: 1px solid rgba(240, 80, 80, 0.25);  color: var(--danger); }
.alert--info  { background: var(--accent-glow);        border: 1px solid rgba(0, 212, 170, 0.2);   color: var(--accent); }

/* --- Auth notice ------------------------------------------- */
.auth-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.auth-notice strong { color: var(--text); }

/* --- Hero overlay ------------------------------------------ */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0.0) 40%, rgba(6, 8, 13, 0.7) 100%);
}

/* --- Code sample strip ------------------------------------- */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.strip__text { max-width: 380px; }
.strip__text h2 { color: var(--text); font-size: 1.4rem; margin-bottom: 10px; }
.strip__code { flex: 1; min-width: 280px; max-width: 540px; }

/* --- Section note ------------------------------------------ */
.section-note { margin-top: 28px; font-size: 0.88rem; }

/* --- Account page (acct__) --------------------------------- */
.acct {
  max-width: 640px;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
}
.acct__title { font-size: 1.8rem; margin-bottom: 8px; }
.acct__subtitle { margin-bottom: 40px; }
.acct__gate { text-align: center; padding: 48px 32px; }
.acct__gate p { margin-bottom: 24px; }
.acct__card { margin-bottom: 24px; }
.acct__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.acct__card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.acct__card-title + p { margin-bottom: 16px; }
.acct__balances { display: flex; gap: 32px; margin-bottom: 20px; flex-wrap: wrap; }
.acct__bal-label { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 4px; }
.acct__bal-value { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.acct__bal-value--accent { color: var(--accent); }
.acct__note { margin-top: 12px; font-size: 0.82rem; color: var(--text-faint); }
.acct__banner-warn {
  border: 1px solid var(--warn);
  margin-bottom: 32px;
}
.acct__banner-warn h3 { color: var(--warn); margin-bottom: 8px; }
.acct__banner-warn p { margin-bottom: 16px; }
.acct__key-row { display: flex; gap: 8px; align-items: center; }
.acct__key-display {
  flex: 1;
  background: var(--code-bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  word-break: break-all;
}
.acct__key-hint { margin-top: 12px; font-size: 0.82rem; color: var(--text-faint); }
.acct__topup { border: 1px solid var(--border-light); }
.acct__topup h3 { margin-bottom: 8px; }
.acct__topup-rate { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 16px; }
.acct__presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.acct__custom-label { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 12px; }
.acct__custom-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.acct__custom-row span { color: var(--text-muted); font-size: 0.9rem; }
.acct__actions { display: flex; gap: 8px; }
.acct__error-card { border: 1px solid var(--danger); }
.acct__error-card p { color: var(--danger); }
.acct__error-link { margin-top: 16px; display: inline-block; }
.acct__regen-warn { color: var(--warn); font-size: 0.88rem; margin-bottom: 12px; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .docs-content { padding: 32px 24px 64px; }
  .playground-panels { grid-template-columns: 1fr; }
  .panel { min-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
  .cta-banner { padding: 40px 28px; }
  .nav__links .hide-mobile { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero__content { padding: 60px 0 80px; }
  .playground-toolbar { gap: 10px; }
  .playground-input { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
