/* wallet.css — кошелёк: баланс, пополнение, покупки, операции */
.wl { max-width: 1000px; margin: 0 auto; padding: 26px 24px 90px; }
.wl-top { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; margin-bottom: 20px; }
.wl-card { flex: 1 1 340px; padding: 22px 26px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), transparent 60%), var(--panel);
  border: 1px solid var(--line); }
.wl-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.wl-sum { margin: 10px 0 8px; }
.wl-sum b { font-size: 34px; letter-spacing: -1px; }
.wl-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 420px; }
.wl-acts { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.wl-acts .btn { white-space: nowrap; }
.wl-acts .btn[disabled] { opacity: .5; cursor: not-allowed; }

.wl-pay { padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 20px; }
.wl-pay h2, .wl-sec h2 { font-size: 16px; margin-bottom: 14px; }
.wl-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.wl-row .cs-field { flex: 1 1 180px; }
.wl-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.wl-sec { margin-top: 26px; }
.wl-ops { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.wl-op { display: grid; grid-template-columns: 180px 1fr 130px 120px; gap: 14px; align-items: center;
  padding: 14px 18px; font-size: 13.5px; background: var(--panel-2); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.wl-op:last-child { border-bottom: 0; }
.wl-op-when b { display: block; font-size: 13px; font-weight: 600; }
.wl-op-when small { color: var(--muted); font-size: 11.5px; }
.wl-op-what { color: #cbd5e1; }
.wl-op-state { font-size: 12.5px; color: var(--muted); }
.wl-op-state.ok { color: #4ade80; }
.wl-op-state.wait { color: #fbbf24; }
.wl-op-state.bad { color: #f87171; }
.wl-op-sum { text-align: right; font-weight: 700; }
.wl-op-sum.plus { color: #4ade80; }

/* кошелёк в шапке, рядом с аватаркой */
.nav-wallet { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; margin-right: 10px;
  border-radius: 999px; font-size: 13px; font-weight: 700; color: #c7d2fe;
  background: rgba(99, 102, 241, .16); border: 1px solid rgba(99, 102, 241, .32); }
.nav-wallet:hover { color: #fff; background: rgba(99, 102, 241, .28); }

@media (max-width: 760px) {
  .wl-op { grid-template-columns: 1fr auto; row-gap: 6px; }
  .wl-op-state { grid-column: 1; }
  .wl-op-sum { grid-column: 2; }
}
