.rv-page { max-width: 1040px; }
.rv-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-md); margin-bottom: var(--sp-md); }
.rv-balance {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--grad); color: #fff; box-shadow: var(--shadow-md);
}
.rv-balance::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none; }
.rv-bal-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: 0.5px; opacity: 0.85; }
.rv-bal-head i { font-size: 22px; }
.rv-bal-amount { font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rv-bal-pending { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: 0.85; min-height: 18px; }
.rv-withdraw-btn {
  align-self: flex-start; margin-top: 12px; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-full);
  background: #fff; color: var(--blue); font-size: 14px; font-weight: 600;
  transition: transform var(--t), opacity var(--t); cursor: pointer;
}
.rv-withdraw-btn:hover { transform: translateY(-1px); }
.rv-withdraw-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.rv-withdraw-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rv-stats { display: grid; grid-template-rows: 1fr 1fr; gap: var(--sp-md); }
.rv-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: var(--r-md);
}
.rv-stat strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rv-stat-l { font-size: 12.5px; color: var(--text-3); }
.rv-stat-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-md); display: grid; place-items: center; font-size: 20px; }
.rv-stat-ic.in, .rv-row-ic.in { background: rgba(46,94,78,0.1); color: var(--green); }
.rv-stat-ic.out, .rv-row-ic.out { background: rgba(0,58,112,0.08); color: var(--blue); }
.rv-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--bg-soft); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: var(--sp-lg); line-height: 1.5; }
.rv-note i { font-size: 18px; color: var(--blue); flex-shrink: 0; }
.rv-history { background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: var(--r-lg); padding: 18px; }
.rv-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-history-head h2 { font-size: 17px; }
.rv-filters { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: var(--r-full); }
.rv-filter { min-height: 36px; padding: 0 14px; border-radius: var(--r-full); font-size: 13px; color: var(--text-2); font-weight: 500; }
.rv-filter.on { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }
.rv-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border-lt); }
.rv-row:last-child { border-bottom: 0; }
.rv-row-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-full); display: grid; place-items: center; font-size: 18px; }
.rv-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-row-t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row-d { font-size: 12px; color: var(--text-3); }
.rv-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rv-row-amt { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rv-row-amt.in { color: var(--green); }
.rv-row-amt.out { color: var(--text); }
.rv-row-amt.void { color: var(--text-3); text-decoration: line-through; }
.rv-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-full); }
.rv-badge.pending { background: rgba(166,161,26,0.15); color: #7a7612; }
.rv-badge.ok { background: rgba(46,94,78,0.12); color: var(--green); }
.rv-badge.ko { background: rgba(192,57,43,0.1); color: #c0392b; }
.rv-empty { text-align: center; padding: 36px 16px; color: var(--text-3); }
.rv-empty i { font-size: 32px; display: block; margin-bottom: 8px; }
.rv-empty p { font-size: 13px; }
.rv-modal { max-width: 440px; }
.rv-m-bal { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-soft); margin-bottom: 16px; font-size: 13px; color: var(--text-3); }
.rv-m-bal strong { font-size: 17px; color: var(--text); }
.rv-amount-wrap, .rv-phone-wrap { display: flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-card); transition: border-color var(--t); }
.rv-amount-wrap:focus-within, .rv-phone-wrap:focus-within { border-color: var(--blue); }
.rv-amount-wrap .field-input, .rv-phone-wrap .field-input { border: 0; border-radius: 0; flex: 1; min-width: 0; min-height: 46px; box-shadow: none; }
.rv-max { padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--blue); border-left: 1px solid var(--border); min-height: 46px; }
.rv-max:hover { background: var(--bg-soft); }
.rv-prefix { display: grid; place-items: center; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--text-2); border-right: 1px solid var(--border); background: var(--bg-soft); }
.rv-op { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 8px; min-height: 18px; }
.rv-op.found { color: var(--green); font-weight: 500; }
.rv-spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .rv-top { grid-template-columns: 1fr; }
  .rv-stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .rv-stat { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 420px) {
  .rv-stats { grid-template-columns: 1fr; }
  .rv-stat { flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .rv-withdraw-btn, .rv-spin { transition: none; animation: none; } }
