/*
|--------------------------------------------------------------------------
| MODAL PRINCIPAL DE CUENTA
|--------------------------------------------------------------------------
*/

.account-modal-overlay,
.account-modal-overlay * {
    box-sizing: border-box;
}

.account-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

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

.account-modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 36px);
    padding: 26px;
    overflow-y: auto;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top,
            rgba(254, 148, 0, 0.14),
            transparent 35%
        ),
        linear-gradient(145deg, #242424, #101010);
    border: 1px solid rgba(254, 148, 0, 0.35);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 148, 0, 0.55) transparent;
}

.account-modal-content::-webkit-scrollbar {
    width: 6px;
}

.account-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.account-modal-content::-webkit-scrollbar-thumb {
    background: rgba(254, 148, 0, 0.55);
    border-radius: 999px;
}

.account-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 148, 0, 0.82);
}

.account-modal-close {
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fecb00;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(254, 148, 0, 0.28);
    border-radius: 50%;
    font-family: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-close:hover {
    background: rgba(254, 203, 0, 0.08);
    border-color: #fecb00;
    transform: rotate(90deg);
}

.account-modal-close:focus-visible,
.account-modal-back:focus-visible,
.account-modal-action:focus-visible,
.account-modal-menu-item:focus-visible,
.account-modal-logout-button:focus-visible,
.account-profile-submit:focus-visible {
    outline: 2px solid #fecb00;
    outline-offset: 3px;
}

.account-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 42px;
    margin-bottom: 22px;
}

.account-modal-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    color: #111111;
    background: linear-gradient(90deg, #fecb00, #fe9400);
    border-radius: 18px;
    box-shadow:
        0 8px 20px rgba(254, 148, 0, 0.22),
        5px -5px 6px rgba(0, 0, 0, 0.18) inset;
}

.account-modal-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-modal-user > span {
    margin-bottom: 3px;
    color: #fecb00;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.account-modal-user strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-modal-user small {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #bdbdbd;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-modal-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.account-modal-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 15px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.account-modal-action:hover {
    transform: translateY(-2px);
}

.account-modal-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-modal-action-deposit {
    color: #111111;
    background: linear-gradient(90deg, #fecb00, #fe9400);
    border: none;
    box-shadow: 0 8px 18px rgba(254, 148, 0, 0.22);
}

.account-modal-action-withdraw {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(254, 148, 0, 0.42);
}

.account-modal-action-withdraw:hover {
    color: #fecb00;
    background: rgba(254, 203, 0, 0.06);
    border-color: #fecb00;
}

.account-modal-menu {
    display: grid;
    gap: 8px;
}

.account-modal-menu-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 10px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(254, 203, 0, 0.38);
    transform: translateX(3px);
}

.account-modal-menu-primary {
    background:
        linear-gradient(
            90deg,
            rgba(254, 148, 0, 0.08),
            rgba(255, 255, 255, 0.04)
        );
    border-color: rgba(254, 148, 0, 0.22);
}

.account-modal-menu-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(254, 148, 0, 0.1);
    border-radius: 11px;
    font-size: 18px;
}

.account-modal-menu-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-modal-menu-text strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.account-modal-menu-text small {
    margin-top: 2px;
    color: #a9a9a9;
    font-size: 10px;
    line-height: 1.35;
}

.account-modal-menu-arrow {
    color: #fecb00;
    font-size: 25px;
    line-height: 1;
}

.account-modal-logout-form {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-modal-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.32);
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.account-modal-logout-button:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.65);
}

