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

:root {
  --bg-dark: #0a0c0e;
  --bg-card: #12161b;
  --bg-card-subtle: #181d24;
  --bg-input: #0e1216;
  --border-color: #232a34;
  --border-focus: #ccff00;
  --text-main: #f0f4f8;
  --text-muted: #8b97a7;
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.12);
  --lime-border: rgba(204, 255, 0, 0.35);
  --red: #ff4d4d;
  --red-dim: rgba(255, 77, 77, 0.12);
  --red-border: rgba(255, 77, 77, 0.35);
  --blue: #38bdf8;
  --radius: 12px;
  --radius-sm: 8px;
  --font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--lime);
}

.nav-link.external {
  color: var(--lime);
}

/* Main Layout */
.main-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero Card */
.hero-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
}

.hero-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #000;
}

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

.hero-meta {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-chip {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-desc code {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.contract-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

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

.strip-address {
  color: #fff;
  font-family: monospace;
  font-size: 0.85rem;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* Notice Banner */
.notice-banner {
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.notice-body strong {
  display: block;
  color: var(--lime);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.notice-body p {
  color: var(--text-main);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Dapp Grid */
.dapp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.panel-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Form Controls */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

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

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Verdict Radio Toggles */
.verdict-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.verdict-opt {
  position: relative;
  cursor: pointer;
}

.verdict-opt input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.verdict-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.verdict-opt.pass input:checked ~ .verdict-label {
  background: var(--lime-dim);
  border-color: var(--lime);
  color: var(--lime);
}

.verdict-opt.fail input:checked ~ .verdict-label {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}

/* Summary Box */
.call-summary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-val {
  font-family: monospace;
  color: var(--text-main);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-val.green {
  color: var(--lime);
  font-weight: 700;
}

.summary-code {
  font-family: monospace;
  color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--border-color);
  color: var(--text-main);
  border: 1px solid #333d4b;
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-action {
  background: var(--lime);
  color: #000;
}

.btn-action:hover:not(:disabled) {
  opacity: 0.9;
}

/* Status & Result Display */
.status-box {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #1f2732;
  color: var(--text-muted);
}

.status-badge.reviewed-pass {
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  color: var(--lime);
}

.status-badge.reviewed-fail {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.status-badge.not-found {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.status-ts {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-details {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.85rem;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
}

.review-record {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.record-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.record-row .k {
  color: var(--text-muted);
}

.record-row .v {
  font-weight: 600;
}

.record-reason {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
  color: var(--text-main);
  line-height: 1.4;
  font-style: italic;
}

/* Result Box */
.result-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
}

.result-box.hidden {
  display: none;
}

.result-box.success {
  border-color: var(--lime-border);
  background: var(--lime-dim);
}

.result-box.error {
  border-color: var(--red-border);
  background: var(--red-dim);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.result-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.result-box.success .result-title {
  color: var(--lime);
}

.result-box.error .result-title {
  color: var(--red);
}

.btn-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.result-body {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.spec-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.spec-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.spec-list li {
  color: var(--text-main);
}

.spec-list code {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

.sep {
  color: var(--border-color);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    padding: 1.5rem;
  }
  .hero-image-wrap {
    min-height: 200px;
  }
  .dapp-grid, .specs-grid {
    grid-template-columns: 1fr;
  }
}