:root {
  --panel-width: 350px;
  --accent: #00e5ff;
  --accent2: #ff2bd6;
  --success: #26ff8a;
  --warning: #ff5f5f;
  --text: #f7fbff;
  --muted: rgba(247,251,255,.70);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
}

.overlay {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 34px;
  background: transparent;
}

.panel {
  width: var(--panel-width);
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(145deg, rgba(9,16,30,.80), rgba(8,10,22,.58));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 0 36px rgba(0,229,255,.22), inset 0 0 24px rgba(255,255,255,.045);
  animation: floatIn .8s ease both;
}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .18em; }
h1 { margin: 2px 0 0; font-size: 28px; line-height: 1; letter-spacing: .02em; }
.pulse { width: 14px; height: 14px; border-radius: 999px; background: #ff2d2d; box-shadow: 0 0 0 0 rgba(255,45,45,.75); animation: pulse 1.8s infinite; }
.pulse.offline { background: #9a9a9a; animation: none; box-shadow: none; }

.stats { display: grid; gap: 8px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.08); }
.left { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; }
.icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, rgba(0,229,255,.22), rgba(255,43,214,.20)); color: #fff; font-weight: 900; }
.stat-row strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.total-card { margin-top: 14px; padding: 15px; border-radius: 18px; text-align: center; background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(255,43,214,.17)); border: 1px solid rgba(255,255,255,.16); }
.total-card span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 900; }
.total-card strong { display: block; margin-top: 4px; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }

.goal-wrap { margin-top: 14px; }
.goal-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.goal-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
#goalFill { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .9s ease; box-shadow: 0 0 18px rgba(0,229,255,.5); }

.status-line {
  margin-top: 11px;
  text-align: right;
  color: rgba(247,251,255,.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.status-line.offline { color: rgba(255,95,95,.9); }

.increase { animation: increaseFlash .75s ease; }
.decrease { animation: decreaseFlash .75s ease; }

@keyframes floatIn { from { transform: translateY(22px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes increaseFlash { 0% { transform: scale(1); } 45% { transform: scale(1.16); color: var(--success); text-shadow: 0 0 18px var(--success); } 100% { transform: scale(1); } }
@keyframes decreaseFlash { 0% { transform: scale(1); } 45% { transform: scale(1.12); color: var(--warning); text-shadow: 0 0 18px var(--warning); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,45,.75); } 70% { box-shadow: 0 0 0 12px rgba(255,45,45,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,45,0); } }