body.account-modal-open {
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| MODALES SECUNDARIOS
|--------------------------------------------------------------------------
*/

.account-section-modal[hidden] {
    display: none !important;
}

.account-section-modal[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.account-section-modal-content {
    position: relative;
    min-height: 180px;
    padding: 0;
    overflow: hidden;
}

.account-modal-back {
    position: absolute;
    top: 11px;
    left: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(254, 148, 0, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-back:hover {
    background: rgba(254, 203, 0, 0.08);
    border-color: #fecb00;
    transform: translateX(-2px);
}

.account-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 58px;
    margin: 0;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.account-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    background: rgba(254, 148, 0, 0.11);
    border: 1px solid rgba(254, 148, 0, 0.18);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.account-section-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.account-section-body {
    min-height: 100px;
    padding: 14px 18px 18px;
}

/*
|--------------------------------------------------------------------------
| MODAL DE PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-modal-content {
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top,
            rgba(254, 148, 0, 0.12),
            transparent 34%
        ),
        linear-gradient(145deg, #343434, #222222);
}

.account-profile-modal-content .account-section-body {
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.account-profile-form {
    max-height: calc(92vh - 58px);
    padding: 10px 18px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 148, 0, 0.72) transparent;
}

.account-profile-form::-webkit-scrollbar {
    width: 6px;
}

.account-profile-form::-webkit-scrollbar-track {
    background: transparent;
}

.account-profile-form::-webkit-scrollbar-thumb {
    background: rgba(254, 148, 0, 0.72);
    border-radius: 999px;
}

.account-profile-form::-webkit-scrollbar-thumb:hover {
    background: #fe9400;
}

/*
|--------------------------------------------------------------------------
| SECCIONES DEL PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-section {
    min-width: 0;
    margin: 0 0 8px;
    padding: 10px 12px 11px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
}

.account-profile-section:last-of-type {
    margin-bottom: 10px;
}

.account-profile-section legend {
    padding: 0 7px;
    color: #fecb00;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.account-profile-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
|--------------------------------------------------------------------------
| CAMPOS DEL PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-field {
    min-width: 0;
}

.account-profile-field-full {
    grid-column: 1 / -1;
}

.account-profile-field label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.account-profile-field input,
.account-profile-field select,
.account-profile-field textarea {
    width: 100%;
    min-width: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.account-profile-field input,
.account-profile-field select {
    height: 40px;
    padding: 0 11px;
}

.account-profile-field textarea {
    height: 78px;
    min-height: 78px;
    max-height: 78px;
    padding: 10px 12px;
    line-height: 1.35;
    resize: none;
    overflow-y: auto;
}
.account-profile-field input::placeholder,
.account-profile-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.account-profile-field select option {
    color: #ffffff;
    background: #2b2b2b;
}

.account-profile-field input:hover,
.account-profile-field select:hover,
.account-profile-field textarea:hover {
    border-color: rgba(254, 203, 0, 0.32);
}

.account-profile-field input:focus,
.account-profile-field select:focus,
.account-profile-field textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fecb00;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.11);
}

.account-profile-field input.has-error,
.account-profile-field select.has-error,
.account-profile-field textarea.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/*
|--------------------------------------------------------------------------
| CÉDULA
|--------------------------------------------------------------------------
*/

.account-profile-document {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 7px;
}

.account-profile-document select {
    padding-right: 5px;
    text-align: center;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| TELÉFONO
|--------------------------------------------------------------------------
*/

.account-profile-phone {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
}

.account-profile-phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #fecb00;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    font-size: 12px;
    font-weight: 800;
}

.account-profile-phone input {
    border-radius: 0 9px 9px 0;
}

/*
|--------------------------------------------------------------------------
| AYUDAS Y ERRORES
|--------------------------------------------------------------------------
*/

.account-profile-field-help {
    display: block;
    min-height: 0;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    line-height: 1.15;
}

.account-profile-field-error {
    display: none;
    margin-top: 3px;
    color: #ff6b6b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.account-profile-field-error.is-visible {
    display: block;
}

/*
|--------------------------------------------------------------------------
| BOTÓN ACTUALIZAR
|--------------------------------------------------------------------------
*/

.account-profile-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding-top: 4px;
}

.account-profile-responsibility {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.account-profile-responsibility strong {
    color: #fecb00;
    font-weight: 800;
}

.account-profile-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 42px;
    padding: 9px 21px;
    color: #111111;
    background: linear-gradient(135deg, #ffd633, #fe9400);
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(254, 148, 0, 0.19);
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease;
}

.account-profile-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.account-profile-submit:active {
    transform: translateY(0);
}

.account-profile-submit:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {
    .account-profile-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .account-modal-overlay {
        padding: 8px;
    }

    .account-modal-content {
        width: 100%;
        max-width: 420px;
        max-height: calc(100dvh - 16px);
        padding: 22px 16px 17px;
        margin: auto;
        border-radius: 20px;
    }

    .account-modal-avatar {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .account-modal-user strong {
        font-size: 15px;
    }

    .account-modal-wallet-actions {
        gap: 8px;
    }

    .account-modal-action {
        min-height: 47px;
        padding: 0 10px;
        font-size: 11px;
    }

    .account-modal-menu-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 9px 11px;
    }

    .account-modal-menu-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .account-section-modal-content {
        min-height: 150px;
        padding: 0;
    }

    .account-modal-back {
        top: 9px;
        left: 10px;
        width: 34px;
        height: 34px;
    }

    .account-section-modal-content > .account-modal-close {
        top: 9px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .account-section-header {
        gap: 8px;
        min-height: 52px;
        padding: 8px 50px;
    }

    .account-section-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .account-section-header h2 {
        font-size: 16px;
    }

    .account-section-body {
        padding: 11px 12px 14px;
    }

    .account-profile-modal-content {
        width: calc(100vw - 16px);
        max-width: none;
        max-height: calc(100dvh - 16px);
        padding: 0;
        border-radius: 18px;
    }

    .account-profile-form {
        max-height: calc(100dvh - 68px);
        padding: 8px 10px 12px;
    }

    .account-profile-section {
        margin-bottom: 7px;
        padding: 9px 10px 10px;
        border-radius: 10px;
    }

    .account-profile-grid,
    .account-profile-grid-two,
    .account-profile-location-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .account-profile-field-full {
        grid-column: auto;
    }

    .account-profile-footer {
        justify-content: stretch;
    }

    .account-profile-submit {
        width: 100%;
    }
}/*
|--------------------------------------------------------------------------
| MODAL PRINCIPAL DE CUENTA
|--------------------------------------------------------------------------
*/

.account-modal-overlay,
.account-modal-overlay * {
    box-sizing: border-box;
}

.account-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

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

.account-modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 36px);
    padding: 26px;
    overflow-y: auto;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top,
            rgba(254, 148, 0, 0.14),
            transparent 35%
        ),
        linear-gradient(145deg, #242424, #101010);
    border: 1px solid rgba(254, 148, 0, 0.35);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 148, 0, 0.55) transparent;
}

.account-modal-content::-webkit-scrollbar {
    width: 6px;
}

.account-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.account-modal-content::-webkit-scrollbar-thumb {
    background: rgba(254, 148, 0, 0.55);
    border-radius: 999px;
}

.account-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 148, 0, 0.82);
}

