/* ============================================================
   PLATAFORMA — app.css  ·  Branding base: Monetiva
   Paleta: Navy #12304a | Teal #19b7a5 | Ice #f3f8fa | Blanco #ffffff
   Tipografía: Manrope
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
    /* Marca Monetiva */
    --navy:        #12304a;
    --navy-2:      #0b253a;
    --navy-3:      #1b5574;
    --teal:        #19b7a5;
    --teal-dark:   #0f9587;
    --teal-light:  #56d6c7;
    --mint:        #e8f8f5;
    --ice:         #f3f8fa;
    --white:       #ffffff;
    --ink:         #17334a;
    --muted:       #617586;
    --line:        #dce8ed;

    /* Canales RGB para transparencias */
    --navy-rgb:    18, 48, 74;
    --teal-rgb:    25, 183, 165;
    --red-rgb:     214, 69, 69;
    --amber-rgb:   217, 138, 28;

    /* Semánticos */
    --bg:          var(--ice);
    --surface:     var(--white);
    --surface-2:   #f7fbfc;
    --text:        var(--ink);
    --text-muted:  var(--muted);
    --text-soft:   #8a9caa;
    --border:      var(--line);
    --red:         #d64545;
    --green:       var(--teal-dark);
    --amber:       #d98a1c;

    --radius:      20px;
    --radius-sm:   12px;
    --radius-pill: 999px;
    --shadow:      0 24px 70px rgba(var(--navy-rgb), .14);
    --shadow-sm:   0 12px 30px rgba(var(--navy-rgb), .06);

    --font-base:   'Manrope', Arial, Helvetica, sans-serif;

    /* Alias heredados (por si algún PHP usa var(--gold) en línea) */
    --gold:        var(--teal-dark);
    --gold-light:  var(--teal);
    --gold-dark:   var(--navy);
    --black:       var(--bg);
    --black-2:     var(--surface);
    --black-3:     var(--surface-2);
    --black-4:     var(--line);
    --gray:        var(--muted);
    --gray-light:  var(--muted);
    --gray-dark:   var(--text-soft);
    --border-gold: 1px solid var(--line);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ── Auth wrapper ───────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(var(--teal-rgb), .09), transparent 25%),
        linear-gradient(135deg, #f9fcfd 0%, #edf7f7 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    animation: fadeUp .5s ease both;
}

.auth-logo .logo-img { width: 180px; max-width: 100%; }

.auth-title {
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-align: center;
    margin-bottom: .25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: .88rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ── Input groups ───────────────────────────────────────────── */
.input-group-solvex {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--teal-dark);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    transition: color .2s;
}
.input-icon-right:hover { color: var(--teal-dark); }

.form-input-solvex {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: .8rem .8rem .8rem 2.8rem;
    font-size: .92rem;
    font-family: var(--font-base);
    transition: border-color .25s, box-shadow .25s, background .25s;
    outline: none;
    -webkit-appearance: none;
}

.form-input-solvex:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .15);
    background: var(--white);
}

.form-input-solvex::placeholder { color: var(--text-soft); }

/* ── Botón principal ────────────────────────────────────────── */
.btn-solvex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white) !important;
    border: 1px solid var(--navy);
    border-radius: var(--radius-pill);
    padding: .85rem 1.6rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(var(--navy-rgb), .16);
}

.btn-solvex:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
}

.btn-solvex:active { transform: translateY(0); }

/* ── Alertas ────────────────────────────────────────────────── */
.alert-solvex {
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .86rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(var(--red-rgb), .08);
    border: 1px solid rgba(var(--red-rgb), .3);
    color: #b33434;
}

.alert-success {
    background: var(--mint);
    border: 1px solid rgba(var(--teal-rgb), .35);
    color: var(--teal-dark);
}

/* ── Links ──────────────────────────────────────────────────── */
.link-gold { color: var(--teal-dark); font-size: .86rem; font-weight: 700; }
.link-gold:hover { color: var(--navy); }
.auth-links { font-size: .86rem; color: var(--text-muted); }

/* ── Password match hint ────────────────────────────────────── */
.pass-match-hint {
    font-size: .8rem;
    padding: .4rem .7rem;
    border-radius: 8px;
    font-weight: 600;
}
.pass-match-hint.match    { background: var(--mint); color: var(--teal-dark); }
.pass-match-hint.no-match { background: rgba(var(--red-rgb), .08); color: var(--red); }

