/* کیف پول حرفه‌ای */
.wallet-pro-page .wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.3rem;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
  /* رنگ از theme-palette (--hero-*) */
}
.wallet-hero-copy span {
  display: block;
  font-size: .82rem;
  opacity: .88;
  margin-bottom: .25rem;
}
.wallet-hero-copy strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.wallet-hero-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.wallet-hero-actions .btn {
  border-radius: .8rem;
  font-weight: 600;
}
.wallet-hero-actions .btn-light {
  color: var(--brand, #100DD1);
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1rem;
}
.wallet-stat {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eef0f6);
  border-radius: 1rem;
  padding: .85rem .9rem;
  box-shadow: 0 8px 22px rgba(15, 15, 40, .04);
}
.wallet-stat span {
  display: block;
  font-size: .72rem;
  color: var(--muted, #747794);
  margin-bottom: .2rem;
}
.wallet-stat strong {
  font-size: .95rem;
  color: var(--text, #1d2433);
  font-variant-numeric: tabular-nums;
}

.wallet-panel {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eef0f6);
  border-radius: 1.15rem;
  padding: 1.1rem 1.05rem 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 15, 40, .05);
}
.wallet-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
}
.wallet-panel-head h6 { margin: 0; }

.wallet-tx {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border, #eef0f6);
}
.wallet-tx:last-child { border-bottom: 0; padding-bottom: 0; }
.wallet-tx:first-of-type { padding-top: 0; }
.wallet-tx-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-soft, #eef0ff);
  color: var(--brand, #100DD1);
}
.wallet-tx.is-in .wallet-tx-icon { background: #ecfdf5; color: #059669; }
.wallet-tx.is-out .wallet-tx-icon { background: #fef2f2; color: #dc2626; }
.wallet-tx-main { flex: 1; min-width: 0; }
.wallet-tx-main strong {
  display: block;
  font-size: .9rem;
  color: var(--text, #1d2433);
}
.wallet-tx-main span {
  display: block;
  font-size: .75rem;
  color: var(--muted, #747794);
  margin-top: .15rem;
}
.wallet-tx-amount {
  text-align: left;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wallet-tx.is-in .wallet-tx-amount { color: #059669; }
.wallet-tx.is-out .wallet-tx-amount { color: #dc2626; }

.wallet-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted, #747794);
}
.wallet-empty i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: .5rem;
  opacity: .7;
}

.wallet-deposit-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eef0f6);
  border-radius: 1.15rem;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 15, 40, .05);
}
.wallet-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}
.wallet-preset {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
  color: var(--text, #1d2433);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
}
.wallet-preset.is-active,
.wallet-preset:hover {
  border-color: var(--brand, #100DD1);
  color: var(--brand, #100DD1);
  background: var(--brand-soft, #eef0ff);
}

.wallet-gateways {
  display: grid;
  gap: 0.5rem;
}
.wallet-gateway {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.85rem;
  background: var(--card, #fff);
  cursor: pointer;
}
.wallet-gateway.is-active {
  border-color: var(--brand, #100DD1);
  background: var(--brand-soft, #eef0ff);
}
.wallet-gateway input { margin-top: 0.15rem; accent-color: var(--brand, #100DD1); }
.wallet-gateway strong { display: block; font-size: 0.88rem; }
.wallet-gateway small { color: var(--muted, #747794); font-size: 0.72rem; }

html[theme-color="dark"] .wallet-stat,
html[theme-color="dark"] .wallet-panel,
html[theme-color="dark"] .wallet-deposit-card {
  background: var(--card, #1a1f36);
  border-color: var(--border, #2a314d);
}
html[theme-color="dark"] .wallet-tx { border-color: var(--border, #2a314d); }

@media (max-width: 575.98px) {
  .wallet-stats { grid-template-columns: 1fr; }
}
