/* ================= HISTORY CARD ================= */
.history-card {
  padding: 14px;
  position: relative;
  overflow: hidden;
}

/* GLOW EFFECT */
.history-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -40px;
  right: -40px;
}

/* TOP */
.history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* DATE */
.date {
  font-size: 11px;
  opacity: 0.7;
}

/* AMOUNT */
.amount {
  font-size: 15px;
  font-weight: 700;
  color: #22c55e;
}

/* STATUS */
.history-status {
  margin-top: 10px;
}

/* BADGE */
.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
}

/* COLORS */
.badge.success {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

.badge.pending {
  background: rgba(255,193,7,0.2);
  color: #facc15;
}

.badge.cancel {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}

/* HOVER */
.history-card:hover {
  transform: translateY(-3px);
  transition: 0.3s;
}

/* ================= FILTER BAR ================= */
.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

/* BUTTON */
.filter-btn {
  flex: 1;
  padding: 8px;
  border-radius: 12px;
  border: none;

  font-size: 11px;
  cursor: pointer;

  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ACTIVE */
.filter-btn.active {
  background: linear-gradient(135deg, #ff1a1a, #7a0000);
}

/* HOVER */
.filter-btn:hover {
  opacity: 0.9;
}
/* ================= STATS (MATCH DEPOSIT STYLE) ================= */
.history-stats {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* BOX */
.stat-box {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* TEXT */
.stat-box span {
  display: block;
  opacity: 0.9;
}

.stat-box b {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

/* FORCE COLORS */
.stat-box.deposit-box {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff;
}

.stat-box.commission-box {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #fff;
}