/* ========================================================================*
 *                           TABLA DE CONTENIDO                            *
 * ========================================================================*/
/*   LOGIN 
/*   DASHBOARD
/*   PERFIL
/*   LISTA DE USUARIOS
/*   ALIADOS
/*   ARBOL GRAFICO
/*   RANGOS 
/*   RECARGAS 
/*   RETIROS 
/*   GANANCIAS DE LA RED 
/*   REGISTRAR SORTEOS 
/*   SORTEOS ACTIVOS

/* ========================================================================*
 *                                 LOGIN                                   *
 * ========================================================================*/

.logintotalscreen {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #e8ecf2;
    height: 100vh;
    height: 100dvh;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    user-select: none;
    display: flex;
}

.authadmin-left-panel {
    position: relative;
    width: 48%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, #1a3261 0%, #0d1f3e 45%, #081429 100%);
    z-index: 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.authadmin-left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 140px;
    height: 100%;
    background: #e8ecf2;
    clip-path: ellipse(80% 52% at 100% 50%);
    z-index: 10;
    pointer-events: none;
}

.authadmin-bg-decor-left-swoosh-1 {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 122, 0, 0.12);
    clip-path: ellipse(55% 55% at 30% 30%);
    z-index: 2;
    pointer-events: none;
}

.authadmin-bg-decor-left-swoosh-2 {
    position: absolute;
    bottom: -50px;
    right: 80px;
    width: 180px;
    height: 180px;
    background: rgba(255, 122, 0, 0.08);
    clip-path: ellipse(50% 50% at 60% 70%);
    z-index: 2;
    pointer-events: none;
}

.authadmin-bg-decor-left-swoosh-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.02);
    clip-path: ellipse(50% 50% at 50% 50%);
    z-index: 1;
    pointer-events: none;
}

.authadmin-watermark {
    display: none;
}

.authadmin-info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: #ffffff;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 0 0 52px 48px;
    box-sizing: border-box;
}

.authadmin-info-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.authadmin-logo {
    width: 180px;
    height: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-58%, -60%);
    animation: logoFloat 3.5s ease-in-out infinite;
    z-index: 11;
}

@keyframes logoFloat {
    0%, 100% { transform: translate(-58%, -60%) translateY(0px); }
    50% { transform: translate(-58%, -60%) translateY(-8px); }
}

.authadmin-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.authadmin-title span {
    color: #ff7a00;
    display: block;
}

.authadmin-subtitle {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin: 10px 0 0 0;
    letter-spacing: 0;
    text-transform: none;
}

.authadmin-title-line {
    display: none;
}

.authadmin-access-badge {
    display: none;
}

@media (max-width: 991.98px) {
    .authadmin-left-panel {
        display: none;
    }

    .logintotalscreen {
        background: radial-gradient(ellipse at 30% 30%, #1a3261 0%, #0d1f3e 50%, #081429 100%);
        justify-content: center;
        align-items: center;
    }
}

.authadmin-page-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 30px 40px;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
    background-color: #e8ecf2;
}

.authadmin-page-wrapper::before,
.authadmin-page-wrapper::after {
    display: none;
}

@media (max-width: 1200px) {
    .authadmin-page-wrapper {
        padding: 30px;
    }
}

@media (max-width: 991.98px) {
    .authadmin-page-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 24px;
        background: transparent;
        width: 100%;
    }
}

.authadmin-mobile-decor-1 {
    display: none;
}
.authadmin-mobile-decor-2 {
    display: none;
}

@media (max-width: 991.98px) {
    .authadmin-mobile-decor-1 {
        display: block;
        position: fixed;
        top: -60px;
        left: -60px;
        width: 220px;
        height: 220px;
        background: rgba(255, 122, 0, 0.15);
        clip-path: ellipse(55% 55% at 30% 30%);
        z-index: 1;
        pointer-events: none;
    }
    .authadmin-mobile-decor-2 {
        display: block;
        position: fixed;
        bottom: -60px;
        right: -40px;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.04);
        clip-path: ellipse(50% 50% at 60% 70%);
        z-index: 1;
        pointer-events: none;
    }
}

.authadmin-mobile-header {
    display: none;
}

@media (max-width: 991.98px) {
    .authadmin-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 24px;
        z-index: 10;
        color: #ffffff;
    }

    .authadmin-mobile-header .authadmin-logo {
        position: static;
        transform: none;
        animation: logoFloat2 3.5s ease-in-out infinite;
        width: 110px;
        margin-bottom: 14px;
    }

    @keyframes logoFloat2 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }

    .authadmin-mobile-header .authadmin-title {
        font-size: 28px;
        text-align: center;
    }

    .authadmin-mobile-header .authadmin-title span {
        display: inline;
    }

    .authadmin-mobile-header .authadmin-subtitle {
        font-size: 12px;
        margin-top: 6px;
        color: rgba(255,255,255,0.6);
    }
}

.authadmin-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 24px 64px rgba(12,27,53,0.12),
        0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
    padding: 38px 38px 30px 38px;
    box-sizing: border-box;
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: cardEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.authadmin-card::before {
    display: none;
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 720px) and (min-width: 992px) {
    .authadmin-card {
        transform: scale(0.88);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .authadmin-card {
        padding: 28px 22px 22px 22px;
        border-radius: 20px;
        max-width: 94vw;
    }
}

.authadmin-card-lock-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.authadmin-lock-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(12,27,53,0.10),
        0 0 0 8px rgba(12,27,53,0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authadmin-lock-circle:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(12,27,53,0.16), 0 0 0 10px rgba(12,27,53,0.04);
}

.authadmin-lock-circle img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.authadmin-lock-circle svg {
    display: none;
}

.authadmin-card-title {
    font-size: 26px;
    font-weight: 800;
    color: #0d1f3e;
    text-align: center;
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.authadmin-card-subtitle {
    font-size: 13px;
    color: #8a9ab5;
    text-align: center;
    margin: 0 0 26px 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.authadmin-form {
    width: 100%;
    position: relative;
    z-index: 1;
}

.authadmin-input-group {
    margin-bottom: 14px;
    width: 100%;
}

.authadmin-input-group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2e50;
    margin-bottom: 6px;
}

.authadmin-input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid #e0e7f0;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
    background: #ffffff;
}

.authadmin-input-wrapper:focus-within {
    border-color: #c5d0e0;
    box-shadow: 0 0 0 4px rgba(12,27,53,0.06);
}

.authadmin-input-addon {
    background: transparent;
    color: #8a9ab5;
    width: 46px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.authadmin-input-wrapper:focus-within .authadmin-input-addon {
    color: #0d1f3e;
}

.authadmin-input-addon svg {
    width: 18px;
    height: 18px;
}

.authadmin-input {
    width: 100%;
    padding: 14px 14px 14px 4px;
    border: none;
    font-size: 14px;
    color: #0d1f3e;
    box-sizing: border-box;
    outline: none;
    background: transparent;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.authadmin-input::placeholder {
    color: #b0bece;
    font-weight: 400;
}

.authadmin-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b0bece;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.2s;
}

.authadmin-toggle-password:hover {
    color: #0d1f3e;
}

.authadmin-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 4px;
}

.authadmin-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7a99;
    user-select: none;
}

.authadmin-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.authadmin-checkbox-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #ffffff;
    border: 1.5px solid #d0daea;
    border-radius: 4px;
    transition: all 0.2s;
}

.authadmin-checkbox-container input:checked ~ .authadmin-checkbox-checkmark {
    background-color: #ff7a00;
    border-color: #ff7a00;
}

.authadmin-checkbox-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.authadmin-checkbox-container input:checked ~ .authadmin-checkbox-checkmark::after {
    display: block;
}

.authadmin-forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: #2f6bdb;
    text-decoration: none;
    transition: color 0.2s;
}

.authadmin-forgot-link:hover {
    color: #1a4db5;
    text-decoration: underline;
}

.authadmin-btn-submit {
    width: 100%;
    background: linear-gradient(90deg, #ff8000 0%, #e86400 100%);
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(255, 122, 0, 0.38);
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.authadmin-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.authadmin-btn-submit:hover::before {
    left: 100%;
}

.authadmin-btn-submit:hover {
    background: linear-gradient(90deg, #e87200 0%, #cc5800 100%);
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.48);
    transform: translateY(-1px);
}

.authadmin-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.authadmin-btn-submit svg {
    transition: transform 0.25s;
    flex-shrink: 0;
}

.authadmin-btn-submit:hover svg {
    transform: translateX(4px);
}

.authadmin-btn-loading {
    opacity: 0.75;
    pointer-events: none;
}

.authadmin-footer-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px 0;
    color: #b8c4d4;
    font-size: 12px;
    font-weight: 400;
}

.authadmin-footer-separator::before,
.authadmin-footer-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8edf5;
}

