.profile-dropdown {
position: absolute;
top: 100%;
right: 0;
background: #1e2433;
border: 1px solid rgba(74, 158, 255, 0.1);
border-radius: 12px;
padding: 0;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
opacity: 0;
transform: translateY(-8px) scale(0.95);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
user-select: none;
display: flex;
flex-direction: column;
width: 280px;
max-width: calc(100vw - 32px);
backdrop-filter: blur(12px);
z-index: 999999;
overflow: hidden;
}

.profile-dropdown.mobile-floating {
 position: fixed;
 right: 16px;
 bottom: 72px;
 left: auto;
 top: auto;
 z-index: 1002;
}

@media (max-width: 767px) {
.profile-dropdown-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: rgba(0, 0, 0, 0.6) !important;
backdrop-filter: blur(8px) !important;
z-index: 10002 !important;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
display: block !important;
}

.profile-dropdown-overlay.show {
opacity: 1 !important;
visibility: visible !important;
}

.profile-dropdown.mobile-floating {
z-index: 10003 !important;
}
}

@media (min-width: 768px) {
.profile-dropdown-overlay {
display: none;
}
}

.profile-dropdown.show {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}

.profile-dropdown-user-info {
padding: 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
gap: 12px;
}

.profile-dropdown-avatar {
flex-shrink: 0;
}

.profile-dropdown-user-details {
flex: 1;
min-width: 0;
}

.profile-dropdown-username {
font-size: 15px;
font-weight: 600;
color: white;
margin: 0 0 4px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.profile-dropdown-email {
font-size: 13px;
color: rgba(255, 255, 255, 0.5);
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.profile-dropdown-menu {
padding: 8px;
display: flex;
flex-direction: column;
}

.profile-dropdown-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
font-weight: 500;
background: none;
border: none;
width: 100%;
text-align: left;
}

.profile-dropdown-item:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
transform: translateX(2px);
}

.profile-dropdown-item:active {
transform: scale(0.98);
}

.profile-dropdown-item svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}

.profile-dropdown-divider {
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: 4px 0;
}

@media (max-width: 768px) {
.profile-dropdown {
 width: 320px;
 right: 16px;
}

.profile-dropdown-user-info {
padding: 20px;
}

.profile-dropdown-username {
font-size: 16px;
}

.profile-dropdown-email {
font-size: 14px;
}

.profile-dropdown-item {
padding: 16px;
font-size: 15px;
}
}
