/* ════════════════════════════════════════════════════════════
   WALLET — Variables
════════════════════════════════════════════════════════════ */
:root,
html[data-theme="dark"] {
    --wl-deposit-bg    : linear-gradient(135deg,#059669,#10b981);
    --wl-withdraw-bg   : linear-gradient(135deg,#d97706,#f59e0b);
    --wl-total-bg      : linear-gradient(135deg,#4f46e5,#6366f1);
    --wl-info-bg       : linear-gradient(135deg,#0284c7,#06b6d4);

    --wl-item-bg       : rgba(255,255,255,.03);
    --wl-item-border   : rgba(255,255,255,.06);
    --wl-item-hover    : rgba(255,255,255,.055);
    --wl-divider       : rgba(255,255,255,.05);

    --wl-badge-deposit-bg    : rgba(16,185,129,.12);
    --wl-badge-deposit-border: rgba(16,185,129,.25);
    --wl-badge-deposit-color : #34d399;
    --wl-badge-withdraw-bg   : rgba(239,68,68,.12);
    --wl-badge-withdraw-border: rgba(239,68,68,.25);
    --wl-badge-withdraw-color: #f87171;
    --wl-badge-prize-bg      : rgba(99,102,241,.12);
    --wl-badge-prize-border  : rgba(99,102,241,.25);
    --wl-badge-prize-color   : #818cf8;
    --wl-badge-card-bg       : rgba(245,158,11,.12);
    --wl-badge-card-border   : rgba(245,158,11,.25);
    --wl-badge-card-color    : #fbbf24;
    --wl-badge-ref-bg        : rgba(6,182,212,.12);
    --wl-badge-ref-border    : rgba(6,182,212,.25);
    --wl-badge-ref-color     : #22d3ee;

    --wl-estado-pending-bg   : rgba(245,158,11,.12);
    --wl-estado-pending-bd   : rgba(245,158,11,.25);
    --wl-estado-pending-cl   : #fbbf24;
    --wl-estado-approved-bg  : rgba(16,185,129,.12);
    --wl-estado-approved-bd  : rgba(16,185,129,.25);
    --wl-estado-approved-cl  : #34d399;
    --wl-estado-rejected-bg  : rgba(239,68,68,.12);
    --wl-estado-rejected-bd  : rgba(239,68,68,.25);
    --wl-estado-rejected-cl  : #f87171;

    --wl-amount-plus  : #34d399;
    --wl-amount-minus : #f87171;

    --wl-input-bg     : rgba(255,255,255,.04);
    --wl-input-border : rgba(255,255,255,.1);
    --wl-input-focus  : rgba(99,102,241,.4);
    --wl-input-color  : #f1f5f9;
    --wl-label-color  : #94a3b8;

    --wl-alert-info-bg    : rgba(6,182,212,.08);
    --wl-alert-info-border: rgba(6,182,212,.2);
    --wl-alert-info-color : #22d3ee;
    --wl-alert-warn-bg    : rgba(245,158,11,.08);
    --wl-alert-warn-border: rgba(245,158,11,.2);
    --wl-alert-warn-color : #fbbf24;

    --wl-filter-active-bg  : linear-gradient(135deg,#6366f1,#4f46e5);
    --wl-filter-inactive-bg: rgba(255,255,255,.04);
    --wl-filter-inactive-bd: rgba(255,255,255,.08);
    --wl-filter-inactive-cl: #94a3b8;

    --wl-copy-bg    : rgba(255,255,255,.06);
    --wl-copy-hover : rgba(99,102,241,.2);
    --wl-copy-border: rgba(255,255,255,.1);

    --wl-pagination-bg    : rgba(255,255,255,.04);
    --wl-pagination-border: rgba(255,255,255,.08);
    --wl-pagination-hover : rgba(255,255,255,.08);
    --wl-pagination-active: linear-gradient(135deg,#6366f1,#4f46e5);
    --wl-pagination-color : #94a3b8;
}

html[data-theme="light"] {
    --wl-deposit-bg    : linear-gradient(135deg,#059669,#10b981);
    --wl-withdraw-bg   : linear-gradient(135deg,#d97706,#f59e0b);
    --wl-total-bg      : linear-gradient(135deg,#4f46e5,#6366f1);
    --wl-info-bg       : linear-gradient(135deg,#0284c7,#06b6d4);

    --wl-item-bg       : #f8fafc;
    --wl-item-border   : rgba(0,0,0,.06);
    --wl-item-hover    : rgba(99,102,241,.04);
    --wl-divider       : rgba(0,0,0,.05);

    --wl-badge-deposit-bg    : rgba(16,185,129,.08);
    --wl-badge-deposit-border: rgba(16,185,129,.2);
    --wl-badge-deposit-color : #059669;
    --wl-badge-withdraw-bg   : rgba(239,68,68,.08);
    --wl-badge-withdraw-border: rgba(239,68,68,.2);
    --wl-badge-withdraw-color: #dc2626;
    --wl-badge-prize-bg      : rgba(99,102,241,.08);
    --wl-badge-prize-border  : rgba(99,102,241,.2);
    --wl-badge-prize-color   : #4f46e5;
    --wl-badge-card-bg       : rgba(245,158,11,.08);
    --wl-badge-card-border   : rgba(245,158,11,.2);
    --wl-badge-card-color    : #d97706;
    --wl-badge-ref-bg        : rgba(6,182,212,.08);
    --wl-badge-ref-border    : rgba(6,182,212,.2);
    --wl-badge-ref-color     : #0891b2;

    --wl-estado-pending-bg   : rgba(245,158,11,.08);
    --wl-estado-pending-bd   : rgba(245,158,11,.2);
    --wl-estado-pending-cl   : #d97706;
    --wl-estado-approved-bg  : rgba(16,185,129,.08);
    --wl-estado-approved-bd  : rgba(16,185,129,.2);
    --wl-estado-approved-cl  : #059669;
    --wl-estado-rejected-bg  : rgba(239,68,68,.08);
    --wl-estado-rejected-bd  : rgba(239,68,68,.2);
    --wl-estado-rejected-cl  : #dc2626;

    --wl-amount-plus  : #059669;
    --wl-amount-minus : #dc2626;

    --wl-input-bg     : #ffffff;
    --wl-input-border : rgba(0,0,0,.12);
    --wl-input-focus  : rgba(99,102,241,.3);
    --wl-input-color  : #0f172a;
    --wl-label-color  : #475569;

    --wl-alert-info-bg    : rgba(6,182,212,.06);
    --wl-alert-info-border: rgba(6,182,212,.18);
    --wl-alert-info-color : #0891b2;
    --wl-alert-warn-bg    : rgba(245,158,11,.06);
    --wl-alert-warn-border: rgba(245,158,11,.18);
    --wl-alert-warn-color : #d97706;

    --wl-filter-active-bg  : linear-gradient(135deg,#6366f1,#4f46e5);
    --wl-filter-inactive-bg: #ffffff;
    --wl-filter-inactive-bd: rgba(0,0,0,.08);
    --wl-filter-inactive-cl: #64748b;

    --wl-copy-bg    : #f1f5f9;
    --wl-copy-hover : rgba(99,102,241,.1);
    --wl-copy-border: rgba(0,0,0,.08);

    --wl-pagination-bg    : #ffffff;
    --wl-pagination-border: rgba(0,0,0,.08);
    --wl-pagination-hover : #f1f5f9;
    --wl-pagination-active: linear-gradient(135deg,#6366f1,#4f46e5);
    --wl-pagination-color : #64748b;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.wl-header {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : 1rem;
    margin-bottom  : 1.25rem;
    flex-wrap      : wrap;
}
.wl-header-left { display: flex; align-items: center; gap: .85rem; }
.wl-back-btn {
    width          : 38px;
    height         : 38px;
    border-radius  : 10px;
    background     : var(--pd-bg-back-btn);
    border         : 1px solid var(--pd-border);
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : var(--pd-text-back);
    text-decoration: none;
    flex-shrink    : 0;
    transition     : background .2s, color .2s;
}
.wl-back-btn:hover { background: var(--pd-bg-back-hover); color: var(--pd-text-primary); }
.wl-breadcrumb {
    font-size     : .62rem;
    color         : var(--pd-text-faint);
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom : .15rem;
}
.wl-title {
    font-size  : 1.15rem;
    font-weight: 800;
    color      : var(--pd-text-primary);
    margin     : 0;
    line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   WALLET CARDS (saldo)
════════════════════════════════════════════════════════════ */
.wl-balance-grid {
    display              : grid;
    grid-template-columns: repeat(3,1fr);
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}
@media (max-width: 900px) { .wl-balance-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .wl-balance-grid { grid-template-columns: 1fr; } }

.wl-balance-card {
    border-radius : 16px;
    padding       : 1.25rem 1.3rem;
    color         : #fff;
    position      : relative;
    overflow      : hidden;
    display       : flex;
    flex-direction: column;
    gap           : .4rem;
    box-shadow    : 0 4px 20px rgba(0,0,0,.15);
    transition    : transform .2s, box-shadow .2s;
}
.wl-balance-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.wl-balance-card::before {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.wl-balance-card::after {
    content: ''; position: absolute; right: 20px; bottom: -30px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.wl-balance-total    { background: var(--wl-total-bg);    box-shadow: 0 4px 20px rgba(99,102,241,.3); }
.wl-balance-deposit  { background: var(--wl-deposit-bg);  box-shadow: 0 4px 20px rgba(16,185,129,.3); }
.wl-balance-withdraw { background: var(--wl-withdraw-bg); box-shadow: 0 4px 20px rgba(245,158,11,.3); }
.wl-balance-info     { background: var(--wl-info-bg);     box-shadow: 0 4px 20px rgba(6,182,212,.3); }

.wl-balance-top {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : relative;
    z-index        : 1;
}
.wl-balance-icon {
    width          : 38px;
    height         : 38px;
    border-radius  : 11px;
    background     : rgba(255,255,255,.2);
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : .95rem;
}
.wl-balance-label {
    font-size     : .62rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity       : .8;
}
.wl-balance-amount {
    font-size           : 1.5rem;
    font-weight         : 900;
    line-height         : 1;
    font-variant-numeric: tabular-nums;
    position            : relative;
    z-index             : 1;
    white-space         : nowrap;
    overflow            : hidden;
    text-overflow       : ellipsis;
}
.wl-balance-sub {
    font-size  : .68rem;
    opacity    : .75;
    display    : flex;
    align-items: center;
    gap        : .3rem;
    position   : relative;
    z-index    : 1;
}

/* ════════════════════════════════════════════════════════════
   BOTONES ACCIÓN (depositar / retirar)
════════════════════════════════════════════════════════════ */
.wl-action-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}
@media (max-width: 480px) { .wl-action-grid { grid-template-columns: 1fr; } }

.wl-action-btn {
    display        : flex;
    align-items    : center;
    gap            : .85rem;
    padding        : 1rem 1.25rem;
    border-radius  : 14px;
    text-decoration: none;
    color          : #fff;
    position       : relative;
    overflow       : hidden;
    transition     : transform .2s, box-shadow .2s;
    box-shadow     : 0 4px 16px rgba(0,0,0,.15);
}
.wl-action-btn:hover { transform: translateY(-3px); color: #fff; }
.wl-action-btn::after {
    content: ''; position: absolute; right: -15px; top: -15px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.wl-action-deposit  { background: var(--wl-deposit-bg);  }
.wl-action-deposit:hover  { box-shadow: 0 8px 24px rgba(16,185,129,.4); }
.wl-action-withdraw { background: var(--wl-withdraw-bg); }
.wl-action-withdraw:hover { box-shadow: 0 8px 24px rgba(245,158,11,.4); }

.wl-action-btn-icon {
    width          : 46px;
    height         : 46px;
    border-radius  : 13px;
    background     : rgba(255,255,255,.2);
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.2rem;
    flex-shrink    : 0;
    position       : relative;
    z-index        : 1;
}
.wl-action-btn-body { position: relative; z-index: 1; }
.wl-action-btn-label {
    font-size     : .62rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity       : .8;
}
.wl-action-btn-title {
    font-size  : 1rem;
    font-weight: 800;
    line-height: 1.2;
}
.wl-action-btn-arrow {
    margin-left: auto;
    font-size  : .85rem;
    opacity    : .7;
    position   : relative;
    z-index    : 1;
    transition : transform .2s;
}
.wl-action-btn:hover .wl-action-btn-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════
   FILTROS TRANSACCIONES
════════════════════════════════════════════════════════════ */
.wl-filters {
    display      : flex;
    gap          : .5rem;
    flex-wrap    : wrap;
    margin-bottom: 1.25rem;
}
.wl-filter-btn {
    display        : inline-flex;
    align-items    : center;
    gap            : .35rem;
    padding        : .4rem .9rem;
    border-radius  : 50px;
    font-size      : .72rem;
    font-weight    : 700;
    text-decoration: none;
    border         : 1px solid transparent;
    cursor         : pointer;
    transition     : transform .15s, opacity .15s, background .2s;
    letter-spacing : .03em;
    white-space    : nowrap;
}
.wl-filter-btn:hover  { transform: translateY(-1px); opacity: .9; }
.wl-filter-btn.active {
    background  : var(--wl-filter-active-bg);
    color       : #fff;
    box-shadow  : 0 4px 14px rgba(99,102,241,.35);
    border-color: transparent;
}
.wl-filter-btn:not(.active) {
    background  : var(--wl-filter-inactive-bg);
    color       : var(--wl-filter-inactive-cl);
    border-color: var(--wl-filter-inactive-bd);
}

@media (max-width: 580px) {
    .wl-filters { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; }
    .wl-filter-btn { justify-content: center; text-align: center; padding: .45rem .25rem; font-size: .68rem; }
}

/* ════════════════════════════════════════════════════════════
   TABLA / LISTA TRANSACCIONES
════════════════════════════════════════════════════════════ */
.wl-tx-table-wrap { overflow-x: auto; }
.wl-tx-table {
    width          : 100%;
    border-collapse: collapse;
    font-size      : .8rem;
}
.wl-tx-table thead tr { border-bottom: 1px solid var(--wl-divider); }
.wl-tx-table th {
    padding       : .65rem 1rem;
    color         : var(--pd-text-faint);
    font-size     : .6rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space   : nowrap;
}
.wl-tx-table td {
    padding       : .75rem 1rem;
    color         : var(--pd-text-secondary);
    border-bottom : 1px solid var(--wl-divider);
    vertical-align: middle;
}
.wl-tx-table tbody tr:last-child td { border-bottom: none; }
.wl-tx-table tbody tr:hover td      { background: var(--wl-item-hover); }

/* ── ID ── */
.wl-tx-id {
    font-size           : .7rem;
    font-weight         : 700;
    color               : var(--pd-text-faint);
    font-variant-numeric: tabular-nums;
}

/* ── Tipo badges ── */
.wl-tipo-badge {
    display       : inline-flex;
    align-items   : center;
    gap           : .3rem;
    padding       : .2rem .6rem;
    border-radius : 50px;
    font-size     : .62rem;
    font-weight   : 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space   : nowrap;
    border        : 1px solid transparent;
}
.wl-tipo-deposito    { background: var(--wl-badge-deposit-bg);  border-color: var(--wl-badge-deposit-border);  color: var(--wl-badge-deposit-color); }
.wl-tipo-retiro      { background: var(--wl-badge-withdraw-bg); border-color: var(--wl-badge-withdraw-border); color: var(--wl-badge-withdraw-color); }
.wl-tipo-premio      { background: var(--wl-badge-prize-bg);    border-color: var(--wl-badge-prize-border);    color: var(--wl-badge-prize-color); }
.wl-tipo-compra      { background: var(--wl-badge-card-bg);     border-color: var(--wl-badge-card-border);     color: var(--wl-badge-card-color); }
.wl-tipo-referido    { background: var(--wl-badge-ref-bg);      border-color: var(--wl-badge-ref-border);      color: var(--wl-badge-ref-color); }

/* ── Monto ── */
.wl-amount {
    font-size           : .88rem;
    font-weight         : 800;
    font-variant-numeric: tabular-nums;
    white-space         : nowrap;
}
.wl-amount.plus  { color: var(--wl-amount-plus); }
.wl-amount.minus { color: var(--wl-amount-minus); }

/* ── Estado badges ── */
.wl-estado-badge {
    display       : inline-flex;
    align-items   : center;
    gap           : .3rem;
    padding       : .2rem .6rem;
    border-radius : 50px;
    font-size     : .62rem;
    font-weight   : 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space   : nowrap;
    border        : 1px solid transparent;
}
.wl-estado-pendiente { background: var(--wl-estado-pending-bg);  border-color: var(--wl-estado-pending-bd);  color: var(--wl-estado-pending-cl); }
.wl-estado-aprobado  { background: var(--wl-estado-approved-bg); border-color: var(--wl-estado-approved-bd); color: var(--wl-estado-approved-cl); }
.wl-estado-rechazado { background: var(--wl-estado-rejected-bg); border-color: var(--wl-estado-rejected-bd); color: var(--wl-estado-rejected-cl); }

.wl-estado-dot {
    width        : 5px;
    height       : 5px;
    border-radius: 50%;
    background   : currentColor;
    flex-shrink  : 0;
}
.wl-estado-pendiente .wl-estado-dot { animation: dot-pulse 1.4s ease-in-out infinite; }

/* ── Fecha ── */
.wl-fecha {
    font-size  : .75rem;
    color      : var(--pd-text-faint);
    white-space: nowrap;
}
.wl-fecha-date { font-weight: 600; color: var(--pd-text-secondary); display: block; }
.wl-fecha-time { font-size: .65rem; }

/* ── Método ── */
.wl-metodo {
    font-size  : .75rem;
    font-weight: 600;
    color      : var(--pd-text-muted);
}

/* ── Referencia ── */
.wl-ref {
    font-size    : .72rem;
    color        : var(--pd-text-faint);
    max-width    : 120px;
    overflow     : hidden;
    text-overflow: ellipsis;
    white-space  : nowrap;
}

/* ════════════════════════════════════════════════════════════
   MOBILE CARDS (transacciones en móvil)
════════════════════════════════════════════════════════════ */
.wl-tx-cards { display: none; flex-direction: column; gap: .6rem; padding: .75rem; }
.wl-tx-card {
    background   : var(--wl-item-bg);
    border       : 1px solid var(--wl-item-border);
    border-radius: 12px;
    padding      : .85rem;
    transition   : background .2s;
}
.wl-tx-card:hover { background: var(--wl-item-hover); }
.wl-tx-card-top {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : .5rem;
    margin-bottom  : .6rem;
}
.wl-tx-card-left  { display: flex; align-items: center; gap: .5rem; }
.wl-tx-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.wl-tx-card-meta  { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.wl-tx-card-meta-item {
    display   : flex;
    align-items: center;
    gap       : .3rem;
    font-size : .68rem;
    color     : var(--pd-text-faint);
}
.wl-tx-card-meta-item i { font-size: .6rem; color: #6366f1; }

@media (max-width: 640px) {
    .wl-tx-table-wrap { display: none; }
    .wl-tx-cards      { display: flex; }
}

/* ════════════════════════════════════════════════════════════
   PAGINACIÓN
════════════════════════════════════════════════════════════ */
.wl-pagination {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : .4rem;
    padding        : 1rem;
    flex-wrap      : wrap;
}
.wl-page-btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    min-width      : 34px;
    height         : 34px;
    padding        : 0 .6rem;
    border-radius  : 9px;
    font-size      : .78rem;
    font-weight    : 700;
    text-decoration: none;
    border         : 1px solid var(--wl-pagination-border);
    background     : var(--wl-pagination-bg);
    color          : var(--wl-pagination-color);
    transition     : background .2s, color .2s, transform .15s;
    cursor         : pointer;
    font-variant-numeric: tabular-nums;
}
.wl-page-btn:hover:not(.active):not(.disabled) {
    background: var(--wl-pagination-hover);
    color     : var(--pd-text-primary);
    transform : translateY(-1px);
}
.wl-page-btn.active {
    background  : var(--wl-pagination-active);
    color       : #fff;
    border-color: transparent;
    box-shadow  : 0 4px 12px rgba(99,102,241,.35);
}
.wl-page-btn.disabled {
    opacity       : .35;
    cursor        : not-allowed;
    pointer-events: none;
}
.wl-page-info {
    font-size  : .72rem;
    color      : var(--pd-text-faint);
    font-weight: 600;
    padding    : 0 .5rem;
}

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════════════ */
.wl-empty {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    justify-content: center;
    gap            : .75rem;
    padding        : 3.5rem 2rem;
    text-align     : center;
}
.wl-empty-icon {
    width          : 68px;
    height         : 68px;
    border-radius  : 50%;
    background     : var(--pd-bg-item);
    border         : 1px solid var(--pd-border);
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.6rem;
    color          : var(--pd-text-muted);
}
.wl-empty-title { font-size: .95rem; font-weight: 700; color: var(--pd-text-secondary); margin: 0; }
.wl-empty-desc  { font-size: .75rem; color: var(--pd-text-faint); margin: 0; }

/* ════════════════════════════════════════════════════════════
   FORMULARIOS (depositar / retirar)
════════════════════════════════════════════════════════════ */
.wl-form-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
    margin-bottom        : 1rem;
}
@media (max-width: 640px) { .wl-form-grid { grid-template-columns: 1fr; } }

.wl-form-group { display: flex; flex-direction: column; gap: .4rem; }
.wl-form-label {
    font-size     : .68rem;
    font-weight   : 700;
    color         : var(--wl-label-color);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.wl-form-label span { color: #f87171; margin-left: .15rem; }

.wl-form-control {
    width           : 100%;
    padding         : .65rem .9rem;
    border-radius   : 11px;
    border          : 1px solid var(--wl-item-border);
    background      : var(--wl-item-bg);
    color           : var(--pd-text-primary);
    font-size       : .85rem;
    font-weight     : 600;
    transition      : border-color .2s, box-shadow .2s;
    outline         : none;
    appearance      : auto;
    -webkit-appearance: auto;
}

.wl-form-control:focus {
    border-color: #6366f1;
    box-shadow  : 0 0 0 3px rgba(99,102,241,.15);
}
.wl-form-control::placeholder {
    color      : var(--pd-text-faint);
    font-weight: 500;
}

select.wl-form-control,
select.wl-form-control.form-control,
select.form-control.wl-form-control {
    background-image   : none !important;
    background-repeat  : no-repeat !important;
    background-position: unset !important;
    background-size    : unset !important;
    appearance         : none !important;
    -webkit-appearance : none !important;
    -moz-appearance    : none !important;
    padding-right      : .9rem !important;
}

html[data-theme="light"] select.wl-form-control,
html[data-theme="light"] select.wl-form-control.form-control,
html[data-theme="light"] select.form-control.wl-form-control {
    background-image   : none !important;
    appearance         : none !important;
    -webkit-appearance : none !important;
    -moz-appearance    : none !important;
}

select.wl-form-control option {
    background-color: #433c67;
    color           : #e2e8f0;
    font-weight     : 600;
    padding         : .4rem .6rem;
}

select.wl-form-control option:checked,
select.wl-form-control option:hover {
    background-color: #6366f1;
    color           : #ffffff;
}

select.wl-form-control option[value=""] {
    color: #94a3b8;
}

html[data-theme="light"] .wl-form-control {
    background : #ffffff;
    border-color: #e2e8f0;
    color      : #1e293b;
}

html[data-theme="light"] .wl-form-control:focus {
    border-color: #6366f1;
    box-shadow  : 0 0 0 3px rgba(99,102,241,.12);
}

html[data-theme="light"] .wl-form-control::placeholder {
    color: #94a3b8;
}

html[data-theme="light"] select.wl-form-control option {
    background-color: #ffffff;
    color           : #1e293b;
}

html[data-theme="light"] select.wl-form-control option:checked,
html[data-theme="light"] select.wl-form-control option:hover {
    background-color: #6366f1;
    color           : #ffffff;
}

html[data-theme="light"] select.wl-form-control option[value=""] {
    color: #94a3b8;
}

/* ── Textarea ── */
textarea.wl-form-control {
    resize    : vertical;
    min-height: 90px;
}

/* ── Disabled ── */
.wl-form-control:disabled,
.wl-form-control[readonly] {
    opacity : .6;
    cursor  : not-allowed;
}

textarea.wl-form-control { resize: vertical; min-height: 80px; }

.wl-form-hint {
    font-size : .65rem;
    color     : var(--pd-text-faint);
}
.wl-form-hint.success { color: var(--wl-amount-plus); }
.wl-form-hint.danger  { color: var(--wl-amount-minus); }

/* ── Método detalles (datos bancarios) ── */
.wl-method-details {
    background   : var(--wl-item-bg);
    border       : 1px solid var(--wl-item-border);
    border-radius: 12px;
    padding      : .85rem;
    margin-bottom: 1rem;
    display      : none;
}
.wl-method-details.visible { display: block; }
.wl-method-row {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : .75rem;
    padding        : .5rem 0;
    border-bottom  : 1px solid var(--wl-divider);
}
.wl-method-row:last-of-type { border-bottom: none; }
.wl-method-key {
    font-size     : .65rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color         : var(--pd-text-faint);
    flex-shrink   : 0;
}
.wl-method-val {
    font-size  : .82rem;
    font-weight: 700;
    color      : var(--pd-text-primary);
    word-break : break-all;
}
.wl-copy-btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 28px;
    height         : 28px;
    border-radius  : 8px;
    background     : var(--wl-copy-bg);
    border         : 1px solid var(--wl-copy-border);
    color          : var(--pd-text-muted);
    cursor         : pointer;
    flex-shrink    : 0;
    transition     : background .2s, color .2s;
    font-size      : .7rem;
}
.wl-copy-btn:hover { background: var(--wl-copy-hover); color: #818cf8; }
.wl-copy-all-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : .4rem;
    width          : 100%;
    padding        : .5rem;
    border-radius  : 9px;
    background     : var(--wl-copy-bg);
    border         : 1px solid var(--wl-copy-border);
    color          : var(--pd-text-muted);
    font-size      : .72rem;
    font-weight    : 700;
    cursor         : pointer;
    margin-top     : .6rem;
    transition     : background .2s, color .2s;
}
.wl-copy-all-btn:hover { background: var(--wl-copy-hover); color: #818cf8; }

/* ── Alertas ── */
.wl-alert {
    display      : flex;
    gap          : .75rem;
    padding      : .9rem 1rem;
    border-radius: 12px;
    font-size    : .78rem;
    font-weight  : 600;
    margin-bottom: 1rem;
    line-height  : 1.5;
}
.wl-alert i { font-size: .9rem; flex-shrink: 0; margin-top: .1rem; }
.wl-alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.wl-alert li { margin-bottom: .2rem; }
.wl-alert-info {
    background  : var(--wl-alert-info-bg);
    border      : 1px solid var(--wl-alert-info-border);
    color       : var(--wl-alert-info-color);
}
.wl-alert-warn {
    background  : var(--wl-alert-warn-bg);
    border      : 1px solid var(--wl-alert-warn-border);
    color       : var(--wl-alert-warn-color);
}

/* ── Submit btn ── */
.wl-submit-btn {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : .5rem;
    width          : 100%;
    padding        : .8rem 1rem;
    border-radius  : 13px;
    font-size      : .88rem;
    font-weight    : 800;
    color          : #fff;
    border         : none;
    cursor         : pointer;
    transition     : transform .15s, box-shadow .15s, opacity .15s;
    letter-spacing : .03em;
}
.wl-submit-btn:hover  { transform: translateY(-2px); opacity: .93; }
.wl-submit-btn:active { transform: scale(.97); }
.wl-submit-deposit  { background: var(--wl-deposit-bg);  box-shadow: 0 4px 16px rgba(16,185,129,.35); }
.wl-submit-withdraw { background: var(--wl-withdraw-bg); box-shadow: 0 4px 16px rgba(245,158,11,.35); }

/* ── File input ── */
.wl-file-wrap {
    position     : relative;
    border-radius: 11px;
    border       : 2px dashed var(--wl-input-border);
    padding      : 1rem;
    text-align   : center;
    cursor       : pointer;
    transition   : border-color .2s, background .2s;
}
.wl-file-wrap:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.04); }
.wl-file-wrap input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.wl-file-icon { font-size: 1.4rem; color: var(--pd-text-faint); margin-bottom: .35rem; }
.wl-file-label { font-size: .75rem; font-weight: 600; color: var(--pd-text-muted); }
.wl-file-hint  { font-size: .65rem; color: var(--pd-text-faint); margin-top: .2rem; }

/* ════════════════════════════════════════════════════════════
   BALANCE 2 COLS (depositar / retirar)
════════════════════════════════════════════════════════════ */
.wl-balance-2 {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}
@media (max-width: 540px) { .wl-balance-2 { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   MODAL COMPROBANTE
════════════════════════════════════════════════════════════ */
.wl-modal-overlay {
    position        : fixed;
    inset           : 0;
    background      : rgba(0,0,0,.65);
    backdrop-filter : blur(4px);
    z-index         : 9999;
    display         : flex;
    align-items     : center;
    justify-content : center;
    padding         : 1rem;
    opacity         : 0;
    pointer-events  : none;
    transition      : opacity .25s ease;
}
.wl-modal-overlay.open {
    opacity        : 1;
    pointer-events : all;
}
.wl-modal {
    background   : var(--pd-bg-card);
    border       : 1px solid var(--pd-border);
    border-radius: 20px;
    width        : 100%;
    max-width    : 440px;
    box-shadow   : 0 24px 60px rgba(0,0,0,.4);
    transform    : translateY(20px) scale(.97);
    transition   : transform .25s ease, opacity .25s ease;
    overflow     : hidden;
}
.wl-modal-overlay.open .wl-modal {
    transform: translateY(0) scale(1);
}

/* ── Header modal ── */
.wl-modal-header {
    padding        : 1.25rem 1.4rem 1rem;
    display        : flex;
    align-items    : flex-start;
    justify-content: space-between;
    gap            : 1rem;
    border-bottom  : 1px solid var(--wl-divider);
}
.wl-modal-header-left { display: flex; align-items: center; gap: .75rem; }
.wl-modal-header-icon {
    width          : 44px;
    height         : 44px;
    border-radius  : 13px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.1rem;
    flex-shrink    : 0;
}
.wl-modal-title {
    font-size  : .95rem;
    font-weight: 800;
    color      : var(--pd-text-primary);
    margin     : 0 0 .15rem;
    line-height: 1.2;
}
.wl-modal-subtitle {
    font-size : .68rem;
    color     : var(--pd-text-faint);
    font-weight: 600;
}
.wl-modal-close {
    width          : 32px;
    height         : 32px;
    border-radius  : 9px;
    background     : var(--wl-item-bg);
    border         : 1px solid var(--wl-item-border);
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : var(--pd-text-faint);
    cursor         : pointer;
    flex-shrink    : 0;
    font-size      : .8rem;
    transition     : background .2s, color .2s;
}
.wl-modal-close:hover { background: var(--wl-item-hover); color: var(--pd-text-primary); }

/* ── Token ── */
.wl-modal-token {
    margin         : 1rem 1.4rem;
    padding        : .75rem 1rem;
    border-radius  : 12px;
    background     : var(--wl-item-bg);
    border         : 1px solid var(--wl-item-border);
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : .75rem;
}
.wl-modal-token-label {
    font-size     : .58rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color         : var(--pd-text-faint);
    margin-bottom : .2rem;
}
.wl-modal-token-value {
    font-size           : .95rem;
    font-weight         : 900;
    color               : var(--pd-text-primary);
    letter-spacing      : .08em;
    font-variant-numeric: tabular-nums;
    font-family         : monospace;
}
.wl-modal-token-copy {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 32px;
    height         : 32px;
    border-radius  : 9px;
    background     : var(--wl-copy-bg);
    border         : 1px solid var(--wl-copy-border);
    color          : var(--pd-text-muted);
    cursor         : pointer;
    flex-shrink    : 0;
    font-size      : .75rem;
    transition     : background .2s, color .2s;
}
.wl-modal-token-copy:hover { background: var(--wl-copy-hover); color: #818cf8; }

/* ── Monto destacado ── */
.wl-modal-amount-wrap {
    text-align   : center;
    padding      : .75rem 1.4rem 1rem;
    border-bottom: 1px solid var(--wl-divider);
}
.wl-modal-amount-label {
    font-size     : .62rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color         : var(--pd-text-faint);
    margin-bottom : .3rem;
}
.wl-modal-amount {
    font-size           : 2rem;
    font-weight         : 900;
    font-variant-numeric: tabular-nums;
    line-height         : 1;
}
.wl-modal-amount.plus  { color: var(--wl-amount-plus); }
.wl-modal-amount.minus { color: var(--wl-amount-minus); }

/* ── Filas de info ── */
.wl-modal-body { padding: .85rem 1.4rem; }
.wl-modal-row {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : .75rem;
    padding        : .6rem 0;
    border-bottom  : 1px solid var(--wl-divider);
}
.wl-modal-row:last-child { border-bottom: none; }
.wl-modal-row-key {
    font-size     : .65rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color         : var(--pd-text-faint);
    flex-shrink   : 0;
    display       : flex;
    align-items   : center;
    gap           : .4rem;
}
.wl-modal-row-key i { color: #6366f1; font-size: .7rem; }
.wl-modal-row-val {
    font-size  : .82rem;
    font-weight: 700;
    color      : var(--pd-text-primary);
    text-align : right;
    word-break : break-all;
}

/* ── Footer modal ── */
.wl-modal-footer {
    padding    : .85rem 1.4rem 1.25rem;
    display    : flex;
    gap        : .6rem;
    border-top : 1px solid var(--wl-divider);
}
.wl-modal-btn {
    flex           : 1;
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : .4rem;
    padding        : .6rem .75rem;
    border-radius  : 11px;
    font-size      : .75rem;
    font-weight    : 700;
    cursor         : pointer;
    border         : 1px solid transparent;
    transition     : transform .15s, opacity .15s;
    text-decoration: none;
}
.wl-modal-btn:hover { transform: translateY(-1px); opacity: .9; }
.wl-modal-btn-close {
    background  : var(--wl-item-bg);
    border-color: var(--wl-item-border);
    color       : var(--pd-text-muted);
}
.wl-modal-btn-copy {
    background: linear-gradient(135deg,#6366f1,#4f46e5);
    color     : #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

/* ── Botón ver comprobante en tabla ── */
.wl-view-btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 28px;
    height         : 28px;
    border-radius  : 8px;
    background     : rgba(99,102,241,.1);
    border         : 1px solid rgba(99,102,241,.2);
    color          : #818cf8;
    cursor         : pointer;
    font-size      : .72rem;
    transition     : background .2s, transform .15s;
    flex-shrink    : 0;
}
.wl-view-btn:hover {
    background: rgba(99,102,241,.2);
    transform : scale(1.1);
}
html[data-theme="light"] .wl-view-btn {
    background  : rgba(99,102,241,.08);
    border-color: rgba(99,102,241,.18);
    color       : #4f46e5;
}

/* ── Info Box ── */
.wl-info-box {
    border-radius  : 14px;
    padding        : 1rem 1.1rem;
    margin-bottom  : 1rem;
    display        : flex;
    flex-direction : column;
    /*gap            : .7rem;*/
}

/* ── Header: icono + título en la misma fila ── */
.wl-info-box-header {
    display    : flex;
    align-items: center;
    gap        : .65rem;
}

.wl-info-box-icon {
    width          : 36px;
    height         : 36px;
    border-radius  : 10px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : .9rem;
    flex-shrink    : 0;
}

.wl-info-box-title {
    font-size  : .9rem;
    font-weight: 800;
    line-height: 1.3;
    margin     : 0;
}

/* ── Body: lista ── */
.wl-info-box-body { width: 100%; }

/* ── Lista numerada ── */
.wl-info-box-list {
    list-style    : none;
    padding       : 0;
    margin        : 0;
    display       : flex;
    flex-direction: column;
    gap           : .4rem;
    counter-reset : wl-item;
}

.wl-info-box-list li {
    display          : flex;
    align-items      : flex-start;
    gap              : .55rem;
    font-size        : .75rem;
    font-weight      : 600;
    line-height      : 1.5;
    counter-increment: wl-item;
}

.wl-info-box-list li::before {
    content    : counter(wl-item) ".";
    font-size  : .7rem;
    font-weight: 800;
    flex-shrink: 0;
    min-width  : 1.1rem;
    opacity    : .75;
    padding-top: .05rem;
    line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .wl-info-box-list li {
        display    : block;
        padding-left: 1.4rem;
        position   : relative;
    }

    .wl-info-box-list li::before {
        position : absolute;
        left     : 0;
        top      : 0;
        min-width: auto;
    }
}

/* ── Info ── */
.wl-info-box-info {
    background: var(--wl-alert-info-bg);
    border    : 1px solid var(--wl-alert-info-border);
    color     : var(--wl-alert-info-color);
}
.wl-info-box-info .wl-info-box-icon {
    background: rgba(6,182,212,.15);
    color     : var(--wl-alert-info-color);
}
.wl-info-box-info .wl-info-box-list li::before {
    color: var(--wl-alert-info-color);
}

/* ── Warn ── */
.wl-info-box-warn {
    background: var(--wl-alert-warn-bg);
    border    : 1px solid var(--wl-alert-warn-border);
    color     : var(--wl-alert-warn-color);
}
.wl-info-box-warn .wl-info-box-icon {
    background: rgba(245,158,11,.15);
    color     : var(--wl-alert-warn-color);
}
.wl-info-box-warn .wl-info-box-list li::before {
    color: var(--wl-alert-warn-color);
}

/* ── Success ── */
.wl-info-box-success {
    background: var(--wl-alert-success-bg);
    border    : 1px solid var(--wl-alert-success-border);
    color     : var(--wl-alert-success-color);
}
.wl-info-box-success .wl-info-box-icon {
    background: rgba(16,185,129,.15);
    color     : var(--wl-alert-success-color);
}
.wl-info-box-success .wl-info-box-list li::before {
    color: var(--wl-alert-success-color);
}

/* ── Danger ── */
.wl-info-box-danger {
    background: var(--wl-alert-danger-bg);
    border    : 1px solid var(--wl-alert-danger-border);
    color     : var(--wl-alert-danger-color);
}
.wl-info-box-danger .wl-info-box-icon {
    background: rgba(239,68,68,.15);
    color     : var(--wl-alert-danger-color);
}
.wl-info-box-danger .wl-info-box-list li::before {
    color: var(--wl-alert-danger-color);
}

/* ── Info Box colapsable ── */
.wl-info-box-collapsible .wl-info-box-header {
    cursor     : pointer;
    user-select: none;
}

.wl-info-box-chevron {
    margin-left: auto;
    font-size  : .75rem;
    opacity    : .7;
    transition : transform .3s ease;
    flex-shrink: 0;
}

/* ── Collapse body ── */
.wl-info-box-collapse {
    display   : grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease,
                opacity            .3s ease,
                margin-top         .3s ease;
    opacity   : 0;
    margin-top: 0;
    overflow  : hidden;
}

.wl-info-box-collapse > * {
    min-height: 0;
    overflow  : hidden;
}

/* ── Estado abierto ── */
.wl-info-box-collapsible.is-open .wl-info-box-collapse {
    grid-template-rows: 1fr;
    opacity           : 1;
    margin-top        : .6rem;
}

.wl-info-box-collapsible.is-open .wl-info-box-chevron {
    transform: rotate(180deg);
}

/* ── Hover en header ── */
.wl-info-box-collapsible .wl-info-box-header:hover .wl-info-box-title {
    opacity: .85;
}

.wl-info-box-collapsible .wl-info-box-header:hover .wl-info-box-chevron {
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   INFO BOX NOTE — Nota informativa
════════════════════════════════════════════════════════════ */
.wl-info-box-note {
    display      : flex;
    align-items  : flex-start;
    gap          : .65rem;
    padding      : .75rem 1rem;
    border-radius: 11px;
    background   : rgba(148,163,184,.06);
    border       : 1px solid rgba(148,163,184,.12);
    border-left  : 3px solid rgba(148,163,184,.35);
    margin-bottom: 1rem;
}

.wl-info-box-note::before {
    content    : '\f05a'; /* fa-info-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size  : .75rem;
    color      : #94a3b8;
    flex-shrink: 0;
    margin-top : .1rem;
    opacity    : .7;
}

.wl-info-box-note small {
    font-size  : .7rem;
    font-weight: 500;
    color      : var(--pd-text-faint);
    line-height: 1.6;
}

html[data-theme="light"] .wl-info-box-note {
    background  : rgba(100,116,139,.05);
    border-color: rgba(100,116,139,.12);
    border-left-color: rgba(100,116,139,.3);
}

html[data-theme="light"] .wl-info-box-note small {
    color: #64748b;
}

/* ── Input error / ok ── */
.wl-form-control.wl-input-error {
    border-color: #ef4444 !important;
    box-shadow  : 0 0 0 3px rgba(239,68,68,.15) !important;
}
.wl-form-control.wl-input-ok {
    border-color: #10b981 !important;
    box-shadow  : 0 0 0 3px rgba(16,185,129,.12) !important;
}
.wl-form-error {
    display    : flex;
    align-items: center;
    gap        : .3rem;
    font-size  : .7rem;
    font-weight: 600;
    color      : #ef4444;
}
.wl-form-error i { font-size: .65rem; }

.wl-form-hint.success { color: #10b981 !important; }

/* ════════════════════════════════════════════════════════════
   WALLET SKELETON — compartido en index, historial, depósito, retiro
════════════════════════════════════════════════════════════ */

@keyframes wl-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* ── Base shimmer ── */
.wl-sk {
    border-radius  : 8px;
    background     : linear-gradient(
        90deg,
        rgba(255,255,255,.06) 25%,
        rgba(255,255,255,.12) 50%,
        rgba(255,255,255,.06) 75%
    );
    background-size: 600px 100%;
    animation      : wl-shimmer 1.6s ease infinite;
    display        : block;
}

html[data-theme="light"] .wl-sk {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.06) 25%,
        rgba(0,0,0,.11) 50%,
        rgba(0,0,0,.06) 75%
    );
    background-size: 600px 100%;
    animation      : wl-shimmer 1.6s ease infinite;
}

/* ════════════════════════════════════════════════════════════
   WALLET CARDS — Grid (desktop: 3 columnas)
════════════════════════════════════════════════════════════ */
.wl-balance-grid {
    display              : grid;
    grid-template-columns: repeat(3,1fr);
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}

/* ════════════════════════════════════════════════════════════
   WALLET CARD — estilo pf-stat-card (icono flotante)
════════════════════════════════════════════════════════════ */
.wl-balance-card {
    border-radius : 16px;
    padding       : 1.1rem 1.2rem;
    color         : #fff;
    position      : relative;
    overflow      : hidden;
    display       : flex;
    flex-direction: column;
    gap           : .4rem;
    transition    : transform .2s, box-shadow .2s;
}
.wl-balance-card:hover { transform: translateY(-3px); }

/* Círculo decorativo */
.wl-balance-card::before {
    content      : '';
    position     : absolute;
    right        : -16px;
    top          : -16px;
    width        : 80px;
    height       : 80px;
    border-radius: 50%;
    background   : rgba(255,255,255,.1);
    pointer-events: none;
}

/* Icono flotante abajo-derecha (como pf-stat-icon) */
.wl-balance-icon-float {
    position  : absolute;
    right     : 1rem;
    bottom    : .75rem;
    font-size : 1.6rem;
    opacity   : .15;
    z-index   : 0;
    pointer-events: none;
}

.wl-balance-total    { background: var(--wl-total-bg);    box-shadow: 0 4px 16px rgba(99,102,241,.3); }
.wl-balance-deposit  { background: var(--wl-deposit-bg);  box-shadow: 0 4px 16px rgba(16,185,129,.3); }
.wl-balance-withdraw { background: var(--wl-withdraw-bg); box-shadow: 0 4px 16px rgba(245,158,11,.3); }
.wl-balance-info     { background: var(--wl-info-bg);     box-shadow: 0 4px 16px rgba(6,182,212,.3);  }

.wl-balance-top {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : relative;
    z-index        : 1;
}
.wl-balance-label {
    font-size     : .62rem;
    font-weight   : 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity       : .8;
}
.wl-balance-amount {
    font-size           : 1.4rem;
    font-weight         : 900;
    line-height         : 1;
    font-variant-numeric: tabular-nums;
    position            : relative;
    z-index             : 1;
    white-space         : nowrap;
    overflow            : hidden;
    text-overflow       : ellipsis;
}
.wl-balance-sub {
    font-size  : .68rem;
    opacity    : .75;
    display    : flex;
    align-items: center;
    gap        : .3rem;
    position   : relative;
    z-index    : 1;
}

/* ── Mostrar/ocultar ── */
.wl-skeleton-layer { display: block; }
.wl-real-layer     { display: none;  }

.wl-loaded .wl-skeleton-layer { display: none;  }
.wl-loaded .wl-real-layer     { display: block; }

.wl-loaded .wl-real-layer.is-grid  { display: grid;  }
.wl-loaded .wl-real-layer.is-flex  { display: flex;  }
.wl-loaded .wl-real-layer.is-table { display: table; }

/* ── Skeleton balance cards ── */
.wl-sk-balance-grid {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}
.wl-sk-balance-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
    .wl-sk-balance-grid       { grid-template-columns: 1fr 1fr; }
    .wl-sk-balance-grid.cols-2{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .wl-sk-balance-grid       { grid-template-columns: 1fr; }
    .wl-sk-balance-grid.cols-2{ grid-template-columns: 1fr; }
}

.wl-sk-balance-card {
    border-radius : 16px;
    padding       : 1.25rem 1.3rem;
    display       : flex;
    flex-direction: column;
    gap           : .75rem;
    background    : rgba(255,255,255,.05);
    border        : 1px solid rgba(255,255,255,.06);
    min-height    : 110px;
}
html[data-theme="light"] .wl-sk-balance-card {
    background  : rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.06);
}
.wl-sk-balance-top {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
}

/* ── Skeleton action buttons ── */
.wl-sk-action-grid {
    display              : grid;
    grid-template-columns: repeat(2, 1fr);
    gap                  : 1rem;
    margin-bottom        : 1.25rem;
}
@media (max-width: 480px) {
    .wl-sk-action-grid { grid-template-columns: 1fr; }
}
.wl-sk-action-card {
    border-radius: 14px;
    padding      : 1rem 1.1rem;
    display      : flex;
    align-items  : center;
    gap          : .85rem;
    background   : rgba(255,255,255,.04);
    border       : 1px solid rgba(255,255,255,.06);
    min-height   : 72px;
}
html[data-theme="light"] .wl-sk-action-card {
    background  : rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.06);
}

/* ── Skeleton tabla / filas ── */
.wl-sk-table-wrap {
    padding: .5rem 1rem;
}
.wl-sk-table-row {
    display      : flex;
    align-items  : center;
    gap          : 1rem;
    padding      : .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
html[data-theme="light"] .wl-sk-table-row {
    border-bottom-color: rgba(0,0,0,.04);
}
.wl-sk-table-row:last-child { border-bottom: none; }

/* ── Skeleton filtros (historial) ── */
.wl-sk-filters {
    display      : flex;
    gap          : .5rem;
    margin-bottom: 1.25rem;
    flex-wrap    : wrap;
}
.wl-sk-filter-btn {
    height       : 34px;
    border-radius: 8px;
}

/* ── Skeleton form (depósito / retiro) ── */
.wl-sk-form-wrap {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.wl-sk-form-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 1rem;
}
@media (max-width: 640px) {
    .wl-sk-form-grid { grid-template-columns: 1fr; }
}
.wl-sk-form-group {
    display       : flex;
    flex-direction: column;
    gap           : .4rem;
}

/* ════════════════════════════════════════════════════════════
   UTILIDADES
════════════════════════════════════════════════════════════ */
.wl-mb-0            { margin-bottom: 0 !important; }
.wl-card-header-flex { justify-content: space-between; }
.wl-filter-btn-sm   { padding: .3rem .75rem; font-size: .65rem; }

/* ════════════════════════════════════════════════════════════
   SKELETON BALANCE — shapes sin inline styles
════════════════════════════════════════════════════════════ */
.wl-sk-label        { height: 9px;  width: 60%;  border-radius: 6px; }
.wl-sk-amount       { height: 22px; width: 50%;  border-radius: 8px; }
.wl-sk-sub          { height: 9px;  width: 70%;  border-radius: 6px; }
.wl-sk-action-icon  { width: 42px;  height: 42px; border-radius: 12px; flex-shrink: 0; }
.wl-sk-action-lines { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.wl-sk-action-label { height: 9px;  width: 50%; border-radius: 6px; }
.wl-sk-action-title { height: 13px; width: 70%; border-radius: 6px; }

/* Skeleton tabla */
.wl-sk-tx-id     { height: 10px; width: 30px;  border-radius: 6px; flex-shrink: 0; }
.wl-sk-tx-tipo   { height: 20px; width: 70px;  border-radius: 50px; flex-shrink: 0; }
.wl-sk-tx-monto  { height: 12px; width: 60px;  border-radius: 6px; flex-shrink: 0; }
.wl-sk-tx-metodo { height: 10px; flex: 1;      border-radius: 6px; }
.wl-sk-tx-estado { height: 20px; width: 70px;  border-radius: 50px; flex-shrink: 0; }
.wl-sk-tx-fecha  { height: 10px; width: 80px;  border-radius: 6px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 900px
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Mantener 3 columnas en tablet */
    .wl-balance-grid    { grid-template-columns: repeat(3,1fr); gap: .75rem; }
    .wl-sk-balance-grid { grid-template-columns: repeat(3,1fr); gap: .75rem; }
    .wl-balance-amount  { font-size: 1.2rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 580px
   1ª card: ancho completo / 2ª y 3ª: 50% cada una
════════════════════════════════════════════════════════════ */
@media (max-width: 580px) {

    /* Grid 2 columnas — primera ocupa ambas */
    .wl-balance-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows   : auto auto;
        gap                  : .6rem;
        margin-bottom        : .85rem;
    }
    .wl-sk-balance-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows   : auto auto;
        gap                  : .6rem;
        margin-bottom        : .85rem;
    }

    /* Primera card — full width */
    .wl-balance-card:first-child,
    .wl-sk-balance-card:first-child {
        grid-column: 1 / -1;
    }

    /* Todas las cards */
    .wl-balance-card { padding: 1rem 1.1rem; gap: .35rem; }

    /* Icono flotante más visible */
    .wl-balance-icon-float { font-size: 2rem; opacity: .18; }

    /* Primera card — monto más grande */
    .wl-balance-card:first-child .wl-balance-amount { font-size: 1.5rem; }
    .wl-balance-card:first-child .wl-balance-label  { font-size: .65rem; }
    .wl-balance-card:first-child .wl-balance-sub    { font-size: .68rem; }

    /* Cards 2 y 3 — compactas */
    .wl-balance-card:not(:first-child) .wl-balance-amount      { font-size: 1.05rem; }
    .wl-balance-card:not(:first-child) .wl-balance-label       { font-size: .56rem; }
    .wl-balance-card:not(:first-child) .wl-balance-sub         { font-size: .58rem; }
    .wl-balance-card:not(:first-child) .wl-balance-icon-float  { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE XS ≤ 380px
════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .wl-balance-grid    { gap: .4rem; }
    .wl-sk-balance-grid { gap: .4rem; }

    .wl-balance-card { padding: .85rem .9rem; }
    .wl-balance-card:first-child .wl-balance-amount       { font-size: 1.25rem; }
    .wl-balance-card:not(:first-child) .wl-balance-amount { font-size: .95rem; }
}

/* ── Comprobante en modal jugador ── */
.wl-modal-comprobante-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    cursor: zoom-in;
    background: rgba(255,255,255,.02);
}

.wl-modal-comprobante-img-wrap img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.wl-modal-comprobante-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s;
}

.wl-modal-comprobante-img-wrap:hover .wl-modal-comprobante-overlay {
    opacity: 1;
}

.wl-modal-comprobante-empty {
    padding: 1.25rem;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,.1);
    background: rgba(255,255,255,.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    color: rgba(255,255,255,.25);
}

.wl-modal-comprobante-empty i {
    font-size: 1.5rem;
    opacity: .3;
}
