/* ===========================================================
   wallet.css — صفحهٔ کیفِ پول (Modern Dark / گلد، شیشه‌ای، رسپانسیو)
   طراحی: بر پایهٔ ui-ux-pro-max (fintech dark-gold). RTL.
   =========================================================== */
.wal {
  --w-gold: var(--gold, #d9a441);
  --w-gold2: var(--gold-2, #ffcc5c);
  --w-ink: #f3f4f8;
  --w-muted: #9aa3b2;
  --w-panel: rgba(255, 255, 255, 0.045);
  --w-panel2: rgba(255, 255, 255, 0.03);
  --w-border: rgba(255, 255, 255, 0.10);
  --w-pos: #46d38a;
  --w-neg: #ff7a8a;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  color: var(--w-ink);
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .wal { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .wal__full { grid-column: 1 / -1; }
}

/* ── کارتِ موجودی (Hero، شبیهِ کارتِ بانکی) ── */
.wal-hero {
  position: relative; overflow: hidden;
  border-radius: 22px;
  padding: 26px 22px 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 204, 92, 0.16), transparent 55%),
    linear-gradient(135deg, #201a10 0%, #14161d 60%, #101219 100%);
  border: 1px solid rgba(255, 204, 92, 0.28);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.wal-hero__glow {
  position: absolute; inset-inline-end: -60px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 92, 0.35), transparent 70%);
  filter: blur(18px); pointer-events: none;
  animation: walGlow 7s ease-in-out infinite alternate;
}
@keyframes walGlow { from { transform: translate(0, 0); } to { transform: translate(-16px, 14px); } }

.wal-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wal-hero__label { display: inline-flex; align-items: center; gap: 8px; color: var(--w-gold2); font-weight: 700; font-size: 14px; }
.wal-hero__label svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.wal-hero__chip {
  font-size: 11px; font-weight: 800; color: #16130a;
  background: linear-gradient(135deg, var(--w-gold), var(--w-gold2));
  padding: 3px 10px; border-radius: 999px;
}
.wal-hero__balance { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.wal-hero__balance b {
  font-size: clamp(30px, 9vw, 44px); font-weight: 900; letter-spacing: .5px;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(255, 204, 92, 0.25);
}
.wal-hero__balance span { font-size: 15px; color: var(--w-gold2); font-weight: 700; }
.wal-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--w-muted); font-size: 12.5px; }
.wal-hero__brand { font-family: "Orbitron", sans-serif; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; font-size: 11px; }

/* ── کارت‌های عمومی ── */
.wal-card {
  border-radius: 18px; padding: 20px 18px;
  background: var(--w-panel); border: 1px solid var(--w-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wal-card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--w-ink); }

/* ── چیپ‌های مبلغِ سریع ── */
.wal-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
@media (min-width: 420px) { .wal-chips { grid-template-columns: repeat(4, 1fr); } }
.wal-chip {
  border: 1px solid var(--w-border); background: var(--w-panel2);
  color: var(--w-ink); border-radius: 13px; padding: 12px 6px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums;
  transition: transform .12s ease, border-color .18s ease, background .18s ease, color .18s ease;
  min-height: 46px;
}
.wal-chip small { display: block; font-size: 10px; font-weight: 600; color: var(--w-muted); margin-top: 2px; }
.wal-chip:hover { border-color: rgba(255, 204, 92, 0.5); }
.wal-chip:active { transform: scale(.96); }
.wal-chip.is-active {
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.22), rgba(255, 204, 92, 0.12));
  border-color: var(--w-gold2); color: var(--w-gold2);
}
.wal-chip.is-active small { color: var(--w-gold2); }

