
/* ============================================================
   Auth Pages (Login / Register)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--surface);
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #1a1d24;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-brand-mark {
  width: 24px;
  height: 24px;
  color: var(--green-bright);
}

.auth-header h1 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(247,248,245,0.7);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  background: #111318;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #f7f8f5;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms ease;
}

.form-group input:focus {
  border-color: var(--green-bright);
}

/* Password visibility toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: rgba(247,248,245,0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.password-toggle:hover {
  color: rgba(247,248,245,0.8);
}

.form-checkbox {
  flex-direction: row;
  align-items: center;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(247,248,245,0.6);
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-bright);
}

.auth-error {
  background: rgba(255,90,61,0.15);
  border: 1px solid rgba(255,90,61,0.3);
  color: var(--coral);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(247,248,245,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(247,248,245,0.45);
  background: transparent;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
}

.auth-tab:hover:not(.active) {
  color: rgba(247,248,245,0.7);
}

.auth-tab.active {
  background: rgba(14,124,102,0.15);
  color: var(--green-bright);
}

/* SMS input row */
.sms-group .sms-input-row {
  display: flex;
  gap: 10px;
}

.sms-group .sms-input-row input {
  flex: 1;
}

.sms-btn {
  padding: 10px 16px;
  background: rgba(14,124,102,0.15);
  border: 1px solid rgba(14,124,102,0.25);
  border-radius: var(--radius-sm);
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}

.sms-btn:hover {
  background: rgba(14,124,102,0.25);
}

.sms-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Captcha image */
.captcha-group .captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.captcha-group .captcha-row input {
  width: 80px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.captcha-img {
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: opacity 0.15s;
}
.captcha-img:hover {
  opacity: 0.7;
}
.captcha-placeholder {
  width: 140px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.captcha-refresh {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.15s;
}
.captcha-refresh:hover {
  border-color: var(--green);
  color: var(--green);
}
.captcha-refresh:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: rgba(247,248,245,0.35);
  margin-top: -8px;
  margin-bottom: 16px;
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--green-bright);
}

.phone-hint {
  font-size: 0.78rem;
  color: rgba(247,248,245,0.3);
  margin-top: -8px;
}

.captcha-slot {
  min-height: 40px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,248,245,0.2);
  font-size: 0.8rem;
  border: 1px dashed rgba(255,255,255,0.06);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.auth-divider span {
  background: #1a1d24;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}

.auth-oauth {
  display: flex;
  gap: 12px;
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms ease;
  background: #111318;
  color: #f7f8f5;
  border: 1px solid rgba(255,255,255,0.1);
}

.oauth-btn.github-btn:hover { background: #24292e; }
.oauth-btn.google-btn:hover { background: #1a1d24; }
.oauth-btn.wechat-btn:hover { background: #1a472a; }
.oauth-btn .oauth-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.oauth-btn:hover {
  background: #22252e;
}

.oauth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.github-btn .oauth-icon {
  background: #24292e;
  color: white;
}

.google-btn .oauth-icon {
  background: #4285f4;
  color: white;
}

.wechat-qr-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
}

.wechat-qr-container iframe {
  border: none !important;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a, .auth-link {
  color: var(--green-bright);
  text-decoration: none;
}

.auth-footer a:hover, .auth-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Hub / Dashboard — Full redesign
   ============================================================ */

.hub-page {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hub-brand {
  display: flex;
  align-items: center;
}

.hub-brand-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: var(--green-bright);
}

.hub-brand-icon svg { width: 100%; height: 100%; }

.hub-brand a {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-nav {
  display: flex;
  gap: 4px;
}

.hub-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 150ms ease;
}

.hub-tab:hover { background: var(--surface-strong); color: var(--ink); }

.hub-tab.active { background: var(--green); color: white; font-weight: 500; }

.hub-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-user-badge {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 12px;
  background: var(--surface-strong);
  border-radius: 999px;
}

.hub-logout-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
}

.hub-logout-btn:hover { color: var(--coral); border-color: var(--coral); }

.hub-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px;
}

.hub-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 32px;
  color: var(--muted);
  gap: 16px;
}

.hub-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: hub-spin 0.8s linear infinite;
}

@keyframes hub-spin { to { transform: rotate(360deg); } }

.hub-welcome h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hub-subtitle { color: var(--muted); margin-bottom: 32px; }

.hub-section h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 32px; }
.hub-section h2 { font-size: 1.3rem; font-weight: 600; margin: 32px 0 16px; }
.hub-section h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 12px; }

.hub-desc { color: var(--muted); margin-bottom: 24px; }

/* Stats grid */
.hub-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hub-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hub-stat-primary { border-left: 3px solid var(--green); }

.hub-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-stat-icon svg { width: 20px; height: 20px; }

.hub-stat-icon.green { background: rgba(14,124,102,0.08); color: var(--green); }
.hub-stat-icon.blue { background: rgba(38,92,255,0.08); color: var(--blue); }
.hub-stat-icon.gold { background: rgba(242,193,78,0.08); color: var(--gold); }
.hub-stat-icon.coral { background: rgba(255,90,61,0.08); color: var(--coral); }

.hub-stat-info { flex: 1; min-width: 0; }
.hub-stat-info .hub-stat-value { word-break: break-all; overflow-wrap: anywhere; line-height: 1.3; }

.hub-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.hub-stat-value { font-size: 1.1rem; }

/* Badges */
.hub-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 500;
}

.hub-badge-ok { background: rgba(14,124,102,0.1); color: var(--green); }
.hub-badge-warn { background: rgba(255,90,61,0.1); color: var(--coral); }
.hub-badge-neutral { background: var(--surface-strong); color: var(--muted); }

/* Quick actions */
.hub-quick-actions h2 { font-size: 1.3rem; font-weight: 600; margin: 40px 0 16px; }

.hub-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.hub-action-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: all 150ms ease;
  cursor: pointer;
}

.hub-action-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.hub-action-icon {
  width: 24px;
  height: 24px;
  color: var(--green);
  margin-bottom: 8px;
  display: block;
}

.hub-action-card strong { display: block; margin-bottom: 4px; }

.hub-action-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Forms */
.hub-activate-form,
.hub-inline-form {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.hub-activate-form input,
.hub-inline-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.hub-activate-form input:focus,
.hub-inline-form input:focus { border-color: var(--green-bright); }

.hub-form-vertical { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }

.hub-form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

.hub-form-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  box-sizing: border-box;
}

.hub-form-field input:focus { border-color: var(--green-bright); }

/* Messages */
.hub-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 8px 0;
}

.hub-msg-ok { background: rgba(14,124,102,0.08); color: var(--green); }
.hub-msg-err { background: rgba(255,90,61,0.08); color: var(--coral); }

/* Table */
.hub-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.hub-table th,
.hub-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hub-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Security page */
.hub-security-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hub-security-section:last-child { border-bottom: none; }

.hub-security-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.hub-oauth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.hub-oauth-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hub-oauth-card strong { flex: 1; }

.oauth-bind-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex-shrink: 0;
}

.oauth-bind-icon svg { width: 100%; height: 100%; }

/* CTA / upgrade */
.hub-upgrade-cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(21,163,127,0.08), rgba(242,193,78,0.05));
  border-radius: var(--radius-lg);
  text-align: center;
}

.hub-upgrade-cta h2 { margin-bottom: 8px; }

.hub-upgrade-cta p { color: var(--muted); margin-bottom: 20px; }

/* License section */
.hub-license-current { margin-bottom: 40px; }

