:root{
  --bg0:#070a12;
  --bg1:#0b1020;
  --card:#0f162c;
  --card2:#101a34;
  --text:#e7ecff;
  --muted:#aab3d6;
  --line:rgba(255,255,255,0.08);
  --accent:#7c5cff;
  --accent2:#22d3ee;
  --good:#38bdf8;
  --bad:#fb7185;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}
html{color-scheme: dark}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(124,92,255,0.18), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(34,211,238,0.12), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}
.bg{
  position:fixed; inset:0;
  background-image: radial-gradient(circle at 20% 30%, rgba(124,92,255,0.25), transparent 35%),
                    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.18), transparent 40%);
  filter: blur(20px);
  opacity:0.65;
  pointer-events:none;
}
.container{max-width:1100px; margin:0 auto; padding:28px 18px 40px; position:relative}
.header{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px}
.title{margin:0; font-size:28px; letter-spacing:-0.02em}
.sub{margin-top:6px; color:var(--muted); font-size:13px}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(15,22,44,0.6);
  backdrop-filter: blur(10px);
  font-size:12px;
  color:var(--muted);
}
.grid{display:grid; gap:14px; grid-template-columns: repeat(2, minmax(0, 1fr));}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,22,44,0.92), rgba(16,26,52,0.72));
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
}
.span2{grid-column: span 2;}
.cardTitle{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:0.1em}
.cardTitleRow{display:flex; align-items:center; justify-content:space-between; gap:12px}
.sortWrap{display:flex; align-items:center; gap:8px}
.sortLabel{color:var(--muted); font-size:12px; letter-spacing:0.04em; text-transform:uppercase}
.sortSelect{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(15,22,44,0.92);
  background-color: rgba(15,22,44,0.92);
  color: var(--text);
  font-size:12px;
  outline:none;
}
.sortSelect:focus{border-color: rgba(34,211,238,0.55); box-shadow: 0 0 0 3px rgba(34,211,238,0.14)}
.big{font-size:34px; margin-top:10px; letter-spacing:-0.03em}
.muted{color:var(--muted); font-size:13px; margin-top:6px}
.barWrap{height:10px; border-radius:999px; background: rgba(255,255,255,0.07); margin-top:12px; overflow:hidden}
.bar{height:100%; width:0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius:999px; transition: width 300ms ease}
.bar.milestone{background: linear-gradient(90deg, #22c55e, #38bdf8);}
.link{color: var(--good); text-decoration:none}
.link:hover{text-decoration:underline}
.list{list-style:none; padding:0; margin:12px 0 0; display:flex; flex-direction:column; gap:10px; max-height:360px; overflow:auto}
#featuredList.list{max-height:none; overflow:visible;}
.item{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,0.08); background: rgba(7,10,18,0.35)}
.left{min-width:0}
.name{font-weight:700; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.comment{color:var(--muted); font-size:12px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.meta{color:rgba(170,179,214,0.9); font-size:11px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.right{text-align:right; flex:0 0 auto}
.amount{font-weight:800; font-size:13px}
.time{color:var(--muted); font-size:11px; margin-top:3px}
.footer{margin-top:18px}

.widgetInfo{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; margin-top:12px}
.widgetInline{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.wcard{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,0.08); background: rgba(7,10,18,0.35)}
.wleft{min-width:0; display:flex; align-items:center; gap:10px}
.wavatar{width:34px; height:34px; border-radius:999px; border:1px solid rgba(255,255,255,0.14); object-fit:cover; background: rgba(255,255,255,0.06)}
.wtitle{font-weight:800; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.wmeta{color:rgba(170,179,214,0.9); font-size:11px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.wright{text-align:right; flex:0 0 auto}
.wtimer{font-weight:900; font-size:13px}
.wlogRow{color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
@media (max-width: 760px){
  .grid{grid-template-columns:1fr}
  .span2{grid-column: span 1;}
  .big{font-size:30px}
  #featuredList.list{max-height:none; overflow:visible;}
  .widgetInfo{grid-template-columns:1fr}
}
