:root{
  /* palet navy / indigo, soft & elegan */
  --bg:#0d1220;          /* bukan hitam pekat */
  --bg-grad1:#141a2c;
  --bg-grad2:#0f1530;
  --panel:#141a2c;
  --panel-border:#263154;
  --ink:#eaf0ff;
  --muted:#a8b2cc;
  --gold:#ffd55e;
  --gold-ink:#2b2100;
  --ok:#39d67a;
  --danger:#ff5e7a;
  --accent:#5670ff;
}

*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 600px at 85% -10%, #1a2250 0%, transparent 60%),
    radial-gradient(800px 520px at -10% 0%, #212a4a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-grad1), var(--bg-grad2));
}

/* layout */
.container{max-width:980px;margin:0 auto;padding:28px 16px 90px;text-align:center}
.brand{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:10px}
.brand img{height:56px;width:auto}
h1{font-size:clamp(22px,3.6vw,38px);line-height:1.2;margin:12px 0 4px}
.sub-title{color:var(--muted);margin:2px 0 6px}
.small{color:#b6c0da;font-size:13px;margin-top:2px}
.gold{color:var(--gold);text-shadow:0 0 8px rgba(255,213,94,.65)}

.badge-rt{
  display:inline-flex;align-items:center;gap:8px;font-weight:700;
  background:linear-gradient(90deg,#1c2344,#17203c);
  border:1px solid #2f3b66; color:#d7e3ff; padding:8px 12px; border-radius:999px;
}
.dot{width:10px;height:10px;border-radius:50%;background:var(--ok);box-shadow:0 0 10px var(--ok);animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{0%{transform:scale(.9);box-shadow:0 0 6px var(--ok)}50%{transform:scale(1.2);box-shadow:0 0 16px var(--ok)}100%{transform:scale(.9);box-shadow:0 0 6px var(--ok)}}

/* board */
.leaderboard{
  margin-top:18px; background:linear-gradient(180deg,#151b33,#12182f);
  border:1px solid var(--panel-border); border-radius:16px; padding:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.leaderboard h2{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin:8px 0 12px; font-size:clamp(18px,2.8vw,24px); text-transform:uppercase; letter-spacing:.4px;
}
.ico-cup{width:24px;height:24px;fill:var(--gold)}

ol#wd-list{ list-style:none; margin:0; padding:0; }
li.wd-item{
  display:grid; grid-template-columns: auto 1fr auto; gap:12px; align-items:center;
  padding:12px; border-radius:12px; margin:8px 10px;
  background:rgba(255,255,255,.02); border:1px solid #28324f;
  transition:transform .25s ease, background .25s ease, border-color .25s ease;
}
li.wd-item:hover{ transform:translateY(-2px); background:rgba(255,255,255,.03) }
li.wd-item.marked{ outline:2px solid #4f66ff; box-shadow:0 0 0 4px rgba(86,112,255,.15) }

.avatar{
  width:42px;height:42px;border-radius:50%;
  overflow:hidden; flex:none; border:1px solid #34416a; background:#0f1430;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}

.entry{
  display:flex; flex-direction:column; align-items:flex-start; text-align:left;
}
.mask{font-weight:700; letter-spacing:.3px}
.meta{font-size:12px; color:#9fb0d6; margin-top:2px}

.amount{
  font-variant-numeric: tabular-nums;
  background:linear-gradient(90deg,#3c340f,#3a2d00);
  border:1px solid #5c4c12; color:#ffe79d;
  padding:8px 12px; border-radius:12px; font-weight:800; min-width:140px; text-align:right;
}
.btn-detail{
  appearance:none; border:0; cursor:pointer; font-weight:800;
  padding:10px 16px; border-radius:12px; margin-left:8px;
  background:linear-gradient(180deg,#ffd55e,#e8be3f); color:var(--gold-ink);
  box-shadow:0 8px 24px rgba(255,213,94,.25);
}

/* modal */
.modal{position:fixed; inset:0; display:none; place-items:center; background:rgba(8,10,18,.6); backdrop-filter: blur(6px); z-index:50}
.modal.show{display:grid}
.sheet{width:min(720px,92vw); background:#121730; border:1px solid #2c3761; border-radius:18px; overflow:hidden; box-shadow:0 26px 80px rgba(0,0,0,.55)}
.sheet header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid #222b4a;background:linear-gradient(180deg,#182040,#101734)}
.sheet h3{margin:0;font-size:18px}
.x{background:transparent;border:0;color:#dfe9ff;font-size:18px;cursor:pointer}
.sheet .body{padding:18px}
.kv{display:grid;grid-template-columns:160px 1fr;gap:10px 14px;text-align:left}
.kv b{color:#a9b7dd;font-weight:600}
.status{font-weight:800;color:var(--ok)}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.btn-primary{appearance:none;border:0;cursor:pointer;background:linear-gradient(180deg,#5f78ff,#5065ff);color:white;padding:10px 16px;border-radius:12px;font-weight:800}

@media (max-width:560px){
  .amount{min-width:120px}
  .kv{grid-template-columns:120px 1fr}
}
/* ...biarkan yang lain tetap... */

.amount{
  font-variant-numeric: tabular-nums;
  background:linear-gradient(90deg,#3c340f,#3a2d00);
  border:1px solid #5c4c12; color:#ffe79d;
  padding:8px 12px; border-radius:12px; font-weight:800;
  min-width:180px; text-align:right;
}

/* badge LUNAS di kanan item */
.status-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:12px; font-weight:800;
  background:linear-gradient(180deg,#39d67a,#2cc869); color:#042e17;
  border:1px solid #1aa355;
  box-shadow:0 6px 18px rgba(57,214,122,.25);
}

.right-pack{
  display:flex; align-items:center; gap:10px;
}

/* ...biarkan yang lain tetap... */
/* ====== MOBILE TUNING ====== */
@media (max-width: 560px){
  .container{padding:20px 12px 72px}

  .leaderboard{padding:10px}
  li.wd-item{
    /* 2 baris: baris 1 = avatar + entry, baris 2 = right-pack melebar */
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "av entry"
      "right right";
    align-items:flex-start;
    gap:10px;
    padding:10px;
    margin:8px 6px;
    border-radius:12px;
  }
  .avatar{grid-area:av; width:38px; height:38px}
  .entry{grid-area:entry}
  .right-pack{
    grid-area:right;
    width:100%;
    justify-content:space-between;   /* LUNAS | Rp | Detail merata */
    gap:8px;
  }

  .mask{font-size:14px}
  .meta{font-size:11px; line-height:1.35}

  .status-pill{
    padding:6px 10px;
    font-size:12px;
    border-radius:10px;
    box-shadow:0 4px 14px rgba(57,214,122,.18);
  }
  .amount{
    min-width:118px;                 /* jangan terlalu lebar di mobile */
    padding:6px 10px;
    font-size:13px;
    border-radius:10px;
  }
  .btn-detail{
    padding:8px 12px;
    font-size:13px;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(255,213,94,.22);
  }

  /* sentuhan kecil biar tap nyaman */
  .x{font-size:17px}
}

/* layar sangat kecil (<=400px), lebih padat lagi */
@media (max-width: 400px){
  .amount{min-width:104px; font-size:12.5px; padding:6px 8px}
  .btn-detail{padding:7px 10px; font-size:12.5px}
  .status-pill{padding:5px 8px; font-size:11.5px}
}