.authadmin-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.authadmin-btn-secure {
    width: 100%;
    background: #f4f7fc;
    color: #1a2e50;
    border: 1.5px solid #e0e7f0;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.22s ease;
    font-family: system-ui, -apple-system, sans-serif;
}

.authadmin-btn-secure:hover {
    background: #e8edf8;
    border-color: #c8d4e8;
}

.authadmin-btn-secure svg {
    color: #2f6bdb;
    flex-shrink: 0;
}

.authadmin-footer-item {
    display: none;
}

.authadmin-copyright {
    font-size: 12px;
    color: #b0bece;
    font-weight: 400;
    text-align: center;
    margin-top: 4px;
}

.authadmin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8,20,41,0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.authadmin-modal-overlay.active {
    display: flex;
}

.authadmin-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 38px 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: cardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.authadmin-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #f4f6fb;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authadmin-modal-close:hover {
    background: #ffe8d6;
    color: #ff7a00;
}

.authadmin-shield-icon-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff5ee, #ffe0cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #ff7a00;
    box-shadow: 0 4px 16px rgba(255,122,0,0.2);
}

.authadmin-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d1f3e;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.authadmin-modal-subtitle {
    font-size: 13px;
    color: #8a9ab5;
    line-height: 1.55;
    margin-bottom: 24px;
    font-weight: 400;
}

.authadmin-otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.authadmin-otp-input {
    width: 44px;
    height: 50px;
    border: 1.5px solid #e0e7f0;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #ff7a00;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.25s;
    outline: none;
    background: #fafbfd;
}

.authadmin-otp-input:focus {
    border-color: #ff7a00;
    background: #fff8f3;
    box-shadow: 0 0 0 4px rgba(255,122,0,0.1);
}

.authadmin-modal-footer {
    border-top: 1px solid #f0f4f9;
    padding-top: 16px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b0bece;
    font-size: 11.5px;
    font-weight: 500;
}

.authadmin-modal-footer svg {
    color: #ff7a00;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .authadmin-modal {
        padding: 28px 20px;
    }
    .authadmin-otp-input {
        width: 38px;
        height: 44px;
        font-size: 18px;
    }
}
/* ========================================================================*
 *                        DASHBOARD                                          *
 * ========================================================================*/

/* ========================================================================*
 *                              PERFIL                                  *
 * ========================================================================*/

.redperfil-container {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.redperfil-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #002855;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.redperfil-page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.redperfil-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.redperfil-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 14px rgba(0, 40, 85, 0.04);
    padding: 24px;
    box-sizing: border-box;
}

.redperfil-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 20px 0;
}

.redperfil-info-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.redperfil-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.redperfil-avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #002855;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    overflow: hidden;
    flex-shrink: 0;
}

.redperfil-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.redperfil-btn-img {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #002855;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.redperfil-btn-img:hover {
    border-color: #ff7a00;
    color: #ff7a00;
    background: #fff7ed;
}

.redperfil-fields-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.redperfil-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.redperfil-field-row:last-child {
    border-bottom: none;
}

.redperfil-field-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.redperfil-field-value {
    font-size: 14px;
    font-weight: 700;
    color: #002855;
}

.redperfil-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.redperfil-btn-edit:hover {
    border-color: #ff7a00;
    color: #ff7a00;
    background: #fff7ed;
}

.redperfil-2fa-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.redperfil-2fa-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1d4ed8;
}

.redperfil-2fa-title {
    font-size: 15px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 4px 0;
}

.redperfil-2fa-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.redperfil-2fa-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.redperfil-2fa-status-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.redperfil-badge-active {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.redperfil-badge-inactive {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.redperfil-2fa-note {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.redperfil-btn-2fa-disable {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid #e11d48;
    color: #e11d48;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redperfil-btn-2fa-disable:hover {
    background: #fee2e2;
}

.redperfil-btn-2fa-enable {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ff7a00;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

.redperfil-btn-2fa-enable:hover {
    background: #e06900;
}

.redperfil-sessions-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 14px rgba(0, 40, 85, 0.04);
    padding: 24px;
    box-sizing: border-box;
    padding-bottom: 16px;
}

.redperfil-sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.redperfil-sessions-title {
    font-size: 16px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 4px 0;
}

.redperfil-sessions-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.redperfil-btn-close-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid #e11d48;
    color: #e11d48;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.redperfil-btn-close-all:hover {
    background: #fee2e2;
}

.redperfil-sessions-table-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.redperfil-sessions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.redperfil-sessions-table th {
    font-size: 12.5px;
    font-weight: 700;
    color: #002855;
    padding: 10px 16px;
    border-bottom: 1px solid #e8edf5;
    text-align: left;
    white-space: nowrap;
}

.redperfil-sessions-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.redperfil-sessions-table tbody tr:last-child td {
    border-bottom: none;
}

.redperfil-sessions-table tbody tr:hover td {
    background: #fafbff;
}

.redperfil-device-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redperfil-device-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.redperfil-device-name {
    font-weight: 700;
    color: #002855;
    font-size: 13px;
    display: block;
}

.redperfil-device-os {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

.redperfil-location {
    font-size: 13px;
    color: #334155;
    display: block;
}

.redperfil-ip {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    display: block;
}

.redperfil-details-res {
    font-size: 13px;
    color: #334155;
    display: block;
}

.redperfil-details-lang {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

.redperfil-activity-now {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
}

.redperfil-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: redperfil-pulse 1.8s ease infinite;
}

@keyframes redperfil-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.redperfil-activity-time {
    font-size: 13px;
    color: #64748b;
}

.redperfil-this-device {
    font-size: 11.5px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.redperfil-btn-close-session {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #e11d48;
    color: #e11d48;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.redperfil-btn-close-session:hover {
    background: #fee2e2;
}

.redperfil-sessions-footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.redperfil-sessions-footer-note svg {
    color: #3b82f6;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .redperfil-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .redperfil-container {
        padding: 14px;
        padding-bottom: 60px;
    }

    .redperfil-info-body {
        flex-direction: column;
        align-items: center;
    }

    .redperfil-fields-col {
        width: 100%;
    }

    .redperfil-sessions-header {
        flex-direction: column;
        align-items: stretch;
    }

    .redperfil-btn-close-all {
        width: 100%;
        justify-content: center;
    }
}

.redperfil-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    /* Center horizontally and vertically */
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent overlay scroll */
}

.redperfil-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.redperfil-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-sizing: border-box;
    position: relative;
    max-height: calc(100vh - 40px);
    /* Keep it within viewport borders */
    overflow-y: auto;
    /* Let the content scroll inside the modal */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.redperfil-modal-box::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.redperfil-modal-overlay.active .redperfil-modal-box {
    transform: scale(1) translateY(0);
}

.redperfil-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.redperfil-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redperfil-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    transition: all 0.2s;
}

.redperfil-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.redperfil-input-group {
    margin-bottom: 20px;
}

.redperfil-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.redperfil-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.redperfil-input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

.redperfil-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.redperfil-btn-cancel {
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.redperfil-btn-cancel:hover {
    background: #f8fafc;
}

.redperfil-btn-save {
    padding: 10px 18px;
    border: none;
    background: linear-gradient(135deg, #002855 0%, #001a38 100%);
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 40, 85, 0.2);
}

.redperfil-btn-save:hover {
    box-shadow: 0 6px 14px rgba(0, 40, 85, 0.3);
    transform: translateY(-1px);
}

.redperfil-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.redperfil-2fa-modal-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.redperfil-2fa-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.redperfil-2fa-step {
    display: flex;
    gap: 16px;
}

.redperfil-2fa-step-number {
    width: 28px;
    height: 28px;
    background: #002855;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.redperfil-2fa-step strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.redperfil-2fa-step p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.redperfil-2fa-qr-container {
    margin-top: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.redperfil-2fa-secret-box {
    margin-top: 12px;
    text-align: center;
}

.redperfil-2fa-secret-box strong {
    color: #0f172a;
}

@media (max-width: 576px) {
    .redperfil-modal-box {
        padding: 18px;
        /* Slightly reduce padding on mobile */
        border-radius: 12px;
    }

    .redperfil-2fa-modal-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .redperfil-2fa-step {
        gap: 12px;
        /* Reduce gap */
    }

    .redperfil-2fa-step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .redperfil-2fa-step strong {
        font-size: 13px;
    }

    .redperfil-2fa-step p {
        font-size: 12px;
    }

    .redperfil-modal-actions {
        flex-direction: column-reverse;
        /* Stack buttons with Cancel on bottom */
        gap: 10px;
        width: 100%;
        margin-top: 18px !important;
    }

    .redperfil-modal-actions button,
    .redperfil-modal-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 18px;
        /* Make buttons slightly taller and easier to click on mobile */
    }

    #secretText {
        display: inline-block;
        word-break: break-all;
        max-width: 100%;
        font-size: 12px !important;
        box-sizing: border-box;
    }
}







/* ========================================================================*
 *                           LISTA DE USUARIOS                             *
 * ========================================================================*/
.redlisusuario-container {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Header */
.redlisusuario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}
.redlisusuario-title-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.redlisusuario-title {
    font-size: 22px;
    font-weight: 700;
    color: #002855;
    margin: 0;
}
.redlisusuario-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Toolbar */
.redlisusuario-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.redlisusuario-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 14px;
    max-width: 380px;
    width: 100%;
    box-sizing: border-box;
}
.redlisusuario-search-icon {
    color: #64748b;
    flex-shrink: 0;
}
.redlisusuario-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #334155;
    width: 100%;
    background: transparent;
    padding: 0;
}

