@font-face {
  font-family: 'Geist';
  src: url('https://musechain.io/fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0d0e;
  --surface: #141618;
  --surface-hover: #1b1e22;
  --border: #26292e;
  --border-focus: #ccff00;
  --text: #ededed;
  --text-dim: #9aa0a6;
  --accent: #ccff00;
  --accent-soft: rgba(204, 255, 0, 0.12);
  --accent-text: #050505;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.15);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: #000;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: #d1d5db;
}

/* Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.brand-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.net-tag {
  font-size: 11px;
  padding: 2px 7px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
}

.links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.pill-link {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none !important;
}

.pill-link:hover {
  filter: brightness(1.08);
}

/* Container */
.container {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
  margin-bottom: 20px;
}

.hero-content {
  padding: 32px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content .lede {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}

.contract-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contract-callout .label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.sublink {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-left: auto;
}

.hero-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #000;
  overflow: hidden;
  display: flex;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Banner */
.chain-badge-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(204, 255, 0, 0.05);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 18px;
}

/* Main Grid */
.grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 600;
}

.section-head .meta {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

/* Request Cards */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.request-card:hover {
  transform: translateY(-2px);
  border-color: #3f444e;
}

.request-card.selected {
  border-color: var(--accent);
  background: #171b1f;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.req-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.card-top h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.resolved-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.resolved-tag.open {
  background: var(--green-soft);
  color: var(--green);
}

.resolved-tag.closed {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.card-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.endorse-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
}

.link-chip {
  color: var(--accent);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 180px;
}

/* Empty State */
.empty-state {
  display: none;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}

.empty-state.active {
  display: block;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 13px;
}

/* Side Column Cards */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

.card-head h3 {
  font-size: 15px;
  font-weight: 600;
}

.status-pill {
  font-size: 11px;
  color: var(--text-dim);
  background: #000;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.action-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Detail Box */
.placeholder-text {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 30px 10px;
}

.detail-view h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.detail-view .full-desc {
  color: #cfd4dc;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  background: #0d0e10;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-box {
  background: #0d0e10;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.meta-val {
  font-size: 13px;
  font-weight: 600;
}

.btn-endorse {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.btn-endorse:hover {
  opacity: 0.9;
}

.btn-endorse:disabled {
  background: #2a2d33;
  color: #666;
  cursor: not-allowed;
}

/* Forms */
.form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 12px;
}

.form label:first-of-type {
  margin-top: 0;
}

.req-limit {
  font-weight: normal;
  color: var(--text-dim);
  font-size: 11px;
}

.form input, .form textarea {
  width: 100%;
  background: #0a0b0d;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zero-badge {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-primary {
  background: #fff;
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #eaeaea;
}

.call-message {
  margin-top: 12px;
  font-size: 12px;
  border-radius: 6px;
  display: none;
  padding: 8px 12px;
}

.call-message.success {
  display: block;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.call-message.info {
  display: block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.call-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 24px;
  font-size: 12px;
  color: var(--text-dim);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .grid-layout {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    height: 180px;
  }
}