/* ── ورودیِ مبلغ ── */
.wal-field { display: block; }
.wal-field > span { display: block; font-size: 13px; color: var(--w-muted); margin-bottom: 7px; }
.wal-input {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--w-border); background: rgba(0, 0, 0, 0.22);
  border-radius: 14px; padding: 4px 14px; transition: border-color .18s ease, box-shadow .18s ease;
}
.wal-input:focus-within { border-color: var(--w-gold2); box-shadow: 0 0 0 3px rgba(255, 204, 92, 0.14); }
.wal-input input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 22px; font-weight: 800; padding: 12px 0; font-variant-numeric: tabular-nums;
}
.wal-input input::placeholder { color: #5f6672; font-weight: 600; font-size: 16px; }
.wal-input__unit { color: var(--w-gold2); font-weight: 800; font-size: 14px; flex: none; }
.wal-hint { margin: 8px 2px 0; font-size: 12px; color: var(--w-muted); }

/* ── دکمهٔ پرداخت ── */
.wal-pay {
  width: 100%; margin-top: 16px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, var(--w-gold), var(--w-gold2));
  color: #16130a; font: inherit; font-weight: 900; font-size: 15.5px;
  padding: 15px 18px; border-radius: 14px; min-height: 52px;
  box-shadow: 0 12px 26px -10px rgba(217, 164, 65, 0.6);
  transition: transform .12s ease, filter .18s ease;
}
.wal-pay svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.wal-pay:hover { filter: brightness(1.05); }
.wal-pay:active { transform: scale(.98); }
.wal-pay:disabled { opacity: .6; cursor: progress; box-shadow: none; }

.wal-err {
  margin: 12px 0 0; text-align: center; color: #ffb0b8;
  background: rgba(255, 80, 80, 0.1); border: 1px solid rgba(255, 80, 80, 0.32);
  border-radius: 10px; padding: 9px 10px; font-size: 13px;
}
.wal-secure { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--w-muted); font-size: 12px; }
.wal-secure svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ── لیستِ تراکنش‌ها ── */
.wal-tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wal-tx__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: 14px;
  background: var(--w-panel2); border: 1px solid var(--w-border);
}
.wal-tx__ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
}
.wal-tx__ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.wal-tx__row--deposit .wal-tx__ic { color: var(--w-pos); background: rgba(70, 211, 138, 0.12); }
.wal-tx__row--purchase .wal-tx__ic,
.wal-tx__row--withdraw .wal-tx__ic { color: var(--w-gold2); background: rgba(255, 204, 92, 0.12); }
.wal-tx__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wal-tx__type { font-weight: 700; font-size: 14px; color: var(--w-ink); }
.wal-tx__date { font-size: 11.5px; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.wal-tx__right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.wal-tx__amt { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wal-tx__amt.pos { color: var(--w-pos); }
.wal-tx__amt.neg { color: var(--w-neg); }
.wal-badge { font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.wal-badge.ok { color: #7ff0b6; background: rgba(70, 211, 138, 0.14); }
.wal-badge.warn { color: #ffd98a; background: rgba(255, 204, 92, 0.14); }
.wal-badge.bad { color: #ffb0b8; background: rgba(255, 80, 80, 0.14); }

.wal-empty { text-align: center; color: var(--w-muted); padding: 26px 10px; font-size: 13.5px; }
.wal-empty svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .5; display: block; margin: 0 auto 10px; }

/* ── وضعیت‌های ورود/بارگذاری ── */
.wal-gate { grid-column: 1 / -1; text-align: center; padding: 36px 20px; }
.wal-gate__ic {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%; color: var(--w-gold2);
  background: radial-gradient(circle, rgba(255, 204, 92, 0.18), rgba(255, 204, 92, 0.04));
  border: 1px solid rgba(255, 204, 92, 0.3);
}
.wal-gate__ic svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.wal-gate__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--w-ink); }
.wal-gate p { color: var(--w-muted); margin: 0 auto 18px; max-width: 300px; font-size: 13.5px; line-height: 1.8; }
.wal-gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wal-gate__actions .wal-pay { width: auto; margin: 0; padding: 12px 30px; text-decoration: none; }
.wal-gate__ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 14px; min-height: 52px;
  border: 1px solid var(--w-border); background: var(--w-panel2);
  color: var(--w-ink); font-weight: 800; font-size: 15px; text-decoration: none;
  transition: border-color .18s ease;
}
.wal-gate__ghost:hover { border-color: rgba(255, 204, 92, 0.5); }
.wal-loading { text-align: center; color: var(--w-muted); padding: 40px 10px; }

@media (prefers-reduced-motion: reduce) {
  .wal-hero__glow { animation: none; }
  .wal-chip, .wal-pay, .wal-input { transition: none; }
}
