.profile-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f6fa 100%);
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.3);
    z-index: 9500;
    overflow: hidden;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    width: 200px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.profile-panel.show {
    display: block;
    transform: scaleY(1);
    opacity: 1;
}

.profile-menu {
    padding: 20px 0;
}

.profile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-menu li {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-menu li:hover {
    background: linear-gradient(45deg, #ff6f61, #ff9f43);
    color: white;
    transform: translateX(5px);
}

.profile-menu li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.3s ease;
}

.profile-menu li:hover::before {
    left: 100%;
}

@supports not (backdrop-filter: blur(5px)) {
    .profile-panel {
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 768px) {
    .profile-panel {
        top: 60px;
        right: 10px;
        width: 180px;
    }

    .profile-menu li {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .profile-panel {
        top: 50px;
        right: 10px;
        width: 160px;
    }

    .profile-menu li {
        font-size: 13px;
        padding: 8px 12px;
    }
}