body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 20px;
  background: #0b1020;
  color: #f5f5f5;
}

h1, h2 {
  margin-bottom: 10px;
}

h3 {
  margin-bottom: 20px;
  color: #4993d4;
}

#filters {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

#filters select {
  padding: 4px 8px;
  background: #151a30;
  color: white;
  border: 1px solid #252b45;
  border-radius: 4px;
}

#tierChart {
  margin-bottom: 30px;
  background: #151a30;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #252b45;
}

.section {
  margin-bottom: 30px;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.card {
  background: #151a30;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #252b45;
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.badge-tier-1 { background: #1b3a2a; color: #9af7c5; }
.badge-tier-2 { background: #2b314f; color: #a9b7ff; }
.badge-tier-3 { background: #4a2838; color: #ffb3d1; }

.badge-status-active { background: #123524; color: #7dffb0; }
.badge-status-exiting { background: #3b2a12; color: #ffd27d; }
.badge-status-unlocked { background: #1f2833; color: #9ad0ff; }

.label { font-size: 11px; opacity: 0.7; }
.value { font-size: 13px; word-break: break-all; }

.row {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}

.muted { opacity: 0.7; font-size: 12px; }

.header-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.count-pill {
  font-size: 12px;
  opacity: 0.8;
}

.chart-container {
  max-width: 500px;   /* adjust to taste */
  margin-bottom: 30px;
  margin-top: 10px;
}

.chart-container2 {
  max-width: 800px;   /* adjust to taste */
  margin-bottom: 30px;
  margin-top: 10px;
}

.network-toggle-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.network-toggle {
  display: inline-flex;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 40px;
  padding: 4px;
  font-family: 'Poppins', sans-serif;
}

.network-toggle a {
  padding: 10px 26px;
  border-radius: 30px;
  color: #bfbfbf;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.network-toggle a.active {
  background: #aaaa9d;
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 12px #00ff9d;
}

.network-toggle a:hover {
  color: #fff;
}