.account-modal-close {
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fecb00;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(254, 148, 0, 0.28);
    border-radius: 50%;
    font-family: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-close:hover {
    background: rgba(254, 203, 0, 0.08);
    border-color: #fecb00;
    transform: rotate(90deg);
}

.account-modal-close:focus-visible,
.account-modal-back:focus-visible,
.account-modal-action:focus-visible,
.account-modal-menu-item:focus-visible,
.account-modal-logout-button:focus-visible,
.account-profile-submit:focus-visible {
    outline: 2px solid #fecb00;
    outline-offset: 3px;
}

.account-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 42px;
    margin-bottom: 22px;
}

.account-modal-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    color: #111111;
    background: linear-gradient(90deg, #fecb00, #fe9400);
    border-radius: 18px;
    box-shadow:
        0 8px 20px rgba(254, 148, 0, 0.22),
        5px -5px 6px rgba(0, 0, 0, 0.18) inset;
}

.account-modal-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-modal-user > span {
    margin-bottom: 3px;
    color: #fecb00;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.account-modal-user strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-modal-user small {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #bdbdbd;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-modal-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.account-modal-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 15px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.account-modal-action:hover {
    transform: translateY(-2px);
}

.account-modal-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-modal-action-deposit {
    color: #111111;
    background: linear-gradient(90deg, #fecb00, #fe9400);
    border: none;
    box-shadow: 0 8px 18px rgba(254, 148, 0, 0.22);
}

.account-modal-action-withdraw {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(254, 148, 0, 0.42);
}

.account-modal-action-withdraw:hover {
    color: #fecb00;
    background: rgba(254, 203, 0, 0.06);
    border-color: #fecb00;
}

.account-modal-menu {
    display: grid;
    gap: 8px;
}

.account-modal-menu-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 10px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(254, 203, 0, 0.38);
    transform: translateX(3px);
}

