:root{
  --bg:#0b0f16;
  --bg2:#0f1623;
  --card:rgba(18,25,40,.78);
  --stroke:rgba(255,255,255,.10);
  --text:#e9edf5;
  --muted:rgba(233,237,245,.65);
  --brand:#ff6a00;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius:18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,106,0,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), #070a10);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.topbar{
  position:sticky; top:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 20px;
  background: rgba(10,14,22,.78);
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,106,0,.95), rgba(255,106,0,.35));
  color:#111; font-weight:900;
}
.title{ font-weight:800; letter-spacing:.2px; }
.subtitle{ color:var(--muted); font-size:13px; margin-top:2px; }

.wrap{ max-width:1100px; margin:22px auto; padding:0 18px 26px; }

.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.card{
  padding:16px 16px 14px;
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.accent{
  border-color: rgba(255,106,0,.35);
  box-shadow: 0 16px 46px rgba(255,106,0,.10), var(--shadow);
}

.card-label{ color:var(--muted); font-size:13px; }
.card-value{ font-size:44px; font-weight:900; margin-top:6px; }
.card-hint{ color:var(--muted); font-size:12px; margin-top:4px; }

.grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap:14px;
  margin-top:14px;
}

.panel{
  background: rgba(15,22,35,.75);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-head{
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.panel-head h2{ margin:0; font-size:16px; }
.panel-body{ padding:14px 16px 16px; }

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ border-color: rgba(255,106,0,.45); }
.btn-ghost{
  background: transparent;
}
.select{
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}

.chip{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--stroke);
  border-radius:999px;
  cursor:pointer;
  user-select:none;
  background: rgba(255,255,255,.05);
}
.chip input{ accent-color: var(--brand); }

.list{ display:flex; flex-direction:column; gap:8px; }
.row{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.badge{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,106,0,.16);
  border:1px solid rgba(255,106,0,.35);
  font-weight:800;
}

.muted{ color:var(--muted); }
.empty{ padding:10px 12px; }

.footer{
  margin-top:14px;
  padding:10px 2px;
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 960px){
  .cards{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
}