/* ===============================
   CSI PROFILE POPUP
================================ */

.profile-overlay {
    position: fixed;
    inset: 0;

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

    padding: 20px;

    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition: .25s;
    z-index: 999999;
}

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

.profile-popup {
    position: relative;

    width: 760px;
    max-width: 100%;

    max-height: calc(100svh - 40px);
    overflow-y: auto;

    padding: 35px;

    background: #171717;

    border: 1px solid #343434;
    border-top: 4px solid #f0c419;
    border-radius: 22px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, .65);
}

.profile-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #252525;
    color: white;

    font-size: 18px;
    cursor: pointer;
}

.profile-close:hover {
    background: #f0c419;
    color: black;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;

    margin-bottom: 30px;
}

.profile-avatar-box {
    width: 130px;
    min-width: 130px;
    height: 150px;

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

    overflow: hidden;

    background: #101010;
    border: 1px solid #343434;
    border-radius: 18px;
}

.profile-avatar-box img {
    max-width: none;
    height: 145px;
    object-fit: contain;
}

.profile-title-area {
    min-width: 0;
}

.profile-label {
    color: #f0c419;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.profile-title-area h2 {
    margin: 8px 0 10px;

    font-size: 35px;
    overflow-wrap: anywhere;
}

.profile-title-area p {
    color: #bdbdbd;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 22px;
}

.profile-info-card {
    min-width: 0;

    padding: 17px;

    background: #202020;
    border: 1px solid #383838;
    border-radius: 13px;
}

.profile-info-card span {
    display: block;

    margin-bottom: 8px;

    color: #969696;
    font-size: 13px;
}

.profile-info-card strong {
    display: block;

    color: white;
    overflow-wrap: anywhere;
}

.profile-main-btn {
    width: 100%;
    min-height: 52px;

    padding: 13px 16px;

    border: none;
    border-radius: 12px;

    background: #f0c419;
    color: #111;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
    transition: .25s;
}

.profile-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(240, 196, 25, .25);
}

.profile-divider {
    height: 1px;

    margin: 28px 0;

    background: #353535;
}

.profile-password-section h3 {
    margin-bottom: 18px;
    color: #f0c419;
}

.profile-password-section input {
    width: 100%;
    height: 50px;

    margin-bottom: 13px;
    padding: 0 16px;

    background: #242424;
    border: 1px solid #444;
    border-radius: 11px;

    color: white;
    font-size: 15px;
    outline: none;
}

.profile-password-section input:focus {
    border-color: #f0c419;
}

@media (max-width: 600px) {

    .profile-overlay {
        padding: 12px;
    }

    .profile-popup {
        padding: 28px 18px 22px;
        border-radius: 17px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-avatar-box {
        width: 120px;
        min-width: 120px;
        height: 140px;
    }

    .profile-avatar-box img {
        height: 135px;
    }

    .profile-title-area h2 {
        font-size: 28px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

}