.account-modal-menu-primary {
    background:
        linear-gradient(
            90deg,
            rgba(254, 148, 0, 0.08),
            rgba(255, 255, 255, 0.04)
        );
    border-color: rgba(254, 148, 0, 0.22);
}

.account-modal-menu-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(254, 148, 0, 0.1);
    border-radius: 11px;
    font-size: 18px;
}

.account-modal-menu-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-modal-menu-text strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.account-modal-menu-text small {
    margin-top: 2px;
    color: #a9a9a9;
    font-size: 10px;
    line-height: 1.35;
}

.account-modal-menu-arrow {
    color: #fecb00;
    font-size: 25px;
    line-height: 1;
}

.account-modal-logout-form {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-modal-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.32);
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.account-modal-logout-button:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.65);
}

body.account-modal-open {
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| MODALES SECUNDARIOS
|--------------------------------------------------------------------------
*/

.account-section-modal[hidden] {
    display: none !important;
}

.account-section-modal[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.account-section-modal-content {
    position: relative;
    min-height: 180px;
    padding: 0;
    overflow: hidden;
}

.account-modal-back {
    position: absolute;
    top: 11px;
    left: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(254, 148, 0, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.account-modal-back:hover {
    background: rgba(254, 203, 0, 0.08);
    border-color: #fecb00;
    transform: translateX(-2px);
}

.account-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 58px;
    margin: 0;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.account-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    background: rgba(254, 148, 0, 0.11);
    border: 1px solid rgba(254, 148, 0, 0.18);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.account-section-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.account-section-body {
    min-height: 100px;
    padding: 14px 18px 18px;
}

/*
|--------------------------------------------------------------------------
| MODAL DE PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-modal-content {
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top,
            rgba(254, 148, 0, 0.12),
            transparent 34%
        ),
        linear-gradient(145deg, #343434, #222222);
}

.account-profile-modal-content .account-section-body {
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.account-profile-form {
    max-height: calc(92vh - 58px);
    padding: 10px 18px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 148, 0, 0.72) transparent;
}

.account-profile-form::-webkit-scrollbar {
    width: 6px;
}

.account-profile-form::-webkit-scrollbar-track {
    background: transparent;
}

.account-profile-form::-webkit-scrollbar-thumb {
    background: rgba(254, 148, 0, 0.72);
    border-radius: 999px;
}

.account-profile-form::-webkit-scrollbar-thumb:hover {
    background: #fe9400;
}

/*
|--------------------------------------------------------------------------
| SECCIONES DEL PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-section {
    min-width: 0;
    margin: 0 0 8px;
    padding: 10px 12px 11px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
}

.account-profile-section:last-of-type {
    margin-bottom: 10px;
}

.account-profile-section legend {
    padding: 0 7px;
    color: #fecb00;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.account-profile-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
|--------------------------------------------------------------------------
| CAMPOS DEL PERFIL
|--------------------------------------------------------------------------
*/

.account-profile-field {
    min-width: 0;
}

.account-profile-field-full {
    grid-column: 1 / -1;
}

.account-profile-field label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.account-profile-field input,
.account-profile-field select,
.account-profile-field textarea {
    width: 100%;
    min-width: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.account-profile-field input,
.account-profile-field select {
    height: 40px;
    padding: 0 11px;
}

.account-profile-field textarea {
    min-height: 70px;
    padding: 9px 11px;
    line-height: 1.3;
    resize: vertical;
}

.account-profile-field input::placeholder,
.account-profile-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.account-profile-field select option {
    color: #ffffff;
    background: #2b2b2b;
}

.account-profile-field input:hover,
.account-profile-field select:hover,
.account-profile-field textarea:hover {
    border-color: rgba(254, 203, 0, 0.32);
}

.account-profile-field input:focus,
.account-profile-field select:focus,
.account-profile-field textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fecb00;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.11);
}

.account-profile-field input.has-error,
.account-profile-field select.has-error,
.account-profile-field textarea.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/*
|--------------------------------------------------------------------------
| CÉDULA
|--------------------------------------------------------------------------
*/

.account-profile-document {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 7px;
}

.account-profile-document select {
    padding-right: 5px;
    text-align: center;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| TELÉFONO
|--------------------------------------------------------------------------
*/

.account-profile-phone {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
}

.account-profile-phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #fecb00;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    font-size: 12px;
    font-weight: 800;
}

.account-profile-phone input {
    border-radius: 0 9px 9px 0;
}

/*
|--------------------------------------------------------------------------
| AYUDAS Y ERRORES
|--------------------------------------------------------------------------
*/

.account-profile-field-help {
    display: block;
    min-height: 0;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    line-height: 1.15;
}

.account-profile-field-error {
    display: none;
    margin-top: 3px;
    color: #ff6b6b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.account-profile-field-error.is-visible {
    display: block;
}

/*
|--------------------------------------------------------------------------
| BOTÓN ACTUALIZAR
|--------------------------------------------------------------------------
*/

.account-profile-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1px;
}

.account-profile-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 42px;
    padding: 9px 21px;
    color: #111111;
    background: linear-gradient(135deg, #ffd633, #fe9400);
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(254, 148, 0, 0.19);
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease;
}

.account-profile-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.account-profile-submit:active {
    transform: translateY(0);
}

.account-profile-submit:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {
    .account-profile-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .account-modal-overlay {
        padding: 8px;
    }

    .account-modal-content {
        width: 100%;
        max-width: 420px;
        max-height: calc(100dvh - 16px);
        padding: 22px 16px 17px;
        margin: auto;
        border-radius: 20px;
    }

    .account-modal-avatar {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .account-modal-user strong {
        font-size: 15px;
    }

    .account-modal-wallet-actions {
        gap: 8px;
    }

    .account-modal-action {
        min-height: 47px;
        padding: 0 10px;
        font-size: 11px;
    }

    .account-modal-menu-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 9px 11px;
    }

    .account-modal-menu-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .account-section-modal-content {
        min-height: 150px;
        padding: 0;
    }

    .account-modal-back {
        top: 9px;
        left: 10px;
        width: 34px;
        height: 34px;
    }

    .account-section-modal-content > .account-modal-close {
        top: 9px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .account-section-header {
        gap: 8px;
        min-height: 52px;
        padding: 8px 50px;
    }

    .account-section-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .account-section-header h2 {
        font-size: 16px;
    }

    .account-section-body {
        padding: 11px 12px 14px;
    }

    .account-profile-modal-content {
        width: calc(100vw - 16px);
        max-width: none;
        max-height: calc(100dvh - 16px);
        padding: 0;
        border-radius: 18px;
    }

    .account-profile-form {
        max-height: calc(100dvh - 68px);
        padding: 8px 10px 12px;
    }

    .account-profile-section {
        margin-bottom: 7px;
        padding: 9px 10px 10px;
        border-radius: 10px;
    }

    .account-profile-grid,
    .account-profile-grid-two,
    .account-profile-location-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .account-profile-field-full {
        grid-column: auto;
    }

    .account-profile-footer {
    grid-template-columns: 1fr;
    gap: 12px;
	}

	.account-profile-responsibility {
		max-width: none;
		font-size: 10px;
		line-height: 1.4;
	}

	.account-profile-submit {
		width: 100%;
	}
    .account-profile-submit {
        width: 100%;
    }
}
/*
|--------------------------------------------------------------------------
| DIRECCIÓN CON ALTURA FIJA
|--------------------------------------------------------------------------
*/

#accountProfileAddress {
    display: block;
    width: 100%;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    resize: none !important;
    overflow-y: auto;
    box-sizing: border-box;
}
/*
|--------------------------------------------------------------------------
| MODAL CAMBIAR CONTRASEÑA
|--------------------------------------------------------------------------
*/

.account-security-modal-content {
    width: min(620px, calc(100vw - 32px));
    max-width: 620px;
    overflow: hidden;
}

.account-security-modal-content .account-section-body {
    padding: 0;
}

.account-security-form {
    display: grid;
    gap: 13px;
    padding: 12px 20px 20px;
}

/*
|--------------------------------------------------------------------------
| USUARIO
|--------------------------------------------------------------------------
*/

.account-security-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;

    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
}

.account-security-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    color: #111111;
    background: linear-gradient(135deg, #ffd633, #fe9400);
    border-radius: 50%;
}

.account-security-user-data {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.account-security-user-data small {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
}

.account-security-user-data strong {
    max-width: 100%;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| CAMPOS
|--------------------------------------------------------------------------
*/

.account-security-field {
    min-width: 0;
}

.account-security-field label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.account-security-password-wrapper {
    position: relative;
}

.account-security-password-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 13px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.account-security-password-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.account-security-password-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fecb00;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.11);
}

.account-security-password-wrapper input.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
}