/* Filters and Export Wrapper */
.redlisusuario-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.redlisusuario-filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.redlisusuario-filter-select:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.redlisusuario-filter-icon {
    color: #64748b;
}
.redlisusuario-chevron-icon {
    color: #94a3b8;
    margin-left: 4px;
}

/* Button Export */
.redlisusuario-btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff7a00; /* Primary brand orange matching usuvincula primary button */
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(255, 122, 0, 0.2);
}
.redlisusuario-btn-export:hover {
    background: #e66e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(255, 122, 0, 0.3);
}
.redlisusuario-btn-export:active {
    transform: translateY(0);
}
.redlisusuario-btn-export .redlisusuario-chevron-icon {
    color: rgba(255, 255, 255, 0.7);
}

/* Table Card */
.redlisusuario-table-card {
    background: #ffffff;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.redlisusuario-table-responsive {
    width: 100%;
    overflow-x: auto;
}
.redlisusuario-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.redlisusuario-table th {
    background-color: #ffffff;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #002855;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: 0.5px;
    user-select: none;
    white-space: nowrap;
}
.redlisusuario-th-content {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.redlisusuario-th-content:hover {
    color: #002855;
}
.redlisusuario-sort-icon {
    color: #94a3b8;
}

.redlisusuario-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    white-space: nowrap;
}
.redlisusuario-table tbody tr:last-child td {
    border-bottom: none;
}
.redlisusuario-table tbody tr {
    transition: background-color 0.2s ease;
}
.redlisusuario-table tbody tr:hover {
    background-color: #f8fafc;
}

/* User & Sponsor cells */
.redlisusuario-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.redlisusuario-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #002855; /* Fallback background color */
}
.redlisusuario-avatar--blue {
    background: linear-gradient(135deg, #002855, #0050b3);
}
.redlisusuario-avatar--green {
    background: linear-gradient(135deg, #10b981, #059669);
}
.redlisusuario-avatar--purple {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}
.redlisusuario-avatar--orange {
    background: linear-gradient(135deg, #ff7a00, #ff4500);
}
.redlisusuario-avatar--indigo {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}
.redlisusuario-avatar--rose {
    background: linear-gradient(135deg, #db2777, #9d174d);
}
.redlisusuario-user-info, .redlisusuario-sponsor-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.redlisusuario-user-name, .redlisusuario-sponsor-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}
.redlisusuario-user-id, .redlisusuario-sponsor-id {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* Rank column */
.redlisusuario-rank-cell {
    display: flex;
    align-items: center;
}
.redlisusuario-rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.redlisusuario-rank-badge--purple {
    background-color: #ede9fe;
    color: #7c3aed;
}
.redlisusuario-rank-badge--blue {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Amount & numbers */
.redlisusuario-number {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 600;
    color: #1e293b;
}
.redlisusuario-country {
    font-weight: 600;
    color: #475569;
}

/* Status badge */
.redlisusuario-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}
.redlisusuario-status--active {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.redlisusuario-status--suspended {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Action buttons */
.redlisusuario-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.redlisusuario-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.redlisusuario-action-btn:hover {
    transform: scale(1.05);
}
.redlisusuario-action-btn--view:hover {
    color: #002855;
    border-color: rgba(0, 40, 85, 0.2);
    background-color: rgba(0, 40, 85, 0.05);
}
.redlisusuario-action-btn--suspend:hover {
    color: #ff7a00;
    border-color: rgba(255, 122, 0, 0.2);
    background-color: rgba(255, 122, 0, 0.05);
}

/* Table Footer / Pagination */
.redlisusuario-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 16px;
}
.redlisusuario-info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.redlisusuario-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}
.redlisusuario-pag-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.redlisusuario-pag-btn:hover:not(.redlisusuario-pag-btn--active) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.redlisusuario-pag-btn--active {
    background-color: #0f4c81;
    border-color: #0f4c81;
    color: #ffffff;
}
.redlisusuario-pag-btn--nav {
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.redlisusuario-pag-btn--nav:hover {
    color: #475569;
}
.redlisusuario-pag-btn--nav svg {
    flex-shrink: 0;
}

/* Items per page */
.redlisusuario-perpage-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.redlisusuario-perpage-select:focus {
    border-color: #3b82f6;
}

/* Responsive queries */
@media (max-width: 1024px) {
    .redlisusuario-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .redlisusuario-search-wrapper {
        max-width: none;
    }
    .redlisusuario-filters-wrapper {
        justify-content: space-between;
    }
    .redlisusuario-filter-select, .redlisusuario-btn-export {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

@media (max-width: 640px) {
    .redlisusuario-container {
        padding: 16px;
        gap: 16px;
    }
    .redlisusuario-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .redlisusuario-table-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .redlisusuario-pagination {
        order: -1;
    }
}

/* Modal Perfil Usuario */
.redlisusuario-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
.redlisusuario-overlay.show {
    display: flex;
    animation: redlisusuarioFadeIn 0.2s ease-out;
}
@keyframes redlisusuarioFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.redlisusuario-modal {
    background: #ffffff;
    width: 100%;
    max-width: 960px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: redlisusuarioModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes redlisusuarioModalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.redlisusuario-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.redlisusuario-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #002855;
    margin: 0;
}
.redlisusuario-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.redlisusuario-modal-close:hover {
    color: #002855;
}

.redlisusuario-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.redlisusuario-profile-banner {
    background: linear-gradient(135deg, rgb(255, 122, 0), rgb(0, 40, 85));
    border-radius: 14px;
    padding: 24px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 24px;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(255, 122, 0, 0.2), 0 4px 12px rgba(0, 40, 85, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    box-sizing: border-box;
}
.redlisusuario-profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.redlisusuario-profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 1px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.25);
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    overflow: visible;
}
.redlisusuario-profile-banner-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}
.redlisusuario-profile-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.redlisusuario-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word; /* Let long names wrap cleanly */
}
.redlisusuario-profile-id {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.redlisusuario-profile-status {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: rgba(34,197,94,0.2);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
    width: fit-content;
}
.redlisusuario-profile-stats-inline {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 2px;
}
.redlisusuario-pstat-inline-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.redlisusuario-pstat-inline-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75); /* High contrast readable color on banner gradient */
    letter-spacing: 0.5px;
}
.redlisusuario-pstat-inline-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.redlisusuario-modal-middle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 768px) {
    .redlisusuario-modal-middle-grid {
        grid-template-columns: 1fr;
    }
}

.redlisusuario-details-box, .redlisusuario-security-finance-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.redlisusuario-security-finance-box {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.redlisusuario-security-section, .redlisusuario-finance-section {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redlisusuario-section-title {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 1px;
}

.redlisusuario-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.redlisusuario-detail-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.redlisusuario-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.redlisusuario-detail-label-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}
.redlisusuario-detail-icon {
    color: #94a3b8;
    flex-shrink: 0;
}
.redlisusuario-detail-value {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}
.redlisusuario-detail-sponsor-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}
.redlisusuario-sponsor-sub-id {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 400;
}
.redlisusuario-detail-status {
    font-size: 10px;
    font-weight: 700;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}
.redlisusuario-security-status {
    font-size: 10px;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}
.redlisusuario-fin-value {
    font-size: 13px;
    font-weight: 700;
}
.redlisusuario-fin-value--green {
    color: #16a34a;
}
.redlisusuario-fin-value--red {
    color: #dc2626;
}
.redlisusuario-fin-value--blue {
    color: #2563eb;
}
.redlisusuario-fin-value--purple {
    color: #9333ea;
}

.redlisusuario-modal-bottom-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
@media (max-width: 900px) {
    .redlisusuario-modal-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .redlisusuario-action-card:last-child {
        grid-column: span 1;
    }
}

.redlisusuario-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.redlisusuario-action-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.redlisusuario-action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.redlisusuario-action-card-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}
.redlisusuario-action-card-icon--purple {
    background: #faf5ff;
    color: #9333ea;
}
.redlisusuario-action-card-icon--green {
    background: #f0fdf4;
    color: #16a34a;
}
.redlisusuario-action-card-icon--indigo {
    background: #e0e7ff;
    color: #4f46e5;
}
.redlisusuario-action-card-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}
.redlisusuario-action-card-title {
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.redlisusuario-action-card-desc {
    font-size: 10px;
    color: #64748b;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .redlisusuario-modal-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .redlisusuario-profile-card {
        grid-column: 1 / -1;
    }
    .redlisusuario-modal-middle-grid {
        grid-template-columns: 1fr;
    }
    .redlisusuario-modal-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .redlisusuario-action-card:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .redlisusuario-modal-top-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .redlisusuario-profile-banner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 24px 16px !important;
    }
    .redlisusuario-profile-banner-info {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .redlisusuario-profile-meta-row {
        justify-content: center !important;
    }
    .redlisusuario-profile-stats-inline {
        justify-content: center !important;
        gap: 16px !important;
        width: 100% !important;
    }
}







