/* ==========================================================================
   VEX ONE — Portafoglio (saldo, ricarica, richieste, movimenti)
   ========================================================================== */

body { background: var(--color-bg); }

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .wallet-grid { grid-template-columns: 400px 1fr; }
  .wallet-side { position: sticky; top: 86px; }
}

/* ── Saldo ── */
.balance-card {
  background: var(--color-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.balance-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184, 255, 0, .16), transparent 70%);
  pointer-events: none;
}
.balance-card .k { font-size: var(--text-xs); font-weight: 600; color: rgba(255, 255, 255, .6); margin: 0 0 6px; }
.balance-card .v { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.balance-card .pending { margin: 10px 0 0; font-size: var(--text-xs); color: rgba(255, 255, 255, .7); }
.balance-card .pending strong { color: var(--color-lime); font-weight: 700; }

/* ── Ricarica ── */
.amount-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.amount-chip {
  font: 600 13px var(--font-sans);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  cursor: pointer;
  transition: all var(--duration);
}
.amount-chip:hover { border-color: #C7CBD3; }
.amount-chip.on { background: var(--color-dark); border-color: var(--color-dark); color: #FFFFFF; }

.pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color var(--duration);
}
.pay-method.on { border-color: var(--color-blue); background: #F5F9FF; }
.pay-method[disabled] { cursor: not-allowed; opacity: .6; }
.pay-method .t { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--color-dark); }
.pay-method .d { display: block; font-size: var(--text-xs); color: var(--color-text-secondary); }
.pay-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C7CBD3; flex-shrink: 0; }
.pay-method.on .pay-radio { border-color: var(--color-blue); box-shadow: inset 0 0 0 3px #FFFFFF; background: var(--color-blue); }

.bank-box {
  background: var(--color-bg);
  border: 1px dashed #C7CBD3;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: var(--text-sm);
}
.bank-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.bank-row .k { color: var(--color-text-secondary); }
.bank-row .v { font-weight: 700; text-align: right; word-break: break-all; }
.causale { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-blue); }

/* ── Tabelle richieste e movimenti ── */
.tx-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-light);
}
.tx-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}
.tx-row:last-child { border-bottom: none; }
.tx-row .date { color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 600; }
.tx-row .desc { font-weight: 600; color: var(--color-dark); overflow-wrap: anywhere; }
.tx-row .meta { display: block; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
.tx-row .amt { font-weight: 700; text-align: right; white-space: nowrap; }
.tx-row .amt.plus { color: var(--color-success); }
.tx-row .note { display: block; font-size: var(--text-xs); color: var(--color-warning); margin-top: 2px; }
.tx-empty { padding: 36px 20px; text-align: center; font-size: var(--text-sm); color: var(--color-text-secondary); }

.st {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-top: 4px;
}

.section-title { font-size: var(--text-base); font-weight: 700; letter-spacing: -.01em; margin: 0; }

/* Ricarica con carta o PayPal (pulsanti ufficiali PayPal) */
.pp-box { border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 16px; }
.pp-box[hidden], #btn-ricarica[hidden] { display: none; }
#pp-host:empty { display: none; }
.pp-state { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.pp-state:empty { display: none; }
#pp-host + .pp-state:not(:empty) { margin-top: 10px; }
.pp-state.ok { color: var(--color-success); font-weight: 600; }
.pp-state.err { color: var(--color-error); font-weight: 600; }