.hub-activate-section {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.hub-activate-section p { color: var(--muted); margin-bottom: 16px; }

.hub-token-create {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.hub-token-create h3 { margin-top: 0; }

.hub-token-list { margin-top: 24px; }

.hub-empty { color: var(--muted); font-style: italic; }

/* Danger zone */
.hub-danger-zone {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--coral);
  border-radius: var(--radius-md);
}

.hub-danger-zone h2 { color: var(--coral); margin-top: 0; }

.hub-danger-zone p { color: var(--muted); margin-bottom: 16px; }

.button.danger {
  background: var(--coral);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
}

.button.danger:hover { opacity: 0.9; }

.button.small {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Blog Page
   ============================================================ */

.blog-page {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.blog-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 200ms ease;
}

.blog-card:hover {
  border-color: var(--green-bright);
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.blog-read-more {
  color: var(--green-bright);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   Docs API Page
   ============================================================ */

.docs-page {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

.docs-version {
  font-size: 0.8rem;
  color: var(--green);
  background: rgba(14,124,102,0.1);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.docs-layout-api {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

.docs-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-sidebar-logo {
  padding: 16px 20px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.docs-sidebar-logo img {
  width: 48px;
  height: auto;
  border-radius: 8px;
}

.docs-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease;
}

.docs-nav-item:hover {
  background: var(--surface-strong);
}

.docs-nav-order {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 20px;
}

.docs-content {
  padding: 32px;
}

.docs-notice {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 32px;
  padding: 12px;
  background: rgba(242,193,78,0.08);
  border-radius: var(--radius-sm);
}

.doc-api-entry {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-api-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.doc-api-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.doc-api-title-zh {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Full docs entries (static content) ── */

.doc-full-entry {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.doc-full-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.doc-full-entry h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}

.doc-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.doc-bullets li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.doc-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: 700;
}

/* Blog category badge */
.blog-category {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(14,124,102,0.1);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================
   404 Not Found
   ============================================================ */

.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--surface);
  text-align: center;
  padding: 40px 20px;
}

.not-found-content {
  max-width: 480px;
}

.not-found-code {
  display: block;
  font-size: 6rem;
  font-weight: 800;
  color: var(--green-bright);
  line-height: 1;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
}

.not-found-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.not-found-content p {
  color: rgba(247,248,245,0.6);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.not-found-content .button {
  display: inline-block;
  padding: 12px 32px;
}

/* Blog empty state */

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .hub-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }

  .hub-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hub-content { padding: 24px 16px; }

  .hub-stats-grid { grid-template-columns: 1fr 1fr; }

  .hub-actions-grid { grid-template-columns: 1fr 1fr; }

  .hub-activate-form,
  .hub-inline-form,
  .hub-activate-form input,
  .hub-inline-form input {
    flex-direction: column;
  }

  .hub-oauth-grid { grid-template-columns: 1fr; }

  .auth-oauth {
    flex-direction: column;
  }

  .docs-layout-api {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
}

/* ============================================================
   Icon System
   ============================================================ */

.stat-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.icon-success {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.icon-success svg {
  width: 18px;
  height: 18px;
}

/* Theme toggle icon */
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
}

/* ── Forgot Password ── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(247,248,245,0.3);
}
.step.active {
  color: var(--green-bright);
}
.step.done {
  color: var(--green-bright);
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.step.active .step-num,
.step.done .step-num {
  background: rgba(14,124,102,0.2);
  border-color: var(--green-bright);
}
.step-line {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.pw-rules {
  font-size: 0.75rem;
  color: rgba(247,248,245,0.3);
  margin-top: -8px;
}
.form-hint {
  color: rgba(247,248,245,0.35);
  font-size: 0.82rem;
  margin: 0;
}
.auth-error.visible {
  display: block;
}
.auth-success {
  display: none;
  background: rgba(14,124,102,0.12);
  border: 1px solid rgba(14,124,102,0.25);
  color: var(--green-bright);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.auth-success.visible {
  display: block;
}
.auth-done {
  text-align: center;
  padding: 24px 0;
}
.auth-done .done-icon {
  font-size: 3rem;
  color: var(--green-bright);
  margin-bottom: 16px;
}
.auth-done p {
  color: rgba(247,248,245,0.7);
  font-size: 0.95rem;
}

/* ── Checkout Page ── */
.checkout-page {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}
.checkout-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.checkout-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  text-decoration: none;
}
.checkout-back {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: auto;
}
.checkout-back:hover { color: var(--green); }
.checkout-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.checkout-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.checkout-product-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.checkout-product-desc { font-size: 0.85rem; color: var(--muted); }
.checkout-product-price { font-size: 1.8rem; font-weight: 800; margin-top: 8px; }
.checkout-product-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.channel-selector { margin-bottom: 24px; }
.channel-selector h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel-option {
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  transition: all 150ms;
}
.channel-option:hover { border-color: var(--green-bright); }
.channel-option.selected { border-color: var(--green); background: rgba(14,124,102,0.03); }
.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.alipay-icon { background: #1677ff; color: #fff; }
.wechat-icon { background: #07c160; color: #fff; }
.channel-name { font-weight: 600; font-size: 0.95rem; }
.channel-hint { font-size: 0.75rem; color: var(--muted); }
.checkout-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  transition: all 150ms;
  text-align: center;
  text-decoration: none;
  display: block;
}
.checkout-submit:hover { background: var(--green-bright); }
.checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-error {
  background: rgba(255,90,61,0.1);
  border: 1px solid rgba(255,90,61,0.2);
  color: var(--coral);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.checkout-loading { padding: 40px; text-align: center; color: var(--muted); }
.qr-area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* ── QR Modal (in-page payment) ── */
.qr-modal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.qr-modal-header {
  margin-bottom: 20px;
  position: relative;
}
.qr-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}
.qr-modal-icon { font-size: 2rem; }

.qr-channel-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.qr-channel-badge.alipay {
  background: #e8f4ff;
  color: #1677ff;
}
.qr-channel-badge.wechat {
  background: #e8f8ee;
  color: #07c160;
}

.qr-modal-body {}
.qr-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.qr-order-no {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 20px;
}

.qr-code-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.qr-code-svg {
  width: 200px;
  height: 200px;
}
.qr-code-svg svg {
  width: 100%;
  height: 100%;
}
.qr-code-fallback {
  padding: 24px;
  color: var(--muted);
}
.qr-link {
  color: var(--green);
  text-decoration: none;
  font-size: 0.85rem;
}
.qr-link:hover { text-decoration: underline; }

.qr-scan-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.qr-scan-icon { font-size: 1.1rem; }

.qr-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg, #f5f5f5);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.qr-close-btn:hover {
  background: var(--border, #e0e0e0);
  color: var(--dark, #111);
}

.qr-polling-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.qr-polling-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
.qr-polling {
  font-size: 0.8rem;
  color: var(--green);
  animation: none;
}

.qr-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
}
.qr-countdown-label {
  color: var(--muted);
}
.qr-countdown-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--dark);
  min-width: 42px;
}
.qr-countdown-time.urgent {
  color: #e74c3c;
}

.qr-code-expired {
  text-align: center;
  padding: 24px 0;
}
.qr-expired-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.qr-code-expired p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.qr-refresh-btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.qr-refresh-btn:hover {
  background: var(--green-bright);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
 50% { opacity: 0.4; }
}

.mock-pay-btn { margin-top: 16px; }
.qr-hint { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.checkout-done {
  text-align: center;
  padding: 48px 0;
}
.checkout-done .done-icon {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 16px;
}
.checkout-done h3 { margin-bottom: 8px; }
.checkout-done p { color: var(--muted); margin-bottom: 24px; }
.checkout-sidebar {}
.order-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.order-summary h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--muted);
}
.summary-row.total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}
.checkout-support {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.checkout-support a { color: var(--green); text-decoration: none; }
@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Admin Table extras ── */
.admin-table-wrapper { overflow-x: auto; }
.admin-table td.mono,
.admin-table th.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }
.admin-table .action-cell { display: flex; gap: 4px; flex-wrap: wrap; }
.btn-sm {
  padding: 3px 8px;
  font-size: 0.72rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.btn-sm:hover { background: rgba(255,255,255,0.08); color: var(--fg); }
.btn-sm.btn-danger { color: var(--coral); border-color: rgba(255,90,61,0.2); }
.btn-sm.btn-danger:hover { background: rgba(255,90,61,0.1); }
.btn-secondary {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.04); color: var(--fg); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.page-info { margin-right: auto; }
.admin-error {
  background: rgba(255,90,61,0.08);
  border: 1px solid rgba(255,90,61,0.15);
  color: var(--coral);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.admin-loading { padding: 40px; text-align: center; color: var(--muted); }
.status-pending { color: #f59e0b; font-weight: 500; }
.status-paid { color: #16a34a; font-weight: 500; }
.status-failed { color: #dc2626; font-weight: 500; }
.status-closed { color: #6b7280; }

/* ── Dashboard: HMG Console ─────────────────────── */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; min-width: 240px;
  background: var(--dark); color: #f7f8f5;
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
}
.sidebar-brand {
  padding: 18px 20px; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(247,248,245,0.06);
}
.sidebar-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
}
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-group-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(247,248,245,0.3);
  padding: 16px 20px 6px;
}
.dash-sidebar .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 0.84rem; font-weight: 500;
  color: rgba(247,248,245,0.6);
  transition: color 0.12s, background 0.12s;
  cursor: pointer;
}
.dash-sidebar .nav-item:hover { color: #f7f8f5; background: rgba(247,248,245,0.04); }
.dash-sidebar .nav-item.active {
  color: #f7f8f5; background: rgba(14,124,102,0.15);
  border-left: 2px solid var(--green);
}
.dash-sidebar .nav-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(247,248,245,0.06);
}
.user-pill { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; }
.user-plan { font-size: 0.68rem; color: rgba(247,248,245,0.4); }

.dash-main {
  flex: 1; margin-left: 240px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.dash-header {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(247,248,245,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.dash-header-left { display: flex; align-items: center; gap: 16px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.header-search { position: relative; width: 220px; }
.header-search input {
  width: 100%; padding: 6px 12px 6px 30px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 0.8rem;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.15s;
}
.header-search input:focus { border-color: var(--green); }
.header-search input::placeholder { color: var(--muted); }
.header-search .s-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.78rem; pointer-events: none;
}
.dash-header-right { display: flex; align-items: center; gap: 12px; }
.header-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-sm); color: var(--muted);
  transition: background 0.12s, color 0.12s; font-size: 0.95rem;
  background: none; border: none; cursor: pointer; text-decoration: none;
}
.header-btn:hover { background: var(--surface-strong); color: var(--ink); }

.dash-content { padding: 28px 32px 48px; flex: 1; }
.page-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.page-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--line);
  transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.stat-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px;
}
.stat-value {
  font-size: 1.8rem; font-weight: 800; font-family: var(--font-mono);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.stat-change {
  font-size: 0.72rem; font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 3px;
}
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--coral); }
.stat-change.neutral { color: var(--muted); }
.stat-card .stat-icon {
  float: right; font-size: 1.3rem; color: var(--surface-strong);
  margin-top: -4px;
}

/* Content grid */
.content-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 20px;
}
.card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--line); overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 0.88rem; font-weight: 700; }
.card-action {
  font-size: 0.75rem; color: var(--green); font-weight: 600;
  cursor: pointer;
}
.card-action:hover { text-decoration: underline; }
.card-body { padding: 20px; }