.account-security-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    color: rgba(255, 255, 255, 0.64);
    background: transparent;
    border: 0;
    border-radius: 8px;

    cursor: pointer;
    transform: translateY(-50%);
}

.account-security-password-toggle:hover {
    color: #fecb00;
    background: rgba(254, 203, 0, 0.07);
}

.account-security-password-toggle.is-visible {
    color: #fecb00;
}

.account-security-help {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    line-height: 1.3;
}

/*
|--------------------------------------------------------------------------
| FILA INFERIOR
|--------------------------------------------------------------------------
*/

.account-security-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-top: 3px;
}

.account-security-notice {
    margin: 0;
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
    line-height: 1.4;
}

.account-security-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 44px;
    padding: 10px 18px;

    color: #101010;
    background: linear-gradient(135deg, #ffd633, #fe9400);
    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
    box-shadow: 0 8px 22px rgba(254, 148, 0, 0.18);

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.account-security-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.account-security-submit:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .account-security-modal-content {
        width: calc(100vw - 14px);
    }

    .account-security-form {
        gap: 11px;
        padding: 3px 12px 16px;
    }

    .account-security-footer {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .account-security-submit {
        width: 100%;
    }
}
/*
|--------------------------------------------------------------------------
| MÉTODOS DE PAGO
|--------------------------------------------------------------------------
*/

.account-payment-modal-content {
    width: min(820px, calc(100vw - 32px));
    max-width: 820px;
    max-height: 92vh;
    overflow: hidden;
}

.account-payment-modal-content .account-section-body {
    padding: 0;
    overflow: hidden;
}

.account-payment-layout {
    max-height: calc(92vh - 74px);
    padding: 12px 20px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 148, 0, 0.6) transparent;
}