/* ────────────────────────────────────────────────────────────
   DASHBOARD — App shell (mobile-first, centrado en desktop)
   ──────────────────────────────────────────────────────────── */
.app-shell {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
}

/* Header fijo */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(var(--navy-rgb), .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-header-inner {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
}

.header-logo-icon { width: 28px; }
.header-brand { color: var(--navy); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }

.header-status-badge {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--ice);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: .25rem .7rem;
    display: flex;
    align-items: center;
}

.header-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: .2rem .4rem;
    border-radius: 8px;
    transition: color .2s;
}
.header-logout:hover { color: var(--red); }

.app-body { flex: 1; padding-bottom: 2rem; }

/* ── Balance section ───────────────────────────────────────── */
.balance-section {
    padding: 1.6rem 1rem 1.1rem;
    text-align: center;
    background: linear-gradient(180deg, var(--mint) 0%, transparent 100%);
}

.greeting { color: var(--text-muted); font-size: .92rem; margin-bottom: .4rem; }
.greeting strong { color: var(--navy); }
.balance-label { color: var(--text-muted); font-size: .78rem; font-weight: 600; margin-bottom: .25rem; }
.balance-amount { color: var(--navy); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.balance-currency { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

.account-status-badge {
    display: inline-flex;
    align-items: center;
    margin-top: .8rem;
    padding: .3rem .9rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 700;
}

.inactive-badge {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ── Tarjeta visual ───────────────────────────────────────── */
.solvex-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    border: none;
    border-radius: 22px;
    padding: 1.2rem 1.4rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 20px 45px rgba(var(--navy-rgb), .28);
    min-height: 170px;
    color: var(--white);
}

.solvex-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border: 1px solid rgba(var(--teal-rgb), .35);
    border-radius: 50%;
    pointer-events: none;
}

.solvex-card:hover { transform: translateY(-3px); box-shadow: 0 28px 55px rgba(var(--navy-rgb), .32); }

.card-chip { margin-bottom: .6rem; }
.card-chip img { width: 36px; opacity: .9; }

.card-brand { position: absolute; top: 1rem; right: 1.2rem; }
.card-brand-logo { width: 80px; opacity: .9; }

.card-number {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 4px;
    margin: .8rem 0 1rem;
    font-weight: 500;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-meta-label { color: rgba(255,255,255,.6); font-size: .62rem; font-weight: 600; letter-spacing: .5px; }
.card-meta-value { color: var(--white); font-size: .82rem; font-weight: 700; }

.card-network {
    position: absolute;
    bottom: 1rem; right: 1.2rem;
    color: var(--teal-light);
    font-size: .68rem;
    letter-spacing: 2px;
    font-weight: 800;
}

/* ── Botón Retiro sin Tarjeta ─────────────────────────────── */
.btn-retiro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--teal);
    color: var(--navy);
    border: 1px solid var(--teal);
    border-radius: var(--radius-pill);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 10px 25px rgba(var(--teal-rgb), .28);
}

.btn-retiro:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    transform: translateY(-2px);
}

/* ── Grid de opciones ─────────────────────────────────────── */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.option-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: all .25s;
}

.option-card:hover {
    border-color: rgba(var(--teal-rgb), .5);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.option-icon {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    background: var(--mint);
    border-radius: 14px;
    font-size: 1.2rem;
    color: var(--teal-dark);
}
.option-label { font-size: .74rem; color: var(--navy); font-weight: 700; text-align: center; }

/* ── Promo banner ─────────────────────────────────────────── */
.promo-banner {
    background: radial-gradient(circle at 20% 0, rgba(var(--teal-rgb), .2), transparent 40%), var(--navy);
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all .2s;
    overflow: hidden;
    position: relative;
}

.promo-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.promo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-icon {
    width: 44px; height: 44px;
    background: rgba(var(--teal-rgb), .18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--teal);
    flex-shrink: 0;
}

.promo-title { color: var(--white); font-weight: 800; font-size: .92rem; }
.promo-sub   { color: rgba(255,255,255,.65); font-size: .76rem; }
.promo-arrow { color: var(--teal); margin-left: auto; font-size: 1rem; }

/* ── Pagar servicios ─────────────────────────────────────── */
.section-title {
    color: var(--navy);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .75rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: .85rem .4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: all .2s;
}

.service-card:hover { border-color: rgba(var(--teal-rgb), .5); box-shadow: var(--shadow-sm); }
.service-icon  { font-size: 1.2rem; color: var(--teal-dark); }
.service-label { font-size: .68rem; color: var(--text-muted); font-weight: 600; text-align: center; }

/* ── Tarjeta digital ─────────────────────────────────────── */
.digital-card-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}

