/* ==========================================================================
   1. STRUCTURE GLOBALE
   ========================================================================== */
.asp-account-wrapper {
    position: relative;
    display: inline-block;
}

.asp-account-wrapper .asp-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   2. DROPDOWN DESKTOP (Comportement et Animation)
   ========================================================================== */
.asp-account-wrapper .asp-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 0; 
    min-width: 240px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

.asp-account-wrapper:hover .asp-dropdown-menu {
    opacity: 1;
    max-height: 300px;
    padding: 6px 0;
}

.asp-account-wrapper .asp-dropdown-menu li a {
    display: block;
    padding: 8px 18px;
    color: #555555;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.asp-account-wrapper .asp-dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #000000;
}

.asp-account-wrapper .asp-dropdown-menu li a.logout-link {
    color: #c92a2a;
}

.asp-dropdown-divider {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #eeeeee;
}

/* ==========================================================================
   3. SIDEBAR MOBILE
   ========================================================================== */
.pk-aside .pk-account-menu-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.pk-aside .pk-account-menu-list li a {
    display: flex;
    font-family: 'Roboto', sans-serif;
    align-items: center;
    padding: 16px 24px;
    color: #232323;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}



/* Isolation */
.pk-aside.pk-right:has([data-pktabcontent="el-account-custom"].active) .tab-content > [data-pktabcontent]:not([data-pktabcontent="el-account-custom"]) {
    display: none !important;
}
