@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-color: #0b0d0e;
  --surface: #14171a;
  --surface-border: #262c33;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --brand-lime: #ccff00;
  --brand-lime-hover: #b8e600;
  --danger: #ff4d4d;
  --danger-bg: rgba(255, 77, 77, 0.12);
  --success: #10b981;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

code, pre, .mono-addr {
  font-family: var(--font-mono);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(11, 13, 14, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-tag {
  background: #000;
  color: var(--brand-lime);
  border: 1px solid var(--brand-lime);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.quick-links a:hover {
  color: var(--brand-lime);
}

.contract-link {
  background: var(--surface);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
}

/* Hero */
.hero-card {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

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

.pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand-lime);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.hero-card h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-card .lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-label {
  color: var(--text-muted);
}

.spec-item a {
  color: var(--brand-lime);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.cover-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Status Panel */
.status-panel {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.helper-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 500;
}

.req {
  color: var(--brand-lime);
}

.field-group input, 
.field-group textarea {
  background: #090a0c;
  border: 1px solid var(--surface-border);
  color: #fff;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--brand-lime);
}

.field-group small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
}

.error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--brand-lime);
  color: #000;
  padding: 0.75rem 1.25rem;
}

.btn-primary:hover {
  background: var(--brand-lime-hover);
}

.btn-secondary {
  background: #23282f;
  color: #fff;
  border: 1px solid var(--surface-border);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #2c333c;
}

.btn-danger {
  background: #e11d48;
  color: #fff;
  padding: 0.75rem 1.25rem;
}

.btn-danger:hover {
  background: #be123c;
}

.btn-tiny {
  background: #23282f;
  color: var(--brand-lime);
  border: 1px solid var(--surface-border);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.full-width {
  width: 100%;
}

/* Action Cards */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.action-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-lime);
  margin-bottom: 0.35rem;
}

.action-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.action-card .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.step-fieldset {
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.step-fieldset legend {
  padding: 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-lime);
}

.notice-box {
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.notice-box.warn {
  background: rgba(255, 170, 0, 0.1);
  border-left: 3px solid #ffaa00;
  color: #ffcc66;
}

.notice-box.info {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid #38bdf8;
  color: #93c5fd;
}

/* Verification list */
.verification-checklist {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.verification-checklist h3 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
  cursor: pointer;
}

.check-item input {
  margin-top: 0.2rem;
  accent-color: var(--brand-lime);
}

/* Output Console */
.console-box {
  margin-top: 1rem;
  background: #090a0c;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.console-box.success {
  border-color: var(--brand-lime);
  color: #e5e7eb;
}

.console-box.error {
  border-color: var(--danger);
  color: #fca5a5;
}

.hidden {
  display: none !important;
}

/* Status Callout */
.status-callout {
  margin-top: 1rem;
  background: #0d1117;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
}

.status-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.indicator-green {
  background: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
}

.indicator-red {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.indicator-gray {
  background: #6b7280;
}

.route-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.route-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #20242a;
  padding-bottom: 0.25rem;
}

/* Info section */
.info-section {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.info-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--brand-lime);
}

.info-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.code-snippet {
  background: #090a0c;
  padding: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  font-size: 0.75rem;
  overflow-x: auto;
  color: #e5e7eb;
}

/* Footer */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.footer a:hover {
  color: var(--brand-lime);
}