.navbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner, .nav-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0.2px;
}
.brand svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.navbar-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  text-decoration: none; padding: 6px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 9px;
  overflow: hidden; background: var(--surface);
}
.toggle button {
  padding: 7px 14px; font-size: 13px; font-family: var(--font-ui);
  font-weight: 500; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer;
  transition: background .15s, color .15s;
}
.toggle button.active { background: var(--accent); color: #fff; }
.toggle button:not(.active):not(:disabled):hover { background: var(--surface-2); color: var(--text); }
.toggle button:disabled { opacity: .4; cursor: not-allowed; }

.toggle-sm {
  display: inline-flex; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 7px; overflow: hidden; background: var(--bg); flex-shrink: 0;
}
.toggle-sm button {
  padding: 4px 9px; font-size: 11px; font-family: var(--font-ui);
  font-weight: 600; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer;
}
.toggle-sm button.active { background: var(--accent); color: #fff; }
.toggle-sm button:not(.active):hover { background: var(--surface-2); }

.toggle-btn {
  padding: 7px 14px; font-size: 13px; font-family: var(--font-ui);
  font-weight: 500; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-dim); cursor: pointer;
  transition: background .15s, color .15s;
}
.toggle-btn:hover { background: var(--surface-2); color: var(--text); }
.toggle-btn.active { background: var(--accent); color: #fff; }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-dim);
  cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px; background: var(--bg);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }

.tg-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius); background: var(--accent-soft);
  text-decoration: none; color: var(--text); margin-bottom: 16px;
  transition: border-color .15s;
}
.tg-cta:hover { border-color: var(--accent); }
.tg-cta svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.tg-cta-text { flex: 1; }
.tg-cta-title { font-size: 13px; font-weight: 600; }
.tg-cta-desc { font-size: 12px; color: var(--text-dim); }
.tg-cta-badge {
  font-size: 11px; font-weight: 600; padding: 5px 12px;
  border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }
.updated { font-size: 11px; color: var(--text-dim); text-align: right; margin-top: 12px; }
.msg { text-align: center; padding: 48px; color: var(--text-dim); }

@media (max-width: 640px) {
  .navbar-inner, .nav-inner { padding: 12px 16px; }
  .wrap { padding: 24px 16px 48px; }
  .card { padding: 20px; }
}

.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; }
.page-head p { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.55; max-width: 640px; }
@media (max-width: 640px) {
  .page-head h1 { font-size: 19px; }
  .page-head p { font-size: 13px; }
}

.faq { margin-top: 16px; }
.faq h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.faq-item { margin-bottom: 12px; }
.faq-q {
  font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.faq-a {
  font-size: 13px; color: var(--text-dim); padding: 8px 0;
  display: none; line-height: 1.6;
}
.faq-a.show { display: block; }
.footer-note { font-size: 12px; color: var(--text-dim); margin-top: 20px; line-height: 1.6; text-align: center; }