.digital-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Toggle switch visual */
.toggle-switch { cursor: pointer; }

.toggle-track {
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 2px;
    transition: background .2s;
    position: relative;
}

.toggle-thumb {
    width: 18px; height: 18px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(var(--navy-rgb), .25);
    transition: transform .2s, background .2s;
}

.toggle-track.active { background: var(--teal); border-color: var(--teal); }

/* Botones tarjeta digital */
.btn-digital {
    flex: 1;
    background: var(--mint);
    border: 1px solid rgba(var(--teal-rgb), .3);
    color: var(--teal-dark);
    border-radius: var(--radius-pill);
    padding: .6rem .5rem;
    font-size: .78rem;
    font-family: var(--font-base);
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-digital:hover { background: rgba(var(--teal-rgb), .18); }

.btn-digital-outline {
    background: transparent;
    color: var(--navy);
    border-color: rgba(var(--navy-rgb), .25);
}

.btn-digital-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Modal Cuenta Inactiva ──────────────────────────────── */
.modal-solvex {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.modal-icon-wrap {
    width: 64px; height: 64px;
    background: var(--mint);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(var(--teal-rgb), .25);
}

.modal-lock-icon { font-size: 1.8rem; color: var(--teal-dark); }

.modal-title-solvex { color: var(--navy); font-weight: 800; font-size: 1.2rem; margin-bottom: .5rem; }
.modal-body-text    { color: var(--text-muted); font-size: .9rem; margin-bottom: .25rem; }
.modal-support-text { color: var(--text-soft); font-size: .8rem; }

.btn-modal-close { min-width: 140px; }

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp .4s ease both; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .8s linear infinite; }

/* ── Utilidades de texto ─────────────────────────────────── */
.text-gold  { color: var(--teal-dark) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ── Responsive desktop — centrar como app ─────────────────── */
@media (min-width: 500px) {
    body {
        background:
            radial-gradient(circle at 50% 0%, rgba(var(--teal-rgb), .08) 0%, transparent 45%),
            #e9f1f4;
    }

    .app-shell {
        box-shadow: 0 0 80px rgba(var(--navy-rgb), .12);
        border-left:  1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

/* ════════════════════════════════════════════════════════════
   Estado activo/inactivo dinámico
   ════════════════════════════════════════════════════════════ */
.active-badge {
    background: var(--mint);
    border: 1px solid rgba(var(--teal-rgb), .35);
    color: var(--teal-dark);
}

@keyframes balancePulse {
    0%   { color: var(--navy); }
    50%  { color: var(--teal); }
    100% { color: var(--navy); }
}
.balance-updating { animation: balancePulse .6s ease; }
.balance-amount.loading { opacity: .5; }

/* ════════════════════════════════════════════════════════════
   Operaciones, Modales, Comprobantes, Historial
   ════════════════════════════════════════════════════════════ */

/* ── Op Modal ────────────────────────────────────────────── */
.op-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem .8rem;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
}
.op-modal-close {
    background: var(--ice);
    border: none;
    color: var(--text-muted);
    font-size: .95rem;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.op-modal-close:hover { color: var(--navy); background: var(--line); }

.op-modal-body {
    padding: 1.2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ── Form inputs en modales op ───────────────────────────── */
.op-label {
    display: block;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .35rem;
}
.op-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: .7rem .9rem;
    font-size: .9rem;
    font-family: var(--font-base);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.op-input:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .15);
}
textarea.op-input { resize: vertical; min-height: 60px; }

/* ── Comprobante ─────────────────────────────────────────── */
.voucher-success-icon { font-size: 2.5rem; color: var(--teal); }
.voucher-grid {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.voucher-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .84rem;
}
.voucher-row:last-child { border-bottom: none; }
.voucher-key { color: var(--text-muted); }
.voucher-val { color: var(--navy); font-weight: 700; text-align: right; }

/* Código de retiro */
.withdrawal-code-box {
    text-align: center;
    background: var(--mint);
    border: 1px dashed var(--teal);
    border-radius: 18px;
    padding: 1.2rem;
    margin-top: 1rem;
}
.wc-label   { color: var(--text-muted); font-size: .78rem; margin-bottom: .4rem; }
.wc-code    { font-size: 2rem; font-weight: 800; letter-spacing: 6px; color: var(--navy); }
.wc-expires { color: var(--text-muted); font-size: .76rem; margin-top: .4rem; }

/* ── Historial de transacciones ──────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: .5rem; }

.tx-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.tx-icon {
    width: 38px; height: 38px;
    background: var(--mint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal-dark);
    font-size: 1rem;
}
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-size: .84rem; color: var(--navy); font-weight: 700; }
.tx-desc { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: .68rem; color: var(--text-soft); margin-top: .15rem; }
.tx-folio{ color: var(--teal-dark); }
.tx-amount { font-size: .88rem; font-weight: 800; white-space: nowrap; }
.tx-debit  { color: var(--red); }
.tx-credit { color: var(--teal-dark); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 2.2rem; color: var(--line); display: block; margin-bottom: .6rem; }
.empty-state p { font-size: .86rem; margin: 0; }

/* ── Ahorros ─────────────────────────────────────────────── */
.savings-summary { font-size: .84rem; }
.pocket-list { display: flex; flex-direction: column; gap: .6rem; }
.pocket-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: .8rem 1rem;
}
.pocket-header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.pocket-name    { color: var(--navy); font-weight: 700; font-size: .88rem; }
.pocket-bal     { color: var(--teal-dark); font-weight: 800; font-size: .92rem; }
.pocket-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-pocket-act {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    padding: .3rem .8rem;
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all .2s;
}
.btn-dep { border-color: rgba(var(--teal-rgb), .4); color: var(--teal-dark); }
.btn-dep:hover { background: var(--mint); }
.btn-wit { border-color: rgba(var(--navy-rgb), .3); color: var(--navy); }
.btn-wit:hover { background: var(--ice); }
.btn-del { border-color: rgba(var(--red-rgb), .3); color: var(--red); }
.btn-del:hover { background: rgba(var(--red-rgb), .07); }

/* ── Inversiones ─────────────────────────────────────────── */
.invest-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}
.istat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .75rem .85rem;
}
.istat-label { color: var(--text-muted); font-size: .7rem; font-weight: 600; display: block; margin-bottom: .2rem; }
.istat-val   { color: var(--navy); font-size: 1rem; font-weight: 800; }
.istat-total { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.istat-total .istat-label { color: rgba(255,255,255,.65); }
.istat-total .istat-val   { color: var(--white); }

/* ── Mi Cuenta ───────────────────────────────────────────── */
.account-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: .8rem; }
.as-title { padding: .7rem 1rem; color: var(--navy); font-size: .8rem; font-weight: 800; background: var(--ice); border-bottom: 1px solid var(--border); }
.as-row   { display: flex; justify-content: space-between; align-items: center; padding: .55rem 1rem; border-bottom: 1px solid var(--border); font-size: .83rem; }
.as-row:last-child { border-bottom: none; }
.as-row span:first-child { color: var(--text-muted); }
.as-row span:last-child  { color: var(--navy); font-weight: 600; text-align: right; }