.account-payment-layout::-webkit-scrollbar {
    width: 6px;
}

.account-payment-layout::-webkit-scrollbar-track {
    background: transparent;
}

.account-payment-layout::-webkit-scrollbar-thumb {
    background: rgba(254, 148, 0, 0.55);
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| AVISO
|--------------------------------------------------------------------------
*/

.account-payment-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 12px;
    padding: 11px 13px;

    color: #ffffff;
    background: rgba(254, 148, 0, 0.075);
    border: 1px solid rgba(254, 148, 0, 0.25);
    border-radius: 12px;
}

.account-payment-warning-icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.account-payment-warning strong {
    display: block;
    margin-bottom: 3px;
    color: #fecb00;
    font-size: 12px;
    font-weight: 900;
}

.account-payment-warning p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| FORMULARIO
|--------------------------------------------------------------------------
*/

.account-payment-section {
    min-width: 0;
    margin: 0;
    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
}

.account-payment-section legend {
    padding: 0 8px;
    color: #fecb00;
    font-size: 13px;
    font-weight: 900;
}

.account-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 13px;
}

.account-payment-field {
    min-width: 0;
}

.account-payment-field label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.account-payment-field input,
.account-payment-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.account-payment-field select option {
    color: #ffffff;
    background: #252525;
}

.account-payment-field input:focus,
.account-payment-field select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fecb00;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.1);
}

.account-payment-field input[readonly] {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.075);
    cursor: not-allowed;
}

.account-payment-field input.has-error,
.account-payment-field select.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
}

/*
|--------------------------------------------------------------------------
| TELÉFONO
|--------------------------------------------------------------------------
*/

.account-payment-phone {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
}

