/* ===== Top20 Luxury Widget (Scoped) ===== */

.wpo-top20{
  position: relative;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  overflow: hidden;

  /* match your theme */
  background: linear-gradient(145deg, rgba(11,18,36,.92), rgba(2,6,23,.92));
  border: 1px solid rgba(212,175,55,.16);
  box-shadow: var(--shadow);
}

.wpo-top20__glow{
  position:absolute; inset:-120px;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(212,175,55,.22), transparent 60%),
    radial-gradient(closest-side at 80% 35%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(closest-side at 55% 85%, rgba(16,185,129,.10), transparent 55%);
  filter: blur(18px);
  opacity: .95;
  pointer-events:none;
}

.wpo-top20__header{
  position: relative;
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  padding: 6px 6px 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.wpo-top20__title{
  margin:0;
  font-size: 20px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
}

.wpo-top20__subtitle{
  margin: 8px 0 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

.wpo-top20__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.wpo-top20__pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  white-space:nowrap;
}

.wpo-top20__pill .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

.wpo-top20__search{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
}

.wpo-top20__search svg{
  width:16px; height:16px;
  opacity: .8;
}

.wpo-top20__search input{
  width: 240px;
  max-width: 42vw;
  border:0;
  outline:none;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

.wpo-top20__tableWrap{
  position: relative;
  padding-top: 10px;
}

.wpo-top20__table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.wpo-top20__table thead th{
  text-align:left;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-weight: 700;
  padding: 10px 12px;
  user-select:none;
  cursor:pointer;
}

.wpo-top20__table thead th.num{ text-align:right; }
.wpo-top20__table thead th.barcol{ text-align:left; cursor:default; }

.wpo-top20__table tbody tr{
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: .15s ease;
}

.wpo-top20__table tbody td{
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.wpo-top20__table tbody tr td:first-child{
  border-left: 1px solid rgba(255,255,255,.08);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  width: 56px;
  color: rgba(212,175,55,.95);
  font-weight: 800;
  letter-spacing: .02em;
}

.wpo-top20__table tbody tr td:last-child{
  border-right: 1px solid rgba(255,255,255,.08);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.wpo-top20__table tbody tr:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.34);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}

.top20CoinCell{
  display:flex;
  gap:10px;
  align-items:center;
}

.top20Badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(212,175,55,.22), rgba(212,175,55,.08));
  border: 1px solid rgba(212,175,55,.25);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 11px;
  text-transform: uppercase;
}

.top20CoinName{
  display:flex;
  flex-direction:column;
  line-height: 1.2;
}
.top20CoinName b{
  font-size: 13px;
  color: rgba(255,255,255,.92);
}
.top20CoinName span{
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.top20NumCell{
  text-align:right;
  font-variant-numeric: tabular-nums;
}

.top20VM{
  color: rgba(34,197,94,.92);
  font-weight: 800;
}

.top20ActivityBar{
  height: 10px;
  width: 100%;
  max-width: 220px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.top20ActivityBar > i{
  display:block;
  height:100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,175,55,.95), rgba(59,130,246,.75));
  box-shadow: 0 0 20px rgba(212,175,55,.25);
}

.wpo-top20__footer{
  position: relative;
  display:flex;
  justify-content:space-between;
  padding: 12px 6px 4px;
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 8px;
}

.wpo-top20 .muted{
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.wpo-top20__loading{
  position:absolute;
  inset: 52px 0 0 0;
  padding: 10px 0 0 0;
  display:none;
  pointer-events:none;
}

.wpo-top20__loading .shimmer{
  height: 48px;
  margin: 10px 0;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: top20Shimmer 1.1s infinite linear;
}

@keyframes top20Shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

@media (max-width: 860px){
  .wpo-top20__table thead th:nth-child(4),
  .wpo-top20__table tbody td:nth-child(4){ display:none; }
}

@media (max-width: 640px){
  .wpo-top20__header{ flex-direction:column; align-items:flex-start; }
  .wpo-top20__search input{ width: 100%; max-width: 100%; }
  .wpo-top20__table thead th:nth-child(5),
  .wpo-top20__table tbody td:nth-child(5){ display:none; }
}