.status-pill   { padding: .15rem .65rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; }
.active-pill   { background: var(--mint); color: var(--teal-dark); border: 1px solid rgba(var(--teal-rgb), .35); }
.inactive-pill { background: rgba(var(--red-rgb), .08); color: var(--red); border: 1px solid rgba(var(--red-rgb), .25); }

/* ── CVV dinámico ────────────────────────────────────────── */
.cvv-display {
    background: var(--mint);
    border: 1px solid rgba(var(--teal-rgb), .4);
    border-radius: 16px;
    padding: .8rem 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}
.cvv-label { color: var(--text-muted); font-size: .74rem; flex-shrink: 0; }
.cvv-value { color: var(--navy); font-size: 1.5rem; font-weight: 800; letter-spacing: 4px; }
.cvv-timer { color: var(--teal-dark); font-size: .74rem; font-weight: 700; margin-left: auto; }

/* ── btn-solvex-sm (reusable) ────────────────────────────── */
.btn-solvex-sm {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: var(--radius-pill);
    padding: .55rem 1.2rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-base);
}
.btn-solvex-sm:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

/* ── SweetAlert2 tema ────────────────────────────────────── */
.swal-solvex {
    background: var(--white) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow) !important;
    font-family: var(--font-base) !important;
}
.swal-solvex .swal2-title { color: var(--navy) !important; font-weight: 800 !important; }
.swal-solvex .swal2-html-container { color: var(--text-muted) !important; }
.swal2-icon.swal2-info { border-color: var(--teal) !important; color: var(--teal) !important; }
.swal-btn-wa     { border-radius: var(--radius-pill) !important; font-weight: 700 !important; font-size: .85rem !important; }
.swal-btn-cancel { border-radius: var(--radius-pill) !important; font-size: .85rem !important; }

