:root {
  --bg: #050913;
  --panel: rgba(10, 16, 28, 0.95);
  --panel-soft: rgba(17, 24, 39, 0.96);
  --text: #edf2ff;
  --muted: #97a6bf;
  --border: rgba(148, 163, 184, 0.14);
  --primary: #14b8a6;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --green: #22c55e;
  --red: #ef4444;
  --shadow: 0 20px 52px rgba(1, 8, 23, 0.46);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #020617 0%, #09111f 100%);
}
.app-shell {
  width: min(1500px, calc(100% - 28px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  color: #99f6e4;
  font-size: 14px;
  font-weight: 700;
}
.muted,
.stat-card span,
.wallet-box span,
.module-card p,
.activity-item span,
.insight-item p,
.allocation-row small,
.action-list li {
  color: var(--muted);
}
h1,h2,h3 { margin-top: 0; }
.menu { display: grid; gap: 10px; }
.menu-item,button,input { font: inherit; }
.menu-item,button { border: none; cursor: pointer; }
.menu-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}
.menu-item.active,
button {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: white;
}
button {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}
button.secondary { background: rgba(148, 163, 184, 0.12); }
.wallet-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 700;
}
.topbar-actions { display: flex; gap: 12px; }
input {
  width: 260px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  outline: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.stat-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 30px;
}
.stat-card small { color: var(--muted); }
.stat-card.highlight { background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(139, 92, 246, 0.12)); }
.grid { display: grid; gap: 20px; }
.main-grid { grid-template-columns: 1.25fr 0.75fr; margin-bottom: 20px; }
.bottom-grid { grid-template-columns: 1fr 0.8fr; }
.side-column { display: grid; gap: 20px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module-card,
.activity-item,
.insight-item,
.allocation-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}
.module-card strong,
.activity-item strong,
.allocation-row strong { display: block; }
.activity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.activity-item { display: flex; justify-content: space-between; gap: 14px; }
.allocation-list,
.insights { display: grid; gap: 12px; }
.progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
}
.action-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.swap { background: rgba(6, 182, 212, 0.14); color: #67e8f9; }
.badge.stake { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.badge.vote { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.badge.mint { background: rgba(20, 184, 166, 0.14); color: #99f6e4; }
.positive { color: var(--green); }
.negative { color: var(--red); }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-grid,
  .bottom-grid,
  .module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { width: min(100% - 16px, 1500px); }
  .topbar,
  .topbar-actions,
  .panel-header,
  .activity-item { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  input { width: 100%; }
}