/* Graph */
.graph-canvas {
  width: 100%; height: 320px;
  background: var(--surface);
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
}
.graph-node {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 700; font-family: var(--font-mono);
  color: #fff; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; z-index: 2;
}
.graph-node:hover { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(14,124,102,0.3); }
.graph-node.type-decision { background: var(--green); }
.graph-node.type-root-cause { background: var(--coral); }
.graph-node.type-constraint { background: var(--blue); }
.graph-node.type-risk { background: var(--gold); color: var(--ink); }
.graph-node.type-lesson { background: #8b5cf6; }
.graph-legend {
  position: absolute; bottom: 12px; left: 16px;
  display: flex; gap: 14px; font-size: 0.68rem; color: var(--muted);
}
.graph-legend span { display: flex; align-items: center; gap: 4px; }
.graph-legend .ldot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Activity */
.activity-list { list-style: none; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.activity-dot.green { background: var(--green); }
.activity-dot.coral { background: var(--coral); }
.activity-dot.blue { background: var(--blue); }
.activity-dot.gold { background: var(--gold); }
.activity-dot.purple { background: #8b5cf6; }
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 0.82rem; margin-bottom: 2px; }
.activity-text strong { font-weight: 600; }
.activity-meta { font-size: 0.7rem; color: var(--muted); font-family: var(--font-mono); }

/* Audit table */
.audit-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.audit-table th {
  text-align: left; font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.audit-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.audit-table tr:hover td { background: rgba(14,124,102,0.02); }
.audit-table .atom-id {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--blue); cursor: pointer;
}
.audit-table .atom-id:hover { text-decoration: underline; }
.audit-action {
  font-size: 0.68rem; font-weight: 600; padding: 2px 8px;
  border-radius: 3px; display: inline-block;
}
.audit-action.memorize { background: rgba(14,124,102,0.1); color: var(--green); }
.audit-action.correct { background: rgba(38,92,255,0.1); color: var(--blue); }
.audit-action.govern { background: rgba(242,193,78,0.12); color: #b8860b; }
.audit-action.quarantine { background: rgba(255,90,61,0.1); color: var(--coral); }
.audit-action.handoff { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.audit-branch { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.audit-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.filter-chip {
  padding: 5px 14px; font-size: 0.76rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: #fff;
  transition: all 0.12s; cursor: pointer;
  font-family: var(--font-body);
}
.filter-chip:hover { border-color: var(--green); color: var(--ink); }
.filter-chip.active {
  border-color: var(--green); background: rgba(14,124,102,0.06);
  color: var(--green); font-weight: 600;
}
.filter-label {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Projects */
.project-list { list-style: none; }
.project-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.12s;
}
.project-item:hover { background: rgba(14,124,102,0.02); }
.project-item:last-child { border-bottom: none; }
.project-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--surface-strong);
  display: grid; place-items: center; font-size: 0.9rem;
}
.project-info { flex: 1; }
.project-name { font-size: 0.86rem; font-weight: 600; margin-bottom: 2px; }
.project-meta { font-size: 0.72rem; color: var(--muted); }
.project-atoms {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--muted); text-align: right;
}
.project-atoms strong { color: var(--ink); font-weight: 600; }

/* Settings */
.settings-group { margin-bottom: 28px; }
.settings-group-title {
  font-size: 0.88rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.form-row {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
}
.form-label {
  width: 160px; flex-shrink: 0; padding-top: 8px;
  font-size: 0.84rem; font-weight: 500;
}
.form-label .hint { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.form-control { flex: 1; }
.form-input {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.84rem; font-family: var(--font-body);
  background: #fff; outline: none; transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--green); }
.form-select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.84rem; font-family: var(--font-body);
  background: #fff; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364676f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.toggle-switch {
  position: relative; width: 40px; height: 22px;
  background: var(--line); border-radius: 11px;
  cursor: pointer; transition: background 0.2s;
  display: inline-block;
}
.toggle-switch.on { background: var(--green); }
.toggle-switch::after {
  content: ''; position: absolute;
  top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.toggle-switch.on::after { transform: translateX(18px); }
.btn-save {
  padding: 8px 24px; font-size: 0.84rem; font-weight: 600;
  background: var(--green); color: #fff;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: background 0.15s;
}
.btn-save:hover { background: var(--green-bright); }

/* Responsive dashboard */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 20px 16px 40px; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-label { width: auto; padding-top: 0; margin-bottom: 4px; }
}

/* ── Legal Pages (Terms / Privacy) ──────────────── */
.legal-page { background: var(--surface); min-height: 100vh; }
.legal-page .site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 0 24px;
}
.legal-page .nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.legal-page .nav-brand {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em;
  text-decoration: none;
}
.legal-page .nav-brand span { color: var(--green); }
.legal-page .nav-links { display: flex; gap: 24px; align-items: center; }
.legal-page .nav-links a {
  font-size: 0.85rem; color: var(--muted); font-weight: 500;
  transition: color 0.15s; text-decoration: none;
}
.legal-page .nav-links a:hover { color: var(--ink); }
.legal-page .nav-right { display: flex; gap: 12px; align-items: center; }
.legal-page .button.outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}
.legal-page .button.outline:hover { border-color: var(--green); color: var(--green); }

.legal-content {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 80px;
}
.legal-content h1 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.legal-meta {
  font-size: 0.82rem; color: var(--muted); margin-bottom: 40px;
  display: flex; gap: 16px;
}
.legal-content h2 {
  font-size: 1.15rem; font-weight: 600;
  margin-top: 36px; margin-bottom: 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.legal-content p { margin-bottom: 14px; font-size: 0.92rem; color: var(--ink); line-height: 1.7; }
.legal-content ul { margin-bottom: 14px; padding-left: 24px; }
.legal-content li { font-size: 0.92rem; margin-bottom: 6px; color: var(--ink); line-height: 1.7; }
.legal-content strong { font-weight: 600; }
.legal-content code {
  font-family: var(--font-mono); font-size: 0.82rem;
  background: var(--surface-strong); padding: 1px 5px; border-radius: 3px;
}
.highlight-box {
  background: var(--surface-strong);
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0; font-size: 0.92rem; line-height: 1.7;
}
.highlight-box strong { color: var(--green); }

.legal-page .site-footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  padding: 48px 24px 32px;
}
.legal-page .footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.legal-page .footer-inner a {
  color: rgba(255,255,255,0.5); font-size: 0.82rem; text-decoration: none;
}
.legal-page .footer-inner a:hover { color: #fff; }
.legal-page .footer-brand {
  font-family: var(--font-mono); font-weight: 700;
  color: #fff; font-size: 0.95rem;
}
.legal-page .footer-links { display: flex; gap: 20px; }

@media (max-width: 768px) {
  .legal-page .nav-links { display: none; }
  .legal-page .nav-right { display: none; }
  .legal-content h1 { font-size: 1.6rem; }
}

/* ── Form error ── */
.form-error {
  background: rgba(255,90,61,0.08);
  border: 1px solid rgba(255,90,61,0.15);
  color: var(--coral);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.mono-cell { font-family: var(--font-mono); font-size: 0.84rem; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   Landing Page — strict design compliance (index.html)
   ═══════════════════════════════════════════════════════════ */

.landing-page {
  --max-w: 1180px;
  --font-d: 'Geist','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-b: 'Geist','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-m: 'JetBrains Mono',ui-monospace,monospace;
}

.landing-page .container { width:min(var(--max-w),100%); margin:0 auto; padding:0 32px; }

/* ── Header ─────────────────────────────────────── */
.landing-page .site-header {
  position:fixed; z-index:100; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px;
  background:rgba(17,19,24,0.88);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(247,248,245,0.06);
}
.landing-page .header-brand {
  display:flex; align-items:center; gap:8px;
  font-weight:800; font-size:1.05rem; color:#f7f8f5;
  font-family:var(--font-d); text-decoration:none;
}
.landing-page .header-brand svg { width:24px; height:24px; color:#15a37f; }
.landing-page .header-nav { display:flex; align-items:center; gap:28px; }
.landing-page .header-nav a {
  color:rgba(247,248,245,0.7); font-size:.875rem; font-weight:500;
  transition:color .15s; text-decoration:none;
}
.landing-page .header-nav a:hover { color:#f7f8f5; background:rgba(255,255,255,0.06); border-radius:6px; }
.landing-page .header-actions { display:flex; align-items:center; gap:12px; }
.landing-page .header-actions a {
  color:rgba(247,248,245,0.7); font-size:.85rem; font-weight:500; text-decoration:none;
}
.landing-page .header-actions a:hover { color:#f7f8f5; }

/* ── Buttons ─────────────────────────────────────── */
.landing-page .btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 20px; border-radius:8px; font-size:.875rem; font-weight:600;
  transition:all .15s; white-space:nowrap; border:none; cursor:pointer;
  text-decoration:none;
}
.landing-page .btn-primary { background:#0e7c66; color:#fff; }
.landing-page .btn-primary:hover { background:#15a37f; }
.landing-page .btn-ghost { border:1px solid rgba(247,248,245,0.15); color:#f7f8f5; background:transparent; }
.landing-page .btn-ghost:hover { border-color:rgba(247,248,245,0.35); }
.landing-page .btn-outline { border:1px solid rgba(247,248,245,0.2); color:#e8e8e2; background:transparent; }
.landing-page .btn-outline:hover { border-color:#0e7c66; color:#0e7c66; }
/* Light-area override: btn-outline in light sections uses dark text */
.landing-page .section:not(.section-dark) .btn-outline,
.landing-page .price-card .btn-outline { border:1px solid #d8ddd2; color:#15161a; background:transparent; }
.landing-page .section:not(.section-dark) .btn-outline:hover,
.landing-page .price-card .btn-outline:hover { border-color:#0e7c66; color:#0e7c66; }
/* ── Mobile menu ─────────────────────────────────── */
.landing-page .mobile-toggle {
  display:none; color:#f7f8f5; padding:8px; background:none; border:none; cursor:pointer;
}
.landing-page .mobile-menu {
  display:none; position:fixed; top:60px; left:0; right:0;
  background:rgba(17,19,24,0.97); backdrop-filter:blur(20px);
  padding:20px 32px; z-index:99; flex-direction:column; gap:16px;
  border-bottom:1px solid rgba(247,248,245,0.08);
}
.landing-page .mobile-menu.open { display:flex; }
.landing-page .mobile-menu a {
  color:rgba(247,248,245,0.8); font-size:.95rem; padding:8px 0; text-decoration:none;
}
.landing-page .hamburger { display:flex; flex-direction:column; gap:5px; }
.landing-page .hamburger span {
  display:block; width:22px; height:2px; background:#f7f8f5; transition:all .2s;
}
.landing-page .hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.landing-page .hamburger.open span:nth-child(2) { opacity:0; }
.landing-page .hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ── Hero ──────────────────────────────────────── */
.landing-page .hero {
  position:relative; background:#111318; color:#f7f8f5;
  padding:0; overflow:hidden; min-height:100vh;
  display:flex; flex-direction:column; justify-content:center;
}
.landing-page .hero-particles {
  position:absolute; inset:0; z-index:0; pointer-events:none;
}
.landing-page .hero::before {
  content:''; position:absolute; top:-20%; right:-10%; width:800px; height:800px;
  border-radius:50%; background:radial-gradient(circle,rgba(14,124,102,0.12) 0%,transparent 60%);
  pointer-events:none;
}
.landing-page .hero::after { display:none; }
.landing-page .hero > .container {
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
  max-width:1100px; margin:0 auto;
  padding:120px 32px 60px;
}
.landing-page .hero-content { text-align:left; }
.landing-page .hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(14,124,102,0.15); border:1px solid rgba(14,124,102,0.25);
  border-radius:980px; padding:5px 14px; font-size:.78rem; color:#15a37f;
  font-weight:600; margin-bottom:20px; font-family:var(--font-m);
}
.landing-page .hero-badge span {
  width:6px; height:6px; border-radius:50%; background:#15a37f;
  animation: pulse-dot 2s ease-in-out infinite;
}
.landing-page .hero h1 {
  font-family:var(--font-d); font-size:clamp(2.2rem,5vw,3.4rem);
  font-weight:800; line-height:1.08; letter-spacing:-0.03em; margin-bottom:16px;
}
.landing-page .hero h1 em { font-style:normal; color:#15a37f; }
.landing-page .hero-sub {
  font-size:1.05rem; color:rgba(247,248,245,0.5); line-height:1.7;
  max-width:480px; margin:0 0 24px;
}
.landing-page .hero-install {
  max-width:480px; margin:0 0 20px;
}
.landing-page .hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.landing-page .hero-graph {
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.landing-page .graph-svg {
  width:100%; max-width:520px; height:auto;
  filter: drop-shadow(0 0 40px rgba(21,163,127,0.08));
}
.landing-page .graph-node { opacity:0.9; }
.landing-page .hero-stats-bar {
  position:relative; z-index:1;
  border-top:1px solid rgba(247,248,245,0.06);
  padding:18px 0;
}
.landing-page .hero-stats {
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  font-size:.78rem; color:rgba(247,248,245,0.35);
}
.landing-page .hero-stats strong {
  color:rgba(247,248,245,0.6); font-weight:600;
}

/* ── TUI Demo Section ─────────────────────────── */
.section-tui-demo {
  background:#0a0c10; color:#f7f8f5; padding:80px 0;
  position:relative; overflow:hidden;
}
.section-tui-demo::before {
  content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(14,124,102,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 400px 300px at 80% 30%, rgba(21,163,127,0.05) 0%, transparent 100%);
  pointer-events:none;
}
.tui-demo-grid {
  display:grid; grid-template-columns:1fr 1.1fr; gap:48px; align-items:center;
  position:relative; z-index:1;
}
.tui-demo-copy .kicker { color:#15a37f; }
.tui-demo-copy .section-title { margin-bottom:16px; }
.tui-demo-copy .section-desc {
  color:rgba(247,248,245,0.5); font-size:.95rem; line-height:1.7;
  max-width:420px; margin-bottom:24px;
}
.tui-features {
  list-style:none; padding:0; margin:0 0 28px;
}
.tui-features li {
  display:flex; align-items:center; gap:10px;
  padding:6px 0; font-size:.88rem; color:rgba(247,248,245,0.6);
}
.tui-dot {
  width:6px; height:6px; border-radius:50%; flex-shrink:0;
}
.tui-dot.green { background:#15a37f; }
.tui-dot.blue { background:#265cff; }
.tui-dot.amber { background:#f2c14e; }
.tui-actions { display:flex; gap:10px; flex-wrap:wrap; }
.tui-actions .btn-ghost { color:rgba(247,248,245,0.5); }
.tui-actions .btn-ghost:hover { color:#f7f8f5; }

/* Terminal window */
.tui-terminal {
  background:#0d1117; border-radius:12px; overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(21,163,127,0.06);
}
.terminal-bar {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; background:rgba(255,255,255,0.03);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.terminal-dots { display:flex; gap:6px; }
.terminal-dots i {
  width:10px; height:10px; border-radius:50%;
}
.terminal-dots i:nth-child(1) { background:#ff5f57; }
.terminal-dots i:nth-child(2) { background:#febc2e; }
.terminal-dots i:nth-child(3) { background:#28c840; }
.terminal-title {
  font-family:var(--font-m); font-size:.72rem; color:rgba(247,248,245,0.35);
}
.terminal-video { position:relative; background:#000; }
.terminal-video video {
  width:100%; display:block; object-fit:contain;
  max-height:480px;
}
.terminal-tabs {
  display:flex; border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(255,255,255,0.02);
}
.tui-tab {
  flex:1; padding:10px 8px; font-size:.72rem; font-weight:600;
  font-family:var(--font-m);
  color:rgba(247,248,245,0.3); background:none; border:none;
  cursor:pointer; transition:all .15s;
  border-right:1px solid rgba(255,255,255,0.04);
}
.tui-tab:last-child { border-right:none; }
.tui-tab:hover { color:rgba(247,248,245,0.6); background:rgba(255,255,255,0.02); }
.tui-tab.active {
  color:#15a37f; background:rgba(21,163,127,0.08);
}

/* ── Section base ──────────────────────────────── */
.landing-page .section { padding:100px 0; }
.landing-page .section-dark { background:#111318; color:#f7f8f5; }
.landing-page .section-alt { background:#eef1ea; }
.landing-page .kicker {
  font-family:var(--font-m); font-size:.75rem; letter-spacing:.12em;
  text-transform:uppercase; color:#0e7c66; font-weight:600; margin-bottom:12px;
}
.landing-page .section-dark .kicker { color:#15a37f; }
.landing-page .section-title {
  font-family:var(--font-d); font-size:clamp(1.8rem,4vw,2.6rem);
  font-weight:800; line-height:1.15; letter-spacing:-0.02em; margin-bottom:16px;
}
.landing-page .section-desc {
  color:#64676f; font-size:1.05rem; max-width:600px; line-height:1.7;
}
.landing-page .section-dark .section-desc { color:rgba(247,248,245,0.55); }
.landing-page .section-center { text-align:center; }
.landing-page .section-center .section-desc { margin:0 auto; }

/* ── Problem cards ─────────────────────────────── */
.landing-page .problem-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px; margin-top:48px;
}
.landing-page .problem-card {
  background:#fff; border:1px solid #d8ddd2; border-radius:12px; padding:28px 24px;
}
/* ── How it works ──────────────────────────────── */
.landing-page .how-steps {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:32px; margin-top:48px;
}
.landing-page .how-step { text-align:center; }
.landing-page .how-step-num {
  width:48px; height:48px; border-radius:50%; background:#15a37f; color:#111318;
  display:grid; place-items:center; font-family:var(--font-m); font-weight:700;
  font-size:1.1rem; margin:0 auto 16px;
}
.landing-page .how-step h3 { font-size:1rem; font-weight:700; margin-bottom:6px; }
.landing-page .how-step p { font-size:.88rem; color:rgba(247,248,245,0.55); line-height:1.6; }

/* ── Quickstart ────────────────────────────────── */
.landing-page .qs-steps {
  max-width:680px; margin:40px auto 0; display:flex; flex-direction:column; gap:16px;
}
.landing-page .qs-step {
  display:flex; gap:16px; align-items:flex-start;
  background:#fff; border:1px solid #d8ddd2; border-radius:8px; padding:20px;
}
.landing-page .qs-num {
  width:32px; height:32px; border-radius:50%; background:#0e7c66; color:#fff;
  display:grid; place-items:center; font-family:var(--font-m);
  font-weight:700; font-size:.85rem; flex-shrink:0;
}
.landing-page .qs-step h4 { font-size:.9rem; font-weight:700; margin-bottom:4px; }
.landing-page .qs-step p { font-size:.82rem; color:#64676f; line-height:1.5; }
.landing-page .qs-step code {
  font-family:var(--font-m); font-size:.8rem; background:#f7f8f5;
  padding:2px 6px; border-radius:3px; color:#0e7c66;
}

/* ── Footer ────────────────────────────────────── */
.landing-page .site-footer {
  background:#111318; color:rgba(247,248,245,0.55);
  padding:64px 0 32px;
}
.landing-page .footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr;
  gap:40px; margin-bottom:48px;
}
.landing-page .footer-brand-name {
  font-family:var(--font-d); font-size:1.2rem; font-weight:800; color:#f7f8f5; margin-bottom:12px;
}
.landing-page .footer-brand-desc { font-size:.85rem; line-height:1.6; max-width:320px; }
.landing-page .footer-col strong {
  display:block; color:rgba(247,248,245,0.8); font-size:.85rem;
  font-weight:700; margin-bottom:12px;
}
.landing-page .footer-col a {
  display:block; font-size:.82rem; padding:4px 0;
  color:rgba(247,248,245,0.45); transition:color .15s; text-decoration:none;
}
.landing-page .footer-col a:hover { color:#15a37f; }
.landing-page .footer-bottom {
  border-top:1px solid rgba(247,248,245,0.06); padding-top:24px;
  display:flex; justify-content:space-between; font-size:.78rem;
}

/* ── Responsive ──────────────────────────────── */
@media(max-width:900px){
  .landing-page .price-grid { grid-template-columns:1fr; }
  .landing-page .footer-grid { grid-template-columns:1fr 1fr; }
  .landing-page .hero h1 { font-size:clamp(2rem,7vw,2.8rem); }
}
@media(max-width:680px){
  .landing-page .header-nav, .landing-page .header-actions .btn-outline { display:none; }
  .landing-page .mobile-toggle { display:block; }
  .landing-page .site-header { padding:14px 20px; }
  .landing-page .container { padding:0 20px; }
  .landing-page .hero > .container { grid-template-columns:1fr; padding:100px 20px 40px; }
  .landing-page .hero-graph { display:none; }
  .landing-page .hero-content { text-align:center; }
  .landing-page .hero-sub { margin-left:auto; margin-right:auto; }
  .landing-page .hero-install { max-width:100%; }
  .landing-page .hero-actions {
    flex-direction:column; align-items:center; max-width:300px; margin:0 auto;
  }
  .landing-page .hero-actions .btn { width:100%; justify-content:center; }
  .landing-page .hero-stats { gap:16px; flex-direction:column; align-items:center; }
  .landing-page .section { padding:64px 0; }
  .tui-demo-grid { grid-template-columns:1fr; gap:32px; }
  .tui-demo-copy { text-align:center; }
  .tui-demo-copy .section-desc { margin-left:auto; margin-right:auto; }
  .tui-features { text-align:left; max-width:360px; margin-left:auto; margin-right:auto; }
  .tui-actions { justify-content:center; }
  .landing-page .problem-grid,
  .landing-page .how-steps { grid-template-columns:1fr; }
  .landing-page .footer-grid { grid-template-columns:1fr; }
  .landing-page .footer-bottom { flex-direction:column; gap:8px; }
}

/* ═══════════════════════════════════════════════════════════
   Pricing Page — strict design compliance (pricing.html)
   ═══════════════════════════════════════════════════════════ */

.pricing-standalone {
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  font-family: 'Geist','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
}

.pricing-page-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px; background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.pricing-page-brand {
  font-weight: 800; font-size: 1.1rem; color: var(--green);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.pricing-page-brand svg { width: 20px; height: 20px; }
.pricing-page-nav {
  margin-left: auto; display: flex; gap: 16px;
  font-size: 0.85rem; color: var(--muted);
}
.pricing-page-nav a { text-decoration: none; color: var(--muted); }
.pricing-page-nav a:hover { color: var(--green); }

.pricing-hero {
  max-width: 960px; margin: 0 auto;
  padding: 60px 32px 40px; text-align: center;
}
.pricing-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.pricing-hero p { color: var(--muted); font-size: 1.05rem; }

.pricing-grid {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px 60px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}

.pricing-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 200ms, box-shadow 200ms;
}
.pricing-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 4px 24px rgba(14,124,102,0.08);
}
.pricing-card.popular {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(14,124,102,0.12);
}

.promo-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}

.pricing-edition {
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.pricing-price {
  margin-bottom: 4px; display: flex; align-items: baseline; gap: 4px;
}
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price-cycle { font-size: 0.9rem; color: var(--muted); }
.pricing-sub-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }

.pricing-features {
  list-style: none; padding: 0; margin: 20px 0; flex: 1;
}
.pricing-features li {
  padding: 6px 0; font-size: 0.88rem; color: var(--ink);
  display: flex; align-items: flex-start; gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.pricing-features li::before {
  content: '';
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%230e7c66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.pricing-cta {
  display: inline-block; padding: 10px 24px;
  border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
  text-align: center; cursor: pointer; border: none;
  font-family: inherit; transition: all 150ms; text-decoration: none;
}
.pricing-cta.primary { background: var(--green); color: #fff; width: 100%; }
.pricing-cta.primary:hover { background: var(--green-bright); }
.pricing-cta.secondary {
  background: transparent; color: var(--green);
  border: 1px solid var(--green);
}
.pricing-cta.secondary:hover { background: rgba(14,124,102,0.06); }

/* Payment methods */
.payment-methods {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px 60px; text-align: center;
}
.payment-methods h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.payment-icons {
  display: flex; justify-content: center; gap: 24px; align-items: center;
}
.payment-icon {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
}
.payment-note {
  margin-top: 12px; font-size: 0.82rem; color: var(--muted);
}

/* Comparison table */
.comparison-section {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px 80px;
}
.comparison-section h2 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 24px; text-align: center;
}
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.comparison-table th, .comparison-table td {
  padding: 10px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  font-weight: 600; color: var(--muted); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface);
}
.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table .check { color: var(--green); font-weight: 700; }
.comparison-table .cross { color: var(--line); }

/* Enterprise section */
.enterprise-section {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px 80px;
}
.enterprise-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px;
}
.enterprise-copy h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 12px;
}
.enterprise-copy p {
  color: var(--muted); font-size: 0.95rem;
  line-height: 1.6; margin-bottom: 20px;
}
.enterprise-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; list-style: none; padding: 0; margin-bottom: 24px;
}
.enterprise-features li {
  font-size: 0.88rem; display: flex; align-items: center;
  gap: 6px; color: var(--ink);
}
.enterprise-features li::before {
  content: '✓'; color: var(--green); font-weight: 700;
}

.pricing-note {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px 60px; text-align: center;
  font-size: 0.82rem; color: var(--muted); line-height: 1.6;
}

.pricing-page-footer {
  background: #111318; color: rgba(255,255,255,0.5);
  padding: 32px 24px; text-align: center; font-size: 0.82rem;
}
.pricing-footer-links {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.pricing-footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
}
.pricing-footer-links a:hover { color: rgba(255,255,255,0.8); }
.pricing-page-footer p { margin-top: 12px; }

@media(max-width:768px){
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .enterprise-card { padding: 32px; }
  .comparison-section { overflow-x: auto; }
  .payment-icons { flex-direction: column; align-items: center; }
}

/* ═══ Community ═══ */
/* ═══ Community — matches open-design community.html ════════════════ */

/* ── Site Nav (sticky top bar) ── */
.community-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,245,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 0 24px;
}
.community-nav .nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.community-nav .nav-brand {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); letter-spacing: -0.02em; text-decoration: none;
}
.community-nav .nav-brand span { color: var(--green); }
.community-nav .nav-links { display: flex; gap: 24px; align-items: center; }
.community-nav .nav-links a {
  font-size: 0.85rem; color: var(--muted); font-weight: 500; text-decoration: none;
  transition: color 0.15s;
}
.community-nav .nav-links a:hover { color: var(--ink); }
.community-nav .nav-links a.active { color: var(--green); }
.community-nav .nav-right { display: flex; gap: 12px; align-items: center; }
.community-nav .mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.community-nav .mobile-toggle svg { width: 24px; height: 24px; color: var(--ink); }
.community-nav .mobile-menu { display: none; }
.community-nav .mobile-menu.open {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 24px 24px; border-bottom: 1px solid var(--line);
}
.community-nav .mobile-menu a { font-size: 0.9rem; color: var(--muted); padding: 4px 0; text-decoration: none; }
.community-nav .mobile-menu a:hover { color: var(--ink); }

/* ── Community Header ── */
.community-page { min-height: 100vh; background: var(--surface); }
.community-header {
  max-width: 1120px; margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.community-header h1 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  letter-spacing: -0.03em;
}
.community-header p { color: var(--muted); font-size: 0.95rem; }

/* ── Layout ── */
.community-layout {
  max-width: 1120px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
}

/* ── Sidebar ── */
.community-sidebar h3 {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.category-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-md);
  font-size: 0.88rem; color: var(--ink); cursor: pointer;
  transition: all 0.12s; border: none; background: none;
  text-align: left; width: 100%; font-family: inherit;
}
.cat-item:hover { background: var(--surface-strong); }
.cat-item.active { background: var(--green); color: #fff; }
.cat-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.cat-icon svg { width: 16px; height: 16px; }
.cat-count {
  margin-left: auto; font-size: 0.75rem;
  color: var(--muted); font-family: var(--font-mono);
}
.cat-item.active .cat-count { color: rgba(255,255,255,0.6); }

/* ── Topic List Header ── */
.topic-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.topic-list-header h2 { font-size: 1rem; font-weight: 600; }
.topic-sort {
  font-size: 0.82rem; color: var(--muted); display: flex; gap: 12px;
}
.topic-sort button {
  background: none; border: none; font-size: 0.82rem;
  color: var(--muted); cursor: pointer; padding: 2px 0;
  border-bottom: 1px solid transparent; font-family: inherit;
}
.topic-sort button:hover { color: var(--ink); }
.topic-sort button.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Topic List ── */
.community-main { min-width: 0; }
.topic-list { display: flex; flex-direction: column; }
.topic-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.15s; cursor: pointer; text-decoration: none; color: var(--ink);
}
.topic-item:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(14,124,102,0.06); }
.topic-pin {
  font-size: 0.68rem; font-weight: 600; padding: 2px 6px;
  border-radius: 3px; background: var(--gold); color: #fff; flex-shrink: 0;
}
.topic-lock {
  font-size: 0.68rem; font-weight: 600; padding: 2px 6px;
  border-radius: 3px; background: var(--muted); color: #fff; flex-shrink: 0;
}
.topic-title {
  flex: 1; font-size: 0.92rem; font-weight: 500;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topic-stats {
  display: flex; gap: 14px; font-size: 0.78rem;
  color: var(--muted); font-family: var(--font-mono); flex-shrink: 0;
}
.topic-stats span { display: flex; align-items: center; gap: 3px; }
.topic-stats svg { width: 13px; height: 13px; }

/* ── Empty State ── */
.community-empty { text-align: center; padding: 80px 24px; }
.community-empty p { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.community-empty .button { margin-top: 8px; }
.loading { text-align: center; padding: 60px; color: var(--muted); font-size: 0.9rem; }

/* ── New Topic Modal (overlay) ── */
.new-topic-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center; padding: 24px;
}
.new-topic-modal.open { display: flex; }
.modal-content {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.modal-content h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.modal-content .form-group { margin-bottom: 16px; }
.modal-content .form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 6px; color: var(--ink);
}
.modal-content .form-group input,
.modal-content .form-group select,
.modal-content .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--ink); background: #fff; transition: border-color 0.15s;
}
.modal-content .form-group textarea { resize: vertical; min-height: 160px; }
.modal-content .form-group input:focus,
.modal-content .form-group select:focus,
.modal-content .form-group textarea:focus { outline: none; border-color: var(--green); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ── Footer (matches design) ── */
.community-footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  padding: 48px 24px 32px;
}
.community-footer .footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.community-footer .footer-inner a {
  color: rgba(255,255,255,0.5); font-size: 0.82rem; text-decoration: none;
}
.community-footer .footer-inner a:hover { color: #fff; }
.community-footer .footer-brand {
  font-family: var(--font-mono); font-weight: 700;
  color: #fff; font-size: 0.95rem;
}
.community-footer .footer-links { display: flex; gap: 20px; }

/* ── Topic Detail Page ── */
.topic-page {
  max-width: 780px; margin: 0 auto;
  padding: 32px 24px; min-height: 60vh; background: var(--surface);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 24px;
}
.back-link:hover { color: var(--green); }
.topic-detail { margin-bottom: 32px; }
.topic-header h1 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.topic-meta {
  display: flex; gap: 16px; font-size: 0.82rem;
  color: var(--muted); margin-bottom: 20px;
}
.like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; color: var(--muted); cursor: pointer;
  font-size: 0.82rem; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.like-btn:hover { color: var(--coral); background: rgba(255,90,61,0.06); }
.topic-content { font-size: 0.92rem; line-height: 1.7; }
.replies-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.reply-item { padding: 16px 0; border-top: 1px solid var(--line); }
.reply-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.floor { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.reply-content { font-size: 0.9rem; line-height: 1.65; }
.reply-form { margin-top: 32px; }
.reply-form textarea {
  width: 100%; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 0.9rem; resize: vertical; min-height: 100px;
  background: #fff; color: var(--ink); font-family: inherit;
}
.reply-form textarea:focus { border-color: var(--green); outline: none; }
.reply-form .button { margin-top: 10px; }
.form-error { color: var(--coral); font-size: 0.85rem; margin-bottom: 10px; }
.topic-locked { text-align: center; padding: 20px; color: var(--muted); font-style: italic; }

/* ── New Topic Page (fallback for /community/new) ── */
.new-topic-page {
  max-width: 560px; margin: 0 auto;
  padding: 32px 24px; min-height: 60vh;
}
.new-topic-page h1 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.new-topic-form { display: flex; flex-direction: column; gap: 16px; }
.new-topic-form .form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 6px; color: var(--ink);
}
.new-topic-form input, .new-topic-form select, .new-topic-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 0.9rem; background: #fff; color: var(--ink); font-family: inherit;
}
.new-topic-form input:focus, .new-topic-form select:focus, .new-topic-form textarea:focus {
  outline: none; border-color: var(--green);
}
.new-topic-form textarea { min-height: 160px; resize: vertical; }

/* ── Stat icon (shared) ── */
.stat-icon { display: inline-flex; width: 14px; height: 14px; }
.stat-icon svg { width: 14px; height: 14px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .community-nav .nav-links,
  .community-nav .nav-right { display: none; }
  .community-nav .mobile-toggle { display: block; }
  .community-layout { grid-template-columns: 1fr; }
  .community-header h1 { font-size: 1.6rem; }
  .community-sidebar {
    display: flex; overflow-x: auto; gap: 4px; padding-bottom: 8px;
  }
  .category-list { flex-direction: row; gap: 4px; }
  .cat-item { white-space: nowrap; padding: 6px 10px; }
  .topic-stats { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Updated Homepage — Capabilities, Agents, Install Tabs
   ═══════════════════════════════════════════════════════════ */

/* Install tabs */
.install-tabs {
  display: flex; gap: 2px; margin-bottom: 0;
}
.install-tabs .install-tab {
  padding: 8px 16px; border: 1px solid var(--line); border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface); color: var(--muted); cursor: pointer;
  font-size: 0.8rem; font-family: inherit;
}
.install-tabs .install-tab.active {
  background: var(--code-bg); color: var(--green); font-weight: 600;
}
.install-cmd {
  display: flex; align-items: center; gap: 8px;
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 12px 16px;
}
.install-cmd code { flex: 1; font-size: 0.9rem; color: #e0e0e0; }
.install-cmd button {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 0.8rem;
}
.install-cmd button.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* Hero meta */
.hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  margin-top: 24px; font-size: 0.85rem; color: var(--muted);
}
.hero-meta span { display: flex; gap: 4px; }
.hero-meta strong { color: var(--green); }

/* Problem cards — numbered */
.problem-num {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: rgba(14,124,102,0.1); color: var(--green);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 12px;
}

/* How loop label */
.how-loop-label {
  text-align: center; margin-top: 32px; font-size: 0.9rem;
  color: var(--muted); font-style: italic;
}

/* Capability grid — 8 cards */
.capability-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 40px;
}
.capability-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: box-shadow 0.2s;
}
.capability-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.capability-icon {
  width: 40px; height: 40px; margin-bottom: 16px; color: var(--green);
}
.capability-icon svg { width: 40px; height: 40px; }
.capability-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.capability-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.capability-tags span {
  padding: 3px 10px; border-radius: 99px; font-size: 0.7rem;
  background: rgba(14,124,102,0.08); color: var(--green); font-weight: 500;
}

/* Agent grid on homepage */
.agent-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
.agent-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 24px 20px; text-align: center; transition: all .2s;
}
.agent-card:hover { border-color: rgba(21,163,127,0.4); background: rgba(21,163,127,0.06); }
.agent-name { font-size: 1rem; font-weight: 700; color: #e8e8e2; margin-bottom: 10px; }
.agent-cmd {
  display: block; padding: 6px 10px; background: rgba(0,0,0,0.2); border-radius: 6px;
  font-size: .72rem; color: rgba(232,232,226,0.4); font-family: var(--font-m);
}
.agent-note { text-align: center; margin-top: 24px; font-size: .88rem; color: rgba(232,232,226,0.4); }
.agent-note strong { color: #15a37f; }
.agent-note-sub { margin-top: 6px; font-size: .8rem; color: rgba(232,232,226,0.3); }

/* Code examples grid */
.code-examples-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 32px;
}
.code-example-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-example-card h4 { padding: 16px 20px 0; font-size: 0.95rem; color: var(--ink); }
.code-example-card pre {
  margin: 12px; padding: 16px; background: var(--code-bg); border-radius: var(--radius-md);
  overflow-x: auto;
}
.code-example-card code {
  font-size: 0.78rem; line-height: 1.6; color: #c0c0c0; white-space: pre;
}

/* Stats row on homepage */
.stats-row-home {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  text-align: center; padding: 40px 0;
}
.stat-item { }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--green); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   Standalone Pages (features, agents, sdk, enterprise, changelog)
   ═══════════════════════════════════════════════════════════ */

.page-standalone {
  min-height: 100vh; display: flex; flex-direction: column;
}

/* Shared page header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--line);
}
.page-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.page-brand svg { width: 28px; height: 28px; color: var(--green); }
.page-nav { display: flex; gap: 20px; }
.page-nav a {
  text-decoration: none; color: var(--muted); font-size: 0.9rem;
}
.page-nav a:hover { color: var(--green); }

/* Shared page hero */
.page-hero {
  text-align: center; padding: 64px 32px 48px;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* Hero command for agents page */
.agents-hero-cmd {
  margin-top: 24px;
}
.agents-hero-cmd code {
  display: inline-block; padding: 12px 24px; background: var(--code-bg);
  border-radius: var(--radius-md); font-size: 1rem; color: var(--green);
}

/* ── Features page ── */
.features-content { max-width: 960px; margin: 0 auto; padding: 0 32px 64px; }
.feature-section {
  margin-bottom: 64px; border-bottom: 1px solid var(--line); padding-bottom: 48px;
}
.feature-section:last-child { border-bottom: none; }
.feature-number {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--green); background: rgba(14,124,102,0.1); padding: 4px 12px;
  border-radius: 99px; margin-bottom: 16px;
}
.feature-section h2 { font-size: 1.8rem; margin-bottom: 12px; color: var(--ink); }
.feature-desc { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.feature-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-detail-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.feature-detail-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.feature-detail-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── Agents page ── */
.agents-content { max-width: 1100px; margin: 0 auto; padding: 0 32px 64px; }
.agents-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.agent-guide-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.agent-guide-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.agent-guide-header h3 { font-size: 1.2rem; color: var(--ink); }
.agent-guide-header code {
  padding: 6px 14px; background: var(--code-bg); border-radius: var(--radius-md);
  font-size: 0.8rem; color: var(--green);
}
.agent-guide-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
.agent-guide-steps h4 { font-size: 0.85rem; color: var(--ink); margin-bottom: 8px; }
.agent-guide-steps ol { padding-left: 20px; }
.agent-guide-steps li {
  font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 4px;
}

/* MCP tools grid */
.mcp-tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 32px; text-align: left;
}
.mcp-tool-group {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 20px;
}
.mcp-tool-group h4 { font-size: 0.9rem; color: var(--green); margin-bottom: 12px; }
.mcp-tool-group ul { list-style: none; padding: 0; }
.mcp-tool-group li {
  font-size: 0.8rem; color: #b0b0b0; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mcp-tool-group li:last-child { border-bottom: none; }

/* ── SDK page ── */
.sdk-content { max-width: 960px; margin: 0 auto; padding: 0 32px 64px; }
.sdk-section { margin-bottom: 64px; }
.sdk-badge {
  display: inline-block; padding: 4px 14px; border-radius: 99px;
  background: rgba(14,124,102,0.1); color: var(--green); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 12px;
}
.sdk-section h2 { font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.sdk-desc { font-size: 0.95rem; color: var(--muted); margin-bottom: 24px; }
.sdk-code-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.sdk-code-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.sdk-code-card h4 { padding: 14px 20px 0; font-size: 0.85rem; color: var(--ink); }
.sdk-code-card pre {
  margin: 12px; padding: 16px; background: var(--code-bg); border-radius: var(--radius-md);
  overflow-x: auto;
}
.sdk-code-card code { font-size: 0.78rem; line-height: 1.6; color: #c0c0c0; white-space: pre; }

/* ── Enterprise page ── */
.enterprise-content { }
.enterprise-value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px;
}
.enterprise-value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.ev-icon { font-size: 2rem; margin-bottom: 12px; }
.enterprise-value-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.enterprise-value-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.enterprise-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px;
}
.ef-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px;
}
.ef-item h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.ef-item p { font-size: 0.85rem; color: #b0b0b0; line-height: 1.5; }

.compliance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px;
}
.compliance-item {
  text-align: center; padding: 24px;
}
.compliance-item h3 { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.compliance-item p { font-size: 0.8rem; color: var(--muted); }

.support-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.support-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; text-align: center;
}
.support-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.support-card p { font-size: 0.85rem; color: var(--muted); }

.enterprise-contact { text-align: center; margin-top: 32px; }
.contact-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ── Changelog page ── */
.changelog-content { max-width: 800px; margin: 0 auto; padding: 0 32px 64px; }
.changelog-timeline { position: relative; }
.changelog-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
.changelog-entry {
  margin-left: 24px; margin-bottom: 48px; position: relative;
}
.changelog-entry::before {
  content: ''; position: absolute; left: -28px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
}
.changelog-version {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.changelog-version h3 { font-size: 1.3rem; color: var(--ink); }
.changelog-date { font-size: 0.85rem; color: var(--muted); }
.changelog-highlights {
  list-style: none; padding: 0;
}
.changelog-highlights li {
  padding: 6px 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.changelog-highlights li:last-child { border-bottom: none; }
.changelog-highlights li::before {
  content: '→ '; color: var(--green); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   Responsive — New Pages
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .code-examples-grid { grid-template-columns: 1fr; }
  .stats-row-home { grid-template-columns: repeat(3, 1fr); }
  .feature-details { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .mcp-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .sdk-code-grid { grid-template-columns: 1fr; }
  .enterprise-value-grid { grid-template-columns: 1fr; }
  .enterprise-features-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .capability-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .stats-row-home { grid-template-columns: repeat(2, 1fr); }
  .install-tabs { flex-wrap: wrap; }
  .install-tabs .install-tab { font-size: 0.7rem; padding: 6px 10px; }
  .page-header { padding: 12px 16px; }
  .page-hero { padding: 40px 16px 32px; }
  .page-hero h1 { font-size: 1.8rem; }
  .feature-section h2 { font-size: 1.4rem; }
  .mcp-tools-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .changelog-entry { margin-left: 16px; }
  .changelog-entry::before { left: -20px; }
  .changelog-timeline::before { left: 0; }
}

/* ═══════════════════════════════════════════
   Design Partner Page
   ═══════════════════════════════════════════ */
.dp-page {
  background: var(--surface);
  color: var(--ink);
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.dp-hero {
  background: var(--dark);
  color: #f7f8f5;
  padding: 120px 32px 80px;
  text-align: center;
}
.dp-hero-inner { max-width: 720px; margin: 0 auto; }
.dp-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(21, 163, 127, 0.4);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--green-bright);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.dp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}
.dp-hero-desc {
  font-size: 1.1rem;
  color: rgba(247, 248, 245, 0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}
.dp-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.dp-cta-btn:hover { background: var(--green-bright); }
.dp-cta-btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s;
}
.dp-cta-btn-outline:hover { border-color: var(--green); color: var(--green); }
.dp-section {
  padding: 80px 32px;
  max-width: 960px;
  margin: 0 auto;
}
.dp-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}
.dp-section-alt { background: var(--surface-strong); }
.dp-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dp-benefit-card {
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dp-benefit-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.dp-benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.dp-benefit-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.dp-benefit-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.dp-criteria { max-width: 640px; margin: 0 auto; }
.dp-criterion {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.dp-criterion:last-child { border-bottom: none; }
.dp-criterion-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  min-width: 48px;
}
.dp-criterion h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.dp-criterion p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.dp-timeline { max-width: 600px; margin: 0 auto; position: relative; }
.dp-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.dp-timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  position: relative;
}
.dp-timeline-dot {
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
}
.dp-timeline h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.dp-timeline p { color: var(--muted); font-size: 0.92rem; margin: 0 0 4px; }
.dp-timeline-time {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}
.dp-form { max-width: 640px; margin: 0 auto; }
.dp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dp-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.dp-form-group input,
.dp-form-group select,
.dp-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}
.dp-form-group input:focus,
.dp-form-group select:focus,
.dp-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.dp-form-full { grid-column: 1 / -1; }
.dp-submit-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.dp-submit-btn:hover { background: var(--green-bright); }
.dp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.dp-form-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.dp-form-note a { color: var(--green); }
.dp-error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.dp-success {
  text-align: center;
  padding: 48px;
}
.dp-success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.dp-success h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.dp-success p { color: var(--muted); margin: 0; }
.dp-faq { max-width: 640px; margin: 0 auto; }
.dp-faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.dp-faq-item:last-child { border-bottom: none; }
.dp-faq-item h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.dp-faq-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.dp-section-cta { text-align: center; }
.dp-section-cta p { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; }
.dp-cta-buttons { display: flex; gap: 16px; justify-content: center; }
.dp-footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--line);
}
.dp-footer a { color: var(--green); font-size: 0.92rem; }

/* DP responsive */
@media (max-width: 768px) {
  .dp-hero { padding: 100px 20px 60px; }
  .dp-section { padding: 48px 20px; }
  .dp-benefits { grid-template-columns: 1fr; }
  .dp-form-grid { grid-template-columns: 1fr; }
  .dp-cta-buttons { flex-direction: column; align-items: center; }
}

[data-theme="dark"] .dp-benefit-card {
  background: var(--surface-strong);
  border-color: var(--line);
}
[data-theme="dark"] .dp-form-group input,
[data-theme="dark"] .dp-form-group select,
[data-theme="dark"] .dp-form-group textarea {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* ============================================================
   Interactive Demo Playground
   ============================================================ */
.demo-playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
.demo-terminal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: oklch(12% .015 250);
}
.demo-term-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.demo-term-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-term-header .dot.r { background: #ff5f57; }
.demo-term-header .dot.y { background: #febc2e; }
.demo-term-header .dot.g { background: #28c840; }
.demo-term-header span { flex: 1; text-align: center; font-size: .72rem; color: rgba(255,255,255,.3); font-family: var(--font-mono); }
.demo-term-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-step {}
.demo-prompt {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent-b);
  margin-bottom: 6px;
}
.demo-result {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: rgba(232,232,226,.55);
  white-space: pre-wrap;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.03);
  border-left: 2px solid rgba(21,163,127,.3);
}
.demo-explanation {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-expl-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}
.demo-expl-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.demo-expl-item h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.demo-expl-item p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Video Section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}
.video-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.video-embed {
  aspect-ratio: 16/9;
  background: oklch(12% .015 250);
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(21,163,127,.15);
  color: var(--accent-b);
  border: 2px solid rgba(21,163,127,.3);
  transition: all .2s;
}
.video-card:hover .video-play-icon {
  background: rgba(21,163,127,.25);
  transform: scale(1.08);
}
.video-placeholder p {
  color: rgba(232,232,226,.6);
  font-size: .9rem;
  font-weight: 500;
}
.video-placeholder span {
  font-size: .72rem;
  color: rgba(232,232,226,.3);
  font-family: var(--font-mono);
}
.video-card h4 {
  padding: 16px 16px 4px;
  font-size: 1rem;
  font-weight: 700;
}
.video-card > p {
  padding: 0 16px 16px;
  font-size: .86rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .demo-playground { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Compare Page
   ============================================================ */
.compare-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.compare-intro {
  margin-bottom: 64px;
}
.compare-intro h2,
.compare-table-section h2,
.compare-differentiators h2,
.compare-when h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}
.compare-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-diff-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare-diff-card.hmg-card {
  border-color: var(--accent);
  background: rgba(21,163,127,.04);
}
.compare-diff-card.other-card {
  background: var(--surface);
}
.diff-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(21,163,127,.1);
  color: var(--accent);
}
.compare-diff-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.compare-diff-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-diff-card li {
  padding-left: 20px;
  position: relative;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}
.compare-diff-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.compare-table-section {
  margin-bottom: 64px;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  background: oklch(97% .004 240);
  border-bottom: 2px solid var(--border);
}
.compare-table th.hmg-col {
  background: rgba(21,163,127,.06);
  color: var(--accent);
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.compare-table .dim-cell {
  font-weight: 600;
  white-space: nowrap;
  color: var(--fg);
}
.compare-table .hmg-cell {
  background: rgba(21,163,127,.02);
  font-weight: 500;
}
.compare-differentiators {
  margin-bottom: 64px;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.diff-item {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.diff-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.diff-item p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.compare-when {
  margin-bottom: 64px;
}
.when-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.when-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.when-card.choose-hmg {
  border-color: var(--accent);
  background: rgba(21,163,127,.04);
}
.when-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}
.when-card.choose-hmg h3 {
  color: var(--accent);
}
.when-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.when-card li {
  padding-left: 20px;
  position: relative;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}
.when-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 1100px) {
  .compare-diff-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .when-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ── Missing styles for pre-existing HTML classes ── */

/* payment-icon-svg: inline SVG payment icons on pricing page */
.payment-icon-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  margin-right: 4px;
}
.payment-icon-svg svg {
  width: 100%;
  height: 100%;
}

/* rss-link: blog page RSS feed link */
.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s;
}
.rss-link:hover {
  color: var(--accent-b);
}

/* doc-number: docs page topic number badge */
.doc-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(14,124,102,0.08);
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 8px;
}

/* code-toolbar: docs page code example header */
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: oklch(97% 0.003 240);
}
.code-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  margin-right: 12px;
}
.code-language {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
}