/* ========================================================================*
 *                        ALIADOS                                          *
 * ========================================================================*/

.usuvincula-container {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.usuvincula-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.usuvincula-title {
    font-size: 24px;
    font-weight: 800;
    color: #002855;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.usuvincula-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.usuvincula-btn-primary {
    background: linear-gradient(135deg, #ff7a00 0%, #e66e00 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.25);
    transition: all 0.25s ease;
}

.usuvincula-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
    background: linear-gradient(135deg, #ff881a 0%, #ff7a00 100%);
}

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

/* Filtro */
.usuvincula-filter-bar {
    margin-bottom: 20px;
}

.usuvincula-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    max-width: 400px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.usuvincula-search-wrapper:focus-within {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.usuvincula-search-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    width: 100%;
    background: transparent;
    font-family: inherit;
}

/* Tabla */
.usuvincula-table-wrapper {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.06);
    border: 1px solid #f1f5f9;
    overflow-x: auto;
    width: 100%;
}

.usuvincula-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.usuvincula-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.usuvincula-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.usuvincula-table tbody tr:last-child td {
    border-bottom: none;
}

.usuvincula-table tbody tr {
    transition: background 0.2s ease;
}

.usuvincula-table tbody tr:hover {
    background: #f8fafc;
}

.usuvincula-id {
    font-size: 13px;
    font-weight: 700;
    color: #002855;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.usuvincula-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usuvincula-user-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.usuvincula-user-email {
    font-size: 12px;
    color: #64748b;
}

.usuvincula-rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.rank-gold {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rank-silver {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.rank-default {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.usuvincula-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usuvincula-btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.usuvincula-btn-action.btn-range {
    background: #f3e8ff;
    color: #7e22ce;
}

.usuvincula-btn-action.btn-range:hover {
    background: #e9d5ff;
    transform: translateY(-1px);
}

.usuvincula-btn-action.btn-delete {
    background: #ffe4e6;
    color: #e11d48;
}

.usuvincula-btn-action.btn-delete:hover {
    background: #fecdd3;
    transform: translateY(-1px);
}

/* Botón predeterminado (Sí / No) */
.usuvincula-predet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.usuvincula-predet-btn.predet-si {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.usuvincula-predet-btn.predet-si:hover {
    background: #bbf7d0;
}

.usuvincula-predet-btn.predet-no {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.usuvincula-predet-btn.predet-no:hover {
    background: #dcfce7;
    color: #15803d;
}

/* ---- OVERLAY / MODAL ---- */
.usuvincula-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 24, 53, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.usuvincula-overlay.show {
    opacity: 1;
    visibility: visible;
}

.usuvincula-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    box-shadow: 0 25px 60px rgba(0, 24, 53, 0.22);
    animation: usuvinculaModalIn 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.usuvincula-modal-lg {
    max-width: 600px;
}

.usuvincula-modal-sm {
    max-width: 400px;
    text-align: center;
}

@keyframes usuvinculaModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.usuvincula-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.usuvincula-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #002855;
    margin: 0;
}

.usuvincula-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.usuvincula-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.usuvincula-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.usuvincula-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

/* Form elements */
.usuvincula-form-group {
    margin-bottom: 20px;
}

.usuvincula-form-group:last-child {
    margin-bottom: 0;
}

.usuvincula-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #002855;
    margin-bottom: 8px;
}

.usuvincula-input,
.usuvincula-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.usuvincula-input:focus,
.usuvincula-select:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3.5px rgba(255, 122, 0, 0.15);
}

.usuvincula-search-results {
    margin-top: 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.usuvincula-selected-user {
    padding: 12px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    min-height: 48px;
    background: #f8fafc;
    display: flex;
    align-items: center;
}

.usuvincula-selected-placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* Toggle switch */
.usuvincula-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuvincula-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.usuvincula-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.usuvincula-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 34px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.usuvincula-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.usuvincula-toggle input:checked + .usuvincula-toggle-slider {
    background: #ff7a00;
}

.usuvincula-toggle input:checked + .usuvincula-toggle-slider::before {
    transform: translateX(20px);
}

.usuvincula-toggle-label {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

/* Botones del modal */
.usuvincula-btn-cancel {
    padding: 10px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.usuvincula-btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.usuvincula-btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7a00 0%, #e66e00 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
    transition: all 0.2s ease;
}

.usuvincula-btn-confirm:hover {
    background: linear-gradient(135deg, #ff881a 0%, #ff7a00 100%);
    transform: translateY(-1px);
}

.usuvincula-btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    transition: all 0.2s ease;
}

.usuvincula-btn-danger:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    transform: translateY(-1px);
}

/* Confirmación eliminar */
.usuvincula-confirm-icon {
    width: 60px;
    height: 60px;
    background: #ffe4e6;
    color: #e11d48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 16px;
}

.usuvincula-confirm-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .usuvincula-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .usuvincula-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .usuvincula-search-wrapper {
        max-width: 100%;
    }

    .usuvincula-modal {
        max-width: 100%;
        border-radius: 14px;
    }

    .usuvincula-modal-footer {
        flex-direction: column-reverse;
    }

    .usuvincula-btn-cancel,
    .usuvincula-btn-confirm,
    .usuvincula-btn-danger {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================================================*
 *                            ARBOL GRAFICO                            *
 * ========================================================================*/
.redarbolg-container {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Header styling */
.redarbolg-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redarbolg-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.redarbolg-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* Search Card â€” floats inside the tree card */
.redarbolg-search-card {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    width: min(300px, calc(100% - 200px));
    box-sizing: border-box;
    backdrop-filter: blur(6px);
}

.redarbolg-search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.redarbolg-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.redarbolg-search-input {
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #334155;
    width: 100%;
    background: transparent;
}

.redarbolg-search-input::placeholder {
    color: #94a3b8;
}

.redarbolg-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.redarbolg-search-clear:hover {
    color: #64748b;
}

/* Zoom Controls â€” floats inside the tree card (top-right) */
.redarbolg-zoom-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    gap: 2px;
}

.redarbolg-zoom-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

.redarbolg-zoom-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.redarbolg-zoom-btn svg {
    width: 17px;
    height: 17px;
}

/* Tree Main Card */
.redarbolg-tree-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    width: 100%;
    /* Responsive height: uses viewport minus header area */
    height: calc(100vh - 220px);
    min-height: 480px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    background-image: radial-gradient(#dde3ec 1.2px, transparent 1.2px);
    background-size: 26px 26px;
}

.redarbolg-tree-card:active {
    cursor: grabbing;
}

.redarbolg-tree-viewport {
    width: 100%;
    height: 100%;
    display: block;
}

/* Tree Connections (orthogonal paths) */
.redarbolg-link {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 2px;
    transition: stroke 0.3s;
}

/* Node Elements */
.redarbolg-node-card {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.02);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 10px 8px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.redarbolg-node-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    border-color: #cbd5e1;
}

/* Highlights on search match */
.redarbolg-node-card--highlighted {
    border-color: #ff8c00 !important;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2), 0 20px 25px -5px rgba(15, 23, 42, 0.08) !important;
    animation: redarbolg-pulse 2s infinite;
}

@keyframes redarbolg-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Avatar Badge */
.redarbolg-node-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.14);
    flex-shrink: 0;
}

.redarbolg-node-avatar svg {
    width: 18px;
    height: 18px;
}

/* Brand Colors for Avatars */
.redarbolg-node-avatar--blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.redarbolg-node-avatar--green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.redarbolg-node-avatar--purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Text nodes inside card */
/* Line 1: Full Name â€” wraps up to 2 lines, title-case applied in JS */
.redarbolg-node-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    line-height: 1.25;
    word-break: break-word;
}

/* Line 2: ID */
.redarbolg-node-username {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
}

/* Line 3: Rank badge */
.redarbolg-node-role {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.3;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 5px;
    box-sizing: border-box;
    margin-top: auto;
}

/* Legend styling */
.redarbolg-legend {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    z-index: 10;
}

.redarbolg-legend-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.redarbolg-legend-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redarbolg-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.redarbolg-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.redarbolg-legend-color--purple { background-color: #8b5cf6; }
.redarbolg-legend-color--green  { background-color: #10b981; }
.redarbolg-legend-color--blue   { background-color: #3b82f6; }

/* â”€â”€ Avatar with initials text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.redarbolg-node-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.redarbolg-node-avatar--blue   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.redarbolg-node-avatar--green  { background: linear-gradient(135deg,#10b981,#047857); }
.redarbolg-node-avatar--purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }

/* â”€â”€ Search dropdown â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.redarbolg-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    z-index: 30;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.redarbolg-dd-item {
    padding: 9px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.redarbolg-dd-item:last-child { border-bottom: none; }
.redarbolg-dd-item:hover { background: #f8fafc; }

.redarbolg-dd-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.redarbolg-dd-meta {
    font-size: 11px;
    color: #94a3b8;
}

.redarbolg-dd-empty {
    padding: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* â”€â”€ Context label (top-center) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.redarbolg-context-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(15,23,42,0.72);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* â”€â”€ Loading overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.redarbolg-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(3px);
    z-index: 40;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}

.redarbolg-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #ff8c00;
    border-radius: 50%;
    animation: redarbolg-spin 0.75s linear infinite;
}

@keyframes redarbolg-spin { to { transform: rotate(360deg); } }

/* â”€â”€ Back button variant â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.redarbolg-zoom-btn--back {
    color: #ff8c00;
    border-right: 1px solid #f1f5f9;
    margin-right: 2px;
    padding-right: 6px;
}
.redarbolg-zoom-btn--back:hover { background: #fff7ed; color: #ea580c; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .redarbolg-container  { padding: 14px; gap: 12px; }
    .redarbolg-title      { font-size: 18px; }
    .redarbolg-tree-card  { height: calc(100vh - 180px); min-height: 380px; border-radius: 12px; }
    .redarbolg-search-card{ width: calc(100% - 170px); padding: 7px 10px; }
    .redarbolg-search-input { font-size: 12px; }
    .redarbolg-zoom-btn   { width: 30px; height: 30px; }
    .redarbolg-zoom-btn svg { width: 15px; height: 15px; }
    .redarbolg-legend     { bottom: 10px; right: 10px; padding: 8px 10px; }
}

@media (max-width: 480px) {
    .redarbolg-search-card {
        width: calc(100% - 28px);
        top: 52px;
        left: 50%;
        transform: translateX(-50%);
    }
    .redarbolg-zoom-controls { top: 10px; right: 10px; }
}



/* ========================================================================*
 *                                RANGOS                                   *
 * ========================================================================*/
.redrango-container {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.redrango-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.redrango-title-box {
    display: flex;
    flex-direction: column;
}

.redrango-title {
    font-size: 24px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 8px 0;
}

.redrango-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.redrango-btn-primary {
    background-color: #ff7a00;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.redrango-btn-primary:hover {
    background-color: #e66e00;
}

.redrango-table-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    width: 100%;
}

.redrango-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.redrango-table th,
.redrango-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.redrango-table th {
    font-weight: 600;
    font-size: 13px;
    color: #002855;
}

.redrango-table td {
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.redrango-nivel-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.redrango-nivel-1 {
    background-color: #ffedd5;
    color: #ea580c;
}

.redrango-nivel-2 {
    background-color: #f1f5f9;
    color: #475569;
}

.redrango-nivel-3 {
    background-color: #fef3c7;
    color: #d97706;
}

.redrango-nivel-4 {
    background-color: #dcfce7;
    color: #16a34a;
}

.redrango-nivel-5 {
    background-color: #f3e8ff;
    color: #9333ea;
}

.redrango-nivel-6 {
    background-color: #ffe4e6;
    color: #e11d48;
}

.redrango-img-cell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.redrango-cat-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.redrango-cat-inicial {
    background-color: #ffedd5;
    color: #ea580c;
}

.redrango-cat-basica {
    background-color: #e0f2fe;
    color: #0284c7;
}

.redrango-cat-intermedia {
    background-color: #fef3c7;
    color: #d97706;
}

.redrango-cat-avanzada {
    background-color: #dcfce7;
    color: #16a34a;
}

.redrango-cat-premium {
    background-color: #f3e8ff;
    color: #9333ea;
}

.redrango-cat-elite {
    background-color: #ffe4e6;
    color: #e11d48;
}

.redrango-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ff7a00;
    display: inline-flex;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.redrango-action-btn:hover {
    background: #fff7ed;
}

.redrango-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 40, 85, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
}

.redrango-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.redrango-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
}

.redrango-modal-overlay.active .redrango-modal {
    transform: translateY(0);
}

.redrango-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.redrango-modal-title-box {
    display: flex;
    flex-direction: column;
}

.redrango-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 6px 0;
}

.redrango-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.redrango-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.redrango-modal-close:hover {
    color: #002855;
}

.redrango-modal-body {
    padding: 24px;
    display: flex;
    gap: 24px;
    overflow-y: auto;
}

.redrango-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redrango-preview-area {
    width: 300px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.redrango-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redrango-form-row {
    display: flex;
    gap: 16px;
}

.redrango-form-row .redrango-form-group {
    flex: 1;
}

.redrango-label {
    font-size: 13px;
    font-weight: 600;
    color: #002855;
}

.redrango-label span {
    color: #e11d48;
}

.redrango-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #334155;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.redrango-input:focus {
    outline: none;
    border-color: #ff7a00;
}

.redrango-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.redrango-input-with-icon .redrango-input {
    padding-left: 30px;
}

.redrango-input-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.redrango-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.redrango-upload-box {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.redrango-upload-box:hover {
    border-color: #ff7a00;
    background: #fff7ed;
}

.redrango-upload-icon {
    color: #ff7a00;
    margin-bottom: 8px;
}

.redrango-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #002855;
    margin: 0 0 4px 0;
}

.redrango-upload-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.redrango-upload-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.redrango-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redrango-btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.redrango-btn-outline:hover {
    background: #f1f5f9;
}

.redrango-preview-title {
    font-size: 13px;
    font-weight: 700;
    color: #002855;
    align-self: flex-start;
    margin: 0 0 4px 0;
}

.redrango-preview-sub {
    font-size: 12px;
    color: #64748b;
    align-self: flex-start;
    margin: 0 0 24px 0;
}

.redrango-preview-img-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.redrango-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    background-color: #f1f5f9;
    border-radius: 50%;
}

.redrango-preview-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 168, 0, 0.4);
    filter: blur(20px);
    border-radius: 50%;
    z-index: 1;
}

