/* Intentional, high-contrast look with clear hierarchy */
:root {
  --bg: #0c1224;
  --panel: rgba(15, 23, 42, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6ebff;
  --muted: #9fb2d6;
  --accent: #00d084;
  --accent-2: #29b6f6;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(0, 208, 132, 0.15), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(41, 182, 246, 0.2), transparent 40%),
              var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

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

.brand h1 {
  margin: 2px 0 0 0;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 208, 132, 0.1);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(0, 208, 132, 0.25);
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.badge.online { background: rgba(0, 208, 132, 0.12); color: var(--accent); }
.badge.offline { background: rgba(255, 107, 107, 0.12); color: var(--danger); }

.address { color: var(--muted); margin: 0; font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn.solid { background: rgba(0, 208, 132, 0.15); border-color: rgba(0, 208, 132, 0.35); color: var(--accent); }
.btn.danger { background: rgba(255, 107, 107, 0.15); border-color: rgba(255, 107, 107, 0.3); color: var(--danger); }
.btn.ghost:hover, .btn.solid:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.token-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.token-row input {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

.muted { color: var(--muted); font-size: 13px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.label {
  margin: 0 0 4px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list.compact { gap: 6px; }

.list li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline-wrap {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.timeline li {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.timeline time {
  color: var(--muted);
  font-size: 12px;
}

.timeline li:hover {
  border-color: rgba(0, 208, 132, 0.3);
  transform: translateY(-1px);
}

.timeline li.copied {
  border-color: rgba(0, 208, 132, 0.5);
}

.tiny { font-size: 12px; }

.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .meta { width: 100%; justify-content: space-between; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}