.account-payment-phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;

    color: #fecb00;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-right: 0;
    border-radius: 10px 0 0 10px;

    font-size: 12px;
    font-weight: 900;
}

.account-payment-phone input {
    border-radius: 0 10px 10px 0;
}

/*
|--------------------------------------------------------------------------
| MENSAJES
|--------------------------------------------------------------------------
*/

.account-payment-readonly-help,
.account-payment-field-help {
    display: block;
    min-height: 13px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    line-height: 1.25;
}

.account-payment-field-error,
.account-payment-profile-error {
    display: none;
    margin-top: 4px;
    color: #ff6868;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.account-payment-field-error.is-visible,
.account-payment-profile-error.is-visible {
    display: block;
}

.account-payment-profile-error:not([hidden]) {
    display: block;
}

/*
|--------------------------------------------------------------------------
| PIE DEL FORMULARIO
|--------------------------------------------------------------------------
*/

.account-payment-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-top: 11px;
}

.account-payment-form-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.4;
}

.account-payment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 165px;
    min-height: 43px;
    padding: 9px 18px;

    color: #111111;
    background: linear-gradient(135deg, #ffd633, #fe9400);
    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
    box-shadow: 0 8px 20px rgba(254, 148, 0, 0.17);

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.account-payment-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.account-payment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| CUENTAS REGISTRADAS
|--------------------------------------------------------------------------
*/

.account-payment-registered {
    margin-top: 14px;
}

.account-payment-registered-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

.account-payment-registered-heading strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.account-payment-registered-heading small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

.account-payment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 29px;
    padding: 0 9px;

    color: #111111;
    background: linear-gradient(
        135deg,
        #ffd633,
        #fe9400
    );
    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;
}

/*
|--------------------------------------------------------------------------
| GRID DE CUENTAS
|--------------------------------------------------------------------------
|
| display: contents permite que:
|
| - El botón de cada banco sea una celda.
| - El panel desplegado sea otra celda independiente.
| - El panel pueda ocupar las tres columnas.
|
*/

.account-payment-methods-list {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    grid-auto-flow: row dense;
    align-items: start;
    gap: 10px;

    min-width: 0;
    padding-bottom: 18px;
    scroll-margin-bottom: 18px;
}

/*
 * El article conserva su estructura en el DOM,
 * pero no genera una caja propia dentro del grid.
 */
.account-payment-account {
    display: contents;
}

/*
|--------------------------------------------------------------------------
| BOTÓN DE CADA BANCO
|--------------------------------------------------------------------------
*/

.account-payment-account-trigger {
    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 11px;

    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 9px 12px;

    overflow: hidden;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;

    font-family: inherit;
    text-align: left;
    cursor: pointer;

    opacity: 0;
    transform: translateX(-24px);

    animation:
        accountPaymentSlideIn
        0.45s
        ease
        forwards;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.account-payment-account-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(254, 203, 0, 0.3);
    transform: translateY(-1px);
}

.account-payment-account.is-open
.account-payment-account-trigger {
    background: rgba(254, 148, 0, 0.055);
    border-color: rgba(254, 148, 0, 0.42);
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.13),
        0 0 0 1px rgba(254, 148, 0, 0.03);
}

/*
|--------------------------------------------------------------------------
| ANIMACIÓN ESCALONADA
|--------------------------------------------------------------------------
*/

.account-payment-account:nth-of-type(1)
.account-payment-account-trigger {
    animation-delay: 0ms;
}

.account-payment-account:nth-of-type(2)
.account-payment-account-trigger {
    animation-delay: 80ms;
}

.account-payment-account:nth-of-type(3)
.account-payment-account-trigger {
    animation-delay: 160ms;
}

.account-payment-account:nth-of-type(4)
.account-payment-account-trigger {
    animation-delay: 240ms;
}

.account-payment-account:nth-of-type(5)
.account-payment-account-trigger {
    animation-delay: 320ms;
}

.account-payment-account:nth-of-type(6)
.account-payment-account-trigger {
    animation-delay: 400ms;
}

@keyframes accountPaymentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
|--------------------------------------------------------------------------
| ÍCONO Y TEXTO
|--------------------------------------------------------------------------
*/

.account-payment-account-icon {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    background: rgba(254, 148, 0, 0.1);
    border-radius: 10px;

    font-size: 17px;
}

