.wallet-page{
  padding:16px;
  background:#f8f9fc;
  min-height:100%;
}

.wallet-card{
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  border-radius:20px;
  padding:22px 18px;
  text-align:center;
  margin-bottom:16px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  border:1px solid #edf2f7;
}

.wallet-balance-title{
  font-size:13px;
  color:#6b7280;
  margin-bottom:8px;
}

.wallet-balance-amount{
  font-size:28px;
  font-weight:800;
  color:#111827;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
}

.wallet-balance-amount span{
  font-size:14px;
  font-weight:700;
  color:#6b7280;
}

.wallet-charge-section{
  background:#fff;
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  border:1px solid #edf2f7;
}

.wallet-section-title{
  font-size:15px;
  font-weight:800;
  margin-bottom:14px;
  color:#111827;
}

.wallet-amount-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-bottom:14px;
}

.wallet-amount-btn{
  border:1px solid #e5e7eb;
  background:#f8fafc;
  padding:13px 10px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  cursor:pointer;
  transition:all .2s ease;
}

.wallet-amount-btn:hover{
  background:#f1f5f9;
  border-color:#cbd5e1;
}

.wallet-amount-btn:active{
  transform:scale(.98);
}

.wallet-amount-btn.active{
  background:linear-gradient(135deg,#2aa7ff,#1593f5);
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 20px rgba(42,167,255,.25);
  transform:translateY(-1px);
}

.wallet-custom-input{
  width:100%;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  padding:14px;
  border-radius:14px;
  font-size:14px;
  margin-bottom:14px;
  outline:none;
  transition:.2s;
  color:#111827;
  text-align:center;
  font-weight:700;
}

.wallet-custom-input:focus{
  background:#fff;
  border-color:#2aa7ff;
  box-shadow:0 0 0 4px rgba(42,167,255,.12);
}

.wallet-pay-btn{
  width:100%;
  border:none;
  background:linear-gradient(135deg,#2aa7ff,#1593f5);
  color:#fff;
  padding:15px;
  border-radius:15px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:all .25s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 12px 24px rgba(42,167,255,.25);
}

.wallet-pay-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(42,167,255,.3);
}

.wallet-pay-btn:active{
  transform:scale(.985);
}

.wallet-pay-btn.loading{
  pointer-events:none;
  opacity:.95;
}

.wallet-pay-btn.loading i{
  animation:walletSpin 1s linear infinite;
}

@keyframes walletSpin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* بخش تاریخچه - کپی دقیق از استایل باکس شارژ شما */
.wallet-history-section {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  border: 1px solid #edf2f7;
  margin-top: 16px;
}

.wallet-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.wallet-view-all {
  font-size: 12px;
  color: #2aa7ff;
  text-decoration: none;
  font-weight: 700;
}

.wallet-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.wallet-history-item:last-child {
  border-bottom: none;
}

.wallet-history-icon {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}

.wallet-history-info {
  flex: 1;
}

.wallet-history-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-history-name {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.wallet-history-price {
  font-size: 14px;
  font-weight: 900;
  color: #10b981; /* سبز برای واریز */
}

.wallet-history-price.minus {
  color: #ef4444; /* قرمز برای خطا یا برداشت */
}

.wallet-history-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
