/* ============================================================
   gitlawb marketplace — stylesheet
   terminal color scheme · JetBrains Mono · accent #5e6ad2
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:            #08090a;
  --panel:         #0d0e10;
  --border:        rgba(255,255,255,0.06);
  --border-m:      rgba(255,255,255,0.10);
  --text:          rgba(255,255,255,0.85);
  --text-dim:      rgba(255,255,255,0.35);
  --text-muted:    rgba(255,255,255,0.20);
  --accent:        #5e6ad2;
  --accent-dim:    rgba(94,106,210,0.15);
  --accent-border: rgba(94,106,210,0.35);
  --yellow:        #eab308;
  --red:           #ef4444;
  --orange:        #f97316;
  --cyan:          #06b6d4;
  --gold:          #d4a853;
  --pink:          #ec4899;
  --purple-soft:   #a78bfa;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 12px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ── Grid Background ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Typography helpers ───────────────────────────────────── */
.label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mono { font-family: 'JetBrains Mono', monospace; }
.dim  { color: var(--text-dim); }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }

/* ── Nav / Header ─────────────────────────────────────────── */
.mkt-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 48px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-spacer { flex: 1; }

.nav-wallet {
  font-size: 10px;
  color: var(--text-dim);
  padding: 3px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-m);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
}

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Hero strip ───────────────────────────────────────────── */
.hero-strip {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 18px;
  background: var(--panel);
}
.hero-strip h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.hero-contract {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.hero-contract span {
  color: var(--accent);
  opacity: 0.6;
}

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.stat-item {
  flex: 1;
  padding: 12px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
}
.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Stat card (standalone) ───────────────────────────────── */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
}
.stat-card .stat-value { font-size: 22px; font-weight: 700; color: var(--text); }
.stat-card .stat-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.85; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-border);
}
.btn-outline:hover { background: var(--accent-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-m);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.btn-sm {
  padding: 4px 10px;
  font-size: 10px;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-m);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
  white-space: nowrap;
}

.tag-agent     { border-color: rgba(94,106,210,0.3); color: var(--accent); }
.tag-trading   { border-color: rgba(234,179,8,0.3);  color: var(--yellow); }
.tag-monitoring{ border-color: rgba(6,182,212,0.3);  color: var(--cyan); }
.tag-coding    { border-color: rgba(167,139,250,0.3);color: var(--purple-soft); }
.tag-research  { border-color: rgba(249,115,22,0.3); color: var(--orange); }
.tag-content   { border-color: rgba(236,72,153,0.3); color: var(--pink); }
.tag-general   { border-color: var(--border-m);      color: var(--text-dim); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-builder  { color: var(--cyan);        border-color: rgba(6,182,212,0.35);   background: rgba(6,182,212,0.08); }
.badge-whale    { color: var(--gold);        border-color: rgba(212,168,83,0.35);  background: rgba(212,168,83,0.08); }
.badge-pioneer  { color: var(--purple-soft); border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }
.badge-starred  { color: var(--yellow);      border-color: rgba(234,179,8,0.35);   background: rgba(234,179,8,0.08); }
.badge-og       { color: var(--orange);      border-color: rgba(249,115,22,0.35);  background: rgba(249,115,22,0.08); }
.badge-verified { color: var(--accent);      border-color: var(--accent-border);   background: var(--accent-dim); }
.badge-score    { color: var(--text);        border-color: var(--border-m);        background: rgba(255,255,255,0.04); font-size: 10px; }

/* ── Filter Sidebar ───────────────────────────────────────── */
.filter-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 60px;
}

.filter-section {
  margin-bottom: 18px;
}
.filter-section:last-of-type { margin-bottom: 12px; }

.filter-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.filter-search {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-m);
  border-radius: 4px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.15s;
}
.filter-search:focus { border-color: var(--accent-border); }
.filter-search::placeholder { color: var(--text-muted); }

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.12s;
}
.filter-check:hover { color: var(--text); }
.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  accent-color: var(--accent);
  width: 12px; height: 12px;
  cursor: pointer;
}