/* ============================================================
   KYC
   ============================================================ */
.kyc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.kyc-status-bar {
    display: flex;
    align-items: center;
    padding: .7rem 1rem;
    font-size: .83rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.kyc-pending   { background: var(--ice); color: var(--text-muted); }
.kyc-review    { background: rgba(var(--amber-rgb), .1); color: #a8670f; }
.kyc-approved  { background: var(--mint); color: var(--teal-dark); }
.kyc-rejected  { background: rgba(var(--red-rgb), .08); color: var(--red); }
.kyc-attention { background: rgba(var(--amber-rgb), .1); color: #a8670f; }

.kyc-note { color: var(--text-muted); font-weight: 500; font-size: .75rem; }

.kyc-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    padding: 1rem;
}

.kyc-doc-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: .9rem .75rem;
    text-align: center;
    transition: border-color .2s;
    position: relative;
}

.kyc-doc-item.uploaded { border-color: rgba(var(--teal-rgb), .45); }

.kyc-doc-icon {
    position: relative;
    display: inline-block;
    margin-bottom: .4rem;
}

.kyc-doc-icon > i { font-size: 1.6rem; color: var(--text-soft); }
.kyc-doc-item.uploaded .kyc-doc-icon > i { color: var(--teal-dark); }

.kyc-check {
    position: absolute;
    top: -4px; right: -6px;
    color: var(--teal-dark);
    font-size: .7rem;
    background: var(--surface-2);
    border-radius: 50%;
    line-height: 1;
}

.kyc-doc-label {
    font-size: .72rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: .5rem;
}

.kyc-upload-btn {
    display: inline-block;
    background: var(--navy);
    border: 1px solid var(--navy);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: .28rem .8rem;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.kyc-upload-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.kyc-hint {
    font-size: .72rem;
    color: var(--text-muted);
    padding: .5rem 1rem .8rem;
    margin: 0;
    text-align: center;
}

.kyc-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.kyc-doc-link {
    color: var(--teal-dark);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}
.kyc-doc-link:hover { color: var(--navy); }

.btn-filter-kyc {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    padding: .4rem .95rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.btn-filter-kyc:hover { border-color: rgba(var(--navy-rgb), .3); color: var(--navy); }
.btn-filter-kyc.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.kyc-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.kyc-admin-doc img { cursor: zoom-in; border-radius: 12px; }

@media (max-width: 600px) {
    .kyc-docs-grid  { grid-template-columns: repeat(2, 1fr); }
    .kyc-admin-grid { grid-template-columns: 1fr; }
}

/* Doc item según status individual */
.doc-approved { border-color: rgba(var(--teal-rgb), .45) !important; }
.doc-rejected { border-color: rgba(var(--red-rgb), .4) !important; }
.doc-pending  { border-color: rgba(var(--amber-rgb), .35) !important; }

.kyc-check-ok   { color: var(--teal-dark); }
.kyc-check-err  { color: var(--red); }
.kyc-check-wait { color: var(--amber); }

.doc-approved .kyc-doc-icon > i { color: var(--teal-dark); }
.doc-rejected .kyc-doc-icon > i { color: var(--red); }

.kyc-doc-rejected-hint {
    font-size: .68rem;
    color: var(--red);
    margin-bottom: .3rem;
    font-weight: 700;
}

.kyc-upload-btn-alert {
    background: rgba(var(--red-rgb), .08) !important;
    border-color: rgba(var(--red-rgb), .35) !important;
    color: var(--red) !important;
}
.kyc-upload-btn-alert:hover { background: rgba(var(--red-rgb), .16) !important; }

/* ── Movimiento reducido ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