.account-payment-account-text {
    min-width: 0;
}

.account-payment-account-text strong {
    display: block;
    overflow: hidden;

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-payment-account-text small {
    display: block;
    margin-top: 2px;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-payment-account-arrow {
    color: #fecb00;
    font-size: 22px;
    line-height: 1;

    transition:
        transform 0.22s ease,
        color 0.22s ease;
}

.account-payment-account.is-open
.account-payment-account-arrow {
    color: #ffd633;
    transform: rotate(90deg);
}

/*
|--------------------------------------------------------------------------
| PANEL DESPLEGADO
|--------------------------------------------------------------------------
|
| Este panel ocupa todo el ancho del grid.
| Ya no aumenta la altura solamente de una columna.
|
*/

.account-payment-account-panel {
    grid-column: 1 / -1;

    width: 100%;
    min-width: 0;
    padding: 0;

    scroll-margin-top: 12px;
    scroll-margin-bottom: 16px;
}

.account-payment-account-panel[hidden] {
    display: none !important;
}

.account-payment-account-panel:not([hidden]) {
    display: block;

    animation:
        accountPaymentPanelOpen
        0.26s
        ease
        both;
}

@keyframes accountPaymentPanelOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
|--------------------------------------------------------------------------
| DETALLES COMPLETOS
|--------------------------------------------------------------------------
*/

.account-payment-account-details {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 10px 14px;

    padding: 13px 14px;

    background:
        linear-gradient(
            145deg,
            rgba(254, 148, 0, 0.045),
            rgba(0, 0, 0, 0.13)
        );

    border: 1px solid rgba(254, 148, 0, 0.24);
    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
}

.account-payment-detail {
    min-width: 0;
    padding: 3px 4px;
}

.account-payment-detail small {
    display: block;
    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
}

.account-payment-detail strong {
    display: block;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| CARGANDO Y SIN CUENTAS
|--------------------------------------------------------------------------
*/

.account-payment-loading,
.account-payment-empty {
    grid-column: 1 / -1;

    padding: 17px;

    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.11);
    border-radius: 11px;

    text-align: center;
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .account-payment-methods-list {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .account-payment-account-details {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

/*
|--------------------------------------------------------------------------
| MÓVIL
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .account-payment-modal-content {
        width: calc(100vw - 14px);
        max-height: 94vh;
    }

    .account-payment-layout {
        max-height: calc(94vh - 67px);
        padding: 12px 12px 16px;
    }

    .account-payment-grid,
    .account-payment-methods-list,
    .account-payment-account-details {
        grid-template-columns: 1fr;
    }

    .account-payment-form-footer {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-payment-submit {
        width: 100%;
    }

    .account-payment-account-trigger {
        min-height: 58px;
    }
}

/*
|--------------------------------------------------------------------------
| REDUCIR MOVIMIENTO
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .account-payment-account-trigger,
    .account-payment-account-panel:not([hidden]) {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/*
|--------------------------------------------------------------------------
| PERFIL CON EL MISMO COLOR DEL MODAL DE CONTRASEÑA
|--------------------------------------------------------------------------
*/

.account-profile-modal-content {
    background:
        radial-gradient(
            circle at top,
            rgba(254, 148, 0, 0.14),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #242424,
            #101010
        ) !important;
}

/*
|--------------------------------------------------------------------------
| SECCIONES DEL PERFIL MÁS OSCURAS
|--------------------------------------------------------------------------
*/

.account-profile-section {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
}

/*
|--------------------------------------------------------------------------
| CAMPOS DEL MISMO TONO QUE CAMBIAR CONTRASEÑA
|--------------------------------------------------------------------------
*/

.account-profile-field input,
.account-profile-field select,
.account-profile-field textarea {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.13);
}

.account-profile-phone-prefix {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.13);
}

.account-profile-field input:hover,
.account-profile-field select:hover,
.account-profile-field textarea:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(254, 203, 0, 0.32);
}

.account-profile-field input:focus,
.account-profile-field select:focus,
.account-profile-field textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fecb00;
    box-shadow: 0 0 0 3px rgba(254, 203, 0, 0.11);
}