.balance-history-btn{
  margin-top:12px;
  width:100%;
  border:1px solid rgba(66,232,255,.28);
  border-radius:18px;
  padding:13px 14px;
  background:rgba(66,232,255,.10);
  color:#eaf8ff;
  font-weight:900;
  font-size:14px;
}

.balance-history-bg{
  position:fixed;
  inset:0;
  z-index:99997;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(12px);
}

.balance-history-bg.show{
  display:flex;
}

.balance-history-modal{
  width:100%;
  max-width:540px;
  max-height:84vh;
  overflow-y:auto;
  border-radius:28px;
  padding:18px;
  background:linear-gradient(180deg,#07172a,#030913);
  border:1px solid rgba(68,215,255,.35);
  box-shadow:0 24px 90px rgba(0,170,255,.25);
  color:#fff;
  -webkit-overflow-scrolling:touch;
}

.balance-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.balance-history-title{
  font-size:21px;
  font-weight:900;
}

.balance-history-close{
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:24px;
  line-height:1;
}

.balance-history-total{
  border:1px solid rgba(66,232,255,.24);
  border-radius:20px;
  padding:14px;
  background:rgba(66,232,255,.08);
  margin-bottom:14px;
}

.balance-history-total-label{
  font-size:12px;
  color:#9dbfd1;
}

.balance-history-total-value{
  font-size:28px;
  font-weight:1000;
  color:#41e9ff;
  margin-top:4px;
}

.balance-history-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.balance-history-row{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.055);
  padding:12px;
}

.balance-history-row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.balance-history-name{
  font-size:14px;
  font-weight:900;
  color:#eaf8ff;
  overflow-wrap:anywhere;
}

.balance-history-date{
  margin-top:4px;
  font-size:12px;
  color:#8fb4c9;
}

.balance-history-amount{
  font-size:16px;
  font-weight:1000;
  white-space:nowrap;
}

.balance-history-amount.in{
  color:#6dffad;
}

.balance-history-amount.out{
  color:#ff8aa1;
}

.balance-history-meta{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.balance-history-chip{
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  font-weight:800;
  color:#bfefff;
  background:rgba(66,232,255,.10);
  border:1px solid rgba(66,232,255,.20);
  overflow-wrap:anywhere;
}

.balance-history-empty{
  text-align:center;
  color:#9dbfd1;
  padding:24px 12px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:20px;
}
