/* ============================================================
   SPECTRE ADDONS
   CUENTAS + ACCIONES DE SIDEBAR
   NO MODIFICA EL CSS ORIGINAL
   ============================================================ */


/* ============================================================
   CAPA DE AUTENTICACIÓN
   ============================================================ */

.auth-screen {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(24, 73, 150, 0.16),
            transparent 42%
        ),
        #020409;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.5s ease;
}


.auth-screen.visible {

    opacity: 1;

    pointer-events: auto;
}


.auth-card {

    width: min(440px, 100%);

    padding: 38px;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(12,20,36,0.97),
            rgba(3,7,15,0.98)
        );

    box-shadow:
        0 30px 100px rgba(0,0,0,0.65),
        0 0 80px rgba(30,90,180,0.08);

    backdrop-filter: blur(18px);

    transform: translateY(20px) scale(0.98);

    transition:
        transform 0.5s ease;
}


.auth-screen.visible .auth-card {

    transform:
        translateY(0)
        scale(1);
}


.auth-logo {

    width: 58px;

    height: 58px;

    margin: 0 auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    border: 1px solid rgba(100,170,255,0.25);

    background:
        linear-gradient(
            145deg,
            #10294c,
            #07111f
        );

    color: white;

    font-size: 25px;

    font-weight: 800;

    box-shadow:
        0 0 35px rgba(60,140,255,0.12);
}


.auth-card h1 {

    margin: 0;

    text-align: center;

    color: white;

    font-size: 28px;

    font-weight: 700;
}


.auth-card > p {

    margin: 10px 0 28px;

    text-align: center;

    color: rgba(220,230,245,0.62);

    font-size: 14px;

    line-height: 1.6;
}


.auth-form {

    display: flex;

    flex-direction: column;

    gap: 14px;
}


.auth-field {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.auth-field label {

    color: rgba(235,242,255,0.72);

    font-size: 12px;

    font-weight: 600;
}


.auth-field input {

    width: 100%;

    height: 48px;

    padding: 0 15px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.08);

    outline: none;

    background:
        rgba(255,255,255,0.035);

    color: white;

    font-size: 14px;

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


.auth-field input:focus {

    border-color:
        rgba(75,150,255,0.55);

    background:
        rgba(255,255,255,0.055);

    box-shadow:
        0 0 0 3px rgba(55,130,255,0.08);
}


.auth-button {

    width: 100%;

    height: 50px;

    margin-top: 6px;

    border: 0;

    border-radius: 13px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #1764d8,
            #278cff
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

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


.auth-button:hover {

    transform: translateY(-1px);

    filter: brightness(1.08);
}


.auth-button:disabled {

    opacity: 0.55;

    cursor: wait;

    transform: none;
}


.auth-switch {

    margin-top: 22px;

    text-align: center;

    color: rgba(220,230,245,0.55);

    font-size: 13px;
}


.auth-switch button {

    padding: 0;

    border: 0;

    background: none;

    color: #62a9ff;

    cursor: pointer;

    font-weight: 600;
}


.auth-error {

    display: none;

    margin-bottom: 12px;

    padding: 11px 13px;

    border-radius: 10px;

    background:
        rgba(220,50,70,0.08);

    border:
        1px solid rgba(220,80,100,0.18);

    color:
        #ff8797;

    font-size: 12px;

    line-height: 1.5;
}


.auth-error.visible {

    display: block;
}


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

.profile-information strong {

    transition:
        opacity 0.2s ease;
}


.profile-information small {

    transition:
        opacity 0.2s ease;
}


/* ============================================================
   MODAL PARA ACCIONES
   ============================================================ */

.spectre-action-overlay {

    position: fixed;

    inset: 0;

    z-index: 9990;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background:
        rgba(0,0,0,0.68);

    backdrop-filter: blur(8px);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease;
}


.spectre-action-overlay.visible {

    opacity: 1;

    pointer-events: auto;
}


.spectre-action-card {

    width: min(520px, 100%);

    padding: 30px;

    border-radius: 20px;

    border:
        1px solid rgba(255,255,255,0.09);

    background:
        linear-gradient(
            145deg,
            #0b1423,
            #040913
        );

    box-shadow:
        0 30px 90px rgba(0,0,0,0.65);

    transform:
        translateY(15px)
        scale(0.98);

    transition:
        transform 0.25s ease;
}


.spectre-action-overlay.visible
.spectre-action-card {

    transform:
        translateY(0)
        scale(1);
}


.spectre-action-icon {

    width: 48px;

    height: 48px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        rgba(40,120,240,0.1);

    border:
        1px solid rgba(70,145,255,0.16);

    color: #70b4ff;

    font-size: 21px;
}


.spectre-action-card h3 {

    margin: 0 0 8px;

    color: white;

    font-size: 22px;
}


.spectre-action-card p {

    margin: 0 0 20px;

    color:
        rgba(220,230,245,0.58);

    font-size: 13px;

    line-height: 1.6;
}


.spectre-action-input {

    width: 100%;

    min-height: 52px;

    resize: vertical;

    padding: 14px;

    border-radius: 12px;

    border:
        1px solid rgba(255,255,255,0.08);

    outline: none;

    background:
        rgba(255,255,255,0.035);

    color: white;

    font-family: inherit;

    font-size: 14px;
}


.spectre-action-input:focus {

    border-color:
        rgba(75,150,255,0.55);

    box-shadow:
        0 0 0 3px rgba(55,130,255,0.08);
}


.spectre-action-buttons {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 15px;
}


.spectre-action-cancel,
.spectre-action-submit {

    height: 42px;

    padding: 0 17px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;
}


.spectre-action-cancel {

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.035);

    color:
        rgba(235,242,255,0.7);
}


.spectre-action-submit {

    border: 0;

    background:
        linear-gradient(
            135deg,
            #1764d8,
            #278cff
        );

    color: white;
}


@media (max-width: 600px) {

    .auth-card {

        padding: 28px 22px;

        border-radius: 20px;
    }

    .spectre-action-card {

        padding: 24px 20px;
    }
}/* ============================================================
   MENÚ DE PERFIL
============================================================ */

.profile-wrapper {
    position: relative;
}


.profile-menu {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 250px;

    padding: 12px;

    background: rgba(8, 13, 24, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 16px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(18px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.98);

    transform-origin: top right;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 1000;
}


.profile-menu.visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.profile-menu-user {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 8px;
}


.profile-menu-avatar {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: white;

    font-weight: 700;

    font-size: 16px;
}


.profile-menu-information {
    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 3px;
}


.profile-menu-information strong {
    color: white;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.profile-menu-information span {
    color: rgba(255, 255, 255, 0.50);

    font-size: 12px;
}


.profile-menu-divider {
    height: 1px;

    margin:
        8px 4px;

    background:
        rgba(255, 255, 255, 0.08);
}


.profile-logout {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 10px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


.profile-logout:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: white;
}.profile-premium {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 10px;

    margin-bottom: 4px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.18),
            rgba(96, 165, 250, 0.10)
        );

    color: #ffffff;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}


.profile-premium:hover {

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.30),
            rgba(96, 165, 250, 0.18)
        );

    transform: translateY(-1px);

}