:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.64);
  --brand: #113D80;
  --good: #20c997;
  --warn: #f59f00;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(17,61,128,0.38), transparent 55%),
    radial-gradient(800px 500px at 90% 10%, rgba(32,201,151,0.18), transparent 50%),
    var(--bg);
  color: var(--text);
}

.header{
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  padding:18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.72);
  z-index: 10;
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(17,61,128,0.95), rgba(32,201,151,0.55));
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:-0.02em;
}
.title{ font-weight:800; font-size:18px; line-height:1.1; }
.subtitle{ color: var(--muted); font-size:13px; margin-top:2px; }

.controls{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
}
.control{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 180px;
}
.control span{ font-size:12px; color: var(--muted); }
select{
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
select:focus{
  border-color: rgba(32,201,151,0.45);
  box-shadow: 0 0 0 4px rgba(32,201,151,0.14);
}

.container{
  width: min(1100px, calc(100% - 28px));
  margin: 18px auto 26px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom: 14px;
}
.card{
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding:14px 14px 12px;
}
.cardLabel{ color: var(--muted); font-size:12px; }
.cardValue{ font-size:22px; font-weight:800; margin-top:8px; }
.cardHint{ color: var(--muted); font-size:12px; margin-top:4px; }

.panel{
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 16px 14px 12px;
}
.panelHeader h2{
  margin:0;
  font-size:16px;
  letter-spacing:-0.01em;
}
.panelHeader p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.chartWrap{
  margin-top: 10px;
  padding: 10px 10px 6px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}
.note{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.footer{
  display:flex;
  gap:10px;
  justify-content:center;
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  margin-top: 14px;
}
.sep{ opacity:0.5; }

@media (max-width: 900px){
  .header{ align-items:flex-start; flex-direction:column; }
  .controls{ width:100%; }
  .control{ flex: 1; min-width: 160px; }
}
@media (max-width: 760px){
  .cards{ grid-template-columns: 1fr; }
}
