:root {
  --bg: #05070d;
  --bg2: #0b1020;
  --fg: #e8eefc;
  --muted: #7d8bb0;
  --accent: #4ea1ff;
  --accent2: #ff7a59;
  --ok: #35e0a1;
  --line: rgba(120, 150, 220, 0.14);
}

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

html, body {
  height: 100%;
  background: radial-gradient(1200px 800px at 70% -10%, #12193a 0%, var(--bg) 55%);
  color: var(--fg);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

#topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 92px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,16,32,0.9), rgba(11,16,32,0.3));
}

.brand {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 2px;
}
.brand span {
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 3px;
}

.widget-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kpis {
  margin-left: auto;
  display: flex;
  gap: 34px;
}
.kpi { text-align: right; }
.kpi .val {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.kpi.accent .val { color: var(--accent); }
.kpi.ok .val { color: var(--ok); }

.clock {
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 92px;
  text-align: right;
}

#stage {
  position: absolute;
  top: 92px;
  bottom: 46px;
  left: 0;
  right: 0;
}
#stage > .widget { width: 100%; height: 100%; }

#dots {
  position: absolute;
  bottom: 0;
  height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(120,150,220,0.25);
  transition: all .3s;
}
.dot.active { background: var(--accent); width: 30px; border-radius: 6px; }

.status {
  position: absolute;
  bottom: 12px; right: 16px;
  font-size: 11px;
  color: var(--muted);
  opacity: .5;
}

/* Ranking lateral reutilizable por widgets */
.rank {
  position: absolute;
  top: 24px; right: 28px;
  width: 320px;
  background: rgba(9,13,26,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}
.rank h3 {
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
}
.rank .row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.rank .row:last-child { border-bottom: none; }
.rank .name { flex: 1; font-size: 15px; }
.rank .flag { font-size: 18px; }
.rank .amt { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Widget de productos (podio) */
.podium {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; gap: 28px;
  padding: 40px 80px;
}
.pcard {
  display: flex; align-items: center; gap: 32px;
  background: rgba(9,13,26,0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 36px;
}
.pcard .prank {
  font-size: 72px; font-weight: 800; line-height: 1;
  min-width: 110px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.pcard .pinfo { flex: 1; min-width: 0; }
.pcard .pname {
  font-size: 30px; font-weight: 700; margin-bottom: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbar-wrap {
  height: 14px; border-radius: 7px;
  background: rgba(120,150,220,0.12); overflow: hidden; margin-bottom: 12px;
}
.pbar { height: 100%; border-radius: 7px; transition: width .8s ease; }
.pcard .pmeta { font-size: 20px; color: var(--muted); }
.pcard .puds { color: var(--fg); font-size: 24px; }
.pcard .puds b { color: var(--muted); font-size: 16px; font-weight: 500; }
.pcard .psep { margin: 0 12px; opacity: .5; }
.rank .sub { color: var(--muted); font-size: 12px; }
