.nav-auth-slot {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.nav-auth-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-auth-signin:hover {
    opacity: 0.92;
    color: #333;
}

.nav-auth-signin svg {
    flex-shrink: 0;
}

.nav-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    font-size: 0.8rem;
    max-width: 200px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-auth-user:hover,
.nav-auth-user.open {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #333;
}

.nav-auth-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b7dff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-auth-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.nav-auth-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.nav-auth-chevron {
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-auth-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.nav-auth-menu.show {
    display: block;
}

.nav-auth-menu-email {
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #888;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 4px;
    word-break: break-all;
}

.nav-auth-menu a,
.nav-auth-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.nav-auth-menu a:hover,
.nav-auth-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-auth-menu .nav-auth-logout {
    color: #f87171;
    margin-top: 4px;
    border-top: 1px solid #2a2a2a;
    border-radius: 0 0 6px 6px;
    padding-top: 12px;
}

@media (max-width: 768px) {
    .nav-auth-name {
        max-width: 80px;
    }
    .nav-auth-signin {
        padding: 7px 10px;
        font-size: 0.72rem;
        gap: 6px;
    }
    .nav-auth-signin span {
        display: inline;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
