/* ════════════════════════════════════════════════════════════
   EruditePay Marketplace — Redesign
   Erudite Intelligence LLC
   Author: AI Coder / Vector
   Created: 2026-04-04
   Purpose: Shared stylesheet for all marketplace pages
   ════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #10b981;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 6px;
  --nav-height: 64px;
  --container: 1200px;
  --sidebar-w: 220px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--text);
  line-height: 1.25;
  font-weight: 400;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

code, pre, .mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.nav-brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-brand:hover { text-decoration: none; color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
  margin-left: auto;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: rgba(37,99,235,0.08);
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Page Layout ──────────────────────────────────────────── */
.page {
  padding: 40px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.page-header { margin-bottom: 32px; }
.page-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
}

/* ── Endpoint Grid ────────────────────────────────────────── */
.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.endpoint-card:hover {
  border-color: var(--accent);
}
.ep-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ep-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}
.ep-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.ep-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.ep-price {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--success);
  font-size: 14px;
}
.ep-provider {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

/* ── Badges / Pills ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
}
.badge-green  { background: rgba(16,185,129,0.12); color: var(--success); border-color: rgba(16,185,129,0.25); }
.badge-blue   { background: rgba(37,99,235,0.12);  color: var(--accent);  border-color: rgba(37,99,235,0.25);  }
.badge-yellow { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);  color: var(--error);   border-color: rgba(239,68,68,0.25);  }
.badge-purple { background: rgba(168,85,247,0.12); color: #a855f7;        border-color: rgba(168,85,247,0.25); }

/* ── Search Bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
  flex: 1;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  font-family: "Plus Jakarta Sans", sans-serif;
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-bar button:hover { color: var(--text); }

/* ── Filter Pills ─────────────────────────────────────────── */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--error); }

/* ── Tables (Bloomberg-style) ─────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── Stats Row ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ── Stats Bar (inline compact) ───────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.stats-bar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stats-bar-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.stats-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Revenue Split Display ────────────────────────────────── */
.revenue-split {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.revenue-split-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  text-align: center;
}
.revenue-split-segment.provider {
  flex: 78.5;
  background: rgba(16,185,129,0.06);
  border-right: 1px solid var(--border);
}
.revenue-split-segment.platform {
  flex: 21.5;
  background: var(--bg-card);
}
.revenue-split-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.revenue-split-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  padding: 80px 0 48px;
}
.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.25); color: var(--success); }
.alert-error   { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.25);  color: var(--error);   }
.alert-info    { background: rgba(37,99,235,0.08);   border-color: rgba(37,99,235,0.2);   color: var(--accent);  }
.alert-warning { background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.25); color: var(--warning); }

/* ── Code Blocks ──────────────────────────────────────────── */
pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}
pre code { background: none; border: none; padding: 0; font-size: 13px; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.page-btn:hover { border-color: var(--text-muted); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.page-btn.ellipsis { border: none; background: transparent; cursor: default; color: var(--text-muted); }

/* ── Sidebar Layout ───────────────────────────────────────── */
.sidebar-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main-content { flex: 1; min-width: 0; }
.sidebar-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 4px 10px;
  margin-top: 12px;
  margin-bottom: 2px;
}
.sidebar-section:first-child { margin-top: 0; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: rgba(37,99,235,0.1); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
}
.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}
.footer a:hover { color: var(--text); text-decoration: none; }
.footer p {
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px 0;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Loader & States ──────────────────────────────────────── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-muted);
  text-align: center;
}
.empty-state h3 { font-size: 1.1rem; color: var(--text); }
.empty-state p { font-size: 14px; max-width: 360px; }

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

/* ── Utility ──────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--success); }
.text-red    { color: var(--error); }
.text-yellow { color: var(--warning); }
.text-blue   { color: var(--accent); }
.text-purple { color: #a855f7; }

.mt-0  { margin-top: 0; }    .mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; } .mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; }  .gap-16 { gap: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }

/* ── Endpoint Detail Page Extras ──────────────────────────── */
.ep-header { margin-bottom: 28px; }
.ep-header h1 { font-size: 1.8rem; margin: 10px 0 8px; }
.ep-header-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ep-description { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.stat-mini-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-mini {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-mini-value { font-family: "JetBrains Mono", monospace; font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-mini-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.chains-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.sidebar-card-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 14px;
}
.price-big { font-family: "JetBrains Mono", monospace; font-size: 1.8rem; font-weight: 700; color: var(--success); line-height: 1; }
.price-per { font-size: 12px; color: var(--text-muted); margin-top: 4px; margin-bottom: 16px; }

.provider-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.provider-name { font-size: 14px; font-weight: 600; color: var(--text); }
.provider-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

.code-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.code-tab-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-muted); padding: 5px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: "Plus Jakarta Sans", sans-serif;
  transition: background 0.15s, color 0.15s;
}
.code-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.code-tab-content { display: none; }
.code-tab-content.active { display: block; }

.try-response-wrap { margin-top: 16px; display: none; }
.try-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.try-status-badge {
  padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  font-family: "JetBrains Mono", monospace;
}
.try-status-badge.ok  { background: rgba(16,185,129,0.12); color: var(--success); border-color: rgba(16,185,129,0.25); }
.try-status-badge.err { background: rgba(239,68,68,0.1);  color: var(--error);   border-color: rgba(239,68,68,0.25); }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent); }

/* ── Section Heading (left-aligned) ───────────────────────── */
.section-heading {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── Responsive: 375px ────────────────────────────────────── */
@media (max-width: 375px) {
  .hero h1 { font-size: 1.6rem; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
}

/* ── Responsive: 768px ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }
  .nav-hamburger { display: block; }

  .sidebar-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-section { display: none; }
  .sidebar-link { padding: 5px 10px; font-size: 12px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.3rem; }

  .endpoint-grid { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 32px; }
  .hero p { font-size: 15px; }

  .page { padding: 24px 16px; }
  .page-title { font-size: 1.5rem; }

  .pagination { gap: 2px; }
  .page-btn { width: 32px; height: 32px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .ep-right-sidebar { width: 100% !important; }

  .stats-bar { flex-wrap: wrap; gap: 16px; }

  .revenue-split { flex-direction: column; }
  .revenue-split-segment.provider { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Responsive: 1024px ───────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .endpoint-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── Responsive: 1440px+ ──────────────────────────────────── */
@media (min-width: 1441px) {
  :root { --container: 1320px; }
}
