:root {
  --bg:#050617;
  --panel:#0f1724;
  --border:rgba(255,255,255,0.06);
  --muted:#9fb3c9;
  --accent:#7c3aed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #050617, #071026);
  color: #e6eef8;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(5,6,23,0.9);
  border-bottom: 1px solid var(--border);
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.brand-text .site-title {
  font-weight: 600;
}
.brand-text .site-sub {
  font-size: 12px;
  color: var(--muted);
}
.brand-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.radix-connect-btn,
.btn {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.radix-connect-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,.35);
}
.btn.tiny {
  padding: 6px 12px;
  font-size: 13px;
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
h2 {
  margin: 0 0 12px 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

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

.value {
  font-size: 16px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.chart-container {
  margin-top: 12px;
  height: 180px;
}
canvas {
  width: 100% !important;
  height: 100% !important;
}
.actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.actions .btn {
  grid-column: span 1;
}
.actions .btn:last-child {
  grid-column: span 2;
}
.input {
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
}
footer {
  text-align: center;
  padding: 22px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .brand-right {
    align-items: flex-start;
  }
}