/* ── Main grid layout ─────────────────────────────────────── */
.marketplace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  padding: 16px 24px;
  align-items: start;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-row {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.results-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Agent Cards Grid ─────────────────────────────────────── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agent-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.agent-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.agent-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.card-header-info { flex: 1; min-width: 0; }

.card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-did {
  font-size: 9px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.card-score {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.card-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-stats {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text-dim);
}
.card-stats span { display: flex; align-items: center; gap: 3px; }

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.card-price .price-unit {
  font-size: 9px;
  font-weight: 400;
  color: var(--text-dim);
}

/* ── Shimmer / Loading ────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 3px;
}

.shimmer-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shimmer-line {
  height: 10px;
  border-radius: 3px;
}
.shimmer-box {
  height: 32px;
  width: 32px;
  border-radius: 4px;
}

/* ── Error state ──────────────────────────────────────────── */
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.error-state .error-icon { font-size: 24px; margin-bottom: 10px; }
.error-state .error-msg  { font-size: 12px; color: var(--red); margin-bottom: 6px; }
.error-state .error-sub  { font-size: 10px; color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--border-m);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-m);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  margin-bottom: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.wallet-option:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.wallet-icon { font-size: 20px; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--border-m);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideUp 0.2s ease;
}
.toast.toast-success { border-left: 3px solid var(--accent); }
.toast.toast-error   { border-left: 3px solid var(--red); }
.toast.toast-warn    { border-left: 3px solid var(--yellow); }

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Table ────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.data-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Step wizard ──────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  flex-shrink: 0;
}

.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step.active { color: var(--accent); }

.step.done .step-num {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.step.done { color: var(--text-dim); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-m);
  min-width: 20px;
}
.step.done + .step-line { background: var(--accent-border); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-m);
  border-radius: 4px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent-border); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
}
.form-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 13px; height: 13px;
  cursor: pointer;
}
.form-check:hover { color: var(--text); }

.form-error {
  font-size: 10px;
  color: var(--red);
  margin-top: 4px;
}
.form-success {
  font-size: 10px;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Section headers ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Panel/card generic ───────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.panel-body { padding: 16px; }

/* ── Agent profile page ───────────────────────────────────── */
.agent-hero {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.agent-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.agent-avatar-lg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-dim);
  border: 2px solid var(--accent-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.agent-hero-info { flex: 1; }

.agent-hero-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.2;
}

.agent-hero-did {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.agent-hero-stats {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 10px;
}
.agent-hero-stats span { display: flex; align-items: center; gap: 4px; }
.agent-hero-stats .sep { color: var(--border-m); }

.agent-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Profile layout ───────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 16px 24px;
  align-items: start;
}

/* ── Repo row ─────────────────────────────────────────────── */
.repo-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.repo-row:last-child { border-bottom: none; }

.repo-name-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.repo-name-link:hover { text-decoration: underline; }

.repo-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.repo-clone {
  font-size: 9px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: color 0.15s;
}
.repo-clone:hover { color: var(--accent); }

/* ── Hire panel ───────────────────────────────────────────── */
.hire-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hire-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.hire-price .unit { font-size: 11px; font-weight: 400; color: var(--text-dim); }

.hire-escrow {
  font-size: 9px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.contract-addr {
  font-size: 9px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.connect-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.connect-wall .connect-icon { font-size: 32px; margin-bottom: 4px; }
.connect-wall h2 { font-size: 16px; font-weight: 700; color: var(--text); }
.connect-wall p  { font-size: 11px; color: var(--text-dim); max-width: 300px; }

/* ── Create wizard ────────────────────────────────────────── */
.wizard-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

.wizard-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 12px;
}

.wizard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.wizard-subtitle {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.verify-result {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 10px;
  margin-top: 8px;
  border: 1px solid transparent;
}
.verify-result.success {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.verify-result.error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}

.preview-card {
  background: var(--bg);
  border: 1px solid var(--border-m);
  border-radius: 6px;
  padding: 14px;
}

/* ── Footer ───────────────────────────────────────────────── */
.mkt-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 10px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 9px; color: var(--text-muted); text-align: right; }

/* ── Back link ────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  width: 100%;
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ── Network / DID display ────────────────────────────────── */
.network-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.network-item:last-child { border-bottom: none; }
.network-key { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.network-val { font-size: 10px; color: var(--text-dim); word-break: break-all; font-family: 'JetBrains Mono', monospace; }

/* ── GLT info box ─────────────────────────────────────────── */
.glt-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
}
.glt-box-title { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.glt-box-body  { font-size: 10px; color: var(--text-dim); line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
  .filter-sidebar { position: static; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; }
  .dashboard-stats-grid { grid-template-columns: 1fr; }
  .mkt-nav { gap: 12px; padding: 0 16px; }
  .nav-links { display: none; }
  .hero-strip { padding: 16px; }
  .step-indicator { gap: 4px; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .agents-grid { grid-template-columns: 1fr; }
}
