/* Ave Fénix · saldo, renovaciones y bloqueo operativo */
.topbar-wallet-chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid #d8e5dd;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    color: #14532d;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(22, 101, 52, .07);
}
.topbar-wallet-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #dcfce7; color: #15803d; }
.topbar-wallet-chip span:last-child { display: grid; line-height: 1.06; }
.topbar-wallet-chip small { color: #64806d; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.topbar-wallet-chip strong { margin-top: 3px; font-size: 12px; color: #14532d; }

.subscription-lock-banner {
    width: min(100%, 1280px);
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 14px;
    background: linear-gradient(100deg, #fff1f2, #fff);
    color: #7f1d1d;
    box-shadow: 0 10px 24px rgba(127,29,29,.07);
}
.subscription-lock-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fee2e2; color: #dc2626; font-size: 17px; }
.subscription-lock-banner strong { display: block; font-size: 14px; }
.subscription-lock-banner p { margin: 3px 0 0; color: #9f3535; font-size: 12px; line-height: 1.5; }
.subscription-lock-banner a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 10px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }

.wallet-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(245px, 310px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    margin-bottom: 18px;
    border: 1px solid #e3e9f1;
    border-radius: 18px;
    background: linear-gradient(120deg, #fff, #fff6f6);
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.wallet-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #b91c1c; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wallet-hero h2 { margin: 8px 0 5px; font-size: clamp(23px, 2.7vw, 34px); line-height: 1.08; letter-spacing: -.035em; color: #101828; font-weight: 900; }
.wallet-hero p { max-width: 760px; margin: 0; color: #667085; font-size: 13px; line-height: 1.65; }
.wallet-balance-card { padding: 17px 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #166534, #15803d); box-shadow: 0 15px 30px rgba(21,128,61,.18); }
.wallet-balance-card span, .wallet-balance-card small { display: block; }
.wallet-balance-card span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #dcfce7; }
.wallet-balance-card strong { display: block; margin: 5px 0 3px; font-size: 28px; line-height: 1; }
.wallet-balance-card small { color: #bbf7d0; font-size: 10px; }
.wallet-alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin-bottom: 15px; border-radius: 13px; font-size: 12.5px; line-height: 1.5; }
.wallet-alert i { margin-top: 2px; }
.wallet-alert strong, .wallet-alert span { display: block; }
.wallet-alert.is-success { color: #166534; border: 1px solid #bbf7d0; background: #f0fdf4; }
.wallet-alert.is-danger { color: #991b1b; border: 1px solid #fecaca; background: #fff1f2; }

.wallet-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.wallet-summary-card { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e3e9f1; border-radius: 14px; background: #fff; box-shadow: 0 9px 23px rgba(15,23,42,.045); }
.wallet-summary-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: #dc2626; background: #fff1f2; }
.wallet-summary-card small, .wallet-summary-card strong { display: block; }
.wallet-summary-card small { color: #7b8797; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wallet-summary-card strong { margin-top: 4px; color: #101828; font-size: 15px; }

.wallet-panel { margin-bottom: 18px; overflow: hidden; border: 1px solid #e3e9f1; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.wallet-panel-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #e8edf3; background: linear-gradient(100deg, #fff, #fbfcfe); }
.wallet-panel-heading > div { position: relative; min-width: 0; padding-left: 49px; }
.wallet-panel-icon { position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fff1f2; color: #dc2626; }
.wallet-panel-heading h3 { margin: 0; color: #101828; font-size: 16px; font-weight: 900; }
.wallet-panel-heading p { margin: 4px 0 0; color: #718096; font-size: 11.5px; }
.wallet-secondary-btn { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #d8e0ea; border-radius: 10px; color: #334155; background: #fff; font-size: 12px; font-weight: 800; text-decoration: none !important; }
.wallet-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; padding: 16px; }
.wallet-plan-card { display: grid; gap: 14px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.wallet-plan-card:hover { border-color: #fca5a5; box-shadow: 0 12px 28px rgba(220,38,38,.08); }
.wallet-plan-top { display: flex; align-items: flex-start; gap: 11px; }
.wallet-plan-mark { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; background: #fff1f2; color: #dc2626; }
.wallet-plan-card h4 { margin: 0; font-size: 15px; color: #111827; font-weight: 900; }
.wallet-plan-card p { margin: 4px 0 0; min-height: 34px; color: #718096; font-size: 10.5px; line-height: 1.5; }
.wallet-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-price-row span { padding: 9px; border-radius: 10px; background: #f8fafc; }
.wallet-price-row small, .wallet-price-row strong { display: block; }
.wallet-price-row small { color: #7b8797; font-size: 9px; }
.wallet-price-row strong { margin-top: 3px; font-size: 13px; }
.wallet-renew-trigger, .wallet-choose-referral { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; color: #fff; background: #dc2626; font-size: 12px; font-weight: 850; cursor: pointer; }
.wallet-renew-trigger:hover, .wallet-choose-referral:hover { background: #b91c1c; }
.wallet-table-wrap { overflow-x: auto; }
.wallet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wallet-table th { padding: 11px 13px; color: #475569; background: #edf4fa; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; text-align: left; }
.wallet-table td { padding: 12px 13px; border-top: 1px solid #edf0f4; color: #334155; vertical-align: middle; }
.wallet-table tbody tr:nth-child(even) { background: #fbfdff; }
.wallet-table td strong, .wallet-table td small { display: block; }
.wallet-table td small { margin-top: 3px; color: #8390a2; }
.wallet-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.wallet-status.is-active { color: #166534; background: #dcfce7; }
.wallet-status.is-expired { color: #991b1b; background: #fee2e2; }
.wallet-empty { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; color: #7b8797; text-align: center; }

.wallet-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(15,23,42,.62); backdrop-filter: blur(4px); }
.wallet-modal.is-open { display: flex; }
.wallet-modal-dialog { width: min(560px, 100%); max-height: 90vh; overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 28px 75px rgba(15,23,42,.32); }
.wallet-modal-dialog > header { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr) 36px; gap: 12px; align-items: start; padding: 16px 17px; border-bottom: 1px solid #e5eaf0; }
.wallet-modal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #15803d; background: #dcfce7; }
.wallet-modal-dialog header small { color: #dc2626; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.wallet-modal-dialog header h3 { margin: 3px 0 0; color: #101828; font-size: 18px; font-weight: 900; }
.wallet-modal-dialog header p { margin: 4px 0 0; color: #7b8797; font-size: 11px; }
.wallet-modal-close { width: 34px; height: 34px; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; color: #64748b; cursor: pointer; }
.wallet-modal-body { display: grid; gap: 13px; max-height: calc(90vh - 150px); overflow-y: auto; padding: 17px; }
.wallet-review-card { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.wallet-review-card span { padding: 10px; border: 1px solid #e3e8ef; border-radius: 11px; background: #f8fafc; }
.wallet-review-card small, .wallet-review-card strong { display: block; }
.wallet-review-card small { color: #8490a1; font-size: 9px; text-transform: uppercase; font-weight: 800; }
.wallet-review-card strong { margin-top: 4px; color: #1e293b; font-size: 12px; }
.wallet-modal-body label { color: #243047; font-size: 12px; font-weight: 850; }
.wallet-modal-body select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #d6dee8; border-radius: 10px; background: #fff; }
.wallet-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border-radius: 12px; background: #f0fdf4; color: #166534; }
.wallet-total span { font-size: 12px; font-weight: 750; }
.wallet-total strong { font-size: 20px; }
.wallet-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #bfdbfe; border-radius: 11px; color: #1e40af; background: #eff6ff; font-size: 11px; line-height: 1.5; }
.wallet-modal-dialog form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 17px; border-top: 1px solid #e5eaf0; background: #f8fafc; }
.wallet-modal-cancel, .wallet-modal-confirm { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 10px; font-size: 12px; font-weight: 850; cursor: pointer; }
.wallet-modal-cancel { border: 1px solid #d6dee8; color: #334155; background: #fff; }
.wallet-modal-confirm { border: 0; color: #fff; background: #15803d; }
.wallet-modal-confirm:disabled { opacity: .65; cursor: wait; }

@media (max-width: 1050px) {
    .wallet-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wallet-plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .topbar-wallet-chip small { display: none; }
}
@media (max-width: 720px) {
    .subscription-lock-banner { grid-template-columns: 38px 1fr; }
    .subscription-lock-banner a { grid-column: 1 / -1; justify-content: center; }
    .wallet-hero { grid-template-columns: 1fr; padding: 18px; }
    .wallet-plan-grid, .wallet-summary-grid { grid-template-columns: 1fr; }
    .wallet-panel-heading.is-responsive { align-items: flex-start; flex-direction: column; }
    .wallet-review-card { grid-template-columns: 1fr; }
    .wallet-modal-dialog form > footer { flex-direction: column-reverse; }
    .wallet-modal-cancel, .wallet-modal-confirm { width: 100%; }
}

/* Accesos rápidos cuando la cuenta Admin está vencida. */
.dashboard-quick-actions .dashboard-locked-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #94a3b8;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    cursor: not-allowed;
}
.dashboard-quick-actions .dashboard-locked-shortcut .dash-icon { background: #e2e8f0; color: #64748b; }
.dashboard-quick-actions a.is-renewal { color: #fff; background: linear-gradient(135deg, #ef4444, #b91c1c); border-color: transparent; }
.dashboard-quick-actions a.is-renewal .dash-icon { color: #fff; background: rgba(255,255,255,.15); }
.wallet-total strong.is-insufficient { color: #dc2626; }

/* Renovación simplificada · mi_suscripcion.php */
.wallet-renew-overview {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 14px;
    padding: 16px;
}
.wallet-renew-current {
    min-height: 106px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}
.wallet-renew-current-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #dc2626;
    background: #fff1f2;
    font-size: 17px;
}
.wallet-renew-current small,
.wallet-renew-current strong,
.wallet-renew-current p { display: block; }
.wallet-renew-current small {
    color: #7b8797;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wallet-renew-current strong {
    margin-top: 4px;
    color: #101828;
    font-size: 17px;
    font-weight: 900;
}
.wallet-renew-current p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}
.wallet-open-renew {
    min-height: 106px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #7f1d1d;
    background: linear-gradient(135deg, #fff1f2, #ffffff);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wallet-open-renew:hover {
    transform: translateY(-1px);
    border-color: #f87171;
    box-shadow: 0 12px 28px rgba(220, 38, 38, .11);
}
.wallet-open-renew-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    font-size: 17px;
}
.wallet-open-renew strong,
.wallet-open-renew small { display: block; }
.wallet-open-renew strong {
    color: #991b1b;
    font-size: 14px;
    font-weight: 900;
}
.wallet-open-renew small {
    margin-top: 4px;
    color: #9f4a4a;
    font-size: 10.5px;
    line-height: 1.45;
}
.wallet-open-renew > .fa-arrow-right { color: #dc2626; font-size: 14px; }

.wallet-choose-referral {
    min-height: 36px;
    padding: 6px 10px 6px 7px;
    gap: 7px;
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1;
}
.wallet-choose-referral-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255,255,255,.17);
    font-size: 12px;
}

.wallet-modal-dialog-wide { width: min(650px, 100%); }
.wallet-field-block { display: grid; gap: 6px; }
.wallet-field-block label {
    display: flex;
    align-items: center;
    gap: 7px;
}
.wallet-field-block label i { color: #dc2626; }
.wallet-field-block > small {
    color: #8490a1;
    font-size: 10px;
    line-height: 1.45;
}
.wallet-plan-benefits {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}
.wallet-plan-benefits-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px;
}
.wallet-plan-benefits-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #1d4ed8;
    background: #dbeafe;
}
.wallet-plan-benefits-head small {
    display: block;
    color: #2563eb;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .09em;
}
.wallet-plan-benefits-head h4 {
    margin: 3px 0 0;
    color: #102a56;
    font-size: 15px;
    font-weight: 900;
}
.wallet-plan-benefits-head p {
    margin: 4px 0 0;
    color: #587093;
    font-size: 10.5px;
    line-height: 1.5;
}
.wallet-benefit-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 13px 13px;
}
.wallet-benefit-chips span {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    color: #1e3a5f;
    background: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 800;
}
.wallet-benefit-chips i { color: #2563eb; }

.wallet-cycle-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}
.wallet-cycle-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}
.wallet-cycle-heading small,
.wallet-cycle-heading strong { display: block; }
.wallet-cycle-heading small {
    color: #7b8797;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .09em;
}
.wallet-cycle-heading strong {
    margin-top: 2px;
    color: #1e293b;
    font-size: 12px;
}
.wallet-cycle-heading > span {
    color: #8490a1;
    font-size: 9.5px;
}
.wallet-cycle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.wallet-cycle-option {
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 18px;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #d7dee8;
    border-radius: 11px;
    color: #334155;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}
.wallet-cycle-option:hover { border-color: #fca5a5; }
.wallet-cycle-option.is-selected {
    border-color: #ef4444;
    background: #fff1f2;
    box-shadow: 0 0 0 2px rgba(239,68,68,.08);
}
.wallet-cycle-option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}
.wallet-cycle-option-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #dc2626;
    background: #fee2e2;
}
.wallet-cycle-option small,
.wallet-cycle-option strong { display: block; }
.wallet-cycle-option small {
    color: #7b8797;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}
.wallet-cycle-option strong {
    margin-top: 3px;
    color: #111827;
    font-size: 13px;
}
.wallet-cycle-check { color: #cbd5e1; }
.wallet-cycle-option.is-selected .wallet-cycle-check { color: #dc2626; }

.wallet-date-preview {
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}
.wallet-date-preview > i { color: #16a34a; text-align: center; }
.wallet-date-preview span { min-width: 0; }
.wallet-date-preview small,
.wallet-date-preview strong { display: block; }
.wallet-date-preview small {
    color: #64806d;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wallet-date-preview strong {
    margin-top: 3px;
    color: #166534;
    font-size: 13px;
}
.wallet-plan-benefits[hidden],
.wallet-cycle-section[hidden],
.wallet-date-preview[hidden] { display: none !important; }

@media (max-width: 800px) {
    .wallet-renew-overview { grid-template-columns: 1fr; }
    .wallet-benefit-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .wallet-open-renew { grid-template-columns: 42px minmax(0, 1fr); }
    .wallet-open-renew > .fa-arrow-right { display: none; }
    .wallet-cycle-grid,
    .wallet-benefit-chips { grid-template-columns: 1fr; }
    .wallet-cycle-heading { align-items: flex-start; flex-direction: column; }
    .wallet-date-preview { grid-template-columns: 1fr; }
    .wallet-date-preview > i { transform: rotate(90deg); }
}

/* Mi suscripción 1.3 · ancho unificado, recargas y modal horizontal */
.wallet-page-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
}
.wallet-recharge-hero-btn {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 10px;
    color: #14532d;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
}
.wallet-recharge-hero-btn:hover { background: #f0fdf4; }
.wallet-panel-icon.is-whatsapp { color: #15803d; background: #dcfce7; }
.wallet-whatsapp-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #16a34a;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.wallet-whatsapp-btn:hover { background: #15803d; }
.wallet-recharge-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 17px 18px;
}
.wallet-recharge-overview small,
.wallet-recharge-overview strong { display: block; }
.wallet-recharge-overview small {
    color: #15803d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wallet-recharge-overview strong {
    margin-top: 4px;
    color: #172033;
    font-size: 14px;
}
.wallet-recharge-overview p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.55;
}
.wallet-recharge-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wallet-recharge-steps span {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    color: #166534;
    background: #f0fdf4;
    font-size: 10px;
    font-weight: 800;
}
.wallet-recharge-steps b {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: #16a34a;
    font-size: 9px;
}
.wallet-modal-dialog-wide { width: min(920px, 100%); }
.wallet-modal-body { gap: 14px; }
.wallet-renew-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    gap: 14px;
    align-items: start;
}
.wallet-renew-main,
.wallet-renew-side {
    min-width: 0;
    display: grid;
    gap: 12px;
}
.wallet-plan-benefits-head {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
}
.wallet-benefit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.wallet-benefit-chips span {
    min-height: 44px;
    align-items: center;
    padding: 9px 10px;
    line-height: 1.25;
}
.wallet-benefit-chips span i {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 11px;
}
.wallet-benefit-chips span b {
    min-width: 0;
    color: #1e3a5f;
    font-size: 10.5px;
    font-weight: 850;
}
.wallet-cycle-placeholder {
    min-height: 146px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}
.wallet-cycle-placeholder > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #dc2626;
    background: #fee2e2;
}
.wallet-cycle-placeholder strong { color: #334155; font-size: 12px; }
.wallet-cycle-placeholder span { max-width: 290px; font-size: 10.5px; line-height: 1.5; }
.wallet-cycle-placeholder[hidden] { display: none !important; }
.wallet-cycle-section { padding: 12px; }
.wallet-cycle-heading { align-items: flex-start; }
.wallet-cycle-heading > span { max-width: 145px; text-align: right; line-height: 1.35; }
.wallet-cycle-option { min-height: 67px; }
.wallet-cycle-option.is-disabled strong { font-size: 10px; }
.wallet-date-preview { min-height: 68px; }
.wallet-total { min-height: 58px; }
.wallet-note { min-height: 55px; }
.wallet-swal-form { display: grid; gap: 8px; text-align: left; }
.wallet-swal-form label { color: #334155; font-size: 12px; font-weight: 800; }
.wallet-swal-form .swal2-input,
.wallet-swal-form .swal2-textarea {
    width: 100%;
    margin: 0 0 5px;
    box-sizing: border-box;
}

@media (max-width: 920px) {
    .wallet-renew-layout { grid-template-columns: 1fr; }
    .wallet-recharge-overview { grid-template-columns: 1fr; }
    .wallet-recharge-steps { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .wallet-page-shell { width: 100%; }
    .wallet-whatsapp-btn { width: 100%; }
    .wallet-benefit-chips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .wallet-benefit-chips { grid-template-columns: 1fr; }
    .wallet-recharge-steps { display: grid; grid-template-columns: 1fr; }
    .wallet-recharge-steps span { justify-content: flex-start; }
}

/* Mi suscripción 1.4 · modal estable, solicitud profesional e historial paginado */
.wallet-modal-dialog,
.wallet-modal-dialog * { box-sizing: border-box; }
.wallet-modal-dialog-wide {
    width: min(820px, calc(100vw - 32px));
    max-width: 820px;
}
.wallet-modal-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
.wallet-review-card,
.wallet-renew-layout,
.wallet-renew-main,
.wallet-renew-side,
.wallet-field-block,
.wallet-plan-benefits,
.wallet-cycle-section,
.wallet-date-preview,
.wallet-total,
.wallet-note { min-width: 0; max-width: 100%; }
.wallet-renew-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
}
.wallet-field-block select { max-width: 100%; }
.wallet-benefit-chips span b { overflow-wrap: anywhere; }
.wallet-modal-dialog > form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 17px;
    border-top: 1px solid #e5eaf0;
    background: #fff;
}

.wallet-history-length {
    min-width: 150px;
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 10px;
    font-weight: 850;
}
.wallet-history-length span { display: inline-flex; align-items: center; gap: 6px; }
.wallet-history-length select {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    color: #334155;
    background: #fff;
    font: inherit;
}
.wallet-history-meta,
.wallet-history-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #64748b;
    font-size: 10.5px;
}
.wallet-history-meta { border-bottom: 1px solid #edf0f4; background: #fbfcfe; }
.wallet-history-foot { border-top: 1px solid #edf0f4; }
.wallet-history-pagination { display: inline-flex; align-items: center; gap: 5px; }
.wallet-history-pagination button {
    min-width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    color: #475569;
    background: #fff;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}
.wallet-history-pagination button:hover:not(:disabled),
.wallet-history-pagination button.is-active { border-color: #dc2626; color: #fff; background: #dc2626; }
.wallet-history-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.wallet-history-pagination span { padding: 0 2px; color: #94a3b8; }
.wallet-table tr[hidden] { display: none !important; }

.wallet-request-popup {
    padding: 0 0 20px !important;
    border-radius: 20px !important;
    overflow: hidden;
}
.wallet-request-popup .swal2-title {
    margin: 0 !important;
    padding: 22px 24px 15px !important;
    border-bottom: 1px solid #e8edf4;
    color: #172033;
    font-size: 20px !important;
    text-align: left;
}
.wallet-request-title { display: flex; align-items: center; gap: 10px; }
.wallet-request-title i { color: #16a34a; }
.wallet-request-html { margin: 0 !important; padding: 18px 24px 4px !important; }
.wallet-request-form { display: grid; gap: 14px; text-align: left; }
.wallet-request-guide,
.wallet-request-reminder {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
}
.wallet-request-guide { border: 1px solid #bbf7d0; background: #f0fdf4; color: #37634a; }
.wallet-request-reminder { border: 1px solid #bfdbfe; background: #eff6ff; color: #1e4f8a; }
.wallet-request-guide > i,
.wallet-request-reminder > i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
}
.wallet-request-guide > i { background: #16a34a; }
.wallet-request-reminder > i { background: #2563eb; }
.wallet-request-guide strong,
.wallet-request-reminder strong { display: block; margin-bottom: 3px; color: #172033; font-size: 13px; }
.wallet-request-guide p,
.wallet-request-reminder p { margin: 0; font-size: 11.5px; line-height: 1.5; }
.wallet-request-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.wallet-request-summary span { padding: 10px 11px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.wallet-request-summary small,
.wallet-request-summary strong { display: block; }
.wallet-request-summary small { color: #7b8797; font-size: 8.5px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.wallet-request-summary strong { margin-top: 4px; color: #172033; font-size: 12px; overflow-wrap: anywhere; }
.wallet-request-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #263247;
    font-size: 12.5px;
    font-weight: 850;
}
.wallet-request-field label i { width: 16px; color: #16a34a; text-align: center; }
.wallet-request-field label span { color: #dc2626; }
.wallet-request-field label em { margin-left: auto; color: #8792a5; font-size: 9px; font-style: normal; text-transform: uppercase; }
.wallet-request-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    color: #172033;
    background: #fff;
    font: inherit;
    outline: none;
}
.wallet-request-control:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.wallet-request-textarea { min-height: 92px; resize: vertical; }
.wallet-request-field small { display: block; margin-top: 5px; color: #718096; font-size: 10.5px; line-height: 1.4; }
.wallet-request-popup .swal2-actions { width: calc(100% - 48px); margin: 17px 24px 0 !important; gap: 9px; justify-content: flex-end; }
.wallet-request-confirm,
.wallet-request-cancel {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}
.wallet-request-confirm { color: #fff; background: #16a34a; }
.wallet-request-confirm:hover { background: #15803d; }
.wallet-request-cancel { color: #475569; background: #eef1f5; }
.wallet-request-cancel:hover { background: #e2e7ee; }

@media (max-width: 860px) {
    .wallet-modal-dialog-wide { width: min(680px, calc(100vw - 24px)); }
    .wallet-renew-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .wallet-review-card { grid-template-columns: 1fr; }
    .wallet-history-meta,
    .wallet-history-foot { align-items: flex-start; flex-direction: column; }
    .wallet-history-length { width: 100%; }
    .wallet-history-length select { width: 100%; }
    .wallet-request-summary { grid-template-columns: 1fr; }
    .wallet-request-popup .swal2-title { padding: 18px 18px 13px !important; font-size: 18px !important; }
    .wallet-request-html { padding: 15px 18px 2px !important; }
    .wallet-request-popup .swal2-actions { width: calc(100% - 36px); margin: 15px 18px 0 !important; }
    .wallet-request-confirm,
    .wallet-request-cancel { flex: 1; }
}

/* Mi suscripción 1.5 · aislamiento del formulario, historial completo y modal sin columnas heredadas */
.wallet-modal-dialog > form#walletRenewForm {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
}
.wallet-modal-dialog > form#walletRenewForm > .wallet-modal-body {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 17px !important;
    border: 0 !important;
    background: #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.wallet-modal-dialog > form#walletRenewForm > footer {
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}
.wallet-modal-dialog-wide {
    width: min(820px, calc(100vw - 36px));
    max-width: 820px;
}
.wallet-renew-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: start;
}
.wallet-renew-main,
.wallet-renew-side,
.wallet-review-card { width: 100%; }
.wallet-benefit-chips span { min-width: 0; }
.wallet-benefit-chips span b { white-space: normal; word-break: normal; overflow-wrap: break-word; }

.wallet-movement-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 900;
    white-space: nowrap;
}
.wallet-movement-badge.is-credit { color: #166534; border-color: #bbf7d0; background: #ecfdf3; }
.wallet-movement-badge.is-debit { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.wallet-movement-amount { white-space: nowrap; }
.wallet-movement-amount.is-credit { color: #15803d; }
.wallet-movement-amount.is-debit { color: #be123c; }
.wallet-history-detail {
    display: block;
    min-width: 220px;
    max-width: 430px;
    color: #334155;
    line-height: 1.45;
    white-space: normal;
}
.wallet-history-panel .wallet-table td small { display: block; }

@media (max-width: 860px) {
    .wallet-renew-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Mi suscripción 1.6 · icono de beneficios y aviso de saldo insuficiente */
.wallet-plan-benefits-icon i {
    display: block;
    font-size: 16px;
    line-height: 1;
}
.wallet-insufficient-alert {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    background: #fff1f2;
}
.wallet-insufficient-alert[hidden] { display: none !important; }
.wallet-insufficient-alert > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: #dc2626;
}
.wallet-insufficient-alert strong,
.wallet-insufficient-alert span { display: block; }
.wallet-insufficient-alert strong { font-size: 11.5px; font-weight: 900; }
.wallet-insufficient-alert span { margin-top: 2px; font-size: 10px; line-height: 1.4; }
.wallet-insufficient-alert button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #16a34a;
    font-size: 9.5px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.wallet-insufficient-alert button:hover { background: #15803d; }
@media (max-width: 620px) {
    .wallet-insufficient-alert { grid-template-columns: 34px minmax(0,1fr); }
    .wallet-insufficient-alert button { grid-column: 1 / -1; width: 100%; }
}