.redrango-preview-name {
    font-size: 20px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 24px 0;
}

.redrango-preview-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redrango-preview-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.redrango-preview-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.redrango-preview-stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.redrango-preview-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #002855;
}

@media (max-width: 768px) {
    .redrango-container {
        padding: 16px;
        padding-bottom: 60px;
        box-sizing: border-box;
    }

    .redrango-table-wrapper {
        margin-bottom: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 40, 85, 0.04);
    }

    .redrango-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .redrango-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .redrango-modal-body {
        flex-direction: column;
    }

    .redrango-preview-area {
        width: 100%;
        box-sizing: border-box;
    }

    .redrango-form-row {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .redrango-modal-footer {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .redrango-btn-outline,
    .redrango-btn-primary {
        width: 100%;
        justify-content: center;
    }
}









/* ========================================================================*
 *                                RECARGAS                                 *
 * ========================================================================*/

/* Contenedor principal â€” sin padding extra (lo hereda de reddasher-content) */
.redrecarga-container {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.redrecarga-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 4px;
}

.redrecarga-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redrecarga-title {
    font-size: 22px;
    font-weight: 700;
    color: #002855;
    margin: 0;
}

.redrecarga-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* BotÃ³n exportar */
.redrecarga-btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff7a00;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(255, 122, 0, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.redrecarga-btn-export:hover {
    background: #e66e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(255, 122, 0, 0.3);
}

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

/* Grid de tarjetas mÃ©tricas */
.redrecarga-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.redrecarga-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.redrecarga-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.redrecarga-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.redrecarga-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redrecarga-card-icon-wrapper--blue {
    background: #eff6ff;
    color: #2563eb;
}

.redrecarga-card-icon-wrapper--green {
    background: #f0fdf4;
    color: #16a34a;
}

.redrecarga-card-icon-wrapper--yellow {
    background: #fffbeb;
    color: #d97706;
}

.redrecarga-card-icon-wrapper--orange {
    background: #fff7ed;
    color: #ea580c;
}

.redrecarga-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.redrecarga-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.redrecarga-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #002855;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redrecarga-card-subtext {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.redrecarga-card-chart {
    width: 56px;
    height: 32px;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Barra de filtros */
.redrecarga-filters-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.redrecarga-filter-group {
    position: relative;
    flex: 1;
    min-width: 160px;
    box-sizing: border-box;
}

.redrecarga-filter-group--search {
    flex: 1.5;
    min-width: 200px;
}

.redrecarga-filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.redrecarga-input-search {
    width: 100%;
    padding: 9px 12px 9px 36px;
    font-size: 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #334155;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.redrecarga-select {
    width: 100%;
    padding: 9px 32px 9px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 500;
}

.redrecarga-input-date {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.redrecarga-input-search:focus,
.redrecarga-select:focus,
.redrecarga-input-date:focus {
    outline: none;
    border-color: #002855;
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.08);
}

.redrecarga-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #002855;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.redrecarga-btn-filter:hover {
    background: #003d7a;
    transform: translateY(-1px);
}

.redrecarga-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.redrecarga-btn-clear:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

/* Tabla */
.redrecarga-table-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.redrecarga-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.redrecarga-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.redrecarga-table th {
    background: #ffffff;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #002855;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: 0.5px;
    white-space: nowrap;
    user-select: none;
}

.redrecarga-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    white-space: nowrap;
}

