.user-dropdown.enhanced-dropdown {
    position: fixed;
    width: 300px;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition:
        opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.22s;
    z-index: 2001;
}

.user-dropdown.enhanced-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown.enhanced-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(104, 190, 124, 0.1);
    border: 1px solid rgba(104, 190, 124, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--store-primary);
    font-size: 1rem;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--store-text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.72rem;
    color: var(--store-text-muted);
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    background: rgba(104, 190, 124, 0.1);
    border: 1px solid rgba(104, 190, 124, 0.18);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--store-primary);
    margin-top: 0.1rem;
    width: fit-content;
}

.verification-badge.blue-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #1d9bf0;
    border-radius: 50%;
    flex-shrink: 0;
}

.verification-badge.blue-verified i {
    font-size: 0.5rem;
    color: #fff;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.5rem;
    gap: 0.15rem;
    position: relative;
    transition: background 0.2s;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.055);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--store-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.62rem;
    color: var(--store-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.user-dropdown.enhanced-dropdown .dropdown-menu {
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
}

.user-dropdown.enhanced-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.825rem;
    font-family: var(--font-display);
    font-weight: 400;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    min-height: 38px;
    letter-spacing: -0.01em;
    text-align: left;
    opacity: 0;
    transform: translateX(-16px);
}

.user-dropdown.enhanced-dropdown.show .dropdown-item {
    animation: dropdownItemIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropdownItemIn {
    to { opacity: 1; transform: translateX(0); }
}

.user-dropdown.enhanced-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.user-dropdown.enhanced-dropdown .dropdown-item i {
    width: 15px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: color 0.15s;
}

.user-dropdown.enhanced-dropdown .dropdown-item:hover i {
    color: var(--store-primary);
}

.user-dropdown.enhanced-dropdown .dropdown-item.admin-item:hover {
    background: rgba(104, 124, 190, 0.08);
    color: var(--store-secondary-light);
}

.user-dropdown.enhanced-dropdown .dropdown-item.admin-item:hover i {
    color: var(--store-secondary-light);
}

.user-dropdown.enhanced-dropdown .dropdown-item.dev-item:hover {
    background: rgba(255, 159, 10, 0.08);
    color: var(--store-warning);
}

.user-dropdown.enhanced-dropdown .dropdown-item.dev-item:hover i {
    color: var(--store-warning);
}

.user-dropdown.enhanced-dropdown .dropdown-item.logout-item:hover {
    background: rgba(255, 69, 58, 0.08);
    color: var(--store-error);
}

.user-dropdown.enhanced-dropdown .dropdown-item.logout-item:hover i {
    color: var(--store-error);
}

.user-dropdown.enhanced-dropdown .dropdown-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    padding: 0.5rem 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.theme-selector {
    display: flex;
    gap: 0.3rem;
}

.theme-option {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.theme-option.active {
    background: rgba(104, 190, 124, 0.12);
    color: var(--store-primary);
    border-color: rgba(104, 190, 124, 0.25);
}

.dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-backdrop.show {
    opacity: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.user-info .user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(104, 190, 124, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--store-primary);
    flex-shrink: 0;
}

.user-info .user-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: -0.01em;
}

.user-info .dropdown-arrow {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

#loginButton[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.auth-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.auth-prompt-modal.show {
    opacity: 1;
}

.auth-prompt-modal.closing {
    opacity: 0;
    pointer-events: none;
}

.auth-prompt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-prompt-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 1rem;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-prompt-modal.show .auth-prompt-content {
    transform: translateY(0) scale(1);
}

.auth-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.auth-prompt-header h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--store-text);
}

.auth-prompt-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--store-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: background 0.2s, color 0.2s;
}

.auth-prompt-close:hover {
    background: rgba(255, 69, 58, 0.12);
    color: var(--store-error);
    border-color: rgba(255, 69, 58, 0.2);
}

.auth-prompt-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(104, 190, 124, 0.08);
    border: 1px solid rgba(104, 190, 124, 0.15);
    color: var(--store-primary);
    font-size: 1.4rem;
}

.auth-prompt-body p {
    font-size: 0.85rem;
    color: var(--store-text-muted);
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-body);
}

.auth-prompt-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--store-text-secondary);
    font-family: var(--font-body);
    letter-spacing: -0.005em;
}

.benefit i {
    color: var(--store-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.auth-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-prompt-actions .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--store-primary);
    color: #000;
    border: none;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: -0.01em;
}

.auth-prompt-actions .btn-primary:hover {
    background: #80d494;
    box-shadow: 0 0 0 4px rgba(104, 190, 124, 0.2);
}

.auth-prompt-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: -0.01em;
}

.auth-prompt-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
    .user-dropdown.enhanced-dropdown {
        width: calc(100vw - 2rem);
        max-width: 320px;
    }

    .auth-prompt-benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-dropdown.enhanced-dropdown,
    .auth-prompt-modal,
    .auth-prompt-content {
        transition: none;
        animation: none;
    }
    .user-dropdown.enhanced-dropdown .dropdown-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}