:root {
  --bg:         #050505;
  --bg2:        #0f0f0f;
  --bg3:        #151515;
  --border:     rgba(191, 0, 255, 0.1);
  --border-md:  rgba(191, 0, 255, 0.2);
  --purple:     #bf00ff;
  --purple-bg:  rgba(191, 0, 255, 0.08);
  --purple-bdr: rgba(191, 0, 255, 0.3);
  --green:      #00f7ff; /* Neon Cyan */
  --green-bg:   rgba(0, 247, 255, 0.08);
  --red:        #ff0055; /* Neon Rose */
  --red-bg:     rgba(255, 0, 85, 0.08);
  --red-bdr:    rgba(255, 0, 85, 0.3);
  --amber:      #ffcc00; /* Neon Yellow */
  --amber-bg:   rgba(255, 204, 0, 0.08);
  --amber-bdr:  rgba(255, 204, 0, 0.3);
  --text:       #ffffff;
  --text-2:     #c0c0c0;
  --text-3:     #707070;
  --text-4:     #404040;
  --radius:     12px;
  --radius-sm:  8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: 1;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 14px var(--purple);
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.version {
  font-size: 12px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
}

/* ── Stats Overview ──────────────────────────────────── */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.overview-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-md);
}

.overview-val {
  font-size: 32px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.overview-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

/* ── Charts ──────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.chart-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.chart-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ── Table ───────────────────────────────────────────── */
.site-breakdown {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.site-table {
  width: 100%;
}

.site-row {
  display: grid;
  grid-template-columns: 1fr 120px 100px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.site-row:last-child {
  border-bottom: none;
}

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

.site-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.site-name {
  font-weight: 500;
  color: var(--text);
}

.site-time {
  font-family: 'DM Mono', monospace;
  color: var(--text-2);
  text-align: right;
}

.site-pct {
  font-size: 12px;
  color: var(--text-4);
  text-align: right;
}

.mono { font-family: 'DM Mono', monospace; }

@media (max-width: 600px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}