.redrecarga-table tbody tr:last-child td {
    border-bottom: none;
}

.redrecarga-table tbody tr {
    transition: background-color 0.2s ease;
}

.redrecarga-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Avatar y celda de usuario */
.redrecarga-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redrecarga-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Variantes de color de avatar â€” igual que lista_usuarios */
.redrecarga-user-avatar--blue   { background: linear-gradient(135deg, #002855, #0050b3); }
.redrecarga-user-avatar--green  { background: linear-gradient(135deg, #10b981, #059669); }
.redrecarga-user-avatar--purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.redrecarga-user-avatar--orange { background: linear-gradient(135deg, #ff7a00, #ff4500); }
.redrecarga-user-avatar--indigo { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.redrecarga-user-avatar--rose   { background: linear-gradient(135deg, #db2777, #9d174d); }

.redrecarga-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.redrecarga-user-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.redrecarga-user-id {
    font-size: 12px;
    color: #94a3b8;
}

/* Badges de estado */
.redrecarga-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 130px;
    box-sizing: border-box;
    line-height: 1.4;
}

.redrecarga-badge span:last-child {
    font-size: 10px;
    opacity: 0.75;
}

.redrecarga-badge--finished,
.redrecarga-badge--confirmed {
    background: #f0fdf4;
    color: #16a34a;
}

.redrecarga-badge--waiting {
    background: #fffbeb;
    color: #d97706;
}

.redrecarga-badge--confirming {
    background: #eff6ff;
    color: #2563eb;
}

.redrecarga-badge--failed {
    background: #fef2f2;
    color: #dc2626;
}

.redrecarga-badge--expired {
    background: #f8fafc;
    color: #64748b;
}

/* Hash de transacción y Order ID */
.redrecarga-order-id {
    display: inline-block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #ff6f00;
    background: rgba(255, 111, 0, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 111, 0, 0.2);
    letter-spacing: 0.3px;
}

.redrecarga-hash-link {
    color: #002855;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    transition: color 0.2s ease;
}

.redrecarga-hash-link:hover {
    color: #ff7a00;
    text-decoration: underline;
}

/* Footer / PaginaciÃ³n */
.redrecarga-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid #f1f5f9;
}

.redrecarga-footer-text {
    font-size: 13px;
    color: #64748b;
}

.redrecarga-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.redrecarga-pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.redrecarga-pagination-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #002855;
}

.redrecarga-pagination-btn--active {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redrecarga-pagination-btn--active:hover {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redrecarga-pagination-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.redrecarga-select-limit {
    padding: 7px 28px 7px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 13px;
    font-family: inherit;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.redrecarga-select-limit:focus {
    outline: none;
    border-color: #002855;
}

/* Responsive */
@media (max-width: 1200px) {
    .redrecarga-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .redrecarga-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .redrecarga-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .redrecarga-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .redrecarga-filter-group,
    .redrecarga-filter-group--search {
        width: 100%;
        min-width: 0;
    }
    .redrecarga-btn-filter,
    .redrecarga-btn-clear {
        width: 100%;
        justify-content: center;
    }
    .redrecarga-table-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .redrecarga-cards-grid {
        grid-template-columns: 1fr;
    }
}


.redrecarga-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.redrecarga-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redrecarga-title {
    font-size: 28px;
    font-weight: 800;
    color: #0a1931;
    margin: 0;
    letter-spacing: -0.5px;
}

.redrecarga-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.redrecarga-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff7a00;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.redrecarga-btn-export:hover {
    background: #e66e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

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

.redrecarga-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.redrecarga-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.redrecarga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.redrecarga-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.redrecarga-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redrecarga-card-icon-wrapper--blue {
    background: #eff6ff;
    color: #2563eb;
}

.redrecarga-card-icon-wrapper--green {
    background: #f0fdf4;
    color: #16a34a;
}

.redrecarga-card-icon-wrapper--yellow {
    background: #fffbeb;
    color: #d97706;
}

.redrecarga-card-icon-wrapper--orange {
    background: #fff7ed;
    color: #ea580c;
}

.redrecarga-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redrecarga-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.redrecarga-card-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.redrecarga-card-subtext {
    font-size: 12px;
    color: #94a3b8;
}

.redrecarga-card-chart {
    width: 60px;
    height: 35px;
    display: flex;
    align-items: flex-end;
}

/* Filters */
.redrecarga-filters-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.redrecarga-filter-group {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.redrecarga-filter-group--search {
    flex: 1.5;
    min-width: 220px;
}

.redrecarga-filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.redrecarga-input-search {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redrecarga-select {
    width: 100%;
    padding: 12px 35px 12px 14px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redrecarga-input-date {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redrecarga-input-search:focus,
.redrecarga-select:focus,
.redrecarga-input-date:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.redrecarga-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #001f3f;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redrecarga-btn-filter:hover {
    background: #0a335c;
}

.redrecarga-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.redrecarga-btn-clear:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Table Wrapper */
.redrecarga-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    overflow-x: auto;
}

.redrecarga-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.redrecarga-table th {
    background: #f8fafc;
    padding: 16px 24px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.redrecarga-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

.redrecarga-table tbody tr {
    transition: background 0.2s ease;
}

.redrecarga-table tbody tr:hover {
    background: #f8fafc;
}

.redrecarga-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redrecarga-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}

.redrecarga-user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.redrecarga-user-name {
    font-weight: 700;
    color: #0f172a;
}

.redrecarga-user-id {
    font-size: 12px;
    color: #64748b;
}

/* Badges */
.redrecarga-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 140px;
    box-sizing: border-box;
}

.redrecarga-badge span:first-child {
    font-size: 12px;
}

.redrecarga-badge span:last-child {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 1px;
}

.redrecarga-badge--finished,
.redrecarga-badge--confirmed {
    background: #f0fdf4;
    color: #16a34a;
}

.redrecarga-badge--waiting {
    background: #fff9e6;
    color: #d97706;
}

.redrecarga-badge--confirming {
    background: #eff6ff;
    color: #2563eb;
}

.redrecarga-badge--failed {
    background: #fef2f2;
    color: #dc2626;
}

.redrecarga-badge--expired {
    background: #f8fafc;
    color: #64748b;
}

/* Link */
.redrecarga-hash-link {
    color: #2563eb;
    text-decoration: none;
    font-family: monospace;
    font-size: 13px;
    transition: color 0.2s ease;
}

.redrecarga-hash-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer / Pagination */
.redrecarga-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.redrecarga-footer-text {
    font-size: 14px;
    color: #64748b;
}

.redrecarga-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redrecarga-pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.redrecarga-pagination-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.redrecarga-pagination-btn--active {
    background: #001f3f;
    color: #ffffff;
    border-color: #001f3f;
}

.redrecarga-pagination-btn--active:hover {
    background: #001f3f;
    color: #ffffff;
    border-color: #001f3f;
}

.redrecarga-pagination-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.redrecarga-select-limit {
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .redrecarga-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .redrecarga-cards-grid {
        grid-template-columns: 1fr;
    }
    .redrecarga-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .redrecarga-filter-group {
        width: 100%;
    }
    .redrecarga-btn-filter,
    .redrecarga-btn-clear {
        width: 100%;
    }
    .redrecarga-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================================================*
 *                                 RETIROS                                 *
 * ========================================================================*/

.redretiro-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Encabezado */
.redretiro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.redretiro-header-info {
    flex: 1;
    min-width: 250px;
}

.redretiro-title {
    font-size: 26px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 6px 0;
}

.redretiro-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.redretiro-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff7a00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(255, 122, 0, 0.15);
    text-decoration: none;
}

.redretiro-btn-export:hover {
    background-color: #e06b00;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.25);
}

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

/* Tarjetas de mÃ©tricas */
.redretiro-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.redretiro-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.redretiro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.redretiro-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.redretiro-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redretiro-card-icon-wrapper--blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.redretiro-card-icon-wrapper--green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.redretiro-card-icon-wrapper--yellow {
    background-color: #fffbeb;
    color: #d97706;
}

.redretiro-card-icon-wrapper--orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.redretiro-card-info {
    display: flex;
    flex-direction: column;
}

.redretiro-card-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.redretiro-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.redretiro-card-subtext {
    font-size: 12px;
    color: #94a3b8;
}

.redretiro-card-chart {
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

/* Filtros */
.redretiro-filters-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.redretiro-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.redretiro-filter-group--search {
    flex: 2;
    min-width: 200px;
}

.redretiro-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.redretiro-input-search-wrapper {
    position: relative;
    width: 100%;
}

.redretiro-input-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.redretiro-input-search {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redretiro-input-search::placeholder {
    color: #94a3b8;
}

.redretiro-input-search:focus,
.redretiro-select-filter:focus,
.redretiro-input-date:focus {
    border-color: #002855;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.redretiro-select-filter {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

.redretiro-input-date {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redretiro-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #002855;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
}

.redretiro-btn-filter:hover {
    background-color: #001f40;
}

.redretiro-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    color: #475569;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
    text-decoration: none;
}

.redretiro-btn-clear:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Tabla Wrapper */
.redretiro-table-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 24px;
}

.redretiro-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.redretiro-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.redretiro-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.redretiro-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.redretiro-table tr:last-child td {
    border-bottom: none;
}

.redretiro-table tr:hover td {
    background-color: #f8fafc;
}

/* Celdas especiales */
.redretiro-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redretiro-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.redretiro-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.redretiro-user-avatar--blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.redretiro-user-avatar--green { background: linear-gradient(135deg, #10b981, #047857); }
.redretiro-user-avatar--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.redretiro-user-avatar--orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.redretiro-user-avatar--indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.redretiro-user-avatar--rose { background: linear-gradient(135deg, #f43f5e, #be123c); }

.redretiro-user-info {
    display: flex;
    flex-direction: column;
}

.redretiro-user-name {
    font-weight: 600;
    color: #0f172a;
}

.redretiro-user-id {
    font-size: 12px;
    color: #64748b;
}

/* Badge de Estado */
.redretiro-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 140px;
    box-sizing: border-box;
}

.redretiro-badge span:first-child {
    font-size: 12px;
}

.redretiro-badge span:last-child {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 1px;
}

.redretiro-badge--finished {
    background: #f0fdf4;
    color: #16a34a;
}

.redretiro-badge--pending {
    background: #fff9e6;
    color: #d97706;
}

.redretiro-badge--processing {
    background: #eff6ff;
    color: #2563eb;
}

.redretiro-badge--failed {
    background: #fef2f2;
    color: #dc2626;
}

.redretiro-badge--rejected {
    background: #f1f5f9;
    color: #475569;
}

/* DirecciÃ³n Wallet / Copia */
.redretiro-wallet-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.redretiro-wallet-address {
    font-family: monospace;
    font-size: 13px;
}

.redretiro-copy-btn {
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.redretiro-copy-btn:hover {
    color: #475569;
    background-color: #f1f5f9;
}

/* BotÃ³n de AcciÃ³n */
.redretiro-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.redretiro-action-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Footer / PaginaciÃ³n */
.redretiro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.redretiro-footer-text {
    font-size: 14px;
    color: #64748b;
}

.redretiro-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redretiro-pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.redretiro-pagination-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.redretiro-pagination-btn--active {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redretiro-pagination-btn--active:hover {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redretiro-pagination-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.redretiro-select-limit {
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Responsividad */
@media (max-width: 1200px) {
    .redretiro-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    .redretiro-btn-filter,
    .redretiro-btn-clear {
        width: 100%;
    }
    .redretiro-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================================================*
 *                            GANANCIAS DE LA RED                          *
 * ========================================================================*/

.redganciared-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Encabezado */
.redganciared-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.redganciared-header-info {
    flex: 1;
    min-width: 250px;
}

.redganciared-title {
    font-size: 26px;
    font-weight: 700;
    color: #002855;
    margin: 0 0 6px 0;
}

.redganciared-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.redganciared-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff7a00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(255, 122, 0, 0.15);
    text-decoration: none;
}

.redganciared-btn-export:hover {
    background-color: #e06b00;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.25);
}

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

/* Tarjetas de mÃ©tricas */
.redganciared-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.redganciared-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.redganciared-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.redganciared-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.redganciared-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redganciared-card-icon-wrapper--blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.redganciared-card-icon-wrapper--green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.redganciared-card-icon-wrapper--yellow {
    background-color: #fffbeb;
    color: #d97706;
}

.redganciared-card-icon-wrapper--orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.redganciared-card-info {
    display: flex;
    flex-direction: column;
}

.redganciared-card-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.redganciared-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.redganciared-card-subtext {
    font-size: 12px;
    color: #94a3b8;
}

.redganciared-card-chart {
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

/* Filtros */
.redganciared-filters-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.redganciared-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.redganciared-filter-group--search {
    flex: 2;
    min-width: 200px;
}

.redganciared-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.redganciared-input-search-wrapper {
    position: relative;
    width: 100%;
}

.redganciared-input-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.redganciared-input-search {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redganciared-input-search::placeholder {
    color: #94a3b8;
}

.redganciared-input-search:focus,
.redganciared-select-filter:focus,
.redganciared-input-date:focus {
    border-color: #002855;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.1);
}

.redganciared-select-filter {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

.redganciared-input-date {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.redganciared-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #002855;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
}

.redganciared-btn-filter:hover {
    background-color: #001f40;
}

.redganciared-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    color: #475569;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
    text-decoration: none;
}

.redganciared-btn-clear:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Tabla Wrapper */
.redganciared-table-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 24px;
}

.redganciared-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.redganciared-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.redganciared-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.redganciared-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.redganciared-table tr:last-child td {
    border-bottom: none;
}

.redganciared-table tr:hover td {
    background-color: #f8fafc;
}

/* Celdas especiales */
.redganciared-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redganciared-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.redganciared-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.redganciared-user-avatar--blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.redganciared-user-avatar--green { background: linear-gradient(135deg, #10b981, #047857); }
.redganciared-user-avatar--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.redganciared-user-avatar--orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.redganciared-user-avatar--indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.redganciared-user-avatar--rose { background: linear-gradient(135deg, #f43f5e, #be123c); }

.redganciared-user-info {
    display: flex;
    flex-direction: column;
}

.redganciared-user-name {
    font-weight: 600;
    color: #0f172a;
}

.redganciared-user-id {
    font-size: 12px;
    color: #64748b;
}

/* Badge de Estado */
.redganciared-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    box-sizing: border-box;
}

.redganciared-badge--completado {
    background: #f0fdf4;
    color: #16a34a;
}

.redganciared-badge--pendiente {
    background: #fff9e6;
    color: #d97706;
}

.redganciared-badge--cancelado {
    background: #fef2f2;
    color: #dc2626;
}

/* Footer / PaginaciÃ³n */
.redganciared-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.redganciared-footer-text {
    font-size: 14px;
    color: #64748b;
}

.redganciared-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redganciared-pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.redganciared-pagination-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.redganciared-pagination-btn--active {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redganciared-pagination-btn--active:hover {
    background: #002855;
    color: #ffffff;
    border-color: #002855;
}

.redganciared-pagination-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.redganciared-select-limit {
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Responsividad */
@media (max-width: 1200px) {
    .redganciared-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .redganciared-cards-grid {
        grid-template-columns: 1fr;
    }
    .redganciared-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .redganciared-filter-group {
        width: 100%;
    }
    .redganciared-btn-filter,
    .redganciared-btn-clear {
        width: 100%;
    }
    .redganciared-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================================================*
 *                         REGISTRAR SORTEOS                            *
 * ========================================================================*/

/* --- Contenedor principal de la pÃ¡gina --- */
.redsorteored-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2b4a;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Encabezado de pÃ¡gina --- */
.redsorteored-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.redsorteored-page-subtitle {
    font-size: 0.875rem;
    color: #6b7a99;
    margin: 0 0 28px 0;
}

/* --- Tarjetas de secciÃ³n --- */
.redsorteored-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.06);
}

.redsorteored-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 4px 0;
}

.redsorteored-card-desc {
    font-size: 0.8125rem;
    color: #6b7a99;
    margin: 0 0 22px 0;
}

/* --- Grid de campos --- */
.redsorteored-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.redsorteored-fields-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.redsorteored-field-col-full {
    grid-column: 1 / -1;
}

/* --- Campo de formulario --- */
.redsorteored-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redsorteored-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3a4a6a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.redsorteored-label-icon {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e8edf5;
    color: #6b7a99;
    font-size: 10px;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
}

.redsorteored-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #dce3ef;
    border-radius: 9px;
    font-size: 0.875rem;
    color: #1a2b4a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.redsorteored-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.redsorteored-input::placeholder {
    color: #b0bdd4;
}

.redsorteored-select {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1.5px solid #dce3ef;
    border-radius: 9px;
    font-size: 0.875rem;
    color: #1a2b4a;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.redsorteored-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.redsorteored-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.redsorteored-input-prefix .redsorteored-prefix-symbol {
    position: absolute;
    left: 14px;
    color: #6b7a99;
    font-size: 0.9rem;
    pointer-events: none;
}

.redsorteored-input-prefix .redsorteored-input {
    padding-left: 28px;
}

/* --- Radio: fecha con icono --- */
.redsorteored-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.redsorteored-input-icon .redsorteored-icon-left {
    position: absolute;
    left: 13px;
    color: #6b7a99;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.redsorteored-input-icon .redsorteored-input {
    padding-left: 38px;
}

/* --- Radio de Revancha --- */
.redsorteored-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 44px;
}

.redsorteored-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    color: #3a4a6a;
    cursor: pointer;
    font-weight: 500;
}

.redsorteored-radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #dce3ef;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.redsorteored-radio-label input[type="radio"]:checked {
    border-color: #f97316;
}

.redsorteored-radio-label input[type="radio"]:checked::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f97316;
    position: absolute;
}

/* --- Opciones de distribuciÃ³n de premios --- */
.redsorteored-dist-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.redsorteored-dist-option {
    border: 2px solid #dce3ef;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: #ffffff;
    position: relative;
}

.redsorteored-dist-option.redsorteored-dist-active {
    border-color: #f97316;
    background: #fff8f3;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.redsorteored-dist-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #dce3ef;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.redsorteored-dist-option input[type="radio"]:checked {
    border-color: #f97316;
}

.redsorteored-dist-option input[type="radio"]:checked::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f97316;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.redsorteored-dist-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redsorteored-dist-active .redsorteored-dist-icon {
    background: #fff0e6;
}

.redsorteored-dist-icon svg {
    width: 20px;
    height: 20px;
    color: #6b7a99;
}

.redsorteored-dist-active .redsorteored-dist-icon svg {
    color: #f97316;
}

.redsorteored-dist-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.redsorteored-dist-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2b4a;
}

.redsorteored-dist-text span {
    font-size: 0.775rem;
    color: #6b7a99;
}

/* --- Tabla de niveles --- */
.redsorteored-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e8edf5;
}

.redsorteored-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.redsorteored-table thead tr {
    background: #f5f7fb;
}

.redsorteored-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7a99;
    border-bottom: 1px solid #e8edf5;
    white-space: nowrap;
}

.redsorteored-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f3f9;
    color: #1a2b4a;
    font-weight: 500;
    vertical-align: middle;
}

.redsorteored-table tbody tr:last-child td {
    border-bottom: none;
}

.redsorteored-table tbody tr:hover {
    background: #fafbff;
}

/* --- Input de tabla con sufijo % --- */
.redsorteored-table-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.redsorteored-table-input {
    width: 80px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #dce3ef;
    border-radius: 7px;
    font-size: 0.875rem;
    color: #1a2b4a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    text-align: right;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.redsorteored-table-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.redsorteored-table-suffix {
    font-size: 0.85rem;
    color: #6b7a99;
    font-weight: 500;
}

/* --- Aviso de suma total --- */
.redsorteored-info-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef4ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
    font-size: 0.8125rem;
    color: #3a5aad;
    font-weight: 500;
}

.redsorteored-info-alert svg {
    flex-shrink: 0;
    color: #3a82f7;
    width: 18px;
    height: 18px;
}

/* --- Fila oculta (partes iguales) --- */
.redsorteored-table-row-hidden {
    display: none;
}

/* --- Footer con botÃ³n --- */
.redsorteored-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0 4px 0;
}

.redsorteored-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
}

.redsorteored-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
}

.redsorteored-btn-save:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.redsorteored-btn-save svg {
    width: 18px;
    height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .redsorteored-fields-grid {
        grid-template-columns: 1fr 1fr;
    }

    .redsorteored-dist-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .redsorteored-page {
        padding: 18px 14px;
    }

    .redsorteored-page-title {
        font-size: 1.35rem;
    }

    .redsorteored-fields-grid {
        grid-template-columns: 1fr;
    }

    .redsorteored-fields-grid-2 {
        grid-template-columns: 1fr;
    }

    .redsorteored-card {
        padding: 18px 14px;
    }

    .redsorteored-table-input {
        width: 64px;
    }
}

/* ========================================================================*
 *                            SORTEOS ACTIVOS                              *
 * ========================================================================*/

.sorteoact-page {
    padding: 0 4px 32px 4px;
}

.sorteoact-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.sorteoact-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 24px 0;
}

/* Lista de Cards */
.sorteoact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Individual */
.sorteoact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sorteoact-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* Card EN CURSO (borde sutil anaranjado) */
.sorteoact-card-encurso {
    border: 1.5px solid #fed7aa;
}

/* Tag EN CURSO */
.sorteoact-tag-encurso {
    display: inline-block;
    background: #ffedd5;
    color: #ea580c;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* Sección Principal Izquierda */
.sorteoact-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Título del sorteo */
.sorteoact-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Fila de Pills (Nivel, directos) */
.sorteoact-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sorteoact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
}

.sorteoact-pill svg {
    width: 13px;
    height: 13px;
    color: #0284c7;
}

/* Fila de Detalles (Inicio, Fin, Valor, Revancha) */
.sorteoact-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin: 4px 0 16px 0;
}

.sorteoact-info-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sorteoact-info-icon {
    width: 22px;
    height: 22px;
    color: #0284c7;
    flex-shrink: 0;
}

.sorteoact-info-texts {
    display: flex;
    flex-direction: column;
}

.sorteoact-info-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sorteoact-info-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sorteoact-info-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 1px;
}

.sorteoact-info-revancha-no {
    color: #dc2626 !important;
    font-weight: 700;
}

.sorteoact-info-revancha-si {
    color: #16a34a !important;
    font-weight: 700;
}

.sorteoact-divider {
    width: 1px;
    height: 34px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Franja Inferior de Distribución */
.sorteoact-dist-strip {
    background: #f8fbff;
    border: 1px solid #e6f0fa;
    border-radius: 10px;
    padding: 10px 14px;
}

.sorteoact-dist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

.sorteoact-dist-icon {
    width: 17px;
    height: 17px;
    color: #0284c7;
    flex-shrink: 0;
}

/* Niveles en distribución por porcentaje */
.sorteoact-levels-grid {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 10px;
    flex-wrap: wrap;
    padding-left: 25px;
}

.sorteoact-level-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sorteoact-level-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.sorteoact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sorteoact-level-pct {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    padding-left: 14px;
}

/* Sección Lateral Derecha */
.sorteoact-card-aside {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

/* Grilla de dos métricas */
.sorteoact-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sorteoact-stat-box {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sorteoact-stat-icon-dollar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f274c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.sorteoact-stat-icon-gift {
    width: 32px;
    height: 32px;
    color: #0f274c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sorteoact-stat-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sorteoact-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sorteoact-stat-val {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    line-height: 1.2;
}

/* Botón Jugar Sorteo (Verde) */
.sorteoact-btn-play {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.sorteoact-btn-play:hover {
    background: #15803d;
}

.sorteoact-btn-play svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Botón Editar (Outline azul) */
.sorteoact-btn-edit {
    background: #ffffff;
    color: #0284c7;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.sorteoact-btn-edit:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #0369a1;
}

.sorteoact-btn-edit svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .sorteoact-card {
        flex-direction: column;
        gap: 20px;
    }

    .sorteoact-card-aside {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sorteoact-card {
        padding: 18px 16px;
    }

    .sorteoact-divider {
        display: none;
    }

    .sorteoact-info-row {
        gap: 14px 18px;
    }

    .sorteoact-stats-grid {
        grid-template-columns: 1fr;
    }

    .sorteoact-levels-grid {
        gap: 16px;
        padding-left: 0;
    }
}
