:root {
  font-family: Inter, ui-sans-serif, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: dark light;
  color: #eaf2ff;
  background: radial-gradient(1200px 600px at 10% 10%, #0a1224 0%, #07101f 50%, #050b16 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(7, 16, 31, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 224, 255, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.06);
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav a {
  color: #cbd1dc;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

.header-nav a:hover {
  color: #eaf2ff;
  background: rgba(255,255,255,0.06);
}

#dash, #app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-sub {
  color: #9aa3ad;
  font-size: 14px;
}

.loader {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #13c2ff;
  animation: spin 900ms linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tokens-table {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  overflow: hidden;
}

.tbl-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr 0.8fr 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.tbl-head {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  color: #bfc6d3;
}

.tbl-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-cell.name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.token-meta {
  display: grid;
  line-height: 1.1;
}

.token-name {
  font-weight: 600;
}

.token-symbol {
  font-size: 12px;
  color: #9aa3ad;
}

.chg {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.chg.pos {
  color: #0b3a1d;
  background: #6dffac;
}

.chg.neg {
  color: #3a0b0b;
  background: #ff8e8e;
}

.chg.neutral {
  color: #9aa3ad;
  background: rgba(255,255,255,0.08);
}

.error {
  text-align: center;
  color: #ff8e8e;
  padding: 10px;
}
