/* wallet-ui.css — Carteira (Depósitos | Saques | Transações) */
.wallet-section { margin-top: 14px; }
.wallet-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
  background: var(--rx7-bg-surface, #232936); padding: 5px; border-radius: 12px;
}
.wallet-tab {
  flex: 1; border: none; cursor: pointer; padding: 10px 8px; border-radius: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: transparent; color: var(--rx7-text-muted, #8B95A8);
  transition: background .15s, color .15s;
}
.wallet-tab.is-active { background: var(--rx7-blue-primary, #0052FF); color: #fff; }
.wallet-panel { display: block; }
.wallet-panel[hidden] { display: none; }

.wallet-card {
  background: var(--rx7-bg-surface, #232936);
  border: 1px solid var(--rx7-border-subtle, #2D3548);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.wallet-card__title { font-size: 13px; font-weight: 800; color: var(--rx7-text, #E8ECF4); margin: 0 0 12px; }

.wallet-field { margin-bottom: 12px; }
.wallet-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rx7-text-muted, #8B95A8); margin-bottom: 6px; }
.wallet-input, .wallet-select {
  width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px;
  background: var(--rx7-bg-input, #2A3142); color: var(--rx7-text, #E8ECF4);
  border: 1px solid var(--rx7-border-subtle, #2D3548); border-radius: 10px;
  font-size: 15px; font-weight: 600; outline: none; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.wallet-input:focus, .wallet-select:focus { border-color: var(--rx7-blue-primary, #0052FF); }
.wallet-input[readonly] { opacity: .85; cursor: default; }
.wallet-input[data-empty="1"] { color: var(--rx7-danger, #DC2626); }
.wallet-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B95A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.wallet-btn {
  width: 100%; height: 52px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--rx7-blue-primary, #0052FF); color: #fff; font-size: 15px; font-weight: 700;
  transition: filter .15s; margin-top: 4px;
}
.wallet-btn:hover { filter: brightness(1.08); }
.wallet-btn:disabled { opacity: .6; cursor: not-allowed; }
.wallet-btn[data-loading="1"] { color: transparent; position: relative; }
.wallet-btn[data-loading="1"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: walletspin .7s linear infinite;
}
.wallet-btn--ghost { background: var(--rx7-bg-elevated, #2A3142); color: var(--rx7-text, #E8ECF4);
  border: 1px solid var(--rx7-border-subtle, #2D3548); }
@keyframes walletspin { to { transform: rotate(360deg); } }

.wallet-hint { font-size: 12px; color: var(--rx7-text-muted, #8B95A8); margin: 8px 0 0; line-height: 1.5; }

.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-empty { text-align: center; color: var(--rx7-text-muted, #8B95A8); font-size: 13px; padding: 22px 8px; }

.wallet-tx {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--rx7-bg-surface, #232936); border: 1px solid var(--rx7-border-subtle, #2D3548);
  border-radius: 12px;
}
.wallet-tx__ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.wallet-tx__ic--in { background: rgba(0,82,255,.14); color: #60A5FA; }
.wallet-tx__ic--out { background: rgba(245,158,11,.14); color: #F59E0B; }
.wallet-tx__mid { flex: 1; min-width: 0; }
.wallet-tx__title { font-size: 14px; font-weight: 700; color: var(--rx7-text, #E8ECF4); }
.wallet-tx__sub { font-size: 11px; color: var(--rx7-text-muted, #8B95A8); margin-top: 2px; }
.wallet-tx__right { text-align: right; flex-shrink: 0; }
.wallet-tx__amt { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-tx__amt--in { color: #60A5FA; }
.wallet-tx__amt--out { color: #F59E0B; }

.wallet-badge { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px; letter-spacing: .03em; }
.wallet-badge--completed { background: rgba(0,82,255,.16); color: #60A5FA; }
.wallet-badge--processing, .wallet-badge--pending { background: rgba(245,158,11,.16); color: #F59E0B; }
.wallet-badge--failed, .wallet-badge--cancelled { background: rgba(220,38,38,.16); color: #f87171; }

/* Modal de resultado "Saque solicitado" */
.wallet-result { position: fixed; inset: 0; z-index: 13000; display: flex; align-items: center;
  justify-content: center; padding: 18px; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); }
.wallet-result[hidden] { display: none; }
.wallet-result__card { width: 100%; max-width: 380px; background: var(--rx7-bg-surface, #232936);
  border: 1px solid var(--rx7-border-subtle, #2D3548); border-radius: 18px; padding: 26px 22px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.wallet-result__card--ok { border-color: rgba(0,82,255,.4); }
.wallet-result__card--err { border-color: rgba(220,38,38,.4); }
.wallet-result__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; }
.wallet-result__card--ok .wallet-result__icon { background: rgba(0,82,255,.16); color: #60A5FA; }
.wallet-result__card--err .wallet-result__icon { background: rgba(220,38,38,.16); color: #f87171; }
.wallet-result__title { font-size: 19px; font-weight: 800; color: var(--rx7-text, #E8ECF4); margin: 0 0 8px; }
.wallet-result__msg { font-size: 14px; color: var(--rx7-text-muted, #8B95A8); line-height: 1.55; margin: 0 0 20px; }
.wallet-result__msg b { color: var(--rx7-text, #E8ECF4); }
.wallet-result__close { width: 100%; height: 50px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--rx7-blue-primary, #0052FF); color: #fff; font-size: 15px; font-weight: 700; }

/* Desktop: alinhado à coluna maior do app */
@media (min-width: 900px) {
  .wallet-section { max-width: 760px; margin-left: auto; margin-right: auto; }
}
