:root {
  --bg: #080600;
  --bg2: #0e0900;
  --bg3: #160d00;
  --border: #2e1a00;
  --text: #e8e8e8;
  --text-muted: #a07030;
  --accent: #f7931a;
  --accent-dim: #c47512;
  --purple: #8B5CF6;
  --purple-shadow: #4c1b9a;
  --purple-glow: rgba(139, 92, 246, 0.25);
  --purple-dim: rgba(139, 92, 246, 0.12);
  --green: #c88010;
  --red: #ff4444;
  --yellow: #ffcc00;
  --mono: 'Share Tech Mono', 'Courier New', Courier, monospace;
  --display: 'Share Tech Mono', monospace;
  --vt: 'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #030200;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.13) 2px,
      rgba(0, 0, 0, 0.13) 3px
    ),
    radial-gradient(ellipse 120% 120% at 50% 40%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.85) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  background-size: auto, auto, 320px 320px;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-shadow: none;
}

/* Signal indicator — thin gradient bar at top of every page */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--accent) 50%, var(--purple) 100%);
  flex-shrink: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(20, 16, 14, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.4rem;
  font-family: var(--display);
  font-weight: 400;
  color: var(--purple);
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { color: var(--purple); text-decoration: none; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: rgba(232, 232, 232, 0.65); font-size: 0.9rem; font-family: var(--display); letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-auth { display: flex; align-items: center; gap: 1rem; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.nav-auth-mobile { display: none; }
.nav-auth a { color: rgba(232, 232, 232, 0.65); font-size: 0.9rem; font-family: var(--display); letter-spacing: 0.04em; }
.nav-auth a:hover { color: var(--text); text-decoration: none; }
.nav-logout { color: rgba(232, 232, 232, 0.65); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: 0.75rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: opacity 0.15s; }
.hamburger.open span:nth-child(2) { opacity: 0; }

main { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 2rem; }

footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mono { font-family: var(--mono); font-size: 0.9em; }
.small { font-size: 0.85em; }
.break-all { word-break: break-all; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 4px 4px 3px 3px;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--display);
  position: relative;
  top: 0;
  transition: top 0.06s, box-shadow 0.06s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

/* Keycap button — purple face, key-depth shadow, orange glow */
.btn-primary {
  background: linear-gradient(160deg, #8f62e8 0%, var(--purple) 45%, #5b30c8 100%);
  color: #fff;
  font-weight: 700;
  border-top: 1px solid rgba(160, 130, 220, 0.25);
  border-left: 1px solid rgba(140, 110, 200, 0.15);
  border-right: 1px solid rgba(30, 5, 90, 0.7);
  border-bottom: 5px solid #3a1880;
  box-shadow: 0 6px 0 #1a0840;
}
.btn-primary:hover {
  box-shadow: 0 6px 0 #1a0840;
  text-decoration: none;
  opacity: 1;
}
.btn-primary:active {
  top: 4px;
  border-bottom-width: 2px;
  box-shadow: 0 2px 0 #1a0840;
  opacity: 1;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; top: 0; box-shadow: 0 6px 0 #1a0840; }

/* Dark keycap — secondary */
.btn-secondary {
  background: linear-gradient(160deg, #2e2e2e 0%, #1a1a1a 45%, #0a0a0a 100%);
  color: var(--text);
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(0,0,0,0.7);
  border-bottom: 5px solid #0a0600;
  box-shadow: 0 6px 0 #000;
}
.btn-secondary:hover { box-shadow: 0 6px 0 #000; text-decoration: none; opacity: 1; }
.btn-secondary:active { top: 4px; border-bottom-width: 2px; box-shadow: 0 2px 0 #000; opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { opacity: 0.8; text-decoration: none; }
.small.btn-ghost { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}
.hero h1 { font-size: 2.4rem; font-family: var(--display); font-weight: 400; line-height: 1.2; margin-bottom: 1rem; max-width: 700px; letter-spacing: 0.03em; }
.tagline { color: rgba(232, 232, 232, 0.7); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: nowrap; align-items: stretch; padding-right: 6px; padding-bottom: 6px; }
.cta-row .btn-primary { text-align: center; line-height: 1.3; flex: 1; padding: 0.55rem 0.75rem; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.05em; }

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.5rem 2rem;
  padding-top: 3.5rem;
  background: rgba(10, 6, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 160, 20, 0.12);
  border-radius: 4px;
  position: relative;
  margin-bottom: 3rem;
  box-shadow: inset 0 1px 0 rgba(255,160,20,0.05), 0 4px 0 #000;
}
.stats-bar::before {
  content: '>_';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 160, 20, 0.06);
  color: rgba(180, 120, 30, 0.5);
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid rgba(255, 150, 10, 0.08);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0 2rem;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-sep {
  color: var(--border);
  font-size: 1.8rem;
  font-family: var(--mono);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
.stat-value {
  font-size: 2.8rem;
  font-family: var(--vt);
  color: #ffb830;
  text-shadow:
    0 0 8px rgba(255, 184, 48, 0.45),
    0 0 20px rgba(255, 140, 0, 0.15),
    0 0 40px rgba(255, 100, 0, 0.06);
  line-height: 1;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 160, 20, 0.2);
  padding-bottom: 0.3rem;
  width: 100%;
}
.stat-value::after {
  content: '▮';
  font-size: 0.55em;
  vertical-align: middle;
  margin-left: 0.1em;
  color: var(--accent);
  animation: stat-blink 1.4s step-end infinite;
}
@keyframes stat-blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}
.stat-label {
  font-size: 0.65rem;
  font-family: var(--display);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.3rem;
}

/* How it works */
.how-it-works { margin-bottom: 3rem; }
.how-it-works h2 { font-size: 0.75rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; color: rgba(232, 232, 232, 0.75); margin-bottom: 1.5rem; padding-left: 0.75rem; border-left: 3px solid var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.step-num { font-family: var(--vt); font-size: 2.2rem; color: var(--accent); text-shadow: 0 0 8px rgba(247,147,26,0.4); display: block; margin-bottom: 0.25rem; line-height: 1; }
.step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* Why grid */
.why { margin-bottom: 3rem; }
.why h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.why-item { background: rgba(10, 6, 0, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-top: 1px solid rgba(255, 160, 20, 0.12); border-radius: 4px; padding: 1.25rem; padding-top: 2.75rem; position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,160,20,0.05), 0 4px 0 #000; }
.why-item::before { content: '>_'; position: absolute; top: 0; left: 0; right: 0; padding: 0.4rem 0.9rem; background: rgba(255, 160, 20, 0.06); color: rgba(180, 120, 30, 0.5); font-size: 0.72rem; font-family: var(--mono); letter-spacing: 0.12em; border-radius: 6px 6px 0 0; border-bottom: 1px solid rgba(255, 150, 10, 0.08); }
.why-item h3 { margin-bottom: 0.5rem; font-size: 0.95rem; }
.why-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Page header */
.page-header { padding: 2.5rem 0 1.5rem; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.page-header p { color: rgba(232, 232, 232, 0.7); }

/* Filter form */
.filter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 0 1.5rem;
}
.filter-form select, .filter-form input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

/* Provider grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.provider-card {
  background: var(--bg2);
  border-top: 2px solid #333;
  border-left: 2px solid #2e2e2e;
  border-right: 1px solid #111;
  border-bottom: 1px solid #0d0d0d;
  border-radius: 6px;
  padding: 1.25rem;
  display: block;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s;
}
.provider-card:hover { border-color: var(--accent); text-decoration: none; }
.card-header { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.provider-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.provider-card .model { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.5rem; }
.provider-card .description { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-stats { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; }
.price { color: var(--accent); }

/* Provider type badges */
.provider-type {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.provider-type.inference { background: #1a2a4a; color: #6ab4ff; }
.provider-type.data { background: #1a3a2a; color: #6affb4; }
.provider-type.tool { background: #3a2a1a; color: #ffb46a; }
.badge { font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 4px; }
.badge.verified { background: #1a3a1a; color: var(--green); }
.badge.self-hosted { background: #2a2a1a; color: var(--yellow); }

/* Provider detail */
.provider-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.provider-header h1 { font-size: 1.6rem; margin: 0.5rem 0; }
.provider-header .model { color: var(--accent); margin-bottom: 0.5rem; }
.provider-header p { color: var(--text-muted); max-width: 500px; }
.price-block { text-align: right; margin-bottom: 1rem; }
.price-big { font-size: 3rem; font-family: var(--vt); color: var(--accent); text-shadow: 0 0 10px rgba(247,147,26,0.35); line-height: 1; }
.price-unit { display: block; color: var(--text-muted); font-size: 0.85rem; }
.provider-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.provider-stats .label { color: var(--text-muted); font-size: 0.82rem; }
.provider-stats .mono { float: right; }

/* Query section */
.query-section { margin-top: 2rem; }
.query-section h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.query-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
textarea, input[type="text"], input[type="url"], input[type="number"], select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 1rem;
  resize: vertical;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
small { color: var(--text-muted); font-size: 0.8rem; display: block; margin-top: -0.75rem; margin-bottom: 0.75rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hidden { display: none !important; }

/* Invoice panel */
#invoice-panel { text-align: center; border: 1px solid var(--purple); border-radius: 6px; padding: 1.5rem; background: var(--purple-dim); box-shadow: inset 0 1px 0 rgba(139,92,246,0.3), 0 4px 0 var(--purple-shadow), 0 6px 16px rgba(76,27,154,0.4); }
#invoice-panel h3 { margin-bottom: 1rem; color: var(--purple); letter-spacing: 0.04em; }
#invoice-panel .status-msg { color: var(--purple); font-size: 0.9rem; margin-top: 0.75rem; }
#qr-code { margin: 1rem auto; display: flex; justify-content: center; }
#qr-code canvas, #qr-code img { max-width: 320px; border-radius: 8px; }
#invoice-str { word-break: break-all; color: var(--text-muted); font-size: 0.75rem; margin: 0.5rem 0; }
.status-msg { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.75rem; }

/* Result panel */
#result-panel h3 { margin-bottom: 0.75rem; }
.result-meta { display: flex; gap: 1.5rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
#result-content {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.88rem;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
#result-content.result-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}
#result-content.result-search-list { padding: 0.5rem; }
.search-item { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.search-item:last-child { border-bottom: none; }
.search-item-title { display: block; color: var(--accent); font-size: 0.95rem; margin-bottom: 0.2rem; }
.search-item-title:hover { text-decoration: underline; }
.search-item-url { color: var(--text-muted); font-size: 0.75rem; font-family: var(--mono); margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-desc { color: var(--text); font-size: 0.85rem; line-height: 1.5; }

/* Code blocks */
.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  padding-top: 2.75rem;
  font-family: var(--mono);
  position: relative;
  font-size: 0.83rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin: 1rem 0;
  color: #b07820;
}
.code-block::before {
  content: '>_';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 160, 20, 0.06);
  color: rgba(180, 120, 30, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(255, 150, 10, 0.08);
}

.l402-curl { margin-top: 2.5rem; }
.l402-curl h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Register form */
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  max-width: 640px;
}
.optional { color: var(--text-muted); font-weight: normal; font-size: 0.82rem; }
.error-msg { color: var(--red); font-size: 0.88rem; margin-bottom: 1rem; padding: 0.75rem; background: rgba(255,68,68,0.1); border-radius: 6px; border: 1px solid rgba(255,68,68,0.3); }
.success-msg { color: var(--green); font-size: 0.88rem; margin-bottom: 1rem; padding: 0.75rem; background: rgba(0,210,106,0.1); border-radius: 6px; border: 1px solid rgba(0,210,106,0.3); }
.register-requirements, .register-form-section, .endpoint-spec { margin-bottom: 2.5rem; }
.register-requirements h2, .register-form-section h2, .endpoint-spec h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.register-requirements ul { color: var(--text-muted); padding-left: 1.25rem; }
.register-requirements li { margin-bottom: 0.4rem; }
.endpoint-spec h3 { font-size: 0.95rem; margin: 1.25rem 0 0.4rem; }

/* Wizard */
.wizard-header { padding: 2rem 0 1.5rem; }
.wizard-progress { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 0.75rem; overflow: hidden; }
.wizard-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--accent)); border-radius: 2px; }
.wizard-step-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.wizard-section h1.wizard-title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.wizard-sub { color: var(--text-muted); margin-bottom: 1.75rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.back-link { color: var(--text-muted); font-size: 0.9rem; }
.back-link:hover { color: var(--text); text-decoration: none; }
.price-suggestions { display: flex; gap: 0.4rem; margin-top: -0.5rem; margin-bottom: 0.75rem; }
.price-suggestion { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; cursor: pointer; font-family: inherit; }
.price-suggestion:hover { border-color: var(--accent); color: var(--accent); }
.review-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; max-width: 640px; }
.review-row { display: flex; gap: 1rem; align-items: baseline; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-label { color: var(--text-muted); font-size: 0.82rem; flex-shrink: 0; width: 120px; }
.review-value { flex: 1; font-size: 0.9rem; word-break: break-all; }
.review-edit { color: var(--accent); font-size: 0.78rem; flex-shrink: 0; }
.review-edit:hover { text-decoration: underline; }
.register-success { max-width: 540px; margin: 3rem auto; text-align: center; }
.register-success h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.success-icon-circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,210,106,0.12); border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.75rem; }
.save-warning { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; padding: 0.75rem; background: rgba(240,192,64,0.08); border: 1px solid rgba(240,192,64,0.25); border-radius: 6px; }
.post-reg-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; padding-bottom: 6px; }
.provider-id-box label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.id-copy-row { display: flex; align-items: center; gap: 0.75rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 1rem; justify-content: space-between; }

/* Query receipt */
.query-detail { max-width: 640px; }
.receipt-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); flex-shrink: 0; margin-right: 1rem; }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.status-badge.completed { background: #1a3a1a; color: var(--green); }
.status-badge.pending { background: #2a2a1a; color: var(--yellow); }
.status-badge.failed { background: #3a1a1a; color: var(--red); }
.status-badge.paid { background: #1a2a1a; color: #6affb4; }
.proof-section { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.proof-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.proof-item { margin-top: 0.75rem; }
.proof-item .label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.25rem; }

/* Docs */
.docs-nav { display: flex; gap: 0; padding: 0 0 2rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.docs-nav a { color: var(--text-muted); font-size: 0.88rem; padding: 0.5rem 1.25rem; border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: 0.04em; }
.docs-nav a:hover { color: var(--text); border-bottom-color: var(--accent); text-decoration: none; }
.docs-section { margin-bottom: 3rem; }
.docs-section h2 { font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.docs-section h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.docs-section p, .docs-section li { color: rgba(232, 232, 232, 0.7); margin-bottom: 0.6rem; }
.docs-section ol, .docs-section ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.api-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.api-table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--bg3); color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.api-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.api-table tr:last-child td { border-bottom: none; }
.method-get { color: var(--accent); font-weight: 700; }
.method-post { color: var(--purple); font-weight: 700; }

/* Empty state */
.empty-state { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-muted); }

/* Purple accent text */
.purple-accent { color: var(--purple); }

/* Auth forms */
.auth-section { max-width: 440px; margin: 0 auto; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-alt { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.claim-notice { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-size: 0.9rem; }
.claim-notice p { margin-top: 0.4rem; color: var(--text-muted); }
.btn-nav, a.btn-nav { background: linear-gradient(160deg, #8f62e8 0%, var(--purple) 45%, #5b30c8 100%); color: #fff; padding: 0.15rem 1rem; border-radius: 3px 3px 2px 2px; font-weight: 400; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; border-top: 1px solid rgba(160,130,220,0.25); border-left: 1px solid rgba(140,110,200,0.15); border-right: 1px solid rgba(30,5,90,0.7); border-bottom: 3px solid #3a1880; box-shadow: 0 4px 0 #1a0840; position: relative; top: 0; transition: top 0.06s, box-shadow 0.06s; }
.btn-nav:hover { box-shadow: 0 4px 0 #1a0840; text-decoration: none; opacity: 1; }
.btn-nav:active { top: 3px; border-bottom-width: 1px; box-shadow: 0 1px 0 #1a0840; }

/* Post-registration success */
.success-panel { text-align: center; padding: 2rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-panel h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.success-panel > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.provider-id-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; text-align: left; }
.provider-id-box label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; }
.id-copy-row { display: flex; align-items: center; gap: 0.75rem; }
.id-copy-row .mono { flex: 1; font-size: 0.8rem; word-break: break-all; }
.save-warning { background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 8px; padding: 0.75rem 1rem; color: var(--purple); font-size: 0.88rem; margin-bottom: 1.5rem; }
.post-reg-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Dashboard */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; text-align: center; }
.stat-card .stat-value { display: block; font-size: 2.4rem; font-family: var(--vt); color: #ffb830; text-shadow: 0 0 10px rgba(255,184,48,0.4); line-height: 1.1; }
.stat-card .stat-label { font-size: 0.7rem; font-family: var(--display); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.dashboard-providers { display: flex; flex-direction: column; gap: 1rem; }
.dashboard-provider-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
.dashboard-provider-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.dashboard-provider-card h3 { margin: 0.35rem 0 0; font-size: 1.05rem; }
.dashboard-provider-card h3 a { color: var(--text); text-decoration: none; }
.dashboard-provider-card h3 a:hover { color: var(--accent); }
.card-price { font-size: 1.1rem; color: var(--orange); white-space: nowrap; }
.card-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.card-actions { display: flex; align-items: center; gap: 1rem; }
.provider-id { color: var(--text-muted); font-size: 0.75rem; }

/* Responsive */
@media (max-width: 640px) {
  nav { padding: 1.1rem 1rem; flex-wrap: wrap; }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; font-size: 0.95rem; }
  .nav-auth { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-auth-mobile { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.5rem; }
  .nav-auth-mobile a { padding: 0.6rem 0; font-size: 0.95rem; font-family: var(--display); letter-spacing: 0.04em; color: rgba(232, 232, 232, 0.65); }
  .nav-auth-mobile a:hover { color: var(--text); text-decoration: none; }
  .nav-auth-mobile .btn-nav { display: inline-block; margin-top: 0.25rem; align-self: flex-start; padding: 0.15rem 1rem; font-size: 0.82rem; }
  main { padding: 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .stats-bar { padding: 1rem; padding-top: 3.5rem; }
  .stat { padding: 0 0.75rem; }
  .stat-value { font-size: 1.6rem; }
  .stat-label { font-size: 0.55rem; letter-spacing: 0.1em; }
  .field-row { grid-template-columns: 1fr; }
  .provider-header { flex-direction: column; }
  .provider-stats { grid-template-columns: 1fr; }
}

/* =============================================
   RETRO PATCHBAY AESTHETIC
   ============================================= */

/* Panel section headers — silk-screened label look */
main h2 {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(232, 232, 232, 0.75);
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}
main h3 {
  font-family: var(--display);
  letter-spacing: 0.06em;
}

/* Hero / page-header — keep stacking context for z-index children */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 2; }
.page-header { position: relative; overflow: hidden; }
.page-header > * { position: relative; }

/* Provider card LED status indicator */
.provider-card::after {
  content: '';
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 5px var(--text), 0 0 10px rgba(212, 144, 16, 0.5);
}

/* Inset hardware inputs */
input, textarea, select {
  background: #060400;
  border-top: 1px solid #1a0e00;
  border-left: 1px solid #1e1200;
  border-right: 1px solid #3a2200;
  border-bottom: 1px solid #321e00;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.9), inset -1px -1px 0 rgba(255,180,0,0.04);
  color: var(--text);
  font-family: var(--display);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--purple);
  border-top-color: rgba(139,92,246,0.4);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.9), 0 0 0 1px rgba(139,92,246,0.25);
}
select option { background: var(--bg3); }
.field label {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

/* Step cards — channel strip bevel */
.step {
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.step h3 { font-family: var(--display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Nav — rack panel inner highlight */
nav { box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.4); }

/* Prices on cards — LED readout */
.provider-card .price { font-family: var(--vt); font-size: 1.25rem; color: var(--accent); text-shadow: 0 0 6px rgba(247,147,26,0.3); }

/* Why items — recessed panel sections */
.why-item {
  border-top: 2px solid #2e2e2e;
  border-left: 2px solid #2a2a2a;
  border-right: 1px solid #111;
  border-bottom: 1px solid #0d0d0d;
  border-radius: 4px;
}

/* Tagline monospace feel */
.tagline { font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em; }

/* Transparent card treatment — all major cards */
.step,
.why-item,
.provider-card,
.form-card,
.stat-card,
.dashboard-provider-card,
.proof-section,
.provider-id-box,
.claim-notice {
  background: rgba(8, 5